Page 1 of 1

Text Message in Forum Index for Guests

Posted: Sat Aug 29, 2009 4:20 pm
by Maurizio1230
I'd like to show a text message in FORUM INDEX for only GUESTS.
How can I do?

Thank you very much

Re: Text Message in Forum Index for Guests

Posted: Sat Aug 29, 2009 4:28 pm
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 -->

Re: Text Message in Forum Index for Guests

Posted: Sat Aug 29, 2009 5:10 pm
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 ;)

Re: Text Message in Forum Index for Guests

Posted: Sat Aug 29, 2009 5:15 pm
by stevemaury
What refresh? Did you refresh the template in ACP, Styles tab?

Re: Text Message in Forum Index for Guests

Posted: Sat Aug 29, 2009 5:23 pm
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.

Re: Text Message in Forum Index for Guests

Posted: Sat Aug 29, 2009 5:52 pm
by stevemaury
Sorry, my typo. The end tag should be:

Code: Select all

<!-- ENDIF -->
Note the !