| Author |
Message |
Audioslaved
Elite Nuker


Joined: Jun 14, 2003
Posts: 420
Location: Hawaii and The Fan Forum
|
Posted:
Fri Oct 03, 2003 12:03 am |
  |
OK folks, here is what you need to do for a fully tapped Statistics module.
You can see the results here http://test.audioslaved.com
Here we go:
We will use 3 files:
header.php
.htaccess
modules/Statistics/index.php (one little change for uniformity)
Open header.php
Find:
| Code: |
"'(?<!/)modules.php\?name=Sections'",
|
After Add:
| Code: |
"'(?<!/)modules.php\?name=Statistics&op=DailyStats&year=([0-9]*)&month=([0-9]*)&date=([0-9]*)'",
"'(?<!/)modules.php\?name=Statistics&op=MonthlyStats&year=([0-9]*)&month=([0-9]*)'",
"'(?<!/)modules.php\?name=Statistics&op=YearlyStats&year=([0-9]*)'",
"'(?<!/)modules.php\?name=Statistics&op=Stats'",
"'(?<!/)modules.php\?name=Statistics'",
|
Also in header.php Find:
After Add:
| Code: |
"stats-\\1-\\2-\\3.html",
"stats-\\1-\\2.html",
"stats-\\1.html",
"advstats.html",
"stats.html",
|
Open .htaccess
Find:
| Code: |
RewriteRule ^sections.html sections.html
|
After Add:
| Code: |
RewriteRule ^stats-([0-9]*)-([0-9]*)-([0-9]*).html modules.php?name=Statistics&op=DailyStats&year=$1&month=$2&date=$3
RewriteRule ^stats-([0-9]*)-([0-9]*).html modules.php?name=Statistics&op=MonthlyStats&year=$1&month=$2
RewriteRule ^stats-([0-9]*).html modules.php?name=Statistics&op=YearlyStats&year=$1
RewriteRule ^advstats.html modules.php?name=Statistics&op=Stats
RewriteRule ^stats.html modules.php?name=Statistics
|
Open modules/Statistics/index.php
Find:
| Code: |
."[ <a href=\"modules.php?name=$module_name&op=Stats\">"._VIEWDETAILED."</a> ]</center>";
|
Replace With:
| Code: |
."[ <a href=\"modules.php?name=$module_name&op=Stats\">"._VIEWDETAILED."</a> ]</center>";
|
If you have any problems please let me know.
-Bill (Audioslaved) |
_________________ GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/
The Audioslave Fan Forum
http://www.audioslaved.com |
|
     |
 |
luchtzak
Support Mod


Joined: Mar 19, 2003
Posts: 308
|
Posted:
Fri Oct 03, 2003 1:54 pm |
  |
|
    |
 |
gschoper
Captain


Joined: Sep 16, 2003
Posts: 380
|
Posted:
Fri Oct 03, 2003 8:02 pm |
  |
|
     |
 |
migueis
Sergeant


Joined: Apr 16, 2003
Posts: 123
|
Posted:
Wed Oct 08, 2003 10:48 am |
  |
| Audioslaved wrote: |
OK folks, here is what you need to do for a fully tapped Statistics module.
|
what is a fully tapped statistics?!?! |
_________________ Life would be so much easier if we just had the source code... |
|
        |
 |
luchtzak
Support Mod


Joined: Mar 19, 2003
Posts: 308
|
Posted:
Wed Oct 08, 2003 4:12 pm |
  |
|
    |
 |
migueis
Sergeant


Joined: Apr 16, 2003
Posts: 123
|
Posted:
Wed Oct 08, 2003 5:12 pm |
  |
sorry my ignoration, but i don't understand. Can u explain what you mean? |
_________________ Life would be so much easier if we just had the source code... |
|
        |
 |
Audioslaved
Elite Nuker


Joined: Jun 14, 2003
Posts: 420
Location: Hawaii and The Fan Forum
|
Posted:
Thu Oct 09, 2003 1:25 am |
  |
fully tapped statistics is referring to the Statistics module. Go to the main menu and click on Statistics, this is the statistics module I am referring to. If you wish to view the tapped statistics module. Please go visit my test site above. Thanks for your time. |
_________________ GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/
The Audioslave Fan Forum
http://www.audioslaved.com |
|
     |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Thu Oct 09, 2003 6:00 am |
  |
Wow Audioslaved! You are making wonderful strides! I will start adding in the code to the official GT distro. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
dirtbag
Lieutenant


Joined: May 08, 2003
Posts: 159
|
Posted:
Sat Oct 11, 2003 7:41 pm |
  |
not intending this to be a smart Rainbow Brite questions but what is the purpose to have your Statistics module Google Tapped???  |
_________________ Rick Estrada
http://www.subfighter.com
Online Jiu Jitsu Techniques MMA News |
|
   |
 |
Audioslaved
Elite Nuker


Joined: Jun 14, 2003
Posts: 420
Location: Hawaii and The Fan Forum
|
Posted:
Sun Oct 12, 2003 1:26 am |
  |
I am starting to realize that mod_rewrite is the equivalent of smoking crack, I cant stop rewriting, j/k. Once I started seeing short and sweet URL's for most items, I wanted it for as many URL's as I could get. Plus someone had a GT problem, and it sounded like they needed the Stats module rewritten so I did it. The rewrites have not reached a point where the time to do them is noticeable on my site, so I would prefer to have short and sweet URL's that help increase the spider size of my site, rather than a cross-breed of php URL's and .html URL's. Correct me if I'm wrong but the more content and links it spiders helps to increase your pagerank. (OR is it just Links, can't remember)
So I guess to answer your question with a question, why not Google Tap the Stats module?  |
_________________ GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/
The Audioslave Fan Forum
http://www.audioslaved.com |
|
     |
 |
luchtzak
Support Mod


Joined: Mar 19, 2003
Posts: 308
|
Posted:
Sun Oct 12, 2003 10:30 am |
  |
|
    |
 |
|
|