Quote:
Originally Posted by mdreamer
Hi,
First of all thank you for this nice mod  its really simple and helpful
just one question:
can you help my out with the elseif condition? i would like it to appear before the last post of each thread if it has 2 posts or couple of tens of posts spared in couple of pages
Thanks again.
Maayan
|
https://vborg.vbsupport.ru/showthread.php?t=231525
Scroll to the very bottom and reference the elseif, then adjust using the conditionals we have been discussing in this thread and in the description

.
Quote:
Originally Posted by el-Turki
What would be the code to have several banners (with different links) rotating?
|
You could use something along the lines of:
Code:
<script type="text/javascript"><!--
showbanner = new Array(3);
showbanner[0] = "<a href='http://www.yoursite.com/index.php'><img src="images/banner1.png" alt="My text here"/></a>";
showbanner[1] = "<a href='http://www.yoursite.com/index.php'><img src="images/banner1.png" alt="My text here"/></a>";
showbanner[2] = "<vb:if condition="$show['guest']"><a href='register.php{vb:raw session.sessionurl}'>Become a member & get full access, additional privileges, and more</a><vb:else /><a href='http://www.yoursite.com/index.php'><img src="images/banner1.png" alt="My text here"/></a></vb:if>";
index = Math.floor(Math.random() * showbanner.length);
document.write(showbanner[index]);
//End
// --></script>
And as you can see conditionals work fine as well, used in the last one.