![]() |
I have a suggestion.
Many members asked me (for the former gallery I used) how to add a picture to the gallery. So I made a short explanation above the gallery. To add this Find: Code:
<option value="desc"<if condition="$sortorder == 'desc'"> selected="selected"</if>>$vbphrase[rr_pic_gallery_desc]</option> Code:
<br /> http://www.hiphop-battles.com/forum/picgallery.php One more Request: Can you pleace add your script to the "who is online" Location plz So that it does not show the url but instead "Picture Gallery" or something |
@ SuperFly -- Okay, then blow away the gallery mod and fix the other one for making smilies. :D
I can assure you this is working, and as it isn't using any file edits or plugins, it isn't stepping on anything. Other than a vB setting for display row/column, phrases and new templates -- it isn't touching anything else in the system. |
@ StarBuG -- VERY nice. Thanks!
|
Quote:
for anyone who wants to know: In the Plugin Manager: #1 click on [Add New Plugin] #2 Hook Location = online_location_process #3 Title = Profile Picture Who is Online Location #4 Plugin php code: Code:
if($filename=='picgallery.php'){$userinfo['activity'] = 'Picture Gallery';} #6 click on [Add New Plugin] #7 Hook Location = online_location_unknown #8 Title = Profile Picture Who is Online Unknown Location #9 Plugin php code: Code:
if($userinfo['activity'] == "Picture Gallery") { Hope this helps |
Another nice one. :)
I am using Andreas' WhoseOnline addition found here: https://vborg.vbsupport.ru/showthrea...threadid=83247 Much easier way of adding in all of the custom files if you have more than one. |
Quote:
I think most users would appreciate this ;) |
works like a charm...
|
This is *awesome*!
Works great, but not yet making it live until the ability to view a specified thumbnail size is created as we don't use the default size we allow slightly larger picture sizes for our members. Even at 2 pics per column it scrolls to the right. Look forward to seeing a fix for this! |
Fixed?
Thumbnailing isn't a feature of this hack. It is designed to work with the vB default profile pic feature using the limits set up in the AdminCP. If you allow those pics to be ginormous, then you may want to add a thumbnailing routine to it? That, or you can limit the view to 175x175 px in the templates so that all pics show up that size (noting that it will skew smaller pics that wouldn't have been thumbnailed anyway). |
Quote:
I'm only starting to learn php and wouldn't know how to do that sort of thing yet. |
Its all good. :)
|
Quote:
|
fantastic! right what I was looking for! clicked install
anyway it would be cool to make so that u have thumbail and u click to view the full size picture, I think to do this the picgallery.php only needs few changes |
<font color="DarkRed">*installed*</font> but modified to show thumbnails of profile picture.
|
Quote:
can u tell us how u created thumbails? I wanna have the same on my forum gallery: thumbmails and when u click on them the picture open in a different page thanks :) |
File attach, French language ;)
|
@SpankMe -- I registered to check that out and I love it!! You did a great job. :)
@Allan -- thanks! |
Quote:
I love it :) |
I would prefer if he released it as an addon as it was his code, but will leave it up to him as to how he would like to handle it. :)
|
If ya really want thumbs ya can do it manually. untill someone adds on a thumbnail script..
Find the lines below in the template pic_gallery_list Code:
<td valign="top" style="width: 1px; padding-left: 20px">$userinfo[profilepic]</td> and then change it to Code:
<td valign="top" style="width: 1px; padding-left: 20px"><img src="$userinfo[profilepicurl]"height="200"width="250"></td> you could also just ad this instead to have a thumbnail that when clicked launches the picture in a new window full size Code:
<td valign="top" style="width: 1px; padding-left: 20px"><a href="$userinfo[profilepicurl]"target="new"><img src="$userinfo[profilepicurl]"height="200"width="250"border="0"></a> </td> What i would like though is to be able to put custum userfields on that page so instead of how its set up i could actually set it up to have a small bio page for users |
ok, this will set it up so when a user uploads a profile pic, it will create the thumbnail.
Add a column in your MySQL database Code:
ALTER TABLE `customprofilepic` ADD `profilepicthumb` MEDIUMTEXT; Find PHP Code:
PHP Code:
Find HTML Code:
'userid' => TYPE_UINT, HTML Code:
'thumb' => TYPE_UINT HTML Code:
if ($vbulletin->GPC['type'] == 'profile') HTML Code:
$vbulletin->GPC['thumb'] ? $data = 'profilepicthumb' : $data = 'filedata'; HTML Code:
SELECT filedata, dateline, filename HTML Code:
SELECT $data AS filedata, dateline, filename HTML Code:
<if condition="$totalpics"> |
Quote:
exactly what I wanted... thank u very much! |
Awesome, thanks for working out the thumbnails!
Question: How will the ones display that users have already uploaded prior to installing this add-on? :) |
I guess they will have to re-upload their profile pic. I had originally written my own profile pic page ages ago so all my users already had theirs thumbnailed when I changed to this version.
|
anyway to fix this ?
Currently Viewing: Unknown Location /forums/picgallery.php?&page=2 |
very nice SpankMe ... how did u get picgallery to be able to show your custom fields ? such as bike: post: and so on ?
|
Quote:
If you want to add additional files to WhoseOnline, you can either add the manual plugins in post #44 or install the WhoseOnline for additional files hack from Andreas. |
Quote:
|
Quote:
|
Quote:
B.t.w. sweet hack, thanks. |
@Boofo -- No, I have not had time to look at it yet. :(
@ Ramsesx --This excellent hack will allow you to add all additional files into WhoseOnline: https://vborg.vbsupport.ru/showthrea...threadid=83247 |
<a href="member.php?$session[sessionurl]u=$userinfo[userid]"><img src="$userinfo[profilepicurl]"height="100"width="125"></a></td>
Makes it resize and makes the picture a link as well as the name... I wish it would just open the profile pic itself in a new window.. any one know how to do that... So instead of clicking the pic and going to profile, click pic and open pic full size in new window... Thanks |
@ cbr929rrerion -- the pic isn't hyperlinked in the hack -- only the username?
|
Great hack, thanks...
|
Quote:
|
Quote:
I know but if you add the code in my previous post it will be... only thing is I wish is would load just the pic not the whole profile.. How can I do that? |
Quote:
Due to some of our users having pics that are different sizes the above code can cause them to be schewed. by modifying it to what is below, the height:width ratio is maintained. no stretching or squashing occurs this way, and in the default table width there is no scrolling to the right. Code:
<td valign="top" style="width: 1px; padding-left: 20px"><a href="$userinfo[profilepicurl]" target="new"><img src="$userinfo[profilepicurl]" width="150" border="0"></a> </td> |
Anyway to have this mod do the same thing except with gamercards?
|
is it possible to restrict access for users which do not have a profile picture?
|
Quote:
That would be killer! |
All times are GMT. The time now is 08:26 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|