Text Message in Forum Index for Guests

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
Maurizio1230
Registered User
Posts: 46
Joined: Sun Oct 07, 2007 11:27 am

Text Message in Forum Index for Guests

Post by Maurizio1230 »

I'd like to show a text message in FORUM INDEX for only GUESTS.
How can I do?

Thank you very much
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51474
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Text Message in Forum Index for Guests

Post by stevemaury »

You would place the text in index_body.html between these tags:

Code: Select all

<!-- IF not S_IS_BOT and not S_USER_LOGGED_IN -->Text message<-- ENDIF -->
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
Maurizio1230
Registered User
Posts: 46
Joined: Sun Oct 07, 2007 11:27 am

Re: Text Message in Forum Index for Guests

Post by Maurizio1230 »

At the first refresh I get this error:
Parse error: syntax error, unexpected $end in /home/maurizio1230/public_html/forum/includes/template.php(187) : eval()'d code on line 100
After the first I get this error:
Parse error: syntax error, unexpected $end in /home/*/public_html/forum/cache/tpl_Minimal_index_body.html.php on line 100
I use this code in index_body.html:

Code: Select all

<!-- INCLUDE overall_header.html -->

<!-- IF U_MCP -->
	<div id="pageheader">
		<p class="linkmcp">[ <a href="{U_MCP}">{L_MCP}</a> ]</p>
	</div>

	<br clear="all" /><br />
<!-- ENDIF -->

<!-- IF not S_IS_BOT and not S_USER_LOGGED_IN -->
<span class="attention"><strong>blabla</strong></span>
<span class="notice">
<a href="http://***/blabla.php?action=article&id=8">blabla</a>
<a href="http://***/blabla.php?action=article&id=9">blabla</a>
</span>
<-- ENDIF -->
What's wrong?
Thanks steve ;)
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51474
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Text Message in Forum Index for Guests

Post by stevemaury »

What refresh? Did you refresh the template in ACP, Styles tab?
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
Maurizio1230
Registered User
Posts: 46
Joined: Sun Oct 07, 2007 11:27 am

Re: Text Message in Forum Index for Guests

Post by Maurizio1230 »

"At the first refresh" means "the first time I see my forum index after refreshing the template in ACP, Styles tab".

Naturally I refreshed in ACP.
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51474
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Text Message in Forum Index for Guests

Post by stevemaury »

Sorry, my typo. The end tag should be:

Code: Select all

<!-- ENDIF -->
Note the !
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
Locked

Return to “[3.0.x] Support Forum”