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)

Namaless 01-28-2009 10:46 AM

1 Attachment(s)
Good MOD, but please use full link example:
Code:

$vboptions[bburl]/popup.php
I found problem with vBAdvanced Dynamics because this MOD work into subfolder into vb root :)

Thanks.

MikesSite 01-29-2009 04:00 AM

IDK if this was mentioned but I found a bug in photo_popup.php.

Line 408 - $origimg = $vb_url."./picture.php?albumid=".$array['albumid']."&pictureid=".$array['pictureid']."";

Remove the red period before /picture.php? or else original images will not load.

cellarius 01-29-2009 04:43 AM

Quote:

Originally Posted by MikesSite (Post 1727797)
IDK if this was mentioned but I found a bug in photo_popup.php.

Line 408 - $origimg = $vb_url."./picture.php?albumid=".$array['albumid']."&pictureid=".$array['pictureid']."";

Remove the red period before /picture.php? or else original images will not load.

No, that's just plain wrong.

The line 408 of the actual photo_popup-file reads:
PHP Code:



The equivalent to the line you posted is in line 510 and reads
PHP Code:

$origimg $vb_url "/picture.php?albumid=" $array['albumid'] . "&pictureid=" $array['pictureid'] . ""

What you suggest is sure to break the popup for everyone who doesn't run his forums from the site root.

The line you "fixed" was in file version 1.0 and was indeed buggy. The bug was - correctly - fixed in file version 1.1.

So I suggest you update to the actual version before reporting all bugs over and over again that were fixed in the last 6 releases of this mod.

cellarius 01-29-2009 06:15 AM

Quote:

Originally Posted by Namaless (Post 1727073)
Good MOD, but please use full link example:
Code:

$vboptions[bburl]/popup.php
I found problem with vBAdvanced Dynamics because this MOD work into subfolder into vb root :)

Thanks.

That's a valid suggestion, thank you. Template edits adjusted accordingly, but no new version for this.

cdnbacon 01-29-2009 07:09 AM

Installed this tonight. Simply amazing!

I'm curious if anyone else is getting a couple syntax errors reported by Internet explorer? Everything appears to work 100% correctly but the photo popup shows a script error in IE. Just an annoyance.

Any ideas how to troubleshoot such a thing?

cellarius 01-29-2009 10:43 AM

Quote:

Originally Posted by cdnbacon (Post 1727896)
Any ideas how to troubleshoot such a thing?

Yep, will be fixed in next release, thanks for the heads up. Just two single-quotes that IE misses.

MikesSite 01-29-2009 11:54 AM

Quote:

Originally Posted by cellarius (Post 1727816)
No, that's just plain wrong.

The line 408 of the actual photo_popup-file reads:
PHP Code:



The equivalent to the line you posted is in line 510 and reads
PHP Code:

$origimg $vb_url "/picture.php?albumid=" $array['albumid'] . "&pictureid=" $array['pictureid'] . ""

What you suggest is sure to break the popup for everyone who doesn't run his forums from the site root.

The line you "fixed" was in file version 1.0 and was indeed buggy. The bug was - correctly - fixed in file version 1.1.

So I suggest you update to the actual version before reporting all bugs over and over again that were fixed in the last 6 releases of this mod.

RELAX man, there was a bug in my version, just trying to help. It read exactly how I had it, or else I wouldn't have posted that. IDK why I had an older version.

cellarius 01-29-2009 12:27 PM

Oh, I'm quite relaxed and if you follow this thread, you'll see that there really are no complaints about my support here.

Why you had the old version is quite simple: you obviously never uploaded the photo_popup.php after initial installation or never upgraded at all. It is obvious from what you postet that you are still on version 1.0. I really don't see what would be wrong or unrelaxed about suggesting you properly upgrade before reporting any more old bugs.

MikesSite 01-29-2009 12:36 PM

Quote:

Originally Posted by cellarius (Post 1728090)
Oh, I'm quite relaxed and if you follow this thread, you'll see that there really are no complaints about my support here.

Why you had the old version is quite simple: you obviously never uploaded the photo_popup.php after initial installation or never upgraded at all. It is obvious from what you postet that you are still on version 1.0. I really don't see what would be wrong or unrelaxed about suggesting you properly upgrade before reporting any more old bugs.

Of course I upload photo_popup.php, or else I wouldnt have found the bug. Either way, the hack is great, something that should have been included in vBulletin. Thanks

cellarius 01-29-2009 01:55 PM

Quote:

Originally Posted by MikesSite (Post 1728099)
Of course I upload photo_popup.php, or else I wouldnt have found the bug. Either way, the hack is great, something that should have been included in vBulletin. Thanks

You do realize that you have to reupload the file with every update of the mod, do you? Because that's exactly what you did not do.

DonHouston 01-29-2009 03:44 PM

does anyone know if it would be hard to put this into CYB Chatbox mod?

Im not asking if it can be done just seeing if its somethign basic i might be able to tackle or if i should find a coder :)

cellarius 01-29-2009 05:05 PM

Don't know that mod, so can't tell. But by the looks of it this mod does not use vB editor, so probably not easily. It will surely not be a feature of this mod.

cdnbacon 01-29-2009 05:58 PM

Quote:

Originally Posted by cellarius (Post 1728038)
Yep, will be fixed in next release, thanks for the heads up. Just two single-quotes that IE misses.

Thanks so much! Wonderful addon.

Basit 01-29-2009 07:28 PM

Work great as far as Albums are concern, however I also have photopost and not working with photopost.

site url: http://www.hallagulla.com/urdu

Following is output of Debug mode

Code:

Debug information  Photo Popup Settings (from AdminCP)  num_of_cols: 4
 num_of_rows: 6
 num_total:24
 widht: 700
 heigth: 680
 use_vb: 1
 use_pp: 1
 standard_product: 0
 insert_options_allowed: orig_2_gallery_link_below link_med_2_orig orig link_thumb_2_orig link_med_2_gallery med thumb link_thumb_2_gallery thumb_2_gallery_link_below
 allow_albums: 1
 code_usergroups: 0
    Photopost Settings (from file)  Datadir: home/hallagul/public_html/urdu/photo/data/
 Other DB?: 1
 Name of pp_db: hallagul_photopost
  Code (this is what is inside the table cells) <a href="#" onclick="thumbpaste('<div align=\'center\'><img src=\'home/hallagul/public_html/urdu/photo/data/500/thumbs/Dock.jpg\' style=\'border: 0\' /><br /><a href=\'http://www.hallagulla.com/urdu/photo/showphoto.php?photo=243828\'>&lt;font size=&quot;1&quot;&gt;View image in gallery&lt;/font&gt;</a></div><br /> ','
[img]home/hallagul/public_html/urdu/photo/data/500/thumbs/Dock.jpg[/img]\nView image in gallery
\n\n ')"><img src="home/hallagul/public_html/urdu/photo/data/500/thumbs/Dock.jpg" style="border: 0" title=""/></a>  Link to Original home/hallagul/public_html/urdu/photo/data/500/Dock.jpg  Link to Thumb home/hallagul/public_html/urdu/photo/data/500/thumbs/Dock.jpg  Query Used product: 2
                        SELECT id, userid, bigimage, cat                        FROM pp_photos                        WHERE userid = 31660 AND storeid = 0 AND approved = 1                        ORDER BY date DESC                        LIMIT 0, 24                            Cookie  Read Cookie: 2,all,thumb_2_gallery_link_below
 Set Cookie: 2,all,thumb_2_gallery_link_below
    Table building (rows and columns) [td 1][td 2][td 3][td 4][tr][td 1][td 2][td 3][td 4][tr][td 1][td 2][td 3][td 4][tr][td 1][td 2][td 3][td 4][tr][td 1][td 2][td 3][td 4][tr][td 1][td 2][td 3][td 4]


The url behind thumbnail is not right, script is showing url as

Code:

http://www.hallagulla.com/urdu/home/hallagul/public_html/urdu/photo/data/500/Dock.jpg
where as it should be

Code:

http://www.hallagulla.com/urdu/photo/data/500/Dock.jpg
values in photo_popup_config are correct, and I am using two databases 1 for photopost and other for forum.

any help will be much appreciated.

Thanks

Doctor Death 01-29-2009 09:35 PM

Installed, didnt work (popup errors with VBulletin albums), uninstalled.

Hopefully will be compatible soon.

cellarius 01-30-2009 05:49 AM

Quote:

Originally Posted by Basit (Post 1728385)
Work great as far as Albums are concern, however I also have photopost and not working with photopost.

site url: http://www.hallagulla.com/urdu

Following is output of Debug mode

Code:

Datadir: home/hallagul/public_html/urdu/photo/data/

As almost always if Photopost is not working you have your datadir setting incorrect. If I may cite from photo_popup_config.php:
PHP Code:

Full URL path to Data Dirhttp://www.yoursite/path/to/gallery/data/ 

So please enter your URL (that would be http://www.hallagulla.com/urdu/photo/data/ presumably), and it will work.

cellarius 01-30-2009 05:51 AM

Quote:

Originally Posted by Doctor Death (Post 1728482)
Installed, didnt work (popup errors with VBulletin albums), uninstalled.

It does work with vB albums.

Quote:

Hopefully will be compatible soon.
It is. If you have errors and do not give any further information on the nature of the errors, there's no way to help you.

Basit 01-30-2009 09:38 AM

Quote:

Originally Posted by cellarius (Post 1728813)
As almost always if Photopost is not working you have your datadir setting incorrect. If I may cite from photo_popup_config.php:
PHP Code:

Full URL path to Data Dirhttp://www.yoursite/path/to/gallery/data/ 

So please enter your URL (that would be http://www.hallagulla.com/urdu/photo/data/ presumably), and it will work.

I tried it, but its not working.

the problem is with the url of thumbnail as well I am pasting source code of popup below for your reference.


HTML Code:

<div align=\'center\'><img src=\'home/hallagul/public_html/urdu/photo/data/500/Dock.jpg\' style=\'border: 0\' /><br /><a href=\'http://www.hallagulla.com/urdu/photo/data/showphoto.php?photo=243828\'>&lt;font size=&quot;1&quot;&gt;View image in gallery&lt;/font&gt;</a></div>
In above case this plug in not fetching correct url for img scr= as you noticed it instaed fetching directory path instead of url path for image.

Above values were taken with following config values.

HTML Code:

// The values for the following settings can be found in Photopost Administration
// Center
// Full URL path to Gallery: http://www.yoursite/path/to/gallery/
//
$pp_url_path = "http://www.hallagulla.com/urdu/photo/data/";
//
// Full URL path to Data Dir: http://www.yoursite/path/to/gallery/data/
// Look for this in PP-Administration->Global Options->URL to PhotoPost data directory
//
$pp_data_dir = "home/hallagul/public_html/urdu/photo/data/";
//
// Table prefix. pp_ is the default setting.
// You may have changed this on installation of PP.
// Look for this in PP-Administration->Edit Config->PhotoPost Database Prefix
//

If I change above values to following

HTML Code:

//
$pp_url_path = "http://www.hallagulla.com/urdu/photo/";
//
// Full URL path to Data Dir: http://www.yoursite/path/to/gallery/data/
// Look for this in PP-Administration->Global Options->URL to PhotoPost data directory
//
$pp_data_dir = "/home/hallagul/public_html/urdu/photo/data/";
//

I get following output with this plugin.

HTML Code:

<td style="text-align: center; margin-bottom: 7px;" width = "25%" class="alt2"><a href="#" onclick="thumbpaste('<div align=\'center\'><img src=\'/home/hallagul/public_html/urdu/photo/data/500/Dock.jpg\' style=\'border: 0\' /><br /><a href=\'http://www.hallagulla.com/urdu/photo/showphoto.php?photo=243828\'>&lt;font size=&quot;1&quot;&gt;View image in gallery&lt;/font&gt;</a></div><br /> ','[center][img]/home/hallagul/public_html/urdu/photo/data/500/Dock.jpg[/img]\n[url=\'http://www.hallagulla.com/urdu/photo/showphoto.php?photo=243828\'][size=1]View image in gallery[/size][/url][/center]\n\n ')"><img src="/home/hallagul/public_html/urdu/photo/data/500/thumbs/Dock.jpg" style="border: 0" title=""/></a></td>
In this case, again first error is with img scr value, again it is fetching directory path instead of url path of the image. in addition value in [ img ] tag is not url of the image rather path of the image.

Your help to get it fixed is much appreciated.

Thanks,

cellarius 01-30-2009 10:02 AM

Now, obviously you are very confused there. You should read the instructions in the config file calmly. Then you should have opened your Photopost Admin and just copy over the exact values of the fields the config file names. Those fields in Photopost Admin have the exact names given in the config file, they really are easy to locate.

This said:

$pp_url_path is the URL path to your gallery. This is the directory where your gallery resides. There's no hint whatsoever that URL path to data dir was needed there. You even quoted that explanation several times now:
PHP Code:

//Full URL path to Gallery: http://www.yoursite/path/to/gallery/ 

$pp_data_dir is the URL path to your data dir. This is where your images are stored. I do not know why you ever entered the server path there. It clearly says that the URL path to data dir is needed. This explanation I quoted to you in my above answer, and you quoted it back to me:
PHP Code:

//Full URL path to Data Dir: http://www.yoursite/path/to/gallery/data/ 

If I am to support you, I should expect you to read what I answer. Did you never realize that your setting there did not start with http://, as the explanation and my suggestion hinted, but /home/ ?

Instead, you change a setting that I did not even address.

Now, to get that straight in the end:

$pp_url_path = "http://www.hallagulla.com/urdu/photo/";

$pp_data_dir = "http://www.hallagulla.com/urdu/photo/data/";

Basit 01-30-2009 02:54 PM

Quote:

Originally Posted by cellarius (Post 1728996)
Now, obviously you are very confused there. You should read the instructions in the config file calmly. Then you should have opened your Photopost Admin and just copy over the exact values of the fields the config file names. Those fields in Photopost Admin have the exact names given in the config file, they really are easy to locate.

This said:

$pp_url_path is the URL path to your gallery. This is the directory where your gallery resides. There's no hint whatsoever that URL path to data dir was needed there. You even quoted that explanation several times now:
PHP Code:

//Full URL path to Gallery: http://www.yoursite/path/to/gallery/ 

$pp_data_dir is the URL path to your data dir. This is where your images are stored. I do not know why you ever entered the server path there. It clearly says that the URL path to data dir is needed. This explanation I quoted to you in my above answer, and you quoted it back to me:
PHP Code:

//Full URL path to Data Dir: http://www.yoursite/path/to/gallery/data/ 

If I am to support you, I should expect you to read what I answer. Did you never realize that your setting there did not start with http://, as the explanation and my suggestion hinted, but /home/ ?

Instead, you change a setting that I did not even address.

Now, to get that straight in the end:

$pp_url_path = "http://www.hallagulla.com/urdu/photo/";

$pp_data_dir = "http://www.hallagulla.com/urdu/photo/data/";


Thank you that solve the problem,

It was a mistake as I had to look at photopost config file and copy past from there, thats from where it all started wrong.

However you did reminded me of my class 1 teacher. :eek:

Regards,

PakFuse 01-30-2009 07:23 PM

Those who have Quick Editor Improver Ver 2.5.0 by Hamed Haddadian (www.gtpland.com) ... Here are the template edits for Quick Reply (for both threads and PMs) and Quick Edit .... It works for me after I spent sometime in figuring things out :)

For all Three scenarios:

Template: imp_postbit_quickedit [Quick Edit in Threads]

Template: imp_showthread_quickreply [Quick Reply in Threads]

Template: imp_pm_quickreply [Quick Reply in PMs]


Find this:

Code:

<td><div class="imagebutton" id="{$editorid}_popup_smilie" title="$vbphrase[smilies]">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                                <td><img src="$stylevar[imgdir_editor]/smilie.gif" alt="" width="21" height="20" /></td>
                                                <td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
                                        </tr>
                                        </table>
                                </div></td>

Add below:

Code:

<!-- Pop-up Image Window -->


<td><div class="imagebutton">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                                <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>

                <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>                                        </tr>
                                        </table>
                                </div></td>
<!-- Pop-up Image Window -->


cellarius 01-30-2009 08:14 PM

The Photo Popup has reached a new level - version 3.0 is upon us! ;-)

Now with support for vBGallery and Photoplog!

The implementing of new galleries was made easier by reorganisation of the code and outsourcing of the relevant settings and database queries into seperate config files.
This means that, if you have installed this mod for Photopost, your old configuration file will be obsolete. Please read the installation/upgrade-instructions carefully. There are now configuration files for each supported product, thogh in the Photopost file the settings area has remained pretty much the same. Also the setting of products used in AdminCP has changed.

Thank you for using my mod!

Please note concerning upgrade to 3.0:
  • the configuration process has changed. Old config files will be obsolete.
  • the setting of products used in AdminCP has changed. Please review!

Subah 01-30-2009 08:27 PM

Yesssss , thanks alot :)
i`ll install it right now ;)
=======================
Edit: Congratulations vBGallery finally it is work :D

wottech 01-30-2009 10:22 PM

Very nice! I will upgrade this weekend.

How hard do you think it would be to add 1 more program to the list if I supplied db information? I am talking about the CND Garage module (http://cnd-systems.com/cnd_garage.php). I would be more than willing to help you out on the testing. Thanks!!

cellarius 01-31-2009 05:24 AM

Quote:

Originally Posted by wottech (Post 1729504)
How hard do you think it would be to add 1 more program to the list if I supplied db information? I am talking about the CND Garage module (http://cnd-systems.com/cnd_garage.php). I would be more than willing to help you out on the testing. Thanks!!

Not too hard, as long as that add-on installs into the vB-database and stores it's settings there. The new modulized code is quite straightforward.

What I need to know (I hope I don't forget too much ;)):
  • Does the installation go into vB database only or can the user choose? If this was the case, that would complicate matters.
  • What database prefix does the mod use, and can it be changed by the user?
  • Can the URL path to the add-ons main index page be changed by the user or is it always the same (meaning the directory name as well as its relative position to the forums root directory)?
  • Can the URL path to the add-ons data directory (where images are stored) be changed by the user or is it always the same (meaning the directory name as well as its position)
  • If the installation goes into vB database and any of the above three is yes: is there a settings table where the corresponding values ara stored? What's it's name and how can the values be identified? (vB for example stores the setting information in settings table, identifieable by varname and the information in value.
  • Next would be to identify the table where the uploaded images are stored. There I need imageid, userid, imagename and, if there are any categories, the category id.
  • This leads to the question whether there are any categories or albums that could populate the albums choice dropdown and where they are stored. Are they global categories or created and owned by individual users? The mod can handle only one at a time.
  • Last block: The structure inside the datadir. How does the mod save the uploaded images? Are there medium sized images? What are naming conventions, in what folders do they go?
Now, if one has some clue about php and mysql, the stuff in the config files is quite straightforward. It would not be too hard to write plugins for other products on the basis of the supplied config files. If anyone wants to try: go ahead. I'll happily include third party plugins into the distribution.

cellarius 01-31-2009 06:41 AM

Quote:

Originally Posted by Subah (Post 1729451)
Yesssss , thanks alot :)
i`ll install it right now ;)
=======================
Edit: Congratulations vBGallery finally it is work :D

That's good to hear! :up:

pipin 01-31-2009 08:14 AM

Quote:

Originally Posted by cellarius (Post 1729438)
The Photo Popup has reached a new level - version 3.0 is upon us! ;-)

Now with support for vBGallery and Photoplog!


Great. Will test it asap.

Thanks.

troppodel 01-31-2009 08:27 AM

hi there
i have updated the mod from 2.0 to 3.0 now i receive this error:

Database error in vBulletin 3.8.1:

Invalid SQL:

SELECT COUNT('pictureid') AS fotos
FROM BMWM_FORUM_albumpicture
INNER JOIN BMWM_FORUM_album
ON BMWM_FORUM_albumpicture.albumid = BMWM_FORUM_album.albumid
WHERE userid = 1 AND (cat = 2 OR storecat = 2);

MySQL Error : Unknown column 'cat' in 'where clause'
Error Number : 1054
Request Date : Saturday, January 31st 2009 @ 11:24:16 AM
Error Date : Saturday, January 31st 2009 @ 11:24:16 AM
Script : http://www.bobmarleymagazine.com/for...=vB_Editor_001
Referrer : http://www.bobmarleymagazine.com/for...newthread&f=81
IP Address :
Username : ivan
Classname : vB_Database
MySQL Version : 4.0.27-standard-log

i forgot something to configure?
thanks

Subah 01-31-2009 08:52 AM

cellarius,
What about add the Popup icon in the quike reply for the PM ?

Dr. Bantham 01-31-2009 10:32 AM

Quote:

Originally Posted by troppodel (Post 1729783)
hi there
i have updated the mod from 2.0 to 3.0 now i receive this error:

Database error in vBulletin 3.8.1:

Invalid SQL:

SELECT COUNT('pictureid') AS fotos
FROM BMWM_FORUM_albumpicture
INNER JOIN BMWM_FORUM_album
ON BMWM_FORUM_albumpicture.albumid = BMWM_FORUM_album.albumid
WHERE userid = 1 AND (cat = 2 OR storecat = 2);

MySQL Error : Unknown column 'cat' in 'where clause'
Error Number : 1054
Request Date : Saturday, January 31st 2009 @ 11:24:16 AM
Error Date : Saturday, January 31st 2009 @ 11:24:16 AM
Script : http://www.bobmarleymagazine.com/for...=vB_Editor_001
Referrer : http://www.bobmarleymagazine.com/for...newthread&f=81
IP Address :
Username : ivan
Classname : vB_Database
MySQL Version : 4.0.27-standard-log

i forgot something to configure?
thanks

I am getting the same error when switching albums. I also integrated Photoplog and it would display the albums in the drop down list, but when you selected one it would always state that I had no images available to insert therein. Even if I had uploaded the images, it would not display or allow any to be inserted. I cannot recall the exact verbiage, since the database error is displayed now when I initiate the insert. I had no problems in the previous version. I also had Photoplog's custom insert code working well alongside this mod. I disabled it to be sure there was no conflict, but it did not resolve the issues.

Doctor Death 01-31-2009 12:37 PM

New version works great... Thank you for this.

I am using it only for VBulletin Albums.

wottech 01-31-2009 01:06 PM

Quote:

Originally Posted by cellarius (Post 1729733)
Now, if one has some clue about php and mysql, the stuff in the config files is quite straightforward. It would not be too hard to write plugins for other products on the basis of the supplied config files. If anyone wants to try: go ahead. I'll happily include third party plugins into the distribution.

Ok, I'll give that a try first. I've written a couple plugins for the Garage module already, so this shouldn't be too hard. :erm:

cellarius 01-31-2009 02:12 PM

Quote:

Originally Posted by troppodel (Post 1729783)
hi there
i have updated the mod from 2.0 to 3.0 now i receive this error:

Database error in vBulletin 3.8.1:

Invalid SQL:

SELECT COUNT('pictureid') AS fotos
FROM BMWM_FORUM_albumpicture
INNER JOIN BMWM_FORUM_album
ON BMWM_FORUM_albumpicture.albumid = BMWM_FORUM_album.albumid
WHERE userid = 1 AND (cat = 2 OR storecat = 2);

MySQL Error : Unknown column 'cat' in 'where clause'
Error Number : 1054
Request Date : Saturday, January 31st 2009 @ 11:24:16 AM
Error Date : Saturday, January 31st 2009 @ 11:24:16 AM
Script : http://www.bobmarleymagazine.com/for...=vB_Editor_001
Referrer : http://www.bobmarleymagazine.com/for...newthread&f=81
IP Address :
Username : ivan
Classname : vB_Database
MySQL Version : 4.0.27-standard-log

i forgot something to configure?
thanks

Thank you for reporting this, I can reproduce this. There is indeed a mixup in the configuration file for vB albums. That must have happened while I was preparing the config-files for release :confused: There's a Photopost query in the vB albums config. There'll be a bugfix release shortly.

Quote:

Originally Posted by Dr. Bantham (Post 1729833)
I am getting the same error when switching albums. I also integrated Photoplog and it would display the albums in the drop down list, but when you selected one it would always state that I had no images available to insert therein. Even if I had uploaded the images, it would not display or allow any to be inserted. I cannot recall the exact verbiage, since the database error is displayed now when I initiate the insert. I had no problems in the previous version. I also had Photoplog's custom insert code working well alongside this mod. I disabled it to be sure there was no conflict, but it did not resolve the issues.

The same error is probably the same problem. Concerning Photoplog I cannot reproduce this. I can only suspect that the database structure for Photoplog Pro is different from Photoplog lite (which I cannot access. Is this issue the same whether you access a Photoplog category or a user owned album?

cellarius 01-31-2009 02:24 PM

1 Attachment(s)
Bugfix release 3.0.1

There is a major bug in photo_popup_config_vbalbums file. If you are using vB albums system, please upgrade!

To fix the bug it's enough to reupload the fixed file. See attachment.


Subah 01-31-2009 03:25 PM

Thank you for the Bugfix release ;)

wottech 01-31-2009 03:39 PM

Well, I was having some issues with vbGallery and it not showing any images. After looking at the debug code, I realized that the directory structure wasn't the same as what mine is. I have an older version of vbGallery, so the structure might have changed. Mine is setup such that the userid is split into single characters, so a user with an id of 1234 has images in a dir starting with /1/2/3/4/ instead of /1234/. Anyway, I'm attaching part of the code that needs to be changed in case anyone else has a file structure like this.

Code:

/*
###### Construct image bits ######
*/
function imagebits ()
{
        global $array;
        global $data_dir;
        global $url_path;
               
        $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 . $filename_parts['filename'] . "_thumb." . $filename_parts['extension'] ;
        $img['med'] = "";
        $img['gallery'] = $url_path . "showimage.php?i=" . $array['imageid'];       

        return $img;
}

Everything works great now! Now its time to attempt the config file for the garage module. ;)

troppodel 01-31-2009 03:40 PM

thanks friend now work!

cellarius 01-31-2009 03:41 PM

1 Attachment(s)
Thanks for this, wottech!

And:

New translation: Arabian (thanks to Subah)

Dr. Bantham 01-31-2009 04:57 PM

Quote:

Originally Posted by cellarius (Post 1729965)
Concerning Photoplog I cannot reproduce this. I can only suspect that the database structure for Photoplog Pro is different from Photoplog lite (which I cannot access. Is this issue the same whether you access a Photoplog category or a user owned album?

It does not appear to work for either a user album or a public category. There is a file (selector.php) for Photoplog Pro that functions nearly identical to your mod, but I was hoping to have yours fulfill both tasks since having two links is confusing.

cellarius 01-31-2009 06:05 PM

Ahm, I'm pretty sure Morgan will not like to see her code posted here openly. I'd advise you to remove it.

And no, sorry, I fear I can't help you based on this code. So probably this mod does not support albums/categories with Photoplog Pro. With Lite, it works.


All times are GMT. The time now is 03:30 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.02194 seconds
  • Memory Usage 1,936KB
  • 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
  • (9)bbcode_code_printable
  • (4)bbcode_html_printable
  • (10)bbcode_php_printable
  • (20)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