vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - Photo Popup - Insert pictures easily from vB Albums, Photopost, vBGallery, Photoplog (https://vborg.vbsupport.ru/showthread.php?t=202385)

Cleenee 03-25-2009 08:08 AM

Hello
Been trying to get this to work with my VBgallery/Photopost type setup...as you can see have had 95% luck, changed the text to icons etc and the pop up comes up fine, the drop down for the various galleries selection even works, just does not seem to find the actual photos though, any ideas or advice...so close!

woffie 03-26-2009 12:47 AM

Added this to my test forum. Does not seem to work right. Click on the images and it does nothing. And yes, I did the edits

ZGeek 03-26-2009 06:34 AM

I can't get this to work with vbgallery either.

The problem I see in the photo_popup_config_vbgallery.php

$img['thumb'] = $data_dir . $new_userid . $filename_parts['filename'] . "_thumb." . $filename_parts['extension'] ;

Is not passing the file name. Anyone know how to fix this?

I should mention I have applied this modification.

EagleNick 03-26-2009 09:09 AM

Quote:

Originally Posted by woffie (Post 1777149)
Added this to my test forum. Does not seem to work right. Click on the images and it does nothing. And yes, I did the edits

What photo gallery modification are you trying to get it to work with? Is your issue similar to mine?

Mark.B 03-26-2009 06:35 PM

Really, really good! Worked for me straight away using the default vB albums, solves a major flaw in the album system and looks professional and intuitive to the end user. Ought to be a default feature.

EagleNick 03-26-2009 06:48 PM

For those of you who use this for PhotoPlog LITE, what do you have in the "Products" area? I have tried PhotoPlog, Photoplog, photoplog, and none of them work. :confused:

woffie 03-28-2009 01:40 AM

Quote:

Originally Posted by EagleNick (Post 1777337)
What photo gallery modification are you trying to get it to work with? Is your issue similar to mine?

Nope, just the vbgallery

abroad 03-28-2009 07:59 AM

I had 2.0 installed and it worked. I am using vb albums which comes with vbulletin. Now I upgraded to 3.1 and if I want to insert a picture then it does not stop loading when I click on a picture in the window which opened.... any idea what is wrong?

The URL of this window is:

http://www.mydomain.com/photo_popup.php

When I click on a picture to insert it, the URL changes to:

http://www.mydomain.com/photo_popup.php#

But the picture is not inserted afterwards....

jdougher 03-28-2009 03:43 PM

Quote:

Originally Posted by macc (Post 1766114)
hello

could not get image button on my editor and no link also to use this mod ...
some help?

use only albums and photoplog.

regards

macc

Same here. Did the install, followed directions, added code to templates.

No image in threads to access albums/pictures.

Have both photopost and albums, latest vB.

ZGeek 03-30-2009 05:21 AM

Quote:

Originally Posted by ZGeek (Post 1777302)
I can't get this to work with vbgallery either.

The problem I see in the photo_popup_config_vbgallery.php

$img['thumb'] = $data_dir . $new_userid . $filename_parts['filename'] . "_thumb." . $filename_parts['extension'] ;

Is not passing the file name. Anyone know how to fix this?

I should mention I have applied this modification.

If anyone is having troubles with vbgallery try this. It works for me.
PHP Code:

/*
###### Construct image bits ######
*/

function remove_filename_extension($stripper)
{
$extension strrchr($stripper".");

$stripper substr($stripper0, -strlen($extension));

return 
$stripper;
}

function 
imagebits ()
{
    global 
$array;
    global 
$data_dir;
    global 
$url_path;
        
    
$stripper $array['filename'];

    
$justthefile remove_filename_extension($stripper);
        
    
$new_userid '';
        for(
$i=0$i<strlen($array['userid']); $i++)
    {
    
$new_userid .= $array['userid'][$i] . "/";
    } 
    
$img['orig'] = $data_dir $new_userid $array['filename'];
    
$filename_parts pathinfo($array['filename']); 
    
$img['thumb'] = $data_dir $new_userid $justthefile "_thumb." $filename_parts['extension'] ;
    
$img['med'] = "";
    
$img['gallery'] = $url_path "showimage.php?i=" $array['imageid'];    

    return 
$img;


I'm very much a noob at php so if it doesn't work for you, I have no idea.


All times are GMT. The time now is 06: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.01716 seconds
  • Memory Usage 1,755KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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