vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [Adv] banners Hack (https://vborg.vbsupport.ru/showthread.php?t=73847)

Creative Suite 01-05-2005 10:00 PM

[Adv] banners Hack
 
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

Montadiat.com 01-05-2005 11:34 PM

Thank You Creative Suite ,

great work ,

best wishes :)

lasto 01-05-2005 11:51 PM

here is neat that - can for certain forums make a banner saying PAYPAL me NOW :)

cheers m8 will test it 2morrow

lanc3lot 01-06-2005 12:33 AM

If its working ok with 3.0.3, i will test it tommorow...is a most wanted hack i think, i havent found anything like that till now

Is there a limit in the banners? i mean can we upload 5-10 banners, and to be shown after each refresh?

Creative Suite 01-06-2005 01:07 AM

lasto

thanks 4 replying , we are waiting for your test and it's results ;)

lanc3lot

Quote:

If its working ok with 3.0.3, i will test it tommorow
yeah , its working ok with 3.0.3 :)

Quote:

Is there a limit in the banners
you can add unlimited banners :)

Quote:

can we upload 5-10 banners, and to be shown after each refresh?
yeah , you can do that by using installtion-english.txt which i attached it in this post :)

Creative Suite 01-06-2005 08:44 AM

there are an little comment :) , in the installtion-english.txt i had sayed

Quote:

11- in FORUMHOME & SHOWTHREAD & FORUMDISPLAY templates
## find
##-------------
$header
##--------------
## in Above put - [ or any place that you want the banner shown on it ]
##--------------
<br><center>$shir</center><br>
##--------------
##
i mean in below , please keep sure that you edit the templates :), if you are using the hack

best wishes ;)

8MM 01-06-2005 11:49 AM

Nice first hack i installed !


:)

we_scooter 01-06-2005 01:49 PM

ياحبي لك ... توي امس كاتب طلب ابي الهاك هذا ..

انت شي ...

شكرا عزيزي
thanx thats awsome

Creative Suite 01-06-2005 02:00 PM

8MM

Thanks 4 replying & 4 clicking install :p

we_scooter

حياك الله يالغالي والحمدلله ان أفدناك ولو بشي قليل ;)

لاتنسى الضغط على انستول

welcome any time dear :)

lasto 01-06-2005 02:53 PM

works fine testing local to me

cheers m8 just need to find some decent banners now :)

NuclioN 01-06-2005 03:42 PM

Parse error: parse error, unexpected $ in /forums/index.php on line 721

BarKeep 01-06-2005 04:02 PM

you may have missed a } at the end of something.

NuclioN 01-06-2005 04:07 PM

Quote:

Originally Posted by BarKeep
you may have missed a } at the end of something.

Yes that's it, tnx :)

Creative Suite 01-06-2005 04:11 PM

NuclioN

you may have missed a } at this code

Code:

$doquery = $DB_site->query("select * from " . TABLE_PREFIX . "adv where main ='1' order by  'id' desc");
while($row=$DB_site->fetch_array($doquery)){
eval('$shir .= "' . fetch_template('adv_creativeSuite') . '";');
}

& make sure that you put the code in above of

Code:

eval('print_output("' . fetch_template('FORUMHOME') . '");');
BarKeep

thanks 4 helping :)

best wishes ;)

NuclioN 01-06-2005 04:38 PM

This is a nice addon creative :) Is it possible to add code so that the logo is replaced with the adv image in forumdisplay and showthread? In this case the header image/logo will stay present in forumhome but is variable as adv image. Now the adv image is placed under or above the header image.

Creative Suite 01-06-2005 05:09 PM

NuclioN

i think it's possible to do that , becouse we need to change the logo vars in header template :paranoid: & that mean we should edit all files.

best wishes :up:

SVTOA 01-07-2005 12:27 AM

This seems an awful lot like this hack:
https://vborg.vbsupport.ru/showthrea...135#post591135

Am I missing the difference here?

lanc3lot 01-07-2005 01:42 AM

Ok installed...i have noticed some bugs(or i see them as bugs:))

So here we are:

a) It seems, for a very strange reason, that the whole banner system, doesnt work for Netscape users !!!

U can go to my page : www.gamers.gr/board and see that if u go through IE u can see the banner, but if u go through Netscape u dont see it !!!

Also the same thing occurs in Firefox users !!!

Can we find any solution on that?

b) Also, i noticed that every time i go to the admin page to edit the banner, the drop down menu which says: "On Forumhome" and its yes or no, its on default to nothing and not in the option u put the last time.

c) How can u put more than one forum to be displayed the banner system? I added in the forum home, and in one more, but i cant find the solution to add it in more...For example i put the forum id 6, and the 7, 8, 9 but only showed in 6. Then i tryed put it with ; between them..but nothing again:(

Also, can we add that in other pages as well? For example in the arcade page, or in the Faq, Articles page:)

d) Is there any way, we can have simple stats in the admin page for that? for example how many ppl clicked in the banner, how many times has been shown, etc

e) Can we put a code or something above the banner, which says: "This is an advertisment" or "This site is sponsored by" ? U can see an example to sites like Gamespot.com :)

Thanks again for the hack:)

jamesk 01-07-2005 05:01 AM

Quote:

Originally Posted by SVTOA
This seems an awful lot like this hack:
https://vborg.vbsupport.ru/showthrea...135#post591135

Am I missing the difference here?

I'm wondering the same.

d7me4ever 01-07-2005 07:41 AM

Hello

hi Creative Suite

Nice work

thanx

Creative Suite 01-07-2005 10:59 AM

SVTOA & jamesk

there are big difference , this hack https://vborg.vbsupport.ru/showthrea...135#post591135

allows the administrators to add banners in forum sections & there threads only , & the banners which show in threads is as the banners which show in the section , & you can not add banners to the forum home

but in our hack here , we can add banner to the forumhome "only"
we can add banners to the forum sections only "without it threads"
we can add banners to the thread only "without the section that we add the thread to it"

or we can add the banners in the forumhome , forum section / s and thread /s in 'one' adding step.

that's all :)

lanc3lot

hoolla , alot of comments :p

Quote:

It seems, for a very strange reason, that the whole banner system, doesnt work for Netscape users !!!

U can go to my page : www.gamers.gr/board and see that if u go through IE u can see the banner, but if u go through Netscape u dont see it !!!

Also the same thing occurs in Firefox users !!!

Can we find any solution on that?
well , honestly i don't know what's the problem with Netscape or fire fox , i hope that any one of coders who is using netscap or fire fox give us the solution !

Quote:

b) Also, i noticed that every time i go to the admin page to edit the banner, the drop down menu which says: "On Forumhome" and its yes or no, its on default to nothing and not in the option u put the last time.
now i fix it , just upload adv-admincp.php file which i attached it in this post to the "admincp" folder :) and overwrite it with the oldest one

Quote:

c) How can u put more than one forum to be displayed the banner system? I added in the forum home, and in one more, but i cant find the solution to add it in more...For example i put the forum id 6, and the 7, 8, 9 but only showed in 6. Then i tryed put it with ; between them..but nothing again

Also, can we add that in other pages as well? For example in the arcade page, or in the Faq, Articles page

d) Is there any way, we can have simple stats in the admin page for that? for example how many ppl clicked in the banner, how many times has been shown, etc
well , i shall add this options in new upgrade of this hack , soon

Quote:

e) Can we put a code or something above the banner, which says: "This is an advertisment" or "This site is sponsored by" ? U can see an example to sites like Gamespot.com
yeah , you can do that by edit the templates which we put the $shir var in it & putting your code above or below the $shir var :)

i hope that i had answered all your questions

best wishes :up:

Creative Suite 01-07-2005 11:01 AM

d7me4ever

u r welcome dear ;)

تحياتنا لكم ;)
my regards

NuclioN 01-07-2005 12:11 PM

The banner is not showing in showtread. How to let it do that? :)

Creative Suite 01-07-2005 12:25 PM

NuclioN

in SHOWTHREAD template

Find
#############
$header
#############
in below put this code
#############
<br><center>$shir</center><br>
#############

& make sure that you had edited the showthread.php file

best wishes

NuclioN 01-07-2005 12:39 PM

hm..i've done that :(

Creative Suite 01-07-2005 12:44 PM

NuclioN

are you sure that you had put the correct thread id in the input area ?

NuclioN 01-07-2005 12:54 PM

O i thought it whas showing in all threads in that subforum, sorry :) Can this be done?

Creative Suite 01-07-2005 01:15 PM

NuclioN

i shall add this option in new upgrade of this hack , soon :)

lanc3lot 01-07-2005 03:50 PM

So we wait for the new version:) hope it will be soon:)

Also if someone knows why this cant be seen in Firefox or Netscape users, please enlight us:)

bigcurt 01-07-2005 07:56 PM

Yeah Id like to be enlightened also lol

apfparadise 01-08-2005 06:00 AM

OK, I have installed the banner, but a small problem :

I have a border around the forum and the part where the banner is goes out of the borders which makes it look awkward. Here is a link to the index page:

My Index

How can I make it so that it fits within the borders like the rest of the forum?

Thanks, great hack. BTW, I agree if you gave us STATs on the banner use that would be amazing. IF I am to have sponsors, they will need those stats.

NuclioN 01-08-2005 11:19 AM

Please make it so it can display swf flash banners

erratic assasin 01-08-2005 12:44 PM

installed on 3.0.5 and all is well many thanks for a fantastic hack

jamesk 01-08-2005 09:39 PM

question, I do not understand why you use this as step 2:

-> create new template "in styles wich you want the banners be shown on it"

How do i go about this? I don't understand the statement really.

Creative Suite 01-08-2005 10:08 PM

apfparadise

what about putting the $shir var below the $navbar var ? :)

NuclioN

i shall try to do that :)

erratic assasin

thanks 4 replying & clicking install :p

jamesk

just go to the style managar -> in the drop-down box select "add new template" , thats all :)


best wishes

memobug 01-08-2005 10:13 PM

I'm having a hard time telling from the screenshots what this hack does because I can't read it. Is it intended for banner ads? Are banners imported or selected for display on all forums, or certain forums, or what? I am looking for something to display forum-specific banners so people can better tell what portion of the site they are in.

Regards,

Matt

Creative Suite 01-08-2005 10:23 PM

memobug

just read this reply please :)

https://vborg.vbsupport.ru/showpost....3&postcount=21

Elfo King 01-08-2005 10:31 PM

I have a problem.....i have installed all ok,but can i try to Add a ban into admincp i enter into login loop....this is the step when i try to Add,Edit or Delete a ban....
Click
login
"Thank you for logging in"
login

....and loop & loop

Any solution ?
have a bug into admincp/adv-admincp.php ? (i have just uploaded the new file u have attacched...)
Thx in advice

Creative Suite 01-08-2005 10:43 PM

Elfo King

use this one :)

Elfo King 01-09-2005 12:12 AM

sob...not work...i loop into login to admincp :(
i have php 4.3.10..syntax are different?


All times are GMT. The time now is 04:50 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.01512 seconds
  • Memory Usage 1,829KB
  • 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
  • (2)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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