Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
PAH---Post Ad Hack Details »»
PAH---Post Ad Hack
Version: 1.00, by zajako zajako is offline
Developer Last Online: Aug 2013 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 05-18-2003 Last Update: Never Installs: 8
 
No support by the author.

The Post admin hack is for those who need money for bandwith, or those who just don't mind advertising thought their site.

This hack adds posts randomly after someone replys. The posts are shown to the usergroups that are enabled to view them, in the forums that are set to show them.

This hack uses a bit of the organization of the tom bot hack, cause that is what inspried this idea, however the bot was totaly removed, and was replaced with a random ad genertor. The postbit used also was changed to make it dispaly clearly as an add rather than a post, however you can clone the postbit template to make it match.

If you use this hack, please leave the gama banner in the rotation. Its not required to use this hack, id just appriciate it since i did not create this hack for my use, but solely for anyone who would want to.

Also id like to see this in use on some of your sites so i know how i can improve it as well as other people see examples so if you post a url to your board with it installed, ill put a link in the first post.

ScreenShot:
Post Screen

File:
version 1.01

Updates:
From 1.0 to 1.01

Sites Using it:
waiting for urls to be submitted

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 05-26-2003, 02:43 AM
Dribbles Dribbles is offline
 
Join Date: Dec 2002
Location: USA
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack ... does this rotate the ads in any way or are they the one set banner once the ad is posted? thnx
Reply With Quote
  #23  
Old 05-26-2003, 03:10 AM
Dribbles Dribbles is offline
 
Join Date: Dec 2002
Location: USA
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oops, maybe I was vague ... I mean once a banner is posted, if someone presses refresh, will he always see the same banner or will it rotate per view?

PS - I added 3 banners to test out the rotation ... tried to delete them from the admin cp and it won't delete it. I see in the instructions it gives a way to delete all ads through phpmyadmin ... but I'd like to keep a couple of my current ones. Are there any easier ways to delete individual ads? Also, once an ad is deleted, will it still show up in the ads that are already posted? thnx

PPS - When I try to edit an ad:

Quote:

Database error in vBulletin Control Panel 2.3.0:

Invalid SQL: UPDATE adholder SET name=Your Ad Here,script=<a href=\"http://www.yoursite.com\" target=\"_blank\"><img src=\"http://www.yoursite.net/images/ilads.gif\" border=0></a> WHERE id=2
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'Ad Here,script=<a href=\"http://www.yoursite.com\" target=\"_bl

mysql error number: 1064

Date: Sunday 25th of May 2003 11:15:13 PM
Reply With Quote
  #24  
Old 05-27-2003, 01:46 AM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

gah, ill look into that error dribbles

Also the adbot posts should not be showing, i will look into this when i get on my comp...

also dribbles when i fix these errors the posts will not change banners, it will be like a post with a banner in it with the special postbit.
Reply With Quote
  #25  
Old 05-27-2003, 07:25 AM
Dribbles Dribbles is offline
 
Join Date: Dec 2002
Location: USA
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice .. thnx a million man.
Reply With Quote
  #26  
Old 07-24-2003, 01:21 PM
David Bott David Bott is offline
 
Join Date: Dec 2001
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any word on this hack about the above issues? Thank you kindly, looks like something we just may use.
Reply With Quote
  #27  
Old 07-24-2003, 05:40 PM
Mntsnow Mntsnow is offline
 
Join Date: Dec 2001
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I too wouild be interested in this one
Reply With Quote
  #28  
Old 07-25-2003, 09:23 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ill have zajako look into this when he gets back online
Reply With Quote
  #29  
Old 07-25-2003, 07:52 PM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry guys i have been really really busy working on some of my softwares when im online. I have a new full time job doing concrete and am gone most of my days so when i am home i gotta get stuff that helps pay the bills done first.
Reply With Quote
  #30  
Old 07-27-2003, 10:01 PM
Hostc
Guest
 
Posts: n/a
Default

If this gets fixed it would be nice, hence my forum would be perfect for the use of this hack.
Reply With Quote
  #31  
Old 01-26-2004, 04:01 AM
Okiewan's Avatar
Okiewan Okiewan is offline
 
Join Date: Dec 2001
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PLEASE!!! PRETTY PLEASE!!!
Can you port this to RC3? Did I say Please?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:23 PM.


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.04818 seconds
  • Memory Usage 2,294KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete