PDA

View Full Version : Linking gallery pics to members post's in threads



Stormy
06-17-2007, 02:26 AM
Hey zlmark,

Is there any way to put a link to a particular member's gallery pics in the left hand margin, near the member's avatar, username and location?

When a new member starts to post items in the forum, it would be cool to just click on a single link and go straight to their gallery pics to check out their bike, rather than have to wade through all the gallery pic listings or do a "jump to ...".

It would be far more convenient.

It's just as the website and the sheer amount of new membership grows, it's going to take ages to wade through each members pics, as time continues, to say nothing of the vast number of webpages needed to be downloaded, for those of us still on hopeless dial-up connections (19.2kbps), ADSL / High Speed Broadband is not available nor will be available in my locality till 2010, maybe not even then, based on current trends.

...just a thought.

Mick.

zlMark
06-17-2007, 11:15 AM
Oh yes all nice features i have grown accustomed to using other v-bulletin forums. I'll keep my eyes open for a mod or hack for this.

Rocket
06-17-2007, 01:05 PM
High Speed Broadband is not available nor will be available in my locality till 2010, maybe not even then

Hey Stormy stop sooking mate. I live in Sydney Metro and I can't get ADSL2+ anytime in the near future. And both of our major political parties are patting themselves on the back for their "forward thinking broadband policies". What a joke, they would have us believe 24MB/sec they're planning for us is superfast, get real!!! Malaysia and Taiwan both have 100MB/sec in their home use networks, and in Malaysia an internet cafe will sell you an hour for RM1.50.

http://au.finance.yahoo.com/currency/convert?amt=1.5&from=MYR&to=USD&submit=Convert

OK, sorry, I have got ADSL1 available (1.5MB/sec) but still...

Stormy
06-17-2007, 09:58 PM
thanks zlmark.

Rocket,

A neighbour has just got satellite broadband on with 512mb/sec connection and gee, it's sooooo fast, you don't have time to scratch yourself. It's cheap too, $16 a month access with a HiBis subsidy, pretty cool, eh?

I'd love to do it, but we need a computer running XP and we are still on Win98SE (the computer won't upgrade to XP, I've tried with both the upgrade and clean install, it just won't work).

Oh well, maybe when the job I went for, as a motorbike postie, comes through this week, eh?

Mick.

Jarney
06-18-2007, 06:35 PM
Hey Stormy, good topic. I was thinking about this the other day myself. I keep seeing posts saying "put ups ome pics in my gallery", etc. Unless it's a new member who you know will be on the last page, it's hard to find the person's photo gallery. You guys talking of all this high speed internet connection stuff are making me cry - hahaha. I'm on dial up, connected at a whopping 38 kbps right now - and this is a good day!!! ahahaha. No high speed stuff available to me except for the outrageously priced satellite stuff and wireless - which I'm going to check into this fall. Anyway, it would be nice to go straight to someone's gallery by using their username, avatar, post, etc, somehow. I'm sure Mark will come through for us - he always does. Later.

zlMark
06-18-2007, 06:44 PM
..............the heat is on :225

wuputt
06-19-2007, 12:13 PM
The spotlight is on you Mark!

My father had a saying S.O.G.O.T.P.

zlMark
06-19-2007, 05:58 PM
The spotlight is on you Mark!

My father had a saying S.O.G.O.T.P.sorry you'll have to explain that one

Kawasaki-krazy
06-19-2007, 07:11 PM
defecate or remove oneself from the convenience :D :D

Stormy
06-20-2007, 12:39 AM
hey Rocket,

I know your just mucking around, but I just want the same choices that the rest of the Australian population has got on offer, basically, if you don't live within 1000kms of a major city, you've got a "snowballs chance in hell" of getting the same choices as the rest of the population and that includes Internet, medical and legal services. Out here in the bush, we are deemed as second class citizens compared to the cities, it's probably the same all over the world.

We pay our taxes, just like everyone else does, actually we pay more in duties and levies than city people, what with constant higher fuel prices and getting ripped off with freight costs for normal consumable items, plus the constant monetary federal and state duties imposed on us because we happen to live on the land (RLPB, Landcare, Soil Conservation, Ground Water, Surface Water Catchment and Natural Environmental levies), and we still see no improvement or action on what we are paying to improve, but when it comes to getting the same as everyone else, it's just too hard and not financially viable. We've had rail and other public transport services downgraded or completely cut for a couple of decades now, and the local hospital facilities for anything more than a minor cut are a constant joke.

When everyone else in Aust. is complaining about how bad their ADSL / broadband connection is, all I want is something a little better than 19.2kb/s dial-up !!! it's tantamount to using smoke signals to communicate, jeez, it's the 21st century, but out here in the bush, we are virtually living in the middle of last century.

sorry, it's a very sore point with me at the moment.

...I'll get of my soapbox now.

zlMark
07-07-2007, 10:09 AM
Only mod that exists is for phpbb. i contected dari of nuked gallery who wrote the port for our gallery and he said i may be able to edit the phpbb mod to work with phpnuke,, well i just spent 3 hours on this and it's not working. I'm hoping dari will update his port to add this.

just incase you are wondering here is the phpbb mod
################################################## ############
## MOD Title: Gallery Profile Mod
## MOD Author: PilotSpike <firefighterspike33> (N/A) NA
## MOD Description: This mod integrates the nuked G2 integration into user profiles
## MOD Version: 0.1.0
##
## Installation Level: Intermediate
## Installation Time: 45 Minutes
## Files To Edit: admin/admin_users.php,
## includes/usercp_register.php,
## includes/usercp_viewprofile.php,
## includes/functions_validate.php,
## language/lang_english/lang_admin.php,
## language/lang_english/lang_main.php,
## templates/subSilver/admin/user_edit_body.tpl,
## templates/subSilver/viewtopic_body.tpl,
## templates/subSilver/profile_view_body.tpl,
## templates/subSilver/privmsgs_read_body.tpl,
## templates/subSilver/subSilver.cfg,
## viewtopic.php,
## privmsg.php
## Included Files: images/icon_gallery.gif
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
################################################## ############
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
################################################## ############
## Author Notes:
##
################################################## ############
## MOD History:
##
## 2005-12-17 - Version 0.1.0
## - Initial Developmental Release
##
## 2006-01-16 - A few tweaks to make code functional - Scott Gregory (aka...jettyrat)
## includes/usercp_register.php,
## includes/usercp_viewprofile.php,
## language/lang_english/lang_main.php,
##
################################################## ############
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
################################################## ############


#
#-----[ SQL ]------------------------------------------
#
ALTER TABLE phpbb_users ADD user_gallery VARCHAR(10) NULL DEFAULT NULL;


#
#-----[ COPY ]------------------------------------------
#
images/icon_gallery.gif to templates/subSilver/images/lang_english/icon_gallery.gif

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_users.php

#
#-----[ FIND ]------------------------------------------
#
$yim = ( !empty($HTTP_POST_VARS['yim']) ) ? trim(strip_tags( $HTTP_POST_VARS['yim'] ) ) : '';

#
#-----[ AFTER, ADD ]------------------------------------------
#
$user_gallery = ( !empty($HTTP_POST_VARS['user_gallery']) ) ? trim( strip_tags($HTTP_POST_VARS['user_gallery'] ) ) : '';

#
#----[ FIND ]-----------------------------------
#
validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);


#
#-----[ REPLACE WITH ]----------------------------------
#
validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, $user_gallery);

#
#-----[ FIND ]----------------------------------------
#
$yim = htmlspecialchars(stripslashes($yim));

#
#-----[ AFTER, ADD ]------------------------------------------------------
#
$gallery = htmlspecialchars(stripslashes($gallery));

#
#-----[ FIND ]-------------------------------------------
#
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status, user_rank = $user_rank" . $avatar_sql . "


#
#-----[ IN-LINE FIND ]------------------------------------------------
#
user_rank = $user_rank

#
#-----[ IN-LINE AFTER, ADD ]-----------------------------
#
, user_gallery = '" . str_replace("\'", "''", $user_gallery) . "'

#
#-----[ FIND ]--------------------------------------
#
$yim = htmlspecialchars(stripslashes($yim));

#
#-----[ AFTER, ADD ]------------------------------------------------------
#
$gallery = htmlspecialchars(stripslashes($gallery));

#
#-----[ FIND ]---------------------------------------------
#
$yim = htmlspecialchars($this_userdata['user_yim']);


#
#-----[ AFTER, ADD ]------------------------------------
#
$user_gallery = htmlspecialchars($this_userdata['user_gallery']);

#
#-----[ FIND ]---------------------------------------
#
$s_hidden_fields .= '<input>';

#
#-----[ AFTER, ADD]-----------------------------------
#
$s_hidden_fields .= '<input>';


#
#-----[ FIND ]------------------------------------
#
'RANK_SELECT_BOX' => $rank_select_box,

#
#-----[ AFTER, ADD ]------------------------------------
#
'GALLERYID' => $user_gallery,

#
#-----[ FIND ]------------------------------------
#
'L_SELECT_RANK' => $lang['Rank_title'],

#
#-----[ AFTER, ADD ]------------------------------------
#
'L_GALLERY_ID' => $lang['Gallery_id'],


#
#-----[ OPEN ]------------------------------------
#
includes/usercp_register.php

#
#-----[ FIND ]------------------------------------
#
validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);

#
#-----[ REPLACE WITH ]------------------------------------
#
validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, $gallery);


#
#-----[ OPEN ]------------------------------------
#
includes/usercp_viewprofile.php

#
#-----[ FIND ]------------------------------------
#
$aim_img = ( $profiledata['user_aim'] ) ? '' . $images['icon_aim'] . ' (aim:goim?screenname=' . $profiledata['user_aim'] . '&message=Hello+Are+you+there?)' : ' ';


#
#-----[ BEFORE, ADD ]------------------------------------
#
if ( !empty($profiledata['user_gallery']) )
{
$gallery_uri = append_sid("gallery2.$phpEx?g2_view=core.ShowItem&g2_itemId=" . $profiledata['user_gallery']);
$gallery_img = '' . $images['icon_gallery'] . ' (' . $gallery_uri . ')';
}
else
{
$gallery_img = "";
}

#
#-----[ FIND ]------------------------------------
#
'YIM' => $yim,

#
#-----[ AFTER, ADD ]------------------------------------
#
'GALLERY_IMG' => $gallery_img,

#
#-----[ FIND ]------------------------------------
#
'L_INTERESTS' => $lang['Interests'],

#
#-----[ AFTER, ADD]------------------------------------
#
'L_GALLERY' => $lang['Gallery'],

#
#-----[ OPEN ]------------------------------------
#
includes/functions_validate.php

#
#-----[ FIND ]------------------------------------
#
function validate_optional_fields(&$icq, &$aim, &$msnm, &$yim, &$website, &$location, &$occupation, &$interests, &$sig)

#
#-----[ REPLACE WITH ]------------------------------------
#
function validate_optional_fields(&$icq, &$aim, &$msnm, &$yim, &$website, &$location, &$occupation, &$interests, &$sig, &$gallery)

#
#-----[ FIND ]------------------------------------
#
// website has to start with http://, followed by something with length at least 3 that

#
#-----[ BEFORE, ADD ]------------------------------------
#
// Gallery ID has to be only numbers.
if (!preg_match('/^[0-9]+$/', $gallery))
{
$gallery = '';
}

#
#-----[ OPEN ]------------------------------------
#
language/lang_english/lang_admin.php

#
#-----[ FIND ]------------------------------------
#
$lang['User_special_explain'] = 'These fields are not able to be modified by the users. Here you can set their status and other options that are not given to users.';

#
#-----[ AFTER, ADD]------------------------------------
#
$lang['Gallery_id'] = 'Gallery ID';

#
#-----[ OPEN ]------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------
#
$lang['YIM'] = 'Yahoo Messenger';

#
#-----[ AFTER, ADD]------------------------------------
#
$lang['Gallery'] = 'Gallery';

#
#-----[ OPEN ]------------------------------------
#
templates/subSilver/admin/user_edit_body.tpl

#
#-----[ FIND ]------------------------------------
#
<tr>
<td><span>{L_SELECT_RANK}</span></td>
<td><select>{RANK_SELECT_BOX}</select></td>
</tr>

#
#-----[ AFTER, ADD ]------------------------------------
#
<tr>
<td><span>{L_GALLERY_ID}</span></td>
<td><input></td>
</tr>


#
#-----[ OPEN ]------------------------------------
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]------------------------------------
#
<td>{postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG} <script><IN></script><noscript>{ICQ_IMG}</noscript></td>
</tr>

#
#-----[ AFTER, ADD ]------------------------------------
#
<tr>
<td><span>{L_GALLERY}:</span></td>
<td><span>{GALLERY_IMG}</span></td>
</tr>

#
#-----[ OPEN ]------------------------------------
#
templates/subSilver/privmsgs_read_body.tpl

#
#-----[ FIND ]------------------------------------
#
{WWW_IMG} {AIM_IMG} {YIM_IMG} {MSN_IMG} </td><td> </td><td><script></a> $icq,

#
#----[ AFTER, ADD ]------------------------------------
#
'GALLERY_IMG' => $gallery_img,

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Now try to figure out which files to edit for phpnuke, and then add custom theme to the equation............i got a headache!

zlMark
07-07-2007, 12:11 PM
For now this will have to do

http://www.zl-oa.com/modules.php?name=Forums&file=viewtopic&p=6992#6992

Jarney
07-07-2007, 06:00 PM
Maybe an easier way would be to add a search feature to the gallery? Where you could just type in the username? If that's even possible? Just throwing ideas out there. Later.

Jarney
07-07-2007, 06:04 PM
Cool, the signature edit thingy works. Niiiiicccceee. Later.

zlMark
07-07-2007, 07:29 PM
Maybe an easier way would be to add a search feature to the gallery? Where you could just type in the username? If that's even possible? Just throwing ideas out there. Later.yes this would be a nice feature