The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
Pinterest Sharing System by BOP5 for VB 3.8 & VB 4.x! (Pinterest Pin Button Mod) Details »» | |||||||||||||||||||||||||||||||||||||
Pinterest Sharing System by BOP5 for VB 3.8 & VB 4.x! (Pinterest Pin Button Mod)
Developer Last Online: Aug 2023
Brought to you by BirdOPrey5
www.Qapla.com A BIG Thank You to all for voting this May 2012 Mod of the Month! Version 1.04 - Added showpost compatibility Version 1.01 - Compatibility fix for dbtech Advanced Thanks/Like mod Version 1.0 - Initial (Non-Beta) Release This mod is compatible with all VB 3.8 and 4.x versions released to date. It has been tested on VB 3.8.7, VB 4.1.11, and VB 4.2.0 and should work on older and newer versions as well. Live Demos: VB4 Demo: Pinterest Share Demo at Qapla.com VB3 Demo: Pinterest Share Demo Thread - JUOT - Joe's Ultimate Off Topic Pinterest is the next big thing in Social Media. It offers a very intuitive and friendly interface for users to share the things they like, use, and appreciate. Unlike with Facebook or Twitter Pinterest absolutely requires some sort of visual representation of what you are sharing- this takes the form of a thumbnail image of a larger image or a thumbnail of a video. Previously even if you could incorporate the Pinterest Pin button code into vBulletin there was no way to associate a unique image with every post. This mod will search east post for any of the following. Priority is given to higher ranked items. The first instance of the first item type found will become the thumbnail sent to Pinterest. Each item can be enabled or disabled from the mod settings. 1) First it will look for YouTube videos. (Either embedded with [VIDEO] BBCode OR regular YouTube links OR YouTube videos embedded with the AME mod. 2) If no YouTube video is found it will next look for links to any external images. These are images that use the [IMG] BBCode. 3) If no external images are found it will look for any inline attachments. In the settings you can specify whether it should share the full sized attached image or only the thumbnail. Guests must have permission to download attachments or to see thumbnails for this option to work. 4) If none of the above find anything the mod can use this option will use avatar of the poster as the thumbnail sent to Pinterest. 5) If the user has no avatar as a last resort you can specify a link to a default forum image (perhaps the forum logo?) that will be submitted as the thumbnail. Pinterest will not accept any Pins that do not contain a valid, guest accessible, image thumbnail. You can choose the default description text. You can take text from the post itself, the thread title, or the forum META description. In any case the user always has the option to edit the description before submitting it to Pinterest. The mod also contains a number of settings that allow you to choose how you want the Pinterest button to look, where you want it, and other basics such as what forums, styles, or usergroups to disable but button for or in. The mod uses auto template edits for basic use however power-users will want to opt for the manual template edits (explained below) for even better customization and positioning of the Pinterest Pin Button. Known Issues: Using the recommended locations and settings the mod is working well on VB 3.8 and VB 4.x as you can see in the demo links above. However adding the Pinterest button causes some visual changes in some browsers. For example in VB 4 with Chrome browser if you quick-edit a post with the Pinterest button the editor toolbar is pushed down lower than normal. Everything works it's just different than you are used to. In Firefox however the editor toolbar looks fine. In VB 3 in the post message area location the "numbers" from the pin button are outside the border of the main table. This is somewhat on purpose- I think having the count outside the box draws more attention to them. Unfortunately if you don't like that all I can suggest is to disable the count completely because I am not a style expert. You are free however to do the manual template edit including in the instructions (and below) to find the perfect spot for your Pin button on your style(s). Please Mark as Installed if you use this. Donations Always Appreciated. :up: Download Now
Screenshots
Show Your Support
|
3 благодарности(ей) от: | ||
djbaxter, RichieBoy67, sjim |
Comments |
#172
|
|||
|
|||
Pinterest tells me, "Oops! This is not a valid image."
Running 4.2.2 PL4 It looks like for attachments, it's pulling the "/attachment.php?attachmentid=#####" instead of the actual file name, which Pinterest doesn't like. |
#173
|
||||
|
||||
Unfortunately with vBulletin there is no way to access attachments with their original file names.
|
#174
|
|||
|
|||
It doesn't make sense to include the "Use Attachments?" function if it's known to not work. Also "Use Avatars?" seems useless since avatar images are too small for Pinterest.
Regarding using attachments, this may be a fix? https://vborg.vbsupport.ru/showthread.php?t=234340 Post #2 says he uses: Code:
$image = fetch_attachment_path($userid, $post['filedataid'],$thumb,''); I downloaded his plugin and found the whole section to be: Code:
function fetch_attachment_info($userid, $attachid, $thumb) { global $maxcolum, $maxrow, $maxwidth, $maxheight, $page, $vbulletin, $attachmentinfo, $vbphrase; // read fileid $output = $vbulletin->db->query_read("SELECT attachment.attachmentid, attachment.filedataid FROM ".TABLE_PREFIX."attachment as attachment WHERE attachment.attachmentid = ".$attachid. ""); $post= mysql_fetch_array($output); $image = fetch_attachment_path($userid, $post['filedataid'],$thumb,''); if (file_exists($image)) { // get image dimensions list($width, $height, $type, $attr) = getimagesize($image); // set wath kind of scaling should be used if ($width>=$height) { $output = 'width=100%'; } if ($height>$width) { $output = 'height= 100%'; } return $output ; } } Maybe this could be helpful? With a baby running around my feet, I don't have the time or attention span to figure out where/how to modify yours. |
#175
|
|||
|
|||
It appears that if you can set it to use the userid, filedataid and .thumb or .attach, then Pinterest will recognize it.
For example, Pinterest will NOT Pin this image: http://buellridersonline.com/forum/a...9&d=1426631359 But it WILL pin this one: http://buellridersonline.com/forum/a.../7/4044.attach |
#176
|
||||
|
||||
I have tried to find out why my post count is not working, the pin it button does work- which is great - but why would the count not work?
Example here: http://tastetestedrecipes.com/succul...up-recipe.html Thank you |
#177
|
|||
|
|||
4.1.7
If there's a quote in the post, the Pin includes 'you're ignoring', etc: The quote and reply from the post are merged into one text block when pinned also. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|