PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
hinksta
Worker
Worker


Joined: Dec 23, 2005
Posts: 226
Location: UK

PostPosted: Sat Sep 02, 2006 1:10 pm Reply with quote Back to top

I'm trying to gt nuke league 2.4 beta but some urls are not working, here's a taster hope you can help

modules.php?name=League&file=index&op=team&tid=16&sid=1&lid=1

$urlin = array(
"'(?<!/)modules.php\?name=League&amp;file=index&amp;op=team&amp;tid=([0-9]*)&amp;sid=([0-9]*)&amp;lid=([0-9]*)'",

$urlout = array(
"football_league_team-\\1-\\2-\\3.html",

RewriteRule ^football_league_team-([0-9]*)-([0-9]*)-([0-9]*).html modules.php?name=League&file=index&op=team&tid=$1&sid=$2&lid=$3
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7236
Location: Arizona

PostPosted: Sat Sep 02, 2006 1:57 pm Reply with quote Back to top

hinksta, what are you getting from this? Is this the only rule that you have defined thus far? If so, you cannot have a comma on the end of your urlin/out lines, since it would only be ONE element in the array definition. Otherwise, this sure looks like it would work.
View user's profile Send private message Visit poster's website
hinksta
Worker
Worker


Joined: Dec 23, 2005
Posts: 226
Location: UK

PostPosted: Sat Sep 02, 2006 3:28 pm Reply with quote Back to top

I got started from a gt of nuke league 1.0 but 2.4 uses a different urls.
I've got 5 working urls so far but just can't see why this and another I've tried don't work
View user's profile Send private message Visit poster's website
hinksta
Worker
Worker


Joined: Dec 23, 2005
Posts: 226
Location: UK

PostPosted: Sat Sep 02, 2006 5:24 pm Reply with quote Back to top

this is confusing

another url i'm looking at is generated via admin settings to place a link on a page.

this is the url in admin
modules.php?name=League&plugin=NLstandings&lid=$lid&sid=$sid

it creates this url on a page
modules.php?name=League&plugin=NLstandings&lid=1&sid=1

i've gt'd this url and it works but not on the page that's generated via admin.
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7236
Location: Arizona

PostPosted: Sat Sep 02, 2006 7:17 pm Reply with quote Back to top

Try switching the order of the one above (the original one) and the one you just mentioned so that the longer one goes first.

I just cannot see anything wrong with the first set of GT statements!
View user's profile Send private message Visit poster's website
hinksta
Worker
Worker


Joined: Dec 23, 2005
Posts: 226
Location: UK

PostPosted: Sun Sep 03, 2006 5:16 am Reply with quote Back to top

not sure what you mean.

I tried swaping the generated url for the one in admin, it put that url in the page but still not gt'd.
View user's profile Send private message Visit poster's website
hinksta
Worker
Worker


Joined: Dec 23, 2005
Posts: 226
Location: UK

PostPosted: Sun Sep 03, 2006 5:29 am Reply with quote Back to top

The strange thing is there are 2 pages i'm looking at with identical generated links "home" and "main"

"main" has all the links gt'd but "home" does not

main is the default home page and home is the default home page of the generated league
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7236
Location: Arizona

PostPosted: Sun Sep 03, 2006 8:27 am Reply with quote Back to top

Ok, I am really confused. I have no idea what you mean by "default home page" vs. the "default home page of the generated league".

Based on the link you provided originally and the GT statements, I see no reason why it would not work.

Are you certain that the two pages you are referring to are coming from modules.php?name=League and not from admin.
View user's profile Send private message Visit poster's website
hinksta
Worker
Worker


Joined: Dec 23, 2005
Posts: 226
Location: UK

PostPosted: Sun Sep 03, 2006 9:50 am Reply with quote Back to top

ok the main module page works ok with gt

Only registered users can see links on this board!
Get registered or login to the forums!


this page gives you links of leagues and there tables etc. any page you go to from that page is not gt'd
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7236
Location: Arizona

PostPosted: Mon Sep 04, 2006 7:43 am Reply with quote Back to top

Are the subsequent pages being generated from data that is resident in your nuke mySQL database or are you pulling the data from some other site or doing anything else that might be using ob_start()?
View user's profile Send private message Visit poster's website
hinksta
Worker
Worker


Joined: Dec 23, 2005
Posts: 226
Location: UK

PostPosted: Mon Sep 04, 2006 11:49 am Reply with quote Back to top

It's all generated from the database via my fair hand.

Whats strange is in admin you have a page to insert the links. it's the same for the first page and sub pages.


Last edited by hinksta on Wed Sep 06, 2006 4:37 am; edited 1 time in total
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7236
Location: Arizona

PostPosted: Tue Sep 05, 2006 5:49 am Reply with quote Back to top

Not sure which version of GTNG you are using. Are you using .4a where you can set this into debug mode? It just seems that it is not getting to the final call in the footer to do the rewrite as your original rewrite statement should have worked.

You may need to code in some echo statements to see if it is getting into the GT code in the footer.
View user's profile Send private message Visit poster's website
hinksta
Worker
Worker


Joined: Dec 23, 2005
Posts: 226
Location: UK

PostPosted: Tue Sep 05, 2006 6:56 am Reply with quote Back to top

I think your right.
When I look at the page with WC3 it has errors and when looking at it in Dreamweaver the league stuff is not visible. I will look into this.

I'm pretty sure it's .4a, if that was the penultimate release it is.
How does the debug work?
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7236
Location: Arizona

PostPosted: Tue Sep 05, 2006 7:05 am Reply with quote Back to top

Quote:

How does the debug work?

I believe that there was a switch variable in the file that is in includes (again, only if this is .4a will you have the separate includes file). If you set it "on" (I believe there are comments which tell you what to set it to), only admin will see debug output to the page which can help you track down issues...
View user's profile Send private message Visit poster's website
hinksta
Worker
Worker


Joined: Dec 23, 2005
Posts: 226
Location: UK

PostPosted: Tue Sep 05, 2006 1:32 pm Reply with quote Back to top

You're a genius

Each generated page looks for a plugin page that grabs the link data, those pages were missing include footer.

Thank you yet again Montego
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7236
Location: Arizona

PostPosted: Tue Sep 05, 2006 10:21 pm Reply with quote Back to top

No, not a genius, just happened to run into it before with other modules... Glad you found it!

:clap:
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum