Forum

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




PWG scripts.js path incorrect

UserPost

23:59
8/3/2007


stevenew

Member

posts 14

1

Hi,

I have just noticed that clicking on images in my gallery do not open the high res copies. It would seem that the paths in the head that Photon is writing to PWG /include/scripts.js and PHPWG/include/pngfix.js are not correct.

Here is an example of how the path is being written:
http://www.mydomain.com/wordpress/serverpath/mydomain.com/phpwg/include/scripts.js

to work it should be:

http://www.mydomain.com/phpwg/include/scripts.js

I am using WP 2.1.2, PWG 1.6.2 and the latest Photon 4.1. Everything else seems to work fine.

I have found (after much searching through photon.php and photon-func.php) that by changing the following lines in /wordpress/wp-content/plugins/photon/photon-func.php seems to write the correct paths in the page head and the high res images now open.

Line 1387 change the contents of src= within the script tag

from:

src=”‘.Photon_cleanPath(get_bloginfo(’wpurl’).’/’.PHPWG_ROOT_PATH.’include/scripts.js’).’”

to:

src=”‘.PHPWEB_REL_ROOT_PATH.’include/scripts.js’.'”

Line 1390 change the contents of src= within the script tag

from:

src=”‘.Photon_cleanPath(get_bloginfo(’wpurl’).’/’.PHPWG_ROOT_PATH.’include/pngfix.js’).’”

to:

src=”‘.PHPWEB_REL_ROOT_PATH.’include/pngfix.js’.'”

I am aware that this may not be the only or correct solution but it seems to work, perhaps jillij could comment. So far this is the only problem I have had with the latest excellent build of Photon:-)

Steve

23:59
8/3/2007


Jillij

Admin

posts 322

2

No no, I think it is a perfect fix. You found exactly the source of the problem

23:59
9/3/2007


stevenew

Member

posts 14

3

Wow, I guess my reading of php files is improving:-)

Glad to have been of help.



Reply to Topic: PWG scripts.js path incorrect

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 2 + 8        (Required)

Topic Reply:


 

About the All is in the title forum

Currently Online:

5 Guests

Maximum Online: 73

Forums:

Groups: 4

Forums: 15

Topics: 278

Posts: 1165

Members:

There are 189 members

There are 96 guests


Jillij has made 322 posts

Top Posters:

Mael - 29

John - 24

Okaryn - 21

zoom.photos - 18

dröne - 14

Administrator: Jillij | Moderators: Jillij


© Simple:Press Forum - Version 3.1.2 (Build 340)  

Tags:

Comments are closed.