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)

JetLee 03-21-2015 09:38 PM

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.

BirdOPrey5 03-21-2015 10:53 PM

Unfortunately with vBulletin there is no way to access attachments with their original file names.

JetLee 03-22-2015 03:20 PM

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.

JetLee 03-22-2015 05:06 PM

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

GONUMBER6 04-23-2015 09:13 PM

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

Conehead555 04-26-2015 04:46 AM

4.1.7

If there's a quote in the post, the Pin includes 'you're ignoring', etc:

https://vborg.vbsupport.ru/external/2015/04/3.png

The quote and reply from the post are merged into one text block when pinned also.


All times are GMT. The time now is 09:32 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.02124 seconds
  • Memory Usage 1,731KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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