vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Advert Management (https://vborg.vbsupport.ru/showthread.php?t=39074)

Parker Clack 05-26-2002 07:37 PM

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

scsa20 05-26-2002 08:18 PM

Quote:

Originally posted by PPN
Em its an advert

http://www.dictionary.com/search?q=advertisement

lol, dictionary.com, the only place where I go to for defantions :D

Scott MacVicar 05-26-2002 08:51 PM

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.

Scott MacVicar 05-26-2002 09:08 PM

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.

Velocd 05-26-2002 09:57 PM

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

Sparkz 05-27-2002 12:33 AM

If that is the case, you need to get out more, Velocd :P

I think advert occurs pretty commonly...

duke 05-27-2002 02:57 AM

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

Neo 05-27-2002 05:45 AM

Would you post a pic of what it looks like from the users end?

Parker Clack 05-27-2002 10:43 AM

neo:

The upper right hand banner is what the enduser will see.

Floris 05-27-2002 11:36 AM

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
  • Page Generation 0.01162 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete