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)

cellarius 04-15-2009 05:49 AM

Had a look at the database. I fear, the per category setting is too complex to handle it within the limitated structures of this mod. That's the downside of supporting more than one product - it's not flexible enough to support everything for every product. The problem is: Though it would probably be possible to add an additional query to the config that detects whether there are original images or not - as soon as the user clicks on "show all my images", there will be problems.

Sorry, this mod will have to handle it either as allow it or disable it...

tandy 04-16-2009 02:45 AM

Quote:

Originally Posted by cellarius (Post 1791323)
Since the error descriptions on this have been more than vague up to now, there really is no way to address this issue. I do not experience any errors. At least state which browser you are using and what the error is (exact error message!). Are you sure you have uploaded the latest version of photo_popup.php?

I installed the mod on two forum with vb 3.8.2, i used IE7 And Firefox, i have no error message, the photo popup windows open normally on both with all the photos in the popup but on one of the forum when you click on a photo nothing happend.

KenDude 04-16-2009 05:23 AM

Quote:

Originally Posted by cellarius (Post 1791539)
Had a look at the database. I fear, the per category setting is too complex to handle it within the limitated structures of this mod. That's the downside of supporting more than one product - it's not flexible enough to support everything for every product. The problem is: Though it would probably be possible to add an additional query to the config that detects whether there are original images or not - as soon as the user clicks on "show all my images", there will be problems.

Sorry, this mod will have to handle it either as allow it or disable it...

Understood, it was just something that I was pointing out could be different in different configurations. I typically would never want to insert the full size original image anyway as it would likely be too large for the forum and throw the screen out of whack. I just uploaded the most recent vbgallery config file to the server and will ask my members to test.

KenDude 04-16-2009 05:35 AM

One other suggestion I have for this mod is that in the instance where the user has no photos uploaded in the Vbulletin Albums not only should it say no photos found, but it should also have a link to:

http://www.yourwebsitehere.net/album.php?do=addalbum

So the user could go "oh that's where I can upload a photo to insert into this message" otherwise if they aren't familiar with where the photo albums are they have to hunt around or ask, why not give them some pointers.

Likewise for vbulletin there should be the message that no photos are found but then also a link such as:

http://www.yoursitehere.net/gallery/upload.php?&c=

So the user can be taken to the vbgallery and start uploading to some category they choose.

As for the CND garage if they have no photos uploaded the link would depend on whether they had a car in the garage yet or not, so in that instance I would probably just suggest a link to the garage: http://www.yoursitehere.net/garage.php and let it go at that.

I suppose if you wanted to be more flexible you could make these links both optional and customizeable through your admincp options for this mod, let the admin decide whether or not to display "helper links" and if so what link they want for each (I would provide defaults which they could then change as needed).

I hope all that makes sense.

Last, but not least in the standard reply box rather than just the text that says My Pictures, there ought to be some sort of picture graphic above that text.

cellarius 04-16-2009 06:49 AM

Quote:

Originally Posted by Robi_Kenobi (Post 1770691)
Hi, this is a great Plugin. Wonderfull

But i have a strange problem with Firefox.

If i insert a picture into quick Replay Window (in wysiwyg mode) then there is "/.../" to much in the path to the picture so the img link pasted into the reply window is

"______/forum/../picture.php?albumid=7______"

and should be

"______/forum/picture.php?albumid=7______"

So you can only see a "red cross" then.

If i send the Answer the image in the final post is right. If i switch to normal mode not wysiwyg then the correct Link is inserted.

strange thing this only happens in

quick reply, wysiwyg and with the vbulletin album and Firefox

If i paste in extended reply everything works fine.
If i paste from Photopost pro everything ok, also in the quick reply.

very strange, any idea where the problem is?

Thanks a lot for your help.

---- Update ----

I found the link from Photopost ist also inserted wrong ....

"_____forum/../../gallery/data____"

but since the /gallery/ is a root folder, the ../.. doesn't chance anything an the picture shows up normal :(

Where do the "/../"s come from ?

Quote:

Originally Posted by cellarius (Post 1788197)
  • The problem reported in this post concerning not needed /.../ in image-paths can partly be reproduced. I do not experience it when inserting images from the albums (the folder is a subfolder of forum root), but always if the chosen product resides in a folder that is not a subfolder of forum root. This seems to be caused by the injection script that is part of the forum software and that this mod uses. I do not see a way around this.

O.k., I explored some more and this problem seems to be connected with the use of vbSEO, and indeed it only happens in Firefox. Robi_Kanobi, if you're still around, can you confirm that you are using vbSEO (or some other sort of SEO-Solution?). Confirmation from anybody else will be appreciated, too, of course.

I'll see whether I can get this fixed.

cellarius 04-16-2009 06:55 AM

Quote:

Originally Posted by KenDude (Post 1792233)
One other suggestion I have for this mod is that in the instance where the user has no photos uploaded in the Vbulletin Albums not only should it say no photos found, but it should also have a link to:

http://www.yourwebsitehere.net/album.php?do=addalbum

So the user could go "oh that's where I can upload a photo to insert into this message" otherwise if they aren't familiar with where the photo albums are they have to hunt around or ask, why not give them some pointers.

Likewise for vbulletin there should be the message that no photos are found but then also a link such as:

http://www.yoursitehere.net/gallery/upload.php?&c=

So the user can be taken to the vbgallery and start uploading to some category they choose.

As for the CND garage if they have no photos uploaded the link would depend on whether they had a car in the garage yet or not, so in that instance I would probably just suggest a link to the garage: http://www.yoursitehere.net/garage.php and let it go at that.

I see the usefulness of such links, yes. They'll probably make it into some next release.

Quote:

I suppose if you wanted to be more flexible you could make these links both optional and customizeable through your admincp options for this mod, let the admin decide whether or not to display "helper links" and if so what link they want for each (I would provide defaults which they could then change as needed).
To get things in AdminCP not too confusing with all the products, I'll probably define a default setting in the config files that can then be changed if the need arises. I guess that most of the users will be happy with the standard upload page.

Quote:

Last, but not least in the standard reply box rather than just the text that says My Pictures, there ought to be some sort of picture graphic above that text.
You can always insert the icon already shipped with that mod ;)

tormento 04-16-2009 08:03 AM

hi to all

sorry for my english

i'm newbie

i had just installed this product and made the modification. no problem

i work with vb 3.8.1 and photopost but when click on icona ,the message is this

"You have set the product "photopost" to use a different database than your forums. However, the script cannot connect to this other database. Please check your database settings.!

in photo_popup_config_photopost.php , i have this

"The values for the following settings can be found in Photopost Administration
// Center
// Full URL path to Gallery: http://www.yoursite/path/to/gallery/
//
$url_path = "http://news.tecnocomputer.it/forums/photopost/";
//
// 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
//
$data_dir = "http://news.tecnocomputer.it/forums/photopost/data/";
//
// Table prefix. pp_ is the default setting.
// You may have changed this on installation of Photopost Pro.
// Look for this in PP-Administration->Edit Config->PhotoPost Database Prefix
//
$db_prefix = "pp_";
//
// If you do not save medium sized images with Photopost Pro or want to disable
// medium image insertion for this product only, set this to TRUE;
//
$medium_override = FALSE;
//
// If you do allow albums selection in popup, but want to disable it for this
// product, set this to TRUE;
//
$album_override = FALSE;"


is it correct? thanks to all

cellarius 04-16-2009 08:20 AM

It's probably not correct - else there would not be this error ;)

All the settings you pasted have nothing to do with database setup, tho. But that's where the error probably is. The database settings come right after the part you copied.

Do the following:
  • find out whether you have your Photopost data in the same database as vBulletin.
  • If this is the case, make sure line 49 reads "$other_db = FALSE;" (w/o the "). If this is now set to TRUE, this is most likely to cause your problem.
  • If you indeed use another database for Photopost, set this variable to "TRUE" and make sure the settings that follow are correct.

tormento 04-16-2009 08:27 AM

thanks

now i have put FALSE like this

$medium_override = FALSE;
//
// If you do allow albums selection in popup, but want to disable it for this
// product, set this to TRUE;
//
$album_override = FALSE;
//
// ### If your vB and Photopost run from the same Database, ###
// ### skip the following. To use different database, set ###
// ### $pp_other_db to TRUE and fill in the variables ###
//
// Set to TRUE if using different database for vB and PP
$other_db = FALSE;
// Database Name
$db_name = "photopost";
// Database Host
$db_host = "localhost";
// Database Username
$db_user = "root";
// Database Password
$db_pass = "";


this is the error now

Database error in vBulletin 3.8.1:

Invalid SQL:

SELECT id, catname
FROM pp_categories
WHERE cattype = 'a' AND parent = 1418
ORDER BY catname;

MySQL Error : Table 'tcportal.pp_categories' doesn't exist
Error Number : 1146
Request Date : Thursday, April 16th 2009 @ 11:23:42 AM
Error Date : Thursday, April 16th 2009 @ 11:23:42 AM
Script : http://news.tecnocomputer.it/forums/...e=vB_Editor_QR
Referrer : http://news.tecnocomputer.it/forums/...ad.php?t=20763
IP Address : XXXXXXX
Username : XXX
Classname : vB_Database
MySQL Version : 5.0.45

cellarius 04-16-2009 08:39 AM

Quote:

Originally Posted by tormento (Post 1792298)
MySQL Error : Table 'tcportal.pp_categories' doesn't exist

As the error states: There is no table pp_categories in your database tcportal.

I'm sorry, but I cannot say what your database setup looks like - that's something you'll have to know ;).

Is the prefix "pp_" correct? Are you sure you installed Photopost into the same database as vBulletin (the one called "tcportal") - it does not seem to be there?


All times are GMT. The time now is 04:58 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.01592 seconds
  • Memory Usage 1,785KB
  • 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
  • (8)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