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)
-   -   Banner ad on forum Home (https://vborg.vbsupport.ru/showthread.php?t=63994)

LuBi 06-10-2005 01:49 AM

Quote:

Originally Posted by jimnyc
I checked there at least a dozen times and the banner options just don't appear when I choose edit forum. What could I have done wrong that it doesn't even show in the CP?

honestly not much, admincp/forum.php is the only file to edit.. So you've got 3 queries to run, 1 file to add to twice, 1 template to add to, and 3 phrases to add. Then all you do is make a dir "fhbanner" in your forums /images folder..

enginethatcan't 06-27-2005 05:31 PM

getting this error when I hit save in the admin cp

Invalid SQL: UPDATE forum SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Anabolics 101 - Sponsored by AG-Guys.com',
description = 'The only place for the most up to date, hardcore enhancement information.
<br><font color=\"9D0000\">Sponsored by</font><a href=\"http://www.AG-Guys.com
\"><b>
</b> AG-Guys.com --- Cialis, Viagra, Liquidex, Clen, T3 and more!
</a>',
fhbanner = 'ag.gif',
fhbannerlink = 'www.ag-guys.com',
fhmessage = 'Sponsored by',
link = '',
displayorder = '1',
daysprune = '-1',
parentid = '3',
newpostemail = '',
newthreademail = '',
styleid = '0',
password = '',
options = '89799',
parentlist = '4,3,-1'
WHERE forumid=4
mysql error: Unknown column 'fhbanner' in 'field list'

mysql error number: 1054

Date: Monday 27th of June 2005 02:29:48 PM
Script: http://www.anabolicevolution.com/admincp/forum.php
Referer: http://www.anabolicevolution.com/adm...t&forumid=4&s=
Username: ********
IP Address: **.***.***.***.*

Beermonster 06-27-2005 05:54 PM

Quote:

Originally Posted by enginethatcan't
getting this error when I hit save in the admin cp

Invalid SQL: UPDATE forum SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Anabolics 101 - Sponsored by AG-Guys.com',
description = 'The only place for the most up to date, hardcore enhancement information.
<br><font color=\"9D0000\">Sponsored by</font><a href=\"http://www.AG-Guys.com
\"><b>
</b> AG-Guys.com --- Cialis, Viagra, Liquidex, Clen, T3 and more!
</a>',
fhbanner = 'ag.gif',
fhbannerlink = 'www.ag-guys.com',
fhmessage = 'Sponsored by',
link = '',
displayorder = '1',
daysprune = '-1',
parentid = '3',
newpostemail = '',
newthreademail = '',
styleid = '0',
password = '',
options = '89799',
parentlist = '4,3,-1'
WHERE forumid=4
mysql error: Unknown column 'fhbanner' in 'field list'

mysql error number: 1054

Date: Monday 27th of June 2005 02:29:48 PM
Script: http://www.anabolicevolution.com/admincp/forum.php
Referer: http://www.anabolicevolution.com/adm...t&forumid=4&s=
Username: ********
IP Address: **.***.***.***.*

Are you sure you have ran the sql query correct? it's saying that one of the fields isn't there

csidlernet 07-20-2005 06:26 AM

coolies thanks
/me hits install

veedee 01-19-2006 07:06 AM

Does anyone know if this will work for 3.5.1 ?

Beermonster 01-19-2006 07:09 AM

Quote:

Originally Posted by veedee
Does anyone know if this will work for 3.5.1 ?

Check my sig for details ;)

Howdy 03-16-2006 01:43 AM

I have it working on 3.53. Just had to change the admincp slightly from this in the directions:

Find:
$forum['description'] = convert_to_valid_html($forum['description']);

below add:
$forum['fhbanner'] = convert_to_valid_html($forum['fhbanner']);
$forum['fhbannerlink'] = convert_to_valid_html($forum['fhbannerlink']);
$forum['fhmessage'] = convert_to_valid_html($forum['fhmessage']);

to this -->
below add (instead of above):
$forum['fhbanner'] = str_replace('&amp;', '&', $forum['fhbanner']);
$forum['fhbannerlink'] = str_replace('&amp;', '&', $forum['fhbannerlink']);
$forum['fhmessage'] = str_replace('&amp;', '&', $forum['fhmessage']);

Beermonster 03-16-2006 05:46 AM

Quote:

Originally Posted by Howdy
I have it working on 3.53. Just had to change the admincp slightly from this in the directions:

Find:
$forum['description'] = convert_to_valid_html($forum['description']);

below add:
$forum['fhbanner'] = convert_to_valid_html($forum['fhbanner']);
$forum['fhbannerlink'] = convert_to_valid_html($forum['fhbannerlink']);
$forum['fhmessage'] = convert_to_valid_html($forum['fhmessage']);

to this -->
below add (instead of above):
$forum['fhbanner'] = str_replace('&amp;', '&', $forum['fhbanner']);
$forum['fhbannerlink'] = str_replace('&amp;', '&', $forum['fhbannerlink']);
$forum['fhmessage'] = str_replace('&amp;', '&', $forum['fhmessage']);


Or you could have just installed the 3.5.x plugin found here ;)

Howdy 03-16-2006 06:27 PM

yea I just saw that... :D

[email protected] vbmenu_register("postmenu_1144399", true); 12-24-2006 11:00 AM

Anyone know if this would work on 3.6.3 or better ? Maybe a similar hack somewhere else ?


All times are GMT. The time now is 04:54 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.01270 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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