View Single Post
  #180  
Old 10-04-2006, 10:11 PM
xitrum's Avatar
xitrum xitrum is offline
 
Join Date: Feb 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK. I tried again with a new installation on my local machine and everything seems to work (now even thumbnails displayed when i access gallery2.php) ...except when I add a new item to the album.

After uploaded a new photo, the browser refresh with this URL:

http://<mydomain>/gallery2.php?g2_view=core.ItemAdmin&g2_subView=cor e.ItemAddConfirmation&g2_itemI d=7&g2_statusId=x5a383bbd&g2_navId=x58f76c22

It should have been:

http://<mydomain>/forum/gallery2.php?g2_view=core.ItemAdmin&g2_subView=cor e.ItemAddConfirmation&g2_itemI d=7&g2_statusId=x5a383bbd&g2_navId=x58f76c22

So the script actually pickup only the basename of the domain name. If I insert /forum to the URL and refresh then it works!

Can someone please help showing me how to fix this problem? TIA.

-xitrum
================================================== =================
I think I found the problem now. It was with these 2 lines in gallery2.php file

$ret = GalleryEmbed::init(array('embedUri' => '/forum/gallery2.php',
'g2Uri' => 'http://<full domain name>/forum/gallery2/',

The first line must have full path from the root of httpd. The second line should have the full domain name.

Everything works now. Thanks. Great mod.

xitrum
================================================== ============================
Man... I am having a headache with this and almost giving up now.. Wonder if anyone with the same problem or anyone can help out with this.

My standalone gallery2 works fine with:

http://<mydomainurl>/forum/gallery2/main.php

but when I tried the embeded version, I lost the theme and only the text display so it take up a lot of screen real estate:

http://<mydomainurl>/forum/gallery2.php

I have gallery2 installed as:

$htdocs/forum/gallery2

On my local test machine, the embeded version display correct theme. Only the production env it doesn't display correctly. Don't know what the differences are. There must be a very simple explanation to this! PLEASE HELP. TIA

xitrum
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01161 seconds
  • Memory Usage 1,763KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete