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

Reply
 
Thread Tools
[Adv] banners Hack Details »»
[Adv] banners Hack
Version: 1.1, by Creative Suite Creative Suite is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.5 Rating:
Released: 01-05-2005 Last Update: 01-08-2005 Installs: 82
DB Changes
 
No support by the author.

what it does ?

This hack allows the administrators to add banners in forumhome or forums or threads ! [ can choose any , or all ]

INSTALLATION

This Hack is tested and working on vb 3.0.4 but should work on ALL 3.x.x versions as well.
Please read the installation-English.txt file in the package CAREFULLY for installation instructions

SUPPORT

well I honestly cannot promise you to solve all-hack problems but I will try to do my best answering your questions and solving the problems I could solve , I also welcome all suggestion .

enjoy : )
Creative Suite
www.Montadiat.com

Show Your Support

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

Comments
  #72  
Old 01-11-2005, 01:29 AM
J-TEK J-TEK is offline
 
Join Date: May 2004
Location: FL
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any uninstall script for this hack, just out of curiosity.
Reply With Quote
  #73  
Old 01-11-2005, 04:25 AM
yinyang's Avatar
yinyang yinyang is offline
 
Join Date: May 2004
Location: Los Angeles
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sounds like a good hack and it'd be perfect for my forum if one additional option could be enabled.

would it be possible to make the ads show for some usergroups and not others? for example, a site with a regular membership would have those "pesky" ads. but for premium (paid) members, those ads would disappear.

would this be difficult?
Reply With Quote
  #74  
Old 01-11-2005, 05:10 AM
apfparadise apfparadise is offline
 
Join Date: Jan 2005
Location: Northridge CA
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh, yeah, I would love that, also. I love the hack, installed and upgraded but this would be awesome. ANother upgrade? should be easy, a simple <if> thing, but I dont know how to.

I run it as a Contributor Program solicitation, so it would be awesome if the people who have contributed (donated) would not have to keep seeing it.
Reply With Quote
  #75  
Old 01-11-2005, 08:23 AM
Creative Suite's Avatar
Creative Suite Creative Suite is offline
 
Join Date: May 2004
Location: Kuwait :)
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

J-TEK

just upload the attachment file to your admincp folder , & then run it using your browser , & don't forget to remove the code from the global.php file

yinyang & apfparadise

if you had installed the hack , do that

in the global.php file

find :

PHP Code:
$R THIS_SCRIPT;    

if(
$R != 'forumdisplay' AND $R != 'showthread' AND $R != 'login' ){

$queryxs  $DB_site->query("select * from adv where  script  LIKE '%*$R*%'  order by  RAND() limit 1");
$rowx $DB_site->num_rows($queryxs);

while(
$row $DB_site->fetch_array($queryxs)){
eval(
'$shir .= "' fetch_template('adv_creativeSuite') . '";');

}
$update  $DB_site->query("UPDATE adv SET views = views+1  where  script LIKE '%*$R*%' ");
}

if(
$R == "forumdisplay"){
$foruminfo verify_id('forum'$_REQUEST['forumid'], 11);
$queryxs  $DB_site->query("select * from adv where   forumid  LIKE '%*$foruminfo[forumid]*%' order by  RAND() limit 1");

while(
$row $DB_site->fetch_array($queryxs)){
eval(
'$shir .= "' fetch_template('adv_creativeSuite') . '";');

}
$update  $DB_site->query("UPDATE adv SET views = views+1  where forumid  LIKE '%*$foruminfo[forumid]*%'  ");
}


if(
$R == "showthread"){
$threadinfo verify_id('thread',$_REQUEST['threadid'], 11);
$queryxs  $DB_site->query("select * from adv where threadid LIKE '%*$threadinfo[threadid]*%'  order by  RAND() limit 1");

while(
$row $DB_site->fetch_array($queryxs)){
eval(
'$shir .= "' fetch_template('adv_creativeSuite') . '";');

}
$update  $DB_site->query("UPDATE adv SET views = views+1  where threadid LIKE '%*$threadinfo[threadid]*%' ");

replace it with :

PHP Code:
global $bbuserinfo;
$R THIS_SCRIPT;    

if(
$R != 'forumdisplay' AND $R != 'showthread' AND $R != 'login' ){

$queryxs  $DB_site->query("select * from adv where  script  LIKE '%*$R*%'  order by 'id' desc ");
$rowx $DB_site->num_rows($queryxs);
if(
$bbuserinfo[usergroupid]==??){
while(
$row $DB_site->fetch_array($queryxs)){
eval(
'$shir .= "' fetch_template('adv_creativeSuite') . '";');

}
$update  $DB_site->query("UPDATE adv SET views = views+1  where  script LIKE '%*$R*%' ");
}
else{
$do "nothing";
}}

if(
$R == "forumdisplay"){
$foruminfo verify_id('forum'$_REQUEST['forumid'], 11);
$queryxs  $DB_site->query("select * from adv where   forumid  LIKE '%*$foruminfo[forumid]*%' order by 'id' desc ");
if(
$bbuserinfo[usergroupid]==??){
while(
$row $DB_site->fetch_array($queryxs)){
eval(
'$shir .= "' fetch_template('adv_creativeSuite') . '";');
}
$update  $DB_site->query("UPDATE adv SET views = views+1  where forumid  LIKE '%*$foruminfo[forumid]*%' ");
}
else{
$do "nothing";
}}


if(
$R == "showthread"){
$threadinfo verify_id('thread',$_REQUEST['threadid'], 11);
$queryxs  $DB_site->query("select * from adv where threadid LIKE '%*$threadinfo[threadid]*%'  order by 'id' desc ");
if(
$bbuserinfo[usergroupid]==6){
while(
$row $DB_site->fetch_array($queryxs)){
eval(
'$shir .= "' fetch_template('adv_creativeSuite') . '";');

}
$update  $DB_site->query("UPDATE adv SET views = views+1  where threadid LIKE '%*$threadinfo[threadid]*%' ");
}
else{
$do "nothing";
}} 
with changing the "??" marks to the group id in this code
:


PHP Code:
$bbuserinfo[usergroupid]==?? 
if you want to add more than one group replace this code "for 3 time"

PHP Code:
$bbuserinfo[usergroupid]==
with :

PHP Code:
$bbuserinfo[usergroupid]==?? OR $bbuserinfo[usergroupid]==?? 
with changing the "??" marks to the groups id

that's all

best wishes
Reply With Quote
  #76  
Old 01-11-2005, 11:04 AM
lanc3lot's Avatar
lanc3lot lanc3lot is offline
 
Join Date: Sep 2004
Location: Athens, Greece
Posts: 454
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol he is awesome

Nice speed mate
Reply With Quote
  #77  
Old 01-11-2005, 01:45 PM
apfparadise apfparadise is offline
 
Join Date: Jan 2005
Location: Northridge CA
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

CS, will this work if I need to do that to 12 Groups? Dont ask why
Reply With Quote
  #78  
Old 01-11-2005, 03:01 PM
MajorFm.com MajorFm.com is offline
 
Join Date: Dec 2004
Location: UK
Posts: 402
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Creative Suite
MajorFm.com

i shall try to add this options
I look forward to it... Thank u for keepin this hack updated with your support and updates... its appreciated.
Reply With Quote
  #79  
Old 01-11-2005, 04:30 PM
PuntoPower PuntoPower is offline
 
Join Date: Apr 2004
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this support swf (flash) banners??
Reply With Quote
  #80  
Old 01-11-2005, 05:48 PM
we_scooter we_scooter is offline
 
Join Date: Aug 2002
Location: KSA
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got every thing as being instructed in the upgrade guid , but stil the banner ads not showing ..!!

:surprised:

here are my settings for the banner and still nt showing , I did all the equired steps..
Reply With Quote
  #81  
Old 01-11-2005, 07:21 PM
J-TEK J-TEK is offline
 
Join Date: May 2004
Location: FL
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Creative Suite
J-TEK

just upload the attachment file to your admincp folder , & then run it using your browser , & don't forget to remove the code from the global.php file
What attachment file? The installer?
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 09:50 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08057 seconds
  • Memory Usage 2,344KB
  • 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
  • (5)bbcode_php
  • (2)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)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