View Full Version : Place link to images from postbit myself?
February 8th, 2009, 02:23 PM
I would like to change the plugin so I can place (or move) where the code goes in the postbit. Right now I see it uses $template_hook[postbit_userinfo_right_after_posts] With my postbit I can't have it use this haha.
If anyone knows which code I change in the plugin and then what to use in the postbit that would be great!
Thank you in advance!
February 8th, 2009, 09:21 PM
I am not really sure what plugin your talking about. The only vbgallery plugin for a postbit uses the plugin position
February 8th, 2009, 10:32 PM
Oh OK...well then how would I be able to place the info in the postbit myself then?
Like I said my postbit is pretty customized and the way it looks now makes no sense. It's piggy backing on something and throwing my postbit off.
February 9th, 2009, 10:23 AM
Your issue then is in one of your mods or tweaks. You can backup your tweaked postbit and revert to a clean one there and then compare that postbit to the clean reverted one to see any non standard code.. There are quite a bit of lines added to the postbit. But really the only thing vbgallery adds to the forum postbit is one little line on the main post that says images and one line under the username dropdown list that says gallery uploads.
Possibly in postbit template one is this
That should be the link for gallery uploads in the dropdown in postbit template it comes right after the add to contacts line
The other little number of images link is right on the actual post so which one are you talking about?
February 9th, 2009, 11:06 AM
No the popup one is fine.
The one that says :
Images: # (then links to the images)
I want to be able to move this to where I want. Like I said it seems to be working off this hook? "$template_hook[postbit_userinfo_right_after_posts]" No?
February 9th, 2009, 11:16 AM
Well move that line where you wish then is basically all you need to do.
February 9th, 2009, 11:35 AM
haha I wish it were that easy.
I have something running off that already. When I asked the same question I'm asking you I got no response how to change it. The hooks are very convenient until you want to do something a little custom haha
If I knew a way to change either one myself I would, but I really don't...I just happened to noticed where it is being placed in the postbit. I have run into the problem before with another script (using a different hook) and had to move elsewhere...
February 9th, 2009, 12:44 PM
Its right in the postbit plugin code the vbgallery file thats included and these are the vbgallery templates that control those things.
eval('$template_hook[\'postbit_userinfo_right_after_posts\'] .= "' . fetch_template('adv_gallery_postbit_images_link') . '";');
eval('$template_hook[\'postbit_user_popup\'] .= "' . fetch_template('adv_gallery_postbit_gallery_link') . '";');
February 9th, 2009, 02:51 PM
OK...um yeah that really makes no sense to me haha
I know there are a good 20+ plugins and a whole slew of files..you gave me 2 lines of code. Am I supposed to search all of those plugins and files for those tho lines of code? And then once I find them, what exactly do I do with them?
Is there something in those 2 lines of code that I can change that I can then go into my postbit and put something like $post_vbgallery_images or something?
February 9th, 2009, 04:18 PM
You can view those two vbgallery profiles meantioned on those two lines and modify accordingly.
I am not really sure what your trying to modify
February 9th, 2009, 05:30 PM
I'm just trying to figure out how to change (?) this eval('$template_hook[\'postbit_userinfo_right_after_posts\'] .= "' . fetch_template('adv_gallery_postbit_images_link') . '";');
So I can add say $adv_gallery_postbit_images_link to the template instead of it auto adding it at "$template_hook[postbit_userinfo_right_after_posts]" and it will reflect :
<div>$vbphrase[images]: <a href="$ppg_options[gallery_url]/browseimages.php?$vbsession[sessionurl]do=member&imageuser=$post[userid]">$post[ppicount]</a></div>
Or what ever I choose to edit that template.
Does this make sense now? I'm sorry if I'm not making myself clear..
February 9th, 2009, 06:10 PM
The template hook merely adds the template code in the proper place. You can choose to move the hook somewhere else or disable the plugin and hard code your own code in. Still not real clear on what your trying to do since that code is merely a div tag included in certain locations so moving those template location calls in the postbit where you want them should be all thats needed.
February 10th, 2009, 04:39 PM
Thank you Chuck I figured it out :)
February 10th, 2009, 07:24 PM
Not a problem glad to help.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.