3.2.x 3.2.x SnippetsExchange of banners

Snippets
Previous topicNext topic
User avatar

Topic Author
ivailo95
Donator
Donator
Status: Online
User theme: Dark
Posts: 889
Joined: Feb 2nd, '18, 11:04
    Windows 7 Firefox

Exchange of banners

Post by ivailo95 »

Hi guys ! i decide to share this code for all of you.

For demo click: here
Needed files:

Find: overall_header.html , You can find it in:
styles/your style/template/

type in Bottom line:

Code: Select all

<div class="forabg">
			<div class="inner">
			<ul class="topiclist">
				<li class="header">
										<dl class="row-item">
						<dt><center><a href="Link to the topic of your banners"><font size="2" color="orange"><font color="aqua">[</font> CLICK HERE TO CHANGE THE BANNER <font color="aqua">]</font></font></a></center></dt>
					</dl>
									</li>
			</ul>
			<ul class="topiclist forums">
		&nbsp;
		<div class="content adsm_block"><center><!-- INCLUDE left.html -->&nbsp;<!-- INCLUDE right.html --></center></div>
		&nbsp;
	</div>
</div>
Open: Archive,you will find left.html and right.html

Left.html - Show banners in left
right.html - Show banners in right

I share this code from here
EN: Click here
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
User avatar

Topic Author
ivailo95
Donator
Donator
Status: Online
User theme: Dark
Posts: 889
Joined: Feb 2nd, '18, 11:04
    Windows 7 Firefox

Re: Exchange of banners

Post by ivailo95 »

How can i add collapse to it?
it's better if it collapse it
Last edited by ivailo95 on Jan 3rd, '20, 19:49, edited 1 time in total.
User avatar

Fast_Eddie
Users
Users
Status: Offline
User theme: Light
Posts: 278
Joined: Aug 15th, '15, 18:25
    Windows 7 Firefox

Re: Exchange of banners

Post by Fast_Eddie »

Would make a nice block for b3p ! :w00t:
:beers: Retirement 2024!
User avatar

d3ath2435
Users
Users
Status: Offline
User theme: Dark
Posts: 12
Joined: Apr 18th, '20, 22:51
    Windows 10 Chrome

Re: Exchange of banners

Post by d3ath2435 »

You do not need to have 2 files! Make a single simple file in which you can change and add ads at once! Once in one file! Not several times in 8 files

Let's say we give this file a name simpleads.html and put it in root/styles/your_stile/templates
Then in overal_header.html:
  • If you want to use only one banner - <!-- INCLUDE simpleads.html -->
  • Show 2 banners - <!-- INCLUDE simpleads.html -->&nbsp;&nbsp;<!-- INCLUDE simpleads.html -->
For 2 banners:

Code: Select all

<div class="forabg">
<div class="inner">
<ul class="topiclist">
<li class="header">
<dl class="row-item">
<dt><div class="list-inner">Banners Ads</div></dt>
</dl>
</li>
</ul>
<ul class="topiclist forums">
<li class="row">
<center><!-- INCLUDE simpleads.html -->&nbsp;&nbsp;<!-- INCLUDE simpleads.html --></center>
</li>
</ul>
</div>
</div>
We don't need to edit two different files for each new ad when we can edit only one
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
Previous topicNext topic