vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Add a banner image to each forum (vb3.5) (https://vborg.vbsupport.ru/showthread.php?t=94119)

Zachariah 03-18-2006 08:12 PM

going to do a an update in a wook or so ;D

skcyber 03-19-2006 10:47 AM

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

i love your plug !!! lol

megnin 03-19-2006 05:36 PM

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.

Zachariah 03-20-2006 01:03 AM

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.


rnmcd 03-20-2006 01:35 AM

Would it be a major change to have multiple (but smaller) banner ads to each forum?

Zachariah 03-20-2006 02:15 AM

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>


rnmcd 03-20-2006 02:21 AM

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?

Zachariah 03-20-2006 10:49 AM

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

Karsh 03-21-2006 04:52 PM

no XML file in the zip i downloaded..

davesx 03-26-2006 06:12 AM

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


All times are GMT. The time now is 03:19 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.01242 seconds
  • Memory Usage 1,751KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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