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)

gc1 09-21-2005 11:40 AM

Works perfect thanks

Brinnie 09-21-2005 06:55 PM

This is nice.

So if I have a music banner, I'll put it on the music forum. :)

Ramsesx 09-22-2005 07:31 PM

I get this error what can be wrong?
MySQL Error : Unknown column 'banner' in 'field list'
Error Number : 1054

Zachariah 09-22-2005 10:52 PM

Did you skip the XML file import?

This is a Product to be imported via. plug-in system.

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 off
Import

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--
*** How to Upgrade:
There are 2 old ver. of this hack. What do I use?
What do you have installed?
1. banner, alt, link (use: 3.x to 3.5no-code.xml) v1.2
2. banner, alt, link, HTML (use: 3.x to 3.5code.xml) v1.5


In your Admin Control Panel After you upgrade to VB3.5.

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

Quote:

Originally Posted by Ramsesx
I get this error what can be wrong?
MySQL Error : Unknown column 'banner' in 'field list'
Error Number : 1054


Ramsesx 09-23-2005 09:37 AM

First I imported the banner_image.xml, than in ForumDisplay I put after $navbar:

<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>


Because it was not working I imported the 3.x to 3.5no-code.xml.
Now I had 2 entries in the plugin folder, I unsinstalled the old one and now having only the Add Banner Upgrade 1.5 in the pluginfolder but this mysql error is coming if I want to save a Forum.
Thank you

Zachariah 09-23-2005 11:42 AM

vb3.5x new install - banner_image.xml

vb3.0x upgrade - 3.x to 3.5code.xml - If you have already upgraded to ver. 1.5 in VB3.x hack.
vb3.0x upgrade - 3.x to 3.5no-code.xml - If you have ver. 1.2 in VB3.x hack.

After the install you should have:

2 plugins
add Banner - AdminCP
add Banner - ForumDisplay

Your manual template edit is fine, and will stay there even if you install / uninstall the plugins / products.

All XML files will make the same plugins. They have different DB edits.

Ramsesx 09-23-2005 12:26 PM

Cool, now it is working, thank you for this great plugin Zachariah :) :banana:

Ryan McBain 09-28-2005 07:14 AM

I must be doing something wrong cause I can't get the banners to show up in the showthread forums (where you see the posts of other people) just the main forums.

Zachariah 09-28-2005 03:53 PM

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

TomAlien 10-03-2005 09:11 AM

How can I use this plugin for a Main Page banner?


All times are GMT. The time now is 05:46 AM.

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.01355 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)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