Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Add a banner image to each forum (vb3.5) Details »»
Add a banner image to each forum (vb3.5)
Version: 1.6, by Zachariah Zachariah is offline
Developer Last Online: Jan 2020 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 08-11-2005 Last Update: 11-27-2005 Installs: 325
DB Changes Uses Plugins Template Edits
 
No support by the author.

/* -----------------8/11/2005-----------------
[HowTo] Add a banner option image w/ Link or HTML paste to each forum V.1.6
Tested on vBulletin: 3.5.0 RC2

Zachariah - http://www.gzhq.net

This is a VB3.5 Ver of my previous hack:

*** Add a banner image to each forum (VB 3.0x)
https://vborg.vbsupport.ru/showthread.php?t=61555

*** Info:
This modification will Add an image banner w/ link Or paste in your own HTML code option per forum. These files can be any image. (png, jpg, gif, ect). This will be located after the $navbar on FORMDISPLAY. This images can be located on the localhost or on a remote server.
--------------------------------------------------*/

Upload the "plug-in" and edit 2 template, It's a snap.



Changelog:
------------
1.6
Banner shows up on each thread
adds: 1 more template edit to the install
Requested by: - Ryan McBain

** Note: 1.5 - 1.6 needs only to edit SHOWTHREAD not Reinstall the XML files

1.5
Added HTML option (tested w/ Java and Iframe from phpadsnew output)
Added 3.x to VB 3.5 upgrade XML file.

** Random Banner Code Java

**Please click " Install " to track updates.

Show Your Support

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

Comments
  #182  
Old 03-18-2006, 08:12 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

going to do a an update in a wook or so ;D
Reply With Quote
  #183  
Old 03-19-2006, 10:47 AM
skcyber skcyber is offline
 
Join Date: Nov 2005
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks you for your answer, it's working..

i love your plug !!! lol
Reply With Quote
  #184  
Old 03-19-2006, 05:36 PM
megnin megnin is offline
 
Join Date: Mar 2006
Location: Fort Lauderdale
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I'm closing in on my problem getting this to work...
In the "(vb3.x) add banner to forum 1.6.txt" file where it says:
Quote:
/////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////NEW INSTALL////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////

// Adds fields to forum table called banner, bannerlink, banneralt, bannercode.

//////////////////////
Run Query:
//////////////////////

ALTER TABLE `forum` ADD `banner` VARCHAR( 50 ) NOT NULL ;
ALTER TABLE `forum` ADD `bannerlink` VARCHAR( 250 ) NOT NULL ;
ALTER TABLE `forum` ADD `banneralt` VARCHAR( 250 ) NOT NULL ;
ALTER TABLE `forum` ADD `bannercode` mediumtext ;
...I assumed that was code that would execute during install. I now believe that I'm suppose to run those four query commands to add those fields to the forum table. I still don't know how to do that though.
Under "Maintenance" is "Execute SQL Query". Is that where I run the above query?
When I click on "Execute SQL Query" in the Control Panel it says, "You are not authorized to execute SQL queries".

I'm stuck.
Reply With Quote
  #185  
Old 03-20-2006, 01:03 AM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by megnin
I think I'm closing in on my problem getting this to work...
In the "(vb3.x) add banner to forum 1.6.txt" file where it says:


...I assumed that was code that would execute during install. I now believe that I'm suppose to run those four query commands to add those fields to the forum table. I still don't know how to do that though.
Under "Maintenance" is "Execute SQL Query". Is that where I run the above query?
When I click on "Execute SQL Query" in the Control Panel it says, "You are not authorized to execute SQL queries".

I'm stuck.
Product:
banner_image.xml

Runs all of that for you on install. Placement of html edites in 2 templates is all you have to do.

Code:
--------------------------------------------------*/
1) Choose the right XML file.

*** How to Install:

In your Admin Control Panel

Admincp => Plugin System => Manage Products
Click [Add/Import Product]
Browse for the file "banner_image.xml"
Allow Overwrite should be on
Import

---------------------------------
2) Edit and add / replace(old code).

*** Edit 2 Template(s) : FORUMDISPLAY, SHOWTHREAD

Find:
$navbar

below add:


<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
</if>
</if>
</if>


--------------------------------------------
*** Useage:

These files can be any image. (png, jpg, gif, ect) or paste your HTML code.

To add banners go to Forums & Moderators => Forum Manager => Edit forum => scroll do to the bottom enter your details.
Reply With Quote
  #186  
Old 03-20-2006, 01:35 AM
rnmcd rnmcd is offline
 
Join Date: Aug 2004
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would it be a major change to have multiple (but smaller) banner ads to each forum?
Reply With Quote
  #187  
Old 03-20-2006, 02:15 AM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I used the "html area" to paste custom code.
- Java rotation , custom html, dhtml, ect.

2 images w/ link in HTML area.
http://www.gzhq.net/forums/forumdisplay.php?f=235
EX:
Code:
<a href="http://www.google.com">
<img border="0" src="http://www.google.com/logos/winter_holiday05_1.gif" width="276" height="120"></a>
<a href="http://www.google.com">
<img border="0" src="http://www.google.com/logos/winter_holiday05_1.gif" width="276" height="120"></a>
Reply With Quote
  #188  
Old 03-20-2006, 02:21 AM
rnmcd rnmcd is offline
 
Join Date: Aug 2004
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachariah
I used the "html area" to paste custom code.
- Java rotation , custom html, dhtml, ect.

2 images w/ link in HTML area.
http://www.gzhq.net/forums/forumdisplay.php?f=235
EX:
Code:
<a href="http://www.google.com">
<img border="0" src="http://www.google.com/logos/winter_holiday05_1.gif" width="276" height="120"></a>
<a href="http://www.google.com">
<img border="0" src="http://www.google.com/logos/winter_holiday05_1.gif" width="276" height="120"></a>

Sorry buy I'm quite a novice :nervous: and I don't understand your previous post.

Are you saying that we don't need your hack to post banners? Just add code to the html area?
Reply With Quote
  #189  
Old 03-20-2006, 10:49 AM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rnmcd
Sorry buy I'm quite a novice :nervous: and I don't understand your previous post.

Are you saying that we don't need your hack to post banners? Just add code to the html area?
Hello,

After hack install:

In the creation of the forum or edit of the forum you wish to have the banner there is an "Html Code" area. This can be used for custom code if you want more than 1 banner.
https://vborg.vbsupport.ru/attachmen...9&d=1125806409

In the EX shown in post: #186 - I pasted the above code.

You can also use a simple Java rotation script in that "html code" area.
https://vborg.vbsupport.ru/showpost....1&postcount=80
Reply With Quote
  #190  
Old 03-21-2006, 04:52 PM
Karsh Karsh is offline
 
Join Date: Dec 2005
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no XML file in the zip i downloaded..
Reply With Quote
  #191  
Old 03-26-2006, 06:12 AM
davesx davesx is offline
 
Join Date: Mar 2006
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for this zach, works great.

just wanted to know if there is a way i can add this to the bottom? like above the quick reply but after the last post in the thread?

would i just update showthread and forum display and put the same code in the right spot...or would i likely run into problems because that would display the same image twice? like that would only work if i were doing adsense, not banners?

thanks
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 01:03 PM.


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.05384 seconds
  • Memory Usage 2,312KB
  • 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
  • (3)bbcode_code
  • (4)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