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 08-19-2008, 04:46 PM
Hummie Hummie is offline
 
Join Date: Nov 2007
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Put gallery link in posts profiles

I want to put buttons/links in v-bulletin to the user's gallery (and vice versa). How do I do that?
Reply With Quote
  #2  
Old 08-19-2008, 04:49 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What gallery mod are you using? For Photoplog, try this:

https://vborg.vbsupport.ru/showthread.php?t=166642
Reply With Quote
  #3  
Old 08-19-2008, 05:07 PM
Hummie Hummie is offline
 
Join Date: Nov 2007
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Gallery mod? I'm not sure I am using any.

See the buttons on the top right of these posts? How do I get those? They are for "profile, gallery, and send PM".....although I am most interested in the gallery one.
Reply With Quote
  #4  
Old 08-19-2008, 05:14 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They're using Photopost, but you'd use this format for the Photopost gallery link in the post:

Code:
<a href="[link to gallery]/showgallery.php?$session[sessionurl]ppuser=$prepared[userid]"><img src="[location of gallery button]" alt="$prepared[username]'s Gallery" title="Go to $prepared[username]'s gallery" /></a>
And you'd add that where you want in the postbit template.
Reply With Quote
  #5  
Old 08-19-2008, 05:17 PM
Hummie Hummie is offline
 
Join Date: Nov 2007
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can see them in this forum too.

--------------- Added [DATE]1219169955[/DATE] at [TIME]1219169955[/TIME] ---------------

Quote:
Originally Posted by cheat-master30 View Post
They're using Photopost, but you'd use this format for the Photopost gallery link in the post:

Code:
<a href="[link to gallery]/showgallery.php?$session[sessionurl]ppuser=$prepared[userid]"><img src="[location of gallery button]" alt="$prepared[username]'s Gallery" title="Go to $prepared[username]'s gallery" /></a>
And you'd add that where you want in the postbit template.
Yes, I have Photopost. I follow directions well, but need a bit more help. I think you are on the right track to helping me.

I have never edited the "postbit," although I have read that word a lot.

I have opened up the files in Notepad and edited them before. Is "postbit" one of those files?

--------------- Added [DATE]1219170034[/DATE] at [TIME]1219170034[/TIME] ---------------

Cool! That Auto-Merged DoublePost ---freaked me out, but I like it!
Reply With Quote
  #6  
Old 08-19-2008, 05:24 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, go Styles and Templates > Edit Templates > postbit in Admin CP, then find:
Code:
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
Add above:


Code:
<div>
<a href="[link to gallery]/showgallery.php?$session[sessionurl]ppuser=$prepared[userid]"><img src="[location of gallery button]" alt="$prepared[username]'s Gallery" title="Go to $prepared[username]'s gallery" /></a>
</div>
With the code edited where indicated.

--------------- Added [DATE]1219170312[/DATE] at [TIME]1219170312[/TIME] ---------------

I can also release the button as a modification I think if people want to mimmick that forum.
Reply With Quote
  #7  
Old 08-19-2008, 05:40 PM
Hummie Hummie is offline
 
Join Date: Nov 2007
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see it and am following along, but will have to wait until later when I can create my image first to attempt to insert it.

So, the only places in the code which I am changing are "link to gallery" and "location of gallery button" (because the other things in block quotes should remain that way)?

What are the codes for the profile and the "send pm"...I might as well add them while I am at it.
Reply With Quote
  #8  
Old 08-19-2008, 05:58 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, only change the parts which it says to change. As for PM and profile:

Just set this for all three links:
Code:
<div>
<a href="[link to forum]/member.php?$session[sessionurl]u=$prepared[userid]"><img src="[location of profile image]" alt="$prepared[username]'s Profile" title="Go to $prepared[username]'s Profile" /></a>
<a href="[link to gallery]/showgallery.php?$session[sessionurl]ppuser=$prepared[userid]"><img src="[location of gallery button]" alt="$prepared[username]'s Gallery" title="Go to $prepared[username]'s gallery" /></a>
<a href="[link to forum]/private.php?$session[sessionurl]do=newpm&u=$prepared[userid]"><img src="[location of PM button]" alt="Send message to $prepared[username]" title="Send private message to $prepared[username]" /></a>
</div>
Reply With Quote
  #9  
Old 08-19-2008, 06:15 PM
Hummie Hummie is offline
 
Join Date: Nov 2007
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, you do not know how excited I am and anxious to get home to make a graphic and get this set up! I've been searching the forums for a while and asked in other forums, but never here. I sure appreciate your help!

While I've got such a helpful person, can you give me one more? Please! Goodness, I feel like I am asking a lot.

I would like to have in the same area as the buttons (or on the left side, whichever), the information in a special field I have created for "program used." You can see my ID on this page here. You can see I use Photoshop Elements. I would like the words "Photoshop Elements" showing in the profile area similar to the buttons for each person.

This is important to me because my site is to teach digital scrapbooking in PSE, but often get people who pop in asking questions who do not use the program and I need to get someone else to help them. It would be so much nicer to see it in the posts, rather than going to the profile.
Reply With Quote
  #10  
Old 08-19-2008, 06:48 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You mean in posts? If so, I guess something like:

Code:
<if condition="$post[fieldx]">
Program Used: $post[fieldx]
</if>
Or similar.
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 02:41 AM.


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.12649 seconds
  • Memory Usage 2,263KB
  • Queries Executed 13 (?)
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
  • (6)bbcode_code
  • (1)bbcode_quote
  • (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_postinfo_query
  • fetch_postinfo
  • 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