Author |
Message |
gbhughs
Regular


Joined: Sep 11, 2004
Posts: 84
|
Posted:
Mon Mar 13, 2006 2:05 am |
|
My articles and authors page is not converting the article links to html.
Is there a rewrite code I am missing for this mod? |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Mon Mar 13, 2006 2:44 am |
|
There is no GT code at all in RavenNuke76 so if you want the links converted then you will need to do it yourself. We are looking at possibly adding that in v2.10.00. |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Mon Mar 13, 2006 9:17 am |
|
gbhughs, which version of GT are you using? |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
gbhughs

|
Posted:
Mon Mar 13, 2006 11:53 am |
|
I am using this version..........
News: Version 2.02.00 released 01/10/2006! |
|
|
|
 |
Raven

|
Posted:
Mon Mar 13, 2006 11:55 am |
|
gbhughs wrote: | I am using this version..........
News: Version 2.02.00 released 01/10/2006! |
GT is NOT included in 2.02.00. GT is a separate addon that you install and maintain. |
|
|
|
 |
gbhughs

|
Posted:
Mon Mar 13, 2006 12:19 pm |
|
Raven wrote: |
GT is NOT included in 2.02.00. GT is a separate addon that you install and maintain. |
I understand that you guys have nothing to do with GT and that possibly I need to add the rewrites myself.
I guess my question is kinda vague.
I dont understand when I have rewrites wrote for the news section and they work all over the site, why wouldnt they work on this section? (rwsAuthors)
Is it because I need to make a code in .htaccess to rewrite it for rwsAuthors?
Or do I have a glitch somewhere.
I know in your rwsAuthors mod. it works. Just wondered if you had to write the code or if you just used the .htaccess code in the GT package. |
|
|
|
 |
Raven

|
Posted:
Mon Mar 13, 2006 12:42 pm |
|
As with all addons, you have to write the GT code. |
|
|
|
 |
montego

|
Posted:
Mon Mar 13, 2006 1:42 pm |
|
gbhughs, what I was asking for is what version of Google Tap (GT) that you are using? Is it one of the GT-NextGEn beta versions? If so, I was going to "cook you up" a GT file for it...  |
|
|
|
 |
gbhughs

|
Posted:
Mon Mar 13, 2006 2:06 pm |
|
I actually found the fix montego........
I went into the index.php file for rwsMetAuthors and changed a few lines.......
For the authors I found this code:
Quote: | modules.php?name=Your_Account&op=userinfo&username=$row[informant] |
And replaced it with this code:
Quote: | article$row[sid].html |
For the News & or Articles I found this code:
Quote: | modules.php?name=News&file=article&sid=".$row[sid]. |
And replaced it with this code:
Quote: | article$row[sid].html |
I dont know if this way will give me problems, but it works.
I am using GT-NExtGeN_Beta_0.4 montego if you think using the .htaccess would be a better way to go. |
|
|
|
 |
Raven

|
Posted:
Mon Mar 13, 2006 3:07 pm |
|
You should not be hard coding those links. The moment an update is issued you're back in the same spot. You should use the GT method instead. |
|
|
|
 |
gbhughs

|
Posted:
Mon Mar 13, 2006 4:54 pm |
|
Good Point Raven
Thanks for into me........
So then montego, what have you cooked up for me?
I am very hungry today.
Hey Raven I just noticed you are in Kansas.
Where at?
I'm in the KC metro area neighbor. |
|
|
|
 |
Raven

|
Posted:
Mon Mar 13, 2006 9:51 pm |
|
gbhughs wrote: | Hey Raven I just noticed you are in Kansas.
Where at?
I'm in the KC metro area neighbor. |
No kidding? I'm in Overland Park (Stanley). Where are you? |
|
|
|
 |
gbhughs

|
Posted:
Mon Mar 13, 2006 11:34 pm |
|
No Kidding......
Blue Springs here........
I see you made it through all the storms then huh?
What a day yesterday, and then what a difference today. |
|
|
|
 |
montego

|
Posted:
Tue Mar 14, 2006 6:12 am |
|
gbhughs, I'll cook you up a nice medely of "shortened URLs", followed by a wonderful AND essential, "rewrite dessert". Sound good?
This wonderful meal will take me a day or so to get to... sorry, a little backed up, but I see you're up and running for now. |
|
|
|
 |
gbhughs

|
Posted:
Tue Mar 14, 2006 6:17 pm |
|
Sounds Great!
I even skipped lunch in preparation of this feast!
 |
|
|
|
 |
gbhughs

|
Posted:
Fri Mar 17, 2006 12:29 pm |
|
Man its been 3 days and I haven't eaten............
The dancing banana is starting to turn brown......
(just kidding)
Let me know where your at montego, and I have some questions for you about the html newsletter program. Maybe you could just shoot me a pm!? |
|
|
|
 |
montego

|
Posted:
Fri Mar 17, 2006 6:45 pm |
|
Sorry about that. Been busy with RavenNuke76 2.02.02 patch release and other things... also had to release a patch for HNL. I'll try and get to the GT stuff this weekend.
Regarding your HTML Newsetter questions, do not hesitate to ask me in the forums at my site or PM me there. |
|
|
|
 |
montego

|
Posted:
Sun Mar 19, 2006 5:36 pm |
|
Ok, unfortunately, I could not get this module to show up in my modules list no matter how hard I tried! I have no idea what is going on. I have tried all the "usual characters" and nothing... so, long story short, this is going to have to be "as-is" and is not tested.
You may have to tweak it some. All but the rwsMetAuthors links should already have corresponding GT rewrite statements in your .htaccess if you implemented the full GT-NExtGEn.
=== CREATE NEW FILE in your GoogleTap directory called ===
GT-rwsMetAuthors.php
=== This is what it should look like ===
Hopefully...
Code:
<?php
$urlin = array(
"'(?<!/)modules.php\?name=News&file=article&sid=([0-9]*)'",
"'(?<!/)modules.php\?name=Submit_News'",
"'(?<!/)modules.php\?name=Web_Links&file=index&l_op=(AddLink)'",
"'(?<!/)modules.php\?name=Reviews&rop=write_review'",
"'(?<!/)modules.php\?name=Your_Account&op=userinfo&username=([a-zA-Z0-9_-]*)'",
"'(?<!/)modules.php\?name=rwsMetAuthors#([a-zA-Z0-9_-]*)'"
);
$urlout = array(
"article\\1.html",
"submit.html",
"linkop-\\1.html",
"reviews-new.html",
"userinfo-\\1.html",
"metauthors.html#\\1"
);
?>
|
=== OPEN FILE ===
.htaccess
=== ADD These lines somewhere in your re-write section for other GTs ===
#rwsMetAuthors
RewriteRule ^metauthors.html#([a-zA-Z0-9_-]*) metauthors.html#$1 [L]
=====================
Now I remember why I stay out of the kitchen!!!
 |
|
|
|
 |
|