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 05-22-2012 08:07 PM

tpearl5 is right on, that is a good way.

Glenn_E 05-26-2012 03:13 PM

Not sure I get how this will work for the entire vb site. Some forums require registration, while others are guest viewable. Does this mod allow admins to select which forums will allow the pin it button?

BirdOPrey5 05-26-2012 03:18 PM

Yes, the admin can set a list in the settings on what forums should not have the pin button.

Glenn_E 05-26-2012 03:31 PM

Excellent!
At my site, WestCoastGearHeads.com we post tons of automotive type photos within threads... especially from events that we cover. We share on facebook / twitter, but I'm really interested in trying pinterst. Thanks for the mod, I'll download and test when I get back from today's events :)

BirdOPrey5 06-01-2012 11:14 AM

Thank You All for your votes!

Official Winner of the May 2012 Mod of the Month!

Overall there were some great mods last month, more than usual- it was a tough choice, even for me. ;)

Sunka 06-01-2012 11:35 PM

Hi BOP5

I have problem with this Mod and Thanks Mod (Dragonbyte Tech).
With newest version of they mod, when user click on button to give like/thanks for post, if pinterest icon are in that post, after click on like/thanks button Pinterest icon disappear.

I ask for help on they forum, and solution is that you integrate Pinterest mod with showpost.php

Could you please do that?

djbaxter 06-02-2012 12:11 AM

Quote:

Originally Posted by Sunka (Post 2335628)
Hi BOP5

I have problem with this Mod and Thanks Mod (Dragonbyte Tech).
With newest version of they mod, when user click on button to give like/thanks for post, if pinterest icon are in that post, after click on like/thanks button Pinterest icon disappear.

I ask for help on they forum, and solution is that you integrate Pinterest mod with showpost.php

Could you please do that?

It works fine with Abe's Thanks mod. :)

BirdOPrey5 06-02-2012 01:28 AM

Quote:

Originally Posted by Sunka (Post 2335628)
Hi BOP5

I have problem with this Mod and Thanks Mod (Dragonbyte Tech).
With newest version of they mod, when user click on button to give like/thanks for post, if pinterest icon are in that post, after click on like/thanks button Pinterest icon disappear.

I ask for help on they forum, and solution is that you integrate Pinterest mod with showpost.php

Could you please do that?

That might be a simple fix. I don't have their mod though so I can't easily test it.

Could you please go to the Admin CP -> Plugins & Products -> Plugin Manager

Open/Edit the Plugin from the Pinterest mod called Auto Postbit Edit on the parse_templates hook.

Edit the first two lines from:

Code:

if ($vbulletin->options['bop5pin_en'] AND $vbulletin->options['bop5pin_where'] AND THIS_SCRIPT=='showthread'
    AND !in_array($vbulletin->userinfo['styleid'], explode("," ,$vbulletin->options['bop5pin_styles'] )))

and change them to:

Code:

if ($vbulletin->options['bop5pin_en'] AND $vbulletin->options['bop5pin_where'] AND (THIS_SCRIPT=='showthread' OR THIS_SCRIPT=='showpost')
    AND !in_array($vbulletin->userinfo['styleid'], explode("," ,$vbulletin->options['bop5pin_styles'] )))

And Save the Plugin and try again.

Does that add anything to the post after you "like' it? If I'm right it should add maybe just a button without a count- just interested if it does anything at all.

Sunka 06-02-2012 09:52 PM

I change plugin code like you said.

It is half fix now.

When I click on button Like/Thanks/... Pinterest icon do not disappear like before. It just change to icon without number, like you say it would. Little problem is when you click on that icon, it is open in new tab it is not then anymore in same window like popup.

BirdOPrey5 06-03-2012 02:00 AM

Quote:

Originally Posted by Sunka (Post 2335953)
I change plugin code like you said.

It is half fix now.

When I click on button Like/Thanks/... Pinterest icon do not disappear like before. It just change to icon without number, like you say it would. Little problem is when you click on that icon, it is open in new tab it is not then anymore in same window like popup.

Good, it let me know I was on the right track. Just released 1.04 with showpost compatibility.

Let me know if it works as expected now.


All times are GMT. The time now is 05: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.01235 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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