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)

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,


All times are GMT. The time now is 10:10 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.01784 seconds
  • Memory Usage 1,802KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_html_printable
  • (6)bbcode_php_printable
  • (6)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