vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Put gallery link in posts profiles (https://vborg.vbsupport.ru/showthread.php?t=188575)

Hummie 08-19-2008 04:46 PM

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?

cheat-master30 08-19-2008 04:49 PM

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

https://vborg.vbsupport.ru/showthread.php?t=166642

Hummie 08-19-2008 05:07 PM

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.

cheat-master30 08-19-2008 05:14 PM

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.

Hummie 08-19-2008 05:17 PM

You can see them in this forum too.

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

Quote:

Originally Posted by cheat-master30 (Post 1602440)
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!

cheat-master30 08-19-2008 05:24 PM

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.

Hummie 08-19-2008 05:40 PM

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.

cheat-master30 08-19-2008 05:58 PM

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>


Hummie 08-19-2008 06:15 PM

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.

cheat-master30 08-19-2008 06:48 PM

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

Code:

<if condition="$post[fieldx]">
Program Used: $post[fieldx]
</if>

Or similar.


All times are GMT. The time now is 10:43 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
  • Page Generation 0.01061 seconds
  • Memory Usage 1,740KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_quote_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