Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-15-2007, 02:44 AM
OrionGirl's Avatar
OrionGirl OrionGirl is offline
 
Join Date: May 2006
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 07-15-2007, 02:56 AM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find your respective postbit template:
Code:
$post[skypeicon]</div>
Add after:
Code:
<a href="linktogallery.php"><img src="/path/to/image.gif" /></a>
Reply With Quote
  #3  
Old 07-21-2007, 12:59 AM
OrionGirl's Avatar
OrionGirl OrionGirl is offline
 
Join Date: May 2006
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 07-21-2007, 01:06 AM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 07-21-2007, 01:27 AM
OrionGirl's Avatar
OrionGirl OrionGirl is offline
 
Join Date: May 2006
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #6  
Old 07-21-2007, 01:31 AM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you're using Firefox, we don't get the little red x sadly.
Reply With Quote
  #7  
Old 07-21-2007, 01:37 AM
OrionGirl's Avatar
OrionGirl OrionGirl is offline
 
Join Date: May 2006
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 07-21-2007, 01:57 AM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you still having trouble, I'm not busy and don't mind looking under the hood for you.
Reply With Quote
  #9  
Old 07-21-2007, 02:07 AM
OrionGirl's Avatar
OrionGirl OrionGirl is offline
 
Join Date: May 2006
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #10  
Old 07-21-2007, 02:10 AM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:06 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05701 seconds
  • Memory Usage 2,251KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete