main page

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
User avatar
eyesociety
Registered User
Posts: 31
Joined: Sat Jul 12, 2008 1:46 pm

main page

Post by eyesociety »

Hi all

Does anyone know witch is the main php file that shows the main forum page
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72343
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: main page

Post by KevC »

Different files display different bits.

Perhaps you should explain exactly what you're trying to do.
-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
User avatar
eyesociety
Registered User
Posts: 31
Joined: Sat Jul 12, 2008 1:46 pm

Re: main page

Post by eyesociety »

I am trying to gt the main screen to refresh every 10 minutes
themcman1
Registered User
Posts: 45
Joined: Sat Dec 06, 2008 2:26 pm
Location: modx.prosilver.en.xsl

Re: main page

Post by themcman1 »

Well index.php is the 'main page,' which gets it's html template from /styles/stylename/template/index_body.html
User avatar
onehundredandtwo
Registered User
Posts: 1228
Joined: Fri Nov 14, 2008 8:07 am

Re: main page

Post by onehundredandtwo »

I'm pretty sure this would work:

Go to styles/yourstylehere/template/overall_header.html:

FIND: (Assuming you are using prosilver_se, for other themes just find the <meta name or <meta http-equiv tags.

Code: Select all

<meta name="keywords" content="" />
<meta name="description" content="" />
ADD AFTER:

Code: Select all

<!-- IF PAGE_TITLE eq 'Index Page' --><meta http-equiv="refresh" content="600;url=./index.php" /><!-- ENDIF -->
Need help preventing spam? Read Preventing spam in phpBB 3.0.6 and above
User avatar
eyesociety
Registered User
Posts: 31
Joined: Sat Jul 12, 2008 1:46 pm

Re: main page

Post by eyesociety »

No refresh happening :?:
User avatar
onehundredandtwo
Registered User
Posts: 1228
Joined: Fri Nov 14, 2008 8:07 am

Re: main page

Post by onehundredandtwo »

Does the title of your index page say "Sitename • Index Page"?
Is it possible if I could have a board URL to look at?
Need help preventing spam? Read Preventing spam in phpBB 3.0.6 and above
User avatar
onehundredandtwo
Registered User
Posts: 1228
Joined: Fri Nov 14, 2008 8:07 am

Re: main page

Post by onehundredandtwo »

onehundredandtwo wrote: ADD AFTER:

Code: Select all

<!-- IF PAGE_TITLE eq 'Index Page' --><meta http-equiv="refresh" content="600;url=./index.php" /><!-- ENDIF -->
OK I know what's wrong now, PHP is case-sensitive, 'Index Page' should be changed to 'Index page'

The code should now be:

Code: Select all

<!-- IF PAGE_TITLE eq 'Index page' --><meta http-equiv="refresh" content="600;url=./index.php" /><!-- ENDIF -->
Need help preventing spam? Read Preventing spam in phpBB 3.0.6 and above
User avatar
eyesociety
Registered User
Posts: 31
Joined: Sat Jul 12, 2008 1:46 pm

Re: main page

Post by eyesociety »

Ok i dont know if i am missing something but i still cannot get it to refresh the screen. I used this mod
<!-- IF PAGE_TITLE eq 'Index page' --><meta http-equiv="refresh" content="600;url=./index.php" /><!-- ENDIF -->

It looks like your first post mod to me does it to you :?:

eyesociety.
User avatar
onehundredandtwo
Registered User
Posts: 1228
Joined: Fri Nov 14, 2008 8:07 am

Re: main page

Post by onehundredandtwo »

Have you cleared your cache? Also, make sure you uploaded the template file to the correct directory (styles/yourstyle/template).

I only just tried it on a file my own site and it worked (it refreshes every ten minutes).
Need help preventing spam? Read Preventing spam in phpBB 3.0.6 and above
User avatar
eyesociety
Registered User
Posts: 31
Joined: Sat Jul 12, 2008 1:46 pm

Re: main page

Post by eyesociety »

:oops: Silly me i cleared the Cache and it does work.

Cheers onehundredandtwo
User avatar
onehundredandtwo
Registered User
Posts: 1228
Joined: Fri Nov 14, 2008 8:07 am

Re: main page

Post by onehundredandtwo »

No problems, I think most people forget to clear the cache (even I do). Glad to see that it works. ;)
Need help preventing spam? Read Preventing spam in phpBB 3.0.6 and above
Locked

Return to “[3.0.x] Support Forum”