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.
Suggested Hosts
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 » Sat Dec 27, 2008 6:55 pm

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: 69424
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: main page

Post by KevC » Sat Dec 27, 2008 7:04 pm

Different files display different bits.

Perhaps you should explain exactly what you're trying to do.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

User avatar
eyesociety
Registered User
Posts: 31
Joined: Sat Jul 12, 2008 1:46 pm

Re: main page

Post by eyesociety » Sat Dec 27, 2008 7:24 pm

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 » Sat Dec 27, 2008 8:44 pm

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 » Sat Dec 27, 2008 9:52 pm

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 » Sat Dec 27, 2008 10:21 pm

No refresh happening :?:

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

Re: main page

Post by onehundredandtwo » Sat Dec 27, 2008 10:31 pm

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 » Sat Dec 27, 2008 11:16 pm

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 » Sun Dec 28, 2008 10:34 am

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 » Sun Dec 28, 2008 10:13 pm

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 » Sun Dec 28, 2008 10:39 pm

: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 » Sun Dec 28, 2008 10:45 pm

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”