vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Link to Member Gallery? (https://vborg.vbsupport.ru/showthread.php?t=152290)

OrionGirl 07-15-2007 02:44 AM

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!

Kirk Y 07-15-2007 02:56 AM

Find your respective postbit template:
Code:

$post[skypeicon]</div>
Add after:
Code:

<a href="linktogallery.php"><img src="/path/to/image.gif" /></a>

OrionGirl 07-21-2007 12:59 AM

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.

Kirk Y 07-21-2007 01:06 AM

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.

OrionGirl 07-21-2007 01:27 AM

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! :)

Kirk Y 07-21-2007 01:31 AM

If you're using Firefox, we don't get the little red x sadly. :(

OrionGirl 07-21-2007 01:37 AM

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. :)

Kirk Y 07-21-2007 01:57 AM

If you still having trouble, I'm not busy and don't mind looking under the hood for you.

OrionGirl 07-21-2007 02:07 AM

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!

Kirk Y 07-21-2007 02:10 AM

userid=$postuserid should be just $post[userid].

Can you show me where you are sticking this in your postbit template?


All times are GMT. The time now is 05:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01141 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete