Forum Moderators: rogerd

Message Too Old, No Replies

Single forum phpBB

from an old post

         

careyo

3:39 pm on Jun 3, 2005 (gmt 0)

10+ Year Member



From here: [webmasterworld.com...]

I've done a mod_rewrite on my index.php to viewforum.php?f=1 and I've removed all the links etc to make it all look good. It works well.

However -- I have found some variables that don't work outside of index.php - like {TOTAL_POSTS}, {TOTAL_USERS}, etc. I was wondering what code is in index.php that is needed for these variables to work? I can't find it.

Also -- I am wondering if there is anything else in index.php that I might be missing. Looking at the file it has things like "Start session management" code etc, whereas viewforum.php doesn't have such things. Will these missing things cause any problems?

Any help clearing this up for me will be greatly appreciated.

Thanks,
Carey.

careyo

6:29 pm on Jun 3, 2005 (gmt 0)

10+ Year Member



ok it won't let me edit my original post -- I just wanted to remove the bit about the worrying of missing session management etc -- ignore all that as it's wrong :)

Just need to know how to get these stastics working that work from index.php (like total_posts etc).

careyo

3:01 am on Jun 4, 2005 (gmt 0)

10+ Year Member



Woot.

Figured it out.

All I had to do was move the code down a bit after the "end handle marking posts" section -- just like in index.php.

It's all working fine now.

I wonder why -- if only I could understand the code :)

rogerd

11:37 pm on Jun 4, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, careyo! Glad you got things sorted out...

rj87uk

12:07 am on Jun 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I just guess it helps to write down what you know and you can sometimes figure out whats wrong yourself!

rogerd

12:31 am on Jun 6, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Absolutely... I can't count the number of times I've started to post something in the PHP or ASP forum, and in the process of explaining the problem figured out the answer, or at least a new avenue of inquiry.