vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=281444

BirdOPrey5 15 Apr 2012 18:01

No it won't work once per thread because Pinterest is designed for sharing media and that is usually specific to posts.

If you wanted to show it only on the first post though you could edit the "Pin button in Posts" plugin and find the code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and change it to:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


tpearl5 15 Apr 2012 19:59

It just seems like making a call x number of threads to pinterest would add a lot of calls to every thread page load.

Thanks Joe!

BirdOPrey5 15 Apr 2012 20:12

Actually the javascript loads only once per page. The "calls to pinterest" are just images and once an image is downloaded once the browser doesn't re-download it again anyway. They design it so you can use multiple buttons on one page. :up:

pete_brady 15 Apr 2012 20:33

any easy way to move the button down to beside the quote / multiquote links?

tpearl5 15 Apr 2012 20:40

Quote:

Originally Posted by BirdOPrey5 (Post 2320422)
Actually the javascript loads only once per page. The "calls to pinterest" are just images and once an image is downloaded once the browser doesn't re-download it again anyway. They design it so you can use multiple buttons on one page. :up:

Right, I meant the call to get the pin count, which isn't a very large file anyway (0.4kb)

Any idea on how to move the button up next to the post title?

tpearl5 15 Apr 2012 20:58

fyi, you should consider moving the default location anyway since quotes can hide it. For example:
http://nikonites.com/photo-critique/...html#post12524

tpearl5 15 Apr 2012 21:31

nevermind, I moved it by adding position:relative; top:-35px; to the div to make it:

<div style="position:relative; top:-35px; float: {vb:raw boppin.lorr}; padding-{vb:raw boppin.rorl}: 2px;">"

BirdOPrey5 15 Apr 2012 23:37

Quote:

Originally Posted by pete_brady (Post 2320430)
any easy way to move the button down to beside the quote / multiquote links?

Quote:

Originally Posted by tpearl5 (Post 2320443)
nevermind, I moved it by adding position:relative; top:-35px; to the div to make it:

<div style="position:relative; top:-35px; float: {vb:raw boppin.lorr}; padding-{vb:raw boppin.rorl}: 2px;">"

That is a cool location, thanks for sharing.

I'm sorry I don't have any better ideas on where to position the button- playing with CSS frustrates me.

Hopefully more people will be kind enough to release the edits they made to better position the button like tpearl5 did. :up:

I'm using the VB4 default built in position myself until I can find something better.

deverill2010 16 Apr 2012 14:11

Nominated :)

BlessedFWI 17 Apr 2012 20:23

Love it! Thank you!

Nominated!!!

pete_brady 17 Apr 2012 20:42

Quote:

Originally Posted by BirdOPrey5 (Post 2320462)
That is a cool location, thanks for sharing.

I'm sorry I don't have any better ideas on where to position the button- playing with CSS frustrates me.

Hopefully more people will be kind enough to release the edits they made to better position the button like tpearl5 did. :up:

I'm using the VB4 default built in position myself until I can find something better.

is there a hook that can be used to display it in the postbit footer?

BirdOPrey5 17 Apr 2012 21:56

Quote:

Originally Posted by BlessedLAF (Post 2321015)
Love it! Thank you!

Nominated!!!

Thanks!

Quote:

Originally Posted by pete_brady (Post 2321019)
is there a hook that can be used to display it in the postbit footer?

I don't know what you mean by a postbit footer? There is where the edit/reply/quote buttons are- that is called posbit_controls. And yes there is a template hook there (I have an option to use it in the VB3 version) but you will see if you use it for VB4 the button will be terribly out of place. This is because VB4 requires some sort of additional css to make the button fit properly into the postbit controls area and I don't like messing with CSS.

If you manually edit the postbit or postbit_legacy template you can put the template hook *anywhere* you want.

pete_brady 17 Apr 2012 23:26

Quote:

Originally Posted by BirdOPrey5 (Post 2321033)
Thanks!



I don't know what you mean by a postbit footer? There is where the edit/reply/quote buttons are- that is called posbit_controls. And yes there is a template hook there (I have an option to use it in the VB3 version) but you will see if you use it for VB4 the button will be terribly out of place. This is because VB4 requires some sort of additional css to make the button fit properly into the postbit controls area and I don't like messing with CSS.

If you manually edit the postbit or postbit_legacy template you can put the template hook *anywhere* you want.

postbit controls - that's the one.

sooo.... how to manually edit the postbit template to put the hook there? (yes, i am an idiot)

BirdOPrey5 17 Apr 2012 23:54

Go to Admin CP - > Styles & Templates -> Style Manager -> [Choose your style] -> Choose "Edit Templates" from the drop down menu -> Postbit Templates (double click to expand this group.)

Now find either [B]postbit[/B ]or postbit_legacy depending on the one you use and double click on it to open it in the template editor.


Paste in this code wherever you want the Pinterest button to appear:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

finally, save the template...

Now check how it looks. It will probably need some adjusting. You will also need to edit the template postbit_pinterest_vb4 to make additional adjustments as needed.

Sorry but that is as much detail as I'm willing to go into making these edits. Quite frankly I don't suggest people try these if they don't already know what they are doing.

juliannova 19 Apr 2012 16:44

so I can't use this hook or code for the album by manual putting it in....it won't work?


All times are GMT. The time now is 18:35.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.