| Author |
Message |
morpheus_75 Involved


Joined: Oct 07, 2003 Posts: 302
|
Posted:
Wed May 19, 2004 4:12 am |
|
Hi, Raven! After reading your suggestion here
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 ( ) I may have a static one ( ) ? |
|
|
|
 |
GanjaUK Life Cycles Becoming CPU Cycles

Joined: Feb 14, 2004 Posts: 633 Location: England
|
Posted:
Wed May 19, 2004 4:34 am |
|
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 |
|
|
|
 |
morpheus_75 Involved


Joined: Oct 07, 2003 Posts: 302
|
Posted:
Wed May 19, 2004 5:24 am |
|
Thanks Ganja!
| GanjaUK wrote: | Then in admin, go to modules, and edit chat module.
Preferred URL for GoogleTap: chat.html |
Er.. what should I edit in admin? |
|
|
|
 |
GanjaUK Life Cycles Becoming CPU Cycles

Joined: Feb 14, 2004 Posts: 633 Location: England
|
Posted:
Wed May 19, 2004 5:29 am |
|
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 Involved


Joined: Oct 07, 2003 Posts: 302
|
Posted:
Wed May 19, 2004 5:33 am |
|
| 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...  |
|
|
|
 |
GanjaUK Life Cycles Becoming CPU Cycles

Joined: Feb 14, 2004 Posts: 633 Location: England
|
Posted:
Wed May 19, 2004 5:49 am |
|
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 Involved


Joined: Oct 07, 2003 Posts: 302
|
Posted:
Wed May 19, 2004 6:09 am |
|
| 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 And it works quite well on my site. Is there a way to change manually some parameters without downloading the whole version? |
|
|
|
 |
GanjaUK Life Cycles Becoming CPU Cycles

Joined: Feb 14, 2004 Posts: 633 Location: England
|
Posted:
Wed May 19, 2004 6:16 am |
|
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 Involved


Joined: Oct 07, 2003 Posts: 302
|
Posted:
Wed May 19, 2004 6:43 am |
|
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: 2499
|
Posted:
Wed May 19, 2004 7:35 am |
|
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. |
|
|
|
 |
morpheus_75 Involved


Joined: Oct 07, 2003 Posts: 302
|
Posted:
Wed May 19, 2004 8:14 am |
|
I thank you both, guys! Thanks to sixone's suggestions, the new urls perfectly work!!  |
|
|
|
 |
morpheus_75 Involved


Joined: Oct 07, 2003 Posts: 302
|
Posted:
Wed May 19, 2004 8:17 am |
|
Are there any GT updates for the survey block too (or any other new block/module)? |
|
|
|
 |
sixonetonoffun Spouse Contemplates Divorce

Joined: Jan 02, 2003 Posts: 2499
|
Posted:
Wed May 19, 2004 8:23 am |
|
As far as I know 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. |
|
|
|
 |
|
|
|
|