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)

Beermonster 01-09-2005 05:16 PM

Quote:

Originally Posted by MajorFm.com
Can the banners be set so they expire after a period of time or even better...

Can the advertiser sign up, upload their banner, pay for the time requested, and it simply sits in admincp waiting a simple accept link (banner approval)

The admin clicks the link and the banner is added for the time paid for...

not in this hack

Viks 02-24-2005 11:34 PM

A very useful modification. ++

Would like to request to update instructions to add code for Mozilla / Netscape browsers.

overall +++

Q-v-n-s-Q 03-06-2005 05:49 AM

Nice hacks <3

bumwrap 03-14-2005 12:47 AM

Quote:

Originally Posted by Spinball
There is a Firefox and Opera incompatibility in your code.
As it stands, in those browsers, the banners are displayed in the middle of the column rather than right justified. This is because your table HTML is wrong.

That didn't work. I tried it 3 times. Totally messed it up. I changed it back. Any other codes to help.

Protoman 03-17-2005 06:00 PM

bump, code for the table display does not work in mozilla or opera still. fix on page 5 doesn't work.

Shackbase 03-21-2005 08:24 PM

hows this work for 3.0.7 and instead of banner images - is it possible to just have it say:

sponsored by: NAME/Link here ?

--Tone

Protoman 03-21-2005 10:56 PM

I installed it on 3.0.7 without fault other than the browser problems. keeping me from using it.

I "think" this should work.. haven't tried it.. but you would use the banner image field.
you'd enter 'Oogle' in the image link field and you'd see this on your page.
ie( "Sponsored by" Oogle)


In template forumhome_forumbit_level2_post,

find:
PHP Code:

<!-- Ad Banner Start -->
<
table align="right" width="15%" border="0">
<
div align="center" valign="top" valign="top">    
<if 
condition="$forum['fhbanner']"><font size="1">$forum[fhmessage]</font><br><a href="http://$forum[fhbannerlink]target="_blank"><img src="images/fhbanner/$forum[fhbanner]alt="$forum[fhbannerlink]border="0" /></a></div></if></table>
<!-- 
Ad Banner end --> 

replace with:
PHP Code:

<!-- Ad Banner Start -->
<
table align="right" width="15%" border="0">
<
div align="center" valign="top" valign="top">    
<if 
condition="$forum['fhbanner']"><font size="1">$forum[fhmessage]<a href="http://$forum[fhbannerlink]target="_blank">$forum[fhbanner]</a></div></if></font></table>
<!-- 
Ad Banner end --> 


Shackbase 03-22-2005 02:15 AM

wow - thank you - I might give that a whirl...

what are the browser problems you mentioned above?

--Tone

pcoskat 03-29-2005 05:09 PM

Quote:

Originally Posted by iKwak
If anyone know how to do (see the attachment #51) the alteration for this hack, please let us know. Thanks a lot.

This is my preference, too.

Can it be done for 3.0.7. Please let me know.

bumwrap 04-01-2005 06:39 PM

bump, code for the table display does not work in mozilla or opera still. fix on page 5 doesn't work.

EchoZA 04-11-2005 01:09 PM

Just installed on 3.0.7, double checked everything and still nothing displaying in sub forums? Any ideas?

artonex 05-10-2005 04:16 PM

Yes i would like to know if this works on vb 3.0.7 without any problems.

Beermonster 05-10-2005 04:21 PM

Quote:

Originally Posted by EchoZA
Just installed on 3.0.7, double checked everything and still nothing displaying in sub forums? Any ideas?

AFAIK there shouldn't be any problem, if you want me to look at it I will, apart from that not sure what to sugest

grecostimpy 05-30-2005 04:30 PM

any word on making this work with Firefox/Netscape?

LuBi 06-09-2005 03:56 AM

Quote:

Originally Posted by grecostimpy
any word on making this work with Firefox/Netscape?

http://www.suprascene.com/tmp/notinmozilla.jpg

any fix? i need to go live and i love this hack. it seems like a simple table issue.. but I dunno.

EchoZA 06-09-2005 10:54 AM

Quote:

Originally Posted by Beermonster
You can all you need to do is install them both ;)

When you say both! Which 2 are you refering too?

jimnyc 06-09-2005 04:24 PM

Not sure what I missed as I went step by step with this hack and everything went without a hitch. I'm looking everywhere in the AdminCP and I can't find where you control this hack. What could I have missed that would keep it from showing in my CP?

Thanks!

jimnyc 06-10-2005 01:07 AM

Quote:

Originally Posted by jimnyc
Not sure what I missed as I went step by step with this hack and everything went without a hitch. I'm looking everywhere in the AdminCP and I can't find where you control this hack. What could I have missed that would keep it from showing in my CP?

Thanks!

I've triple checked every step and all seems to have went well, yet I still can't find the options in the AdminCP. Has anyone else gotten this to work in version 3.0.6?

Thanks!

LuBi 06-10-2005 01:30 AM

ok i'll just say it.

Admin CP > Forums & Moderators > Forum Manager > Edit Forum

now there's two ways you could have figured this out.

A.) looking at the second attached picture

B.) remembering you edited admincp/forum.php

glad i could help :ermm:

now can anyone figure out a Mozilla fix for this hack? :squareeyed:

jimnyc 06-10-2005 01:39 AM

Quote:

Originally Posted by LuBi
ok i'll just say it.

Admin CP > Forums & Moderators > Forum Manager > Edit Forum

now there's two ways you could have figured this out.

A.) looking at the second attached picture

B.) remembering you edited admincp/forum.php

glad i could help :ermm:

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?

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 ?

siliconfinance 01-03-2008 03:37 AM

how about 3.6.8 PL2


All times are GMT. The time now is 05:05 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.01466 seconds
  • Memory Usage 1,825KB
  • 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_php_printable
  • (12)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
  • (31)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