The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Link to Member Gallery?
I have PhotoPost vB3 running on vBulletin v. 3.6.4. My users have requested adding a link to the profile block that appears on the user with each post, so they can upload an image to their gallery and allow other members an easy and quick way to locate said gallery. I was hoping to have it appear as a clickable icon next to the messenger icons, or the 'online' button.
I'm fairly new to this...So please let me know what other info I need to provide! |
#2
|
||||
|
||||
Find your respective postbit template:
Code:
$post[skypeicon]</div> Code:
<a href="linktogallery.php"><img src="/path/to/image.gif" /></a> |
#3
|
||||
|
||||
Sorry--I see where to add the tag, but how does that add the field for entering the link? Do I need to develop the .php file? I can generate the image to display, but where do the users enter the address for the gallery? Not everyone creates a gallery, though the address would be standardized based on their username...So I'm hoping that I could create a variable that always equalled the username to put in?
Sorry...I'm slow. |
#4
|
||||
|
||||
I don't know much about PhotoPost, but I'd assume that when you're viewing a specific members images, you're given a URL like: http://yoursite.com/forums/photopost.php?do=viewimages&userid=99.
If this is the case, then you would replace the "linktogallery.php" in my original example with "./photopost.php?do=viewimages&userid=$post[userid]". That way the UserID in the link would change for each user's post. |
#5
|
||||
|
||||
Okay, that makes sense. I added the text and an image to the postbit...But it's not showing up. Hmmmm...I'll have to keep fiddling--I expected at least a red X!
|
#6
|
||||
|
||||
If you're using Firefox, we don't get the little red x sadly.
|
#7
|
||||
|
||||
Nope, IE. I'm fiddling with the link, still nothing. I appreciate the help--I'll post back if...Hopefully when...I get something working.
|
#8
|
||||
|
||||
If you still having trouble, I'm not busy and don't mind looking under the hood for you.
|
#9
|
||||
|
||||
Please!
http://www.aquariumboard.com/gallery...t/500/ppuser/2 is the link to my own gallery. <a href="http://www.aquariumboard.com/gallery/showgallery/php/cat/500/ppuser/userid=$postuserid"> <img src="http://www.aquariumboard.com/forums/images/misc/camera.gif"></a> Is the code...The image is valid, the link should be valid--but nothing shows up! |
#10
|
||||
|
||||
userid=$postuserid should be just $post[userid].
Can you show me where you are sticking this in your postbit template? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|