![]() |
PPN:
Ok, I will see what you do. Thanks. I added another row so that the actual banner would show up too. Below the last </tr> I added echo "<tr>"; echo "<td colspan='4' align='center'>$ads[advert]</td>"; echo "</tr>"; and I added the ability to reset the count on the advert to zero if you wanted by adding // ###################### Start Reset ####################### if ($action=="reset") { doformheader("ads","zero"); makehiddencode("adid",$adid); maketableheader("Confirm reset"); makedescription("Are you sure you want to reset this advert"); doformfooter("Yes","",2,"No"); } // ###################### Start Kill ####################### if ($HTTP_POST_VARS['action']=="zero") { $ad = $DB_site->query("SELECT name FROM ads WHERE adid='$adid'"); $DB_site->query("UPDATE ads SET exposed=0 WHERE adid='$adid'"); echo "<p>Advert $ad[name] has been reset</p>"; $action="list"; } and just link to reset. Thanks again for a great hack. This is something that I thought should have been included with vBulletin from the start. Parker |
Quote:
|
Yep but that can cause problems showing the ad if it has alot of ads or if its javascript with \ in it as it would be stripped and could cause problems.
The reset thing i'll add to the release then. |
Uploads ads.php from the zip again to get the reset feature working on your board, you can use this to reset your ad hits to start exposures at 0 again.
|
advert eh? you're the first person I have met abbreviate advertisements into advert, instead of plainly referring to it as an ad.
nonetheless, excellent hack :D |
If that is the case, you need to get out more, Velocd :P
I think advert occurs pretty commonly... |
This is a great
sugestion 1. what if you want to have two different rotatons one at top and obe at bottom you would need to variable's is that a posability to add. 2. there should be a way to set the banner to unlimited exposers 3. rotate the ad in all or one forum to beable to choose two or three forums right now it is a little limited to all of one catagory or one forum |
Would you post a pic of what it looks like from the users end?
|
neo:
The upper right hand banner is what the enduser will see. |
It works very nice :) I expected to find instructions for many files, but this was very quick and easy. Great hack!
One little tweak me and my users want, is to exclude the showthread and postreply pages. Or at least an option for the admin to also show on those pages, or not. Another little tweak is the option to show certain banners for unlimited time. |
All times are GMT. The time now is 11:16 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|