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: 52
Joined: Thu May 19, 2016 6:19 pm

Announcements on first page

Post by .Minato. » Sat Nov 11, 2017 3:06 pm

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
Christian 2.0
Former Team Member
Posts: 4357
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: Announcements on first page

Post by Christian 2.0 » Wed Nov 22, 2017 8:57 pm

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”

Who is online

Users browsing this forum: No registered users and 3 guests

cron