![]() |
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! |
Find your respective postbit template:
Code:
$post[skypeicon]</div> Code:
<a href="linktogallery.php"><img src="/path/to/image.gif" /></a> |
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. |
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. |
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! :)
|
If you're using Firefox, we don't get the little red x sadly. :(
|
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. :)
|
If you still having trouble, I'm not busy and don't mind looking under the hood for you.
|
Please! :D
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! |
userid=$postuserid should be just $post[userid].
Can you show me where you are sticking this in your postbit template? |
Code:
<tr> |
Are you editing the postbit or postbit_legacy template? Because I see you're using the latter.
|
It shows postbit as the title for the default style under Style Manager. Am I in the wrong spot?
|
There are two different types of postbits: vertical postbit and horizontal postbit (also called legacy postbit, as it was the first generation postbit); each type of postbit has its own template: (respectively) postbit and postbit_legacy.
Your forum is using the legacy postbit, so any modifications you want to make to your postbit need to be done in the postbit_legacy template. What I'm trying to get at here is that the reason you're not seeing anything is because you're editing the wrong postbit template. :p |
LOL...Did I mention that I am new to this?
OK--so I found the postbit_legacy, inserted the code in the same location otherwise, and voila, the image appears. It doesn't open the gallery, gives a 404 error...So I'm going to have to work on the link to see why it's not working. You ROCK! :) Edit: Muhahahaha...There was a / instead of a . in the link. It works! If you ever need help with aquariums...Let me know! :D |
Seems it's working now, looking at your forum.
If you want to remove the border around the camera image, use this: Code:
<img src="http://www.aquariumboard.com/forums/images/misc/camera.gif" border="0" /> |
:cool: Ooo, that's much cleaner! Thank you...Now to update all the styles.
|
No problem. I can't say that I'm a big fan of fish... they're pretty dull; but if I ever get an aquarium, I'll let you know. :p
|
Meet Lincoln...
http://i153.photobucket.com/albums/s...h_100_2144.jpg :) There's more to fish than just a guppy... :) But to each their own. :p I'm also aces on databases. |
All times are GMT. The time now is 09:15 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:
|