problem with {NAV_TABLE_COLUMN}

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
cRYOa
Posts: 14
Joined: Sun 23. May 2004, 21:21

problem with {NAV_TABLE_COLUMN}

Post by cRYOa »

i have this problem with {NAV_TABLE_COLUMN} and I'm not sure whats going on really... The page loads but then if you move the mouse over it i will see the javascript error icon in the bottom right in the status bar.. it always seems to be "Object Expected" in line 70 errors.. I notice my menu doesn't highlight like the one on the phpwcms site either.. so I'm thinking this has something to do with it. The menu actually works for me.. but I think something is quite right. any help with this is appreciated. thanks
Pappnase

Post by Pappnase »

hello

wich version do you run!? if this an fresh install maybe somthing happens as you upload phpwcms!?
cRYOa
Posts: 14
Joined: Sun 23. May 2004, 21:21

Post by cRYOa »

your always quick pappnase :) thanks.

I don't think so.. it is a fairly new install... but so far I did notice that date_long was coming out in the wrong language. When I went and looked there was no EN lang file for the date_long function.. so I just edited the DE one to be in english. I checked the original unpacking here on my local drive and there never was an EN lang file for that so I'm thinking it was an oversite or something in the release maybe?? anyway where should I look to see if I actually am missing files in the directory structure?
Pappnase

Post by Pappnase »

if you say you have problems with the lang files!

then reupload inc_lang and include/inc_js for the nav menue problem. but i need to say that i don't know if this is right! :oops:
cRYOa
Posts: 14
Joined: Sun 23. May 2004, 21:21

Post by cRYOa »

hmm.. i just redownloaded the latest full package of phpwcms and after unpacking it there is no en.date.lang.php file in there either. So im thinking its just not in the release. ALso, i looked at the phpwcms_nav.js script and it seems to reference like so:

Code: Select all

var picpath	= "img/nav/"; //define image path location
and i looked and I dont have that sub dir nor is it in the archive. I do have a sub dir called "subnav" under img/ but not one called nav. WHere do i get this dir and its contents or do I really need it at all
User avatar
Oliver Georgi
Site Admin
Posts: 9940
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

there is no EN language for date - because it is PHP's default.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
User avatar
Oliver Georgi
Site Admin
Posts: 9940
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

Check the code phpwcms has rendered - maybe you can find the error in line 70. As you said - it's a JS error.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
Pappnase

Post by Pappnase »

cRYOa wrote:hmm.. i just redownloaded the latest full package of phpwcms and after unpacking it there is no en.date.lang.php file in there either. So im thinking its just not in the release. ALso, i looked at the phpwcms_nav.js script and it seems to reference like so:

Code: Select all

var picpath	= "img/nav/"; //define image path location
and i looked and I dont have that sub dir nor is it in the archive. I do have a sub dir called "subnav" under img/ but not one called nav. WHere do i get this dir and its contents or do I really need it at all
hello

i have also no en lang file so the dates must be in the code from oliver!
leave the pic path at it is! at my test installation everythink works fine!

can you send me the link to your site!? mybe if i see the error i will see more!?
as you can see when you click the url the enf: date long will work!
http://test.fhss.de/index.php?id=0,8,0,0,1,0
cRYOa
Posts: 14
Joined: Sun 23. May 2004, 21:21

Post by cRYOa »

Well i looked at the rendered code for my page and the four lines look like this:

Code: Select all

<tr bgcolor="#D9DEE3" style="cursor:pointer;cursor:hand;" onClick="location.href='index.php?_wjx';" onMouseOver="MM_swapImage('linkidbD1yic','','img/article/nav_link_1.gif',1);this.bgColor='#D3ED7D';" onMouseOut="MM_swapImgRestore();this.bgColor='#D9DEE3';">

<tr bgcolor="#D9DEE3" style="cursor:pointer;cursor:hand;" onClick="location.href='index.php?id=1,0,0,1,0,0';" onMouseOver="MM_swapImage('linkidhJuGFV','','img/article/nav_link_1.gif',1);this.bgColor='#D3ED7D';" onMouseOut="MM_swapImgRestore();this.bgColor='#D9DEE3';">

<tr bgcolor="#D9DEE3" style="cursor:pointer;cursor:hand;" onClick="location.href='index.php?_jc7';" onMouseOver="MM_swapImage('linkidOZNhkt','','img/article/nav_link_1.gif',1);this.bgColor='#D3ED7D';" onMouseOut="MM_swapImgRestore();this.bgColor='#D9DEE3';">

<tr bgcolor="#D9DEE3" style="cursor:pointer;cursor:hand;" onClick="location.href='index.php?_2se';" onMouseOver="MM_swapImage('linkidJdd01f','','img/article/nav_link_1.gif',1);this.bgColor='#D3ED7D';" onMouseOut="MM_swapImgRestore();this.bgColor='#D9DEE3';">
And the i also took a peek at Olivers rendered page here on the phpwcms site and his looks a bit different. One of his lines looks like this:

Code: Select all

<tr bgcolor="#D9DEE3" onClick="location.href='index.php?id=1,0,0,1,0,0';" onMouseOver="this.bgColor='#D3ED7D';this.style.cursor='pointer';linkidfoudMk.src='img/article/nav_link_1.gif';" onMouseOut="this.bgColor='#D9DEE3';linkidfoudMk.src='img/article/nav_link_0.gif';">
It's order is a different.. but the one thing i noticed was that my 'linkid' parts lack the suffix extension ".src" like his have. Am I off base here?
User avatar
Oliver Georgi
Site Admin
Posts: 9940
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

seems to be OK. Hm. Maybe it can not find the over image.

You can not compare current code with old one on the project page - I have never updated the project page :oops:

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Hi cRYOa

Post by jsw_nz »

With regards to the long date a setting on line 159 of /include/inc_conf/conf.template_default.inc.php can be adjusted:

Code: Select all

line 159: $template_default["date"]["language"]	= "EN"; // DE=German, IT=Italian, FR=French
I would guess the distinction between Oliver's and your page's code is that the phpwcms site was designed before the system incorporated the MM_SwapImg function that automatically handles .src expressions.

And just a guess............the img/nav is for a future release of phpwcms by Oliver. The javascript object error, has me stumped a little, it may be the object references (MM_findObj), in the the frontend.js, are not getting defined...might want to check the path to frontend.js.

Just a few thoughts.

cheers,
jsw
cRYOa
Posts: 14
Joined: Sun 23. May 2004, 21:21

Post by cRYOa »

Ok following the path check advice.. this is what the path looks like.. which normally i think should be fine.

Code: Select all

<script src="./phpwcms_template/inc_js/frontend.js" type="text/javascript"></script>
but i noticed rollover effect seem fine in the admin/article area.. so i look at that

Code: Select all

<script src="include/inc_js/phpwcms.js" type="text/javascript"></script>
I would like to try and remove the "./" from in front of the frontend.js path and see what that does.. where do I go to do that?
User avatar
Oliver Georgi
Site Admin
Posts: 9940
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

you can't.

And will have no effect.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
cRYOa
Posts: 14
Joined: Sun 23. May 2004, 21:21

Post by cRYOa »

well I'm guessing that it has something to do with the fact of using a domain alias. Much like the problems I had to where I could not use Spaw.
User avatar
Oliver Georgi
Site Admin
Posts: 9940
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

I think not really. Because

"./mypath/test.js"

is exactly the same as

"mypath/test.js"


(as far as I know)

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
Post Reply