vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Integration with vBulletin - Pinterest Sharing System by BOP5 for VB 3.8 & VB 4.x! (Pinterest Pin Button Mod) (https://vborg.vbsupport.ru/showthread.php?t=281444)

BirdOPrey5 10-24-2012 05:10 PM

It would be completely useless to use this mod on an album page- there would be nothing in common- the code here is getting it's info from the $post array which is only created for posts.

I understand how it would be useful for an albums page but I think you'd be better off starting with just the basic Pinterest button code available from Pinterest itself- it would actually be a lot easier to make it by picture for albums because you would have access to the actual image URL on each page.

NOTE: This will only work if your albums are visible to guests- if they aren't don't bother trying.

turbosatan 11-15-2012 05:15 PM

was just wondering if it might be able to pickup page name or album owner name instead of post title info.

would that be easy enough for me to modify in your code?

BirdOPrey5 11-18-2012 08:16 PM

I can't answer if it's easy or not, depends what is easy for you. :p

There is no "title" supplied by this mod- perhaps you mean the description?

It's created in the plugin Pin Button in Posts

It's commented in the code where it does this.

But this is the snippet...

Code:

    //Get Description
    if ($vbulletin->options['bop5pin_desc'] == 0)
      $boppin['desc'] = trim(urlencode(trim($vbulletin->options['description'])));
    elseif ($vbulletin->options['bop5pin_desc'] == 1)
      $boppin['desc'] = trim(urlencode($thread['title']));
    else // ($vbulletin->options['bop5pin_desc'] == 2)
      $boppin['desc'] = trim(urlencode(strip_tags(trim($post['message']))));

You can erase all that and just set $boppin['desc'] = to whatever you want. If you can figure out how to get what you want in that plugin.

Gemma 12-10-2012 04:50 PM

Installed again, had to do some changes to get it to display where I wanted.

http://www.arcadejunkies.org/f31/eve...bie-kill-1782/

justicechick 12-26-2012 05:44 AM

Awesome! Was looking for something I didnt have to manually manipulate the templates! Thanks

Gamelobby 02-24-2013 11:35 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2375691)
It would be completely useless to use this mod on an album page- there would be nothing in common- the code here is getting it's info from the $post array which is only created for posts.

I understand how it would be useful for an albums page but I think you'd be better off starting with just the basic Pinterest button code available from Pinterest itself- it would actually be a lot easier to make it by picture for albums because you would have access to the actual image URL on each page.

NOTE: This will only work if your albums are visible to guests- if they aren't don't bother trying.

Can anyone point us in the right direction as to where the Pinterest button code (default from pinterest) might go for other places besides forums.? (video/media, photos/pics, etc)

Also, I see their button code includes a placement code & another script code that needs to go somewhere.?
Where would the 2nd code go.? (header/footer.?)

Thanks

BirdOPrey5 03-03-2013 12:17 PM

Quote:

Originally Posted by Gamelobby (Post 2406083)
Can anyone point us in the right direction as to where the Pinterest button code (default from pinterest) might go for other places besides forums.? (video/media, photos/pics, etc)

Also, I see their button code includes a placement code & another script code that needs to go somewhere.?
Where would the 2nd code go.? (header/footer.?)

Thanks

Since that discussion is unrelated to this mod please make sure it takes place in a separate thread. This thread is for discussion of this mod only.

Thank You.

fcbsportscards 04-13-2013 07:11 PM

Hey Bop5 great mod! I am having an issue where pintrest does not pick up the image if it's an attachment. I have combed the comments here and I see someone else having the issue, but I did not see a solution. I set my settings to attachment only and I have made that attachments are viewable to guests. You got any ideas as to what is wrong?

fcbsportscards 04-13-2013 07:26 PM

Did some more digging Bop5 and I figured it out myself. It was a permissions issue and your mod works great. Thanks for making it.

tpearl5 05-14-2013 05:13 PM

Any ideas for putting the pin button in the lower left of the image?


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

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.01269 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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