Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

PostPosted: Wed May 19, 2004 4:12 am Reply with quote

Hi, Raven! After reading your suggestion here
Only registered users can see links on this board! Get registered or login!

I created a new module. It is in fact a simple php file including an html page.

The question is: how can i GT this module so that instead of having a dynamic url ( Only registered users can see links on this board! Get registered or login! ) I may have a static one ( Only registered users can see links on this board! Get registered or login! ) ?
 
View user's profile Send private message
GanjaUK
Life Cycles Becoming CPU Cycles


Joined: Feb 14, 2004
Posts: 633
Location: England

PostPosted: Wed May 19, 2004 4:34 am Reply with quote

If its only 1 page, its very simple. You can just add a new entry to the .htaccess

Code:
#Chat

RewriteRule ^chat.html modules.php?name=Chat


Then in admin, go to modules, and edit chat module.

Preferred URL for GoogleTap: chat.html

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
morpheus_75
PostPosted: Wed May 19, 2004 5:24 am Reply with quote

Thanks Ganja! Smile

GanjaUK wrote:
Then in admin, go to modules, and edit chat module.

Preferred URL for GoogleTap: chat.html


Confused Er.. what should I edit in admin?
 
GanjaUK
PostPosted: Wed May 19, 2004 5:29 am Reply with quote

When in Admin Modules, and you click edit next to your new module. Have you got a field called Preferred URL for GoogleTap: ? That's what you edit, by edit I mean type in chat.html and hit enter.
 
morpheus_75
PostPosted: Wed May 19, 2004 5:33 am Reply with quote

GanjaUK wrote:
When in Admin Modules, and you click edit next to your new module. Have you got a field called Preferred URL for GoogleTap: ?


No, I don't have it... Sad
 
GanjaUK
PostPosted: Wed May 19, 2004 5:49 am Reply with quote

Did you upload admin/modules/modules.php
From the GT-NExtGeN_Beta_0.4 archive?

On my site, I have that field in my admin, I can change any of the modules .html names there, and then it is added to the url field in nuke_modules TABLE in the database. You could also do it through phpmyadmin.

mid title custom_title active view inmenu mod_group url
 
morpheus_75
PostPosted: Wed May 19, 2004 6:09 am Reply with quote

GanjaUK wrote:
Did you upload admin/modules/modules.php
From the GT-NExtGeN_Beta_0.4 archive?


I haven't got NextGen, but the classical one Sad And it works quite well on my site. Is there a way to change manually some parameters without downloading the whole version?
 
GanjaUK
PostPosted: Wed May 19, 2004 6:16 am Reply with quote

Sorry, I have no idea.
I only started using googletap at GT-NExtGeN_Beta_0.4, I have no idea how older versions worked. If I had a copy of this "classical" one, I would take a look, but I dont.

Did you check your database for a url field like I said above?
 
morpheus_75
PostPosted: Wed May 19, 2004 6:43 am Reply with quote

There is no such field in the previous GT versions (not NextGen). However I've just downloaded your version and I'm wondering if I can modify only what I need (the admin/modules/modules.php file and then add that field in my database).
Have you got any idea on this? Raven, Chat, what do you think?
 
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2496

PostPosted: Wed May 19, 2004 7:35 am Reply with quote

I haven't looked at GT for a while but assuming there are no major changes.
In htaccess (Like ganja wrote)
#Chat
RewriteRule ^chat.html modules.php?name=Chat

Then in header.php

$urlin =
array(
add this
"'(?<!/)modules.php\?name=Chat'",

$urlout = array(
add this
"chat.html",

Check for duplicate entries at one time Chat_Room was included in GT.
 
View user's profile Send private message
morpheus_75
PostPosted: Wed May 19, 2004 8:14 am Reply with quote

I thank you both, guys! Thanks to sixone's suggestions, the new urls perfectly work!! Smile
 
morpheus_75
PostPosted: Wed May 19, 2004 8:17 am Reply with quote

Are there any GT updates for the survey block too (or any other new block/module)?
 
sixonetonoffun
PostPosted: Wed May 19, 2004 8:23 am Reply with quote

As far as I know Only registered users can see links on this board! Get registered or login! is still down.
That leaves checking the downloads for a newer version then you have and the forums around for user contributed ones

I don't know if the survey block was done just have take a peek I guess. Funny if its not though.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©