Announcements on first page

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
.Minato.
Registered User
Posts: 85
Joined: Thu May 19, 2016 6:19 pm

Announcements on first page

Post by .Minato. »

Hi everyone, i added this on my forum: https://i.imgur.com/55R0h3e.png
And this is the html code:

Code: Select all

<div class="forabg">
			<div class="inner"><span class="corners-top"><span></span></span>
			<ul class="topiclist">
				<li class="header">
					<dl class="icon">
						<dt>DDDD</dt>
					</dl>
				</li>
			</ul>
			<ul class="topiclist forums">
			
		</li>
		<li class="row">
			<dl>
				<dt class="icon" style="background-image: url(test.png); background-repeat: no-repeat;"></dt>
				<dd>

					<a href="http://google.ro" class="forumtitle">DDDD</a><br />
					DDDD
				</dd>
			</dl>
		</li>
			
			</ul>
			<span class="corners-bottom"><span></span></span></div>
		</div>
Now, the problem is that is appearing everywhere, i added in overall_header.html but i want just on the index to appear, any ideas?
User avatar
PlanetStyles.net
Former Team Member
Posts: 4809
Joined: Wed Nov 04, 2009 11:16 pm
Location: Way up in the sky close to the stars
Name: Christian
Contact:

Re: Announcements on first page

Post by PlanetStyles.net »

Hello :)

You can wrap the code in:

Code: Select all

<!-- IF SCRIPT_NAME == 'index' -->
This will only show on the index page
<!-- ENDIF -->
Post Reply

Return to “phpBB Custom Coding”