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)

sherrym 09-03-2009 02:18 AM

>Anyway, as long as you don't tell the exact error, this is guesswork.

Thank you. After looking at your response I went over everything carefully and it now works great. It was me just being sloppy!!

Thank you again,
Sherry.

vengeance72 09-21-2009 01:44 PM

I got a little problem with the link that was inserted after the click on the picture. We installed the Photopost directory to http://gallery.canikon.de.../ but Photo Popup inserted a link to our homepage to http://www.canikon.de.../linktothepicture. How can I fix it? Any ideas?

cellarius 09-21-2009 01:52 PM

Make sure you have entered the correct path in photo_popup_config_photopost.php
PHP Code:

// Full URL path to Gallery: http://www.yoursite/path/to/gallery/
//
$url_path "http://gallery.canikon.de/";
// 


vengeance72 09-21-2009 02:00 PM

Thank you for your answer, cellarius. Yes, I have enterred the correct path before and even though became the incorrect path.

Edit: Sorry! Now it works - It seems it was a problem with our cache...

Thank you so much!

cellarius 09-21-2009 02:03 PM

You're welcome :)

woffie 09-21-2009 04:46 PM

Quote:

Originally Posted by benFF (Post 1734291)
If you want to have an icon on the main toolbar (New Reply, Full edit) then you don't need a template edit.

Create a plug in at location "editor_toolbar_end" and insert the following code:
PHP Code:

$vBeditTemplate[extrabuttons] .= "<td><a href=\"#\" onclick=\"window.open('$vboptions[bburl]/photo_popup.php?e=$editorid','fotos','scrollbars=yes,resizable=yes,width={$vbulletin->options['photo_popup_width']},height={$vbulletin->options['photo_popup_heigth']}'); return false\" title=\"$vbphrase[photo_popup_insertlink]\"><img src=\"$stylevar[imgdir_editor]/photo_popup.png\" border=\"0\" /></a></td>"

The button will now appear at the end of the list.

Unfortunately there is no template hook for quick reply, otherwise we could just use the same technique :(

Do you mean editor_toolbar_on?

benFF 09-30-2009 09:02 AM

No :) editor_toolbar_end is the one!

linuxututs 10-15-2009 02:36 PM

Thanks,

Works GREAT with vB 3.8.4 and photoplog ( Pro ).

A+

Thanks,

KenDude 10-20-2009 07:29 PM

I just had a site theme change with a new skin and so I was going back to re-install this mod and thought what the heck I would upgrade from 3.1 to 3.4.1

I followed the directions to a "T" including comparing my existing Config files for CNDGarage, Vbgallery, etc. with the updated ones in the 3.4.1 zip file. It turns out the CNDGarage config file was byte for byte identical to what I already had on my server so I didn't overwrite it. I did with the vbgallery. I then uploaded the product and installed it allowing for overwrite. Then I did the manual template edits.

When I click the icon for the pop-up I get the pop-up, and the vbgallery photos show up fine, the vbulletin album photos show up fine, however the CNDGarage photos are now all red X's!!

I know CNDGarage had a major update in August so perhaps their config file needs to be changed and no one has done it yet? Does anyone know??

wottech 10-20-2009 08:51 PM

Ken, there is a Garage 2.x config file that *I think* works over on the CND website. I thought someone had passed it on to cellarius, but perhaps not.

cellarius 10-25-2009 11:34 AM

Quote:

Originally Posted by wottech (Post 1902840)
Ken, there is a Garage 2.x config file that *I think* works over on the CND website. I thought someone had passed it on to cellarius, but perhaps not.

Sorry for the late answer, I was away on business.
Yes, the file was passed on to me, and should work, but since I have not succeeded in installing the new version (the light version available for free), I am unable to test it.

trotskid 11-05-2009 03:00 AM

Hi. We have private categories in Photoplog Pro for certain usergroups, but anyone can see all the categories in the photo popup, so I disabled temporaly. Any solution for this?

Thanks

cellarius 11-05-2009 08:54 PM

I don't understand. Everyone can only see the photos he himself uploaded. You tell me your users can upload photos they then have no permission to see? Seems not to make much sense to me if I have understood you correctly...

trotskid 11-05-2009 09:12 PM

I mean that all users can see all the categories when there are categories restricted for certain usergroups.

DieselTruck 11-06-2009 05:03 AM

Can anyone confirm that this works with the CND Garage system?

I can't get it to bring up any pictures???? It shows the title of the Vehicle, but no pictures.

Here is the actual file path:

http://www.thetruckstop.us/forum/ima...2571871491.jpg

Here is url the code is supplying:

http://www.thetruckstop.us/forum/ima...2571871491.jpg

cellarius 11-06-2009 06:28 AM

There's a different config file somewhere with the new version of the mod; I don't offer it here since I couldn't test it (couldn't get the new garage version installed).

trotskid 11-06-2009 03:49 PM

Ok, let me explain it again.

There is an option in your product that says "Show Albums list?" (Albums -> Categories on Photopost Pro, it's the same thing). If set to yes you can browse in a menu (drop down) all the categories (or albums..) in photo popup window, with or without your uploaded photos, you can see the categories, but in my forum there are categories with permissions, and these categories can see them any user (without permssion).

Sorry, my english is basic, so I explain it as better as I can.

wottech 11-06-2009 04:33 PM

Quote:

Originally Posted by cellarius (Post 1910901)
There's a different config file somewhere with the new version of the mod; I don't offer it here since I couldn't test it (couldn't get the new garage version installed).

Code:

<?php
if (!IN_SCRIPT == "photo_popup") {die();} 
/*
##################################################################################
##                                                                                                                                                                ##
##  PHOTO POPUP 3.1                                                                                                                                ##
##                configuration for *** CND Garage ***                                                                        ##
##                                                                                                                                                                ##
## This Mod is (c) 2009 by cellarius                                                                                        ##
## Contributions to this config file by wottech                                                                        ##
##################################################################################
*/
// If you do allow albums selection in popup, but want to disable it for this
// product, set this to TRUE;
//
$album_override = FALSE;
//
/*################################################################################
####### Do not change anything beyond, except you know what you are doing!  ######
################################################################################*/
/*
###### Basics ######
*/
        $medium_possible = 0;
        if ($medium_override == TRUE)
        {
                $medium_possible = 1;
        }
        $albums_possible = 1;
        if ($album_override == TRUE)
        {
                $album_override = 1;
        }
        $db_prefix =  TABLE_PREFIX        . "garage_";
/*
###### Select statement for useralbums or categories ######
*/
function albums_select ()
{
        global $db_prefix;
        global $userid;
       
        $albums_select .= "
                SELECT vehicle_id, CONCAT(made_year, \" \",make, \" \",model) AS vehicle
                FROM " . $db_prefix . "user_vehicle
                LEFT JOIN " . $db_prefix . "makes
                ON " . $db_prefix . "user_vehicle.make_id = " . $db_prefix . "makes.id
                LEFT JOIN " . $db_prefix . "models
                ON " . $db_prefix . "user_vehicle.model_id = " . $db_prefix . "models.id
                WHERE " . $db_prefix . "user_vehicle.user_id = $userid
                ORDER BY vehicle_id
                ";

        return $albums_select;
}
/*
###### Select statement for pagination ######
*/
function count_select ()
{
        global $db_prefix;
        global $userid;
        global $where_add;
       
        $count_select = "
                SELECT COUNT('attach_id') AS fotos
                FROM " . $db_prefix . "images
                INNER JOIN " . $db_prefix . "user_vehicle
                ON " . $db_prefix . "images.vehicle_id = " . $db_prefix . "user_vehicle.vehicle_id
                WHERE user_id = $userid" . $where_add . " AND attach_is_image = 1
                ";
        return $count_select;
}
/*
###### Main select stateement for images ######
*/
function images_select()
{       
        global $db_prefix;
        global $userid;
        global $where_add;

        $images_select = "
                SELECT " . $db_prefix . "images.vehicle_id, attach_location, attach_thumb_location
                FROM " . $db_prefix . "images
                INNER JOIN " . $db_prefix . "user_vehicle
                ON " . $db_prefix . "images.vehicle_id = " . $db_prefix . "user_vehicle.vehicle_id
                WHERE user_id = $userid" . $where_add . " AND attach_is_image = 1
                ORDER BY attach_date DESC
                ";
        return $images_select;
}
/*
###### Construct image bits ######
*/
function imagebits ()
{
    global $array;
    global $data_dir;
    global $vb_url;
    global $userid;
    global $filedir;

    $filedir = $vb_url . "/images/garage/attach";
    $path = implode('/', preg_split('//', $userid, -1, PREG_SPLIT_NO_EMPTY));
    $filedir = $filedir . '/' . $path;
   
    $img['orig'] = $filedir . "/" . $array['attach_location'];
    $img['thumb'] = $filedir . "/" . $array['attach_thumb_location'];
    $img['med'] = "";
    $img['gallery'] = $vb_url . "/garage_vehicle.php?do=view_vehicle&amp;id=" . $array['vehicle_id'];   
   
    return $img;

/*
###### Albums filter ######
*/
function where_add ()
{
        global $which_album;
        global $db_prefix;
        $where_add = " AND " . $db_prefix . "user_vehicle.vehicle_id = $which_album";
        return $where_add;
}
?>

Copy and paste the above code into the CND garage config file and you should be set.

DieselTruck 11-06-2009 04:34 PM

Thanks so much wottech!!

Works perfect!

cellarius 11-06-2009 07:03 PM

Quote:

Originally Posted by trotskid (Post 1911004)
Ok, let me explain it again.

There is an option in your product that says "Show Albums list?" (Albums -> Categories on Photopost Pro, it's the same thing). If set to yes you can browse in a menu (drop down) all the categories (or albums..) in photo popup window, with or without your uploaded photos, you can see the categories, but in my forum there are categories with permissions, and these categories can see them any user (without permssion).

Sorry, my english is basic, so I explain it as better as I can.

OK, I see the issue, but at the moment there's no way to take permissions into account. I would have to look at the database structure and change the query accordingly, which probably could be done, but atm I don't have the time, sorry :erm:

trotskid 11-06-2009 10:33 PM

It must be realised some issues.. but need this on my forum :)

cellarius 11-15-2009 09:55 PM

Just wanted to drop a note to you guys that this mod has been mostly ported to vB4. It was already largely done for alpha 1, now it needs some revamping for the betas/gold, mainly with the styling that is still in the flux.

The way config files are done has changed significantly (all object oriented, now), and I have it working with the new attachment system (for the albums). I also can access my Photopost images/albums from the 3.8 installation, so probably I will have it operative with the Photopost beta soon, too. For the other products I have no clue as of now how far in the porting process they are and when and if configs can be made available.

Anyway: This is no promise that there will be a beta version in the next days or weeks, since I have a lot of work atm. Just want to let you know that this mod will still be around for vB4 - even if I don't know how much interest it will still meet since the attachment manager is a great new feature.

Taragon 11-18-2009 09:43 AM

would it be possible to include previous used attachments (from the usercp) somehow?

cellarius 11-18-2009 12:59 PM

Quote:

now supports attachments
  • config file will be installed automatically (from folder UPLOAD/includes)
  • remember to add the product option "attachments" in your AdminCP when upgrading
  • make sure you reupload photo_popup.php
new config file for CND Garage 2.x
  • new config file photo_popup_config_cndgarage.php
  • if you're using CND Garage in a lower version that 2.x,
    • and you're upgrading: just continue to use the old file
    • and you're doing a fresh install: delete the new config file, and rename photo_popup_config_cndgarage.php.old (remove the .old)

Have a nice week!

JohnBee 11-18-2009 02:27 PM

Wow!

This MOD went from cool to awesome!
NOMINATED :up:

cellarius 11-18-2009 02:37 PM

Quote:

Originally Posted by JohnBee (Post 1916630)
This MOD went from cool to awesome!
NOMINATED :up:

Thanks :)

Wild Bronco 11-18-2009 03:46 PM

Quote:

Originally Posted by JohnBee (Post 1916630)
Wow!

This MOD went from cool to awesome!
NOMINATED :up:

I second that :)

AfterWorldForum 11-18-2009 04:45 PM

Didn't update yet, but I found something that has been annoying my users (and thus me) for ages.

I use vbGallery, and whenever my users clicked to include a thumb linked to original, the link would bring them to an empty screen, due to a missing filename.

I finally figured out what happened. I have the ability to get rezised pictures enabled, which caused the mod to always look for an originalname. However, if pictures were NOT resized (and I increased the filesize for quite a few options), it therefore would grab a blank filename.

I think I fixed it now, by editing photo_popup_config_vbgallery.php.

Look for:

Code:

       
else
        {
                $img['orig'] = $data_dir . $data_dir_userid . $array['originalname'];
                $img['med'] = $data_dir . $data_dir_userid . $array['filename'];

Replace with:

Code:

        else
        {
                if ($array['originalname'] <> "")
                        {
                                $img['orig'] = $data_dir . $data_dir_userid . $array['originalname'];
                        } else {
                                $img['orig'] = $data_dir . $data_dir_userid . $array['filename'];
                        }
                $img['med'] = $data_dir . $data_dir_userid . $array['filename'];


Taragon 11-19-2009 09:06 PM

thanks!
with some adjustments made, support for non image files, and being able to use the attachment uploading feature this mod could very well compete, or replace the stock attachment manager :)

(also nominated :) )

sailnet 11-21-2009 06:51 PM

awesome - worked like a champ the first time - I love it.

now - if I can just get someone to allow mobile uploads to your albums.

:)

RWerksman 11-22-2009 05:15 AM

Nominated for MOTM from me too. This really is a spectacular mod - very, very useful. The newly added ability to 'reuse' previously attached pictures is just epic.

I'm thrilled! :D

Kaelon 11-22-2009 09:22 PM

Hey there,

I love this mod, but I think I found a bug with the attachments for Photo Popup 3.5. If you are using vbSEO, the pop-up display for the attachments shows broken images because the images being shown have a vBSEO URL that includes the forum directory path. For example, instead of showing an image located at attachments/image.jpg, it shows attachment/forumname/image.jpg. I am storing my attachments in the file system, if that helps.

sailnet 11-22-2009 09:41 PM

Quote:

Originally Posted by Kaelon (Post 1919158)
Hey there,

I love this mod, but I think I found a bug with the attachments for Photo Popup 3.5. If you are using vbSEO, the pop-up display for the attachments shows broken images because the images being shown have a vBSEO URL that includes the forum directory path. For example, instead of showing an image located at attachments/image.jpg, it shows attachment/forumname/image.jpg. I am storing my attachments in the file system, if that helps.

I think for all the money you paid vbseo for their product they should fix the problem..

after all - it was their code that breaks the mod

cellarius 11-23-2009 05:52 AM

I use vBSEO myself, with the attachments in the file system, and it works perfectly well for me. Where the att are stored does not matter, as the mod is calling them via attachment.php which does all the routing. The popup does use the SEO'ed URLS for the images in my case, too, but it uses them just fine. There's also really nothing I can do, since I just drop in the standard URLs (attachment.php?attachmentid=XXXXX), and vBSEO exchanges them automatically. No way for me to interfere there if it does not do that correctly in your case.

sailnet 11-23-2009 06:09 PM

I have a request.

would you consider making mods to this so that I could incldue another block on the user profile page so that someone could look through the images they have in for forum or any of the other sources of images you support in this mod.

Images are a HUGE part of my site and my members and myself are always looking for images posted by others in the past.

I think it would be great!

thanks so much for such a great mod!

My members love it.

cellarius 11-23-2009 07:28 PM

Sorry, but this would be a completely different modification and will not part of this mod.

sailnet 11-24-2009 01:56 AM

Quote:

Originally Posted by cellarius (Post 1919711)
Sorry, but this would be a completely different modification and will not part of this mod.

ok then... how 'bout it?

Steve B 11-25-2009 07:56 AM

Running vBulletin 3.8.4 Patch Level 1, Photopost 6.23 and VBSEO. Photopost and vBull are using separate databases.

I would really like to use this but have a problem. Our popup window opens with our site's homepage instead of the photos in our gallery?

We are getting no database connection errors, and switching on debug mode shows nothing in the popup window :confused:

I have checked and double checked the $url_path = ""; in photo_popup_config_photopost.php and it is set correct. In the admin settings I have selected 'photopost'. Its strange that I am getting re-directed to our homepage in the popup.

Not sure what else to try...any suggestions please?

cellarius 11-25-2009 09:01 AM

Post the link to your site and the link that is used to open the popup.

cellarius 11-25-2009 12:32 PM

Quote:

Originally Posted by Steve B (Post 1920605)
Running vBulletin 3.8.4 Patch Level 1, Photopost 6.23 and VBSEO. Photopost and vBull are using separate databases.

I would really like to use this but have a problem. Our popup window opens with our site's homepage instead of the photos in our gallery?

We are getting no database connection errors, and switching on debug mode shows nothing in the popup window :confused:

I have checked and double checked the $url_path = ""; in photo_popup_config_photopost.php and it is set correct. In the admin settings I have selected 'photopost'. Its strange that I am getting re-directed to our homepage in the popup.

Not sure what else to try...any suggestions please?

Issue was resolved by PN. User had some path issues due to portal software or funky rewrites - the link to open the popup did point to the site root, not the forum root. Resolved by adding the forum root folder to the template edits.


All times are GMT. The time now is 06:14 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.01923 seconds
  • Memory Usage 1,866KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (10)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
  • (40)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