The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
My random problem!
I am building a new banner hack to allow targeted sponsorship of nominated forums
If a forum is sponsored the approiate banner will be displayed with link.........THIS WORKS! However if a forum is not sponsored then a random banner is to be selected from the list....THIS IS NOT WORKING I have added this to forumdisplay.php PHP Code:
Code:
<center><smallfont>Please support our sponsors<br> <a target='blank' href='http://www.atmyparty.com/network/click.php?bannerid=$randomad[id]'> <img border='0' width='$randomad[width]' heigth='$randomad[heigth]' alt='$randomad[banner_text]' src='http://www.atmyparty.com/network/view.php?bannerid=$randomad[id]'></a> <br>Please contact us to sponsor area of the site.<br><br></smallfont><center> Code:
<center><font face="verdana,arial,helvetica" size="1" >Please support our sponsors<br> <a target='blank' href='http://www.atmyparty.com/network/click.php?bannerid='> <img border='0' width='' heigth='' alt='' src='http://www.atmyparty.com/network/view.php?bannerid='> </a><br>Please contact us to sponsor area of the site.<br><br></font><center> thanks in advance |
#2
|
||||
|
||||
Ok whilst I have been waiting I have been working on other areas of the hack....however i still have not been able to solve this problem yet.
I will start a new thread for my next hurdle, I have nearly been able to complete targeting forums here the next hurdle is to target a particular script......eg....store.php new thread here https://vborg.vbsupport.ru/showthrea...threadid=51200 |
#3
|
||||
|
||||
are you sure the cell will be empty?
PHP Code:
PHP Code:
|
#4
|
||||
|
||||
Hmmm thanks mr e,
I actually didnt think of that....doh...but it didnt work either I even tried PHP Code:
I only have 3 banners on the table so far and they do work when a target forum is nominated eg here i have also managed to make the ad banner to appear at the top of all threads in the nominated forum as well. i have even got it to display the sponsorship in the forum list. there are 2 sponsored forums here http://www.atmyparty.com/network/for...s=&forumid=172 I have attached a gif of the current data table, so i spose to answer your question....if you are viewing forum number 28 the cell more correctly is not there rather than empty. so by defult i want to display a random banner in the unsponsored forum/threads. Thanks so far for your ideas... |
#5
|
||||
|
||||
sorry but just to add to that the coding is displaying the right templates for both sponsored and unsponsored forums as the 2 templates are different....the problem is that the unsponsored forum has no image displayed.
|
#6
|
||||
|
||||
I may be missing something here but why are you only selecting when there is no data? Should it be like this:
PHP Code:
- miSt |
#7
|
||||
|
||||
HIp hip horay.........after 2 bloody days the thing works...now to work out how to target a php file
https://vborg.vbsupport.ru/showthrea...threadid=51200 then its finished! |
#8
|
||||
|
||||
<font size="4">THE HACK IS FINISHED!</font>
Now to get rid of phpnewads |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|