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)

WreckRman2 07-16-2004 04:42 AM

Beermonster, Is there any way to modify this hack to just it to display forum specfic banner ads that show on top of ceratin forums?

Beermonster 07-16-2004 05:39 AM

Quote:

Originally Posted by IndyWebDesign
Beermonster, Is there any way to modify this hack to just it to display forum specfic banner ads that show on top of ceratin forums?

You've lose me, each forum can have it's own ad displayed

WreckRman2 07-16-2004 05:54 AM

What I meant was to be displayed on top of each forum listing as well as on every thread under that forum. I've just finished up my doings thanks in great part to your hack. If you like I will gladly share it with you. My little variation works directly with phpAdsnew so that tracking can be done on the ads.

Here is an example:

http://www.rcflying.net/images/example.jpg

It shows a very large banner, 700x125 is what I am using.

Dennis B 07-21-2004 12:56 AM

Beermonster,

This works like a charm on my forums for users with IE, but users with Nescape browsers are reporting that the ad doesn't align correctly. I have verified that myself, please check out the attachment. Any way to correct this?

Dead End Society 08-02-2004 09:55 PM

Sorry for not knowing everything, I have installed about 5 hacks already, but am having problems understanding what to do for the first part of this hack, where it is asking me to add field to the forum table and the "Run Query" part.

Can someone be a little more clear for me?

Dennis B 08-03-2004 12:18 AM

Cavs,

You need to login to your database and run those queries there.
Alternatively you may try to run them in your admincp if you have the appropriate privileges set.

Dead End Society 08-03-2004 03:13 AM

^ I still have no clue what to do though, that's doing nothing for me. Remember, I'm a raw newbie. How do I run them? Where exactly are they?

Beermonster 08-03-2004 05:35 AM

Quote:

Originally Posted by Cavs Central
Sorry for not knowing everything, I have installed about 5 hacks already, but am having problems understanding what to do for the first part of this hack, where it is asking me to add field to the forum table and the "Run Query" part.

Can someone be a little more clear for me?

The query needs to be run in mysql, go to phpmyadmin choose your database, then click on the sql tab you will then see a box that says Run SQL query/queries on database just paste the contents in to it and press go :)

ricoracing 08-11-2004 11:40 AM

if I'm the admin and Im' in the adminCP panel and go down to import and maint.

I then tell it to execute SQL query and it says I don't have access. HOw is that when I am the admin of the site.

I also can't do it from the hosting center when I go to the mysql option.

I"m also a newbie and have no idea of what's going on.. LOL

I think once i get the tables setup I"ll be fine.. :ermm:

Beermonster 08-11-2004 12:55 PM

If your hosting has cpanel click on the mysql icon then scroll down to the bottom and you will see a link to phpmysql click on that and it will take you to another page, there you can choose your database and them run the query.


As for not being able to run it from admincp I think, and I might be wrong, but edit your includes/config.php and find
// ****** USERS WITH QUERY RUNNING PERMISSIONS ******
you will see $canrunqueries = '1';
If you setup the forum then you should be user #1 but if someone set it up for you then made you a member you will have a different number.
Also make sure $superadministrators in the same file has your number in it.

Hope that works for you :)

Kwak 08-24-2004 04:27 AM

Using this modification hack, could you make the image link appear in this spot?

Beermonster 08-24-2004 05:29 AM

Quote:

Originally Posted by iKwak
Using this modification hack, could you make the image link appear in this spot?


Yes you would just need to alter it slightly

Kwak 08-24-2004 08:31 AM

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

roundhost 08-30-2004 05:19 AM

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.

I am interested in this too, i am going to try, but dont blame me if i cant do it! lol

roundhost 08-30-2004 05:24 AM

I am guessing it simply requires that the template edit as to where the ads are posted is moved into the category part rather than the forum part, i shall try to get it working ;)

Kwak 08-30-2004 07:53 PM

Quote:

Originally Posted by roundhost
I am guessing it simply requires that the template edit as to where the ads are posted is moved into the category part rather than the forum part, i shall try to get it working ;)

Thanks roundhost. Hope it works out. If anyone else knows how to, let us know. :squareeyed:

bdjncox 09-08-2004 03:38 PM

Any progress from anyone on adding this to the category bar instead of the forum bar?

ht330 09-17-2004 05:45 PM

Can someone help me here? I've followed every instruction, and can't see the banner. I've also rebuilt the styles and Forum information. What could I be missing?

ht330 09-17-2004 06:02 PM

Quote:

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

Where do I get the AdminCP file to administer the banner files?

Beermonster 09-17-2004 06:48 PM

Quote:

Originally Posted by ht330
Where do I get the AdminCP file to administer the banner files?


forum & moderators/forum manager then choose the forum you want to add the banner to, have a look at the attachments in the first post

ht330 09-17-2004 06:59 PM

Quote:

Originally Posted by Beermonster
forum & moderators/forum manager then choose the forum you want to add the banner to, have a look at the attachments in the first post

Got it. The data is in there correctly, but I still don't see the banner. Is there a cache that needs to get updated or something? If I view source of the HTML, I don't see any reference to my jpg file...

Beermonster 09-17-2004 07:05 PM

Quote:

Originally Posted by ht330
Got it. The data is in there correctly, but I still don't see the banner. Is there a cache that needs to get updated or something? If I view source of the HTML, I don't see any reference to my jpg file...


Nothing needs updating, double check the installation see if you have missed anything, if your still having problems I will install it for you.

CarolinaKid 09-21-2004 08:00 AM

I have sent a pm to the own of this hack...With a edit i done to allow this to work in the Categrory either top left or right or both and bottom left or right or both. If he aproves and see's no peoblems with it then you may have you hack edit :rolleyes:

CarolinaKid 09-22-2004 10:35 PM

chech this out might be useful. https://vborg.vbsupport.ru/showthread.php?t=69749

nnjj.net 09-25-2004 09:30 AM

I tried to do it on 3.3, its not working
check attach image

Beermonster 09-25-2004 09:32 AM

Quote:

Originally Posted by nnjj.net
I tried to do it on 3.3, its not working
check attach image

You haven't installed it correctly

nnjj.net 09-26-2004 04:39 AM

ok I did modify the mistakes, but after I put the bannar I can't open any forum and the posts is 0

see attcahed

Edisonian 10-04-2004 01:39 PM

Could either of you [Beermonster or CarolinaKid] help me install the hack that adds the mini-banner graphic to the category header? I can pay you a small fee via PayPal. Please PM and let me know.

Beermonster 10-04-2004 02:07 PM

Quote:

Originally Posted by Edisonian
Could either of you [Beermonster or CarolinaKid] help me install the hack that adds the mini-banner graphic to the category header? I can pay you a small fee via PayPal. Please PM and let me know.


Yes not a problem, pm sent

[email protected] vbmenu_register("postmenu_572461", true); 11-14-2004 08:38 PM

OK, I have been using this hack without problems. Well Done !!

Question......I have tried to have a sponsor image on a sub-forum that is not displayed on the forumhome. No joy. How can I get this to work on other forums that are sub forums?

I have my main forum sponsored by one company. Then on the sub forum I want another image. Can this be done?

Beermonster 11-15-2004 08:59 AM

Quote:

Originally Posted by mark@sb.ws
OK, I have been using this hack without problems. Well Done !!

Thanks, please click install then ;)

Quote:

Originally Posted by mark@sb.ws
I have my main forum sponsored by one company. Then on the sub forum I want another image. Can this be done?

Yes it can be but basically it would be another hack as you would need another set of boxes to put your details in etc.

Spinball 11-17-2004 07:57 AM

Hi Beermonster,
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.
Instead of

HTML Code:

<if condition="$forum['fhbanner']">
<table align="right" border="0"><div align="center" valign="top">...
...</div></table>
</if>

You should have
HTML Code:

<if condition="$forum['fhbanner']">
<table align="right" border="0"><tr><td align="center" valign="top">...
...</td></tr></table>
</if>

This fixes the problem. All tables should have a TR and TD in them.

Beermonster 11-17-2004 08:56 AM

Quote:

Originally Posted by Spinball
Hi Beermonster,
there is a Firefox and Opera incompatibility in your code.

Thanks for the update :)

[email protected] vbmenu_register("postmenu_573934", true); 11-19-2004 07:47 PM

Quote:

Originally Posted by Beermonster
Thanks, please click install then ;)



Yes it can be but basically it would be another hack as you would need another set of boxes to put your details in etc.

Install clicked ! Thanks for a wonderful hack !

Now can you help me with this other set of code? I would appreciate it beyond words. You guys that do this stuff are unreal and deserve lots of credit !

You say I need another set of boxes to put details in, but the boxes are already there in my control panel under the sub forum. It's just when I plug in info, it isn't displayed. What do you say? Help out a friend. :)

Beermonster 11-19-2004 08:28 PM

Quote:

Originally Posted by mark@sb.ws
Install clicked ! Thanks for a wonderful hack !

Now can you help me with this other set of code? I would appreciate it beyond words. You guys that do this stuff are unreal and deserve lots of credit !

You say I need another set of boxes to put details in, but the boxes are already there in my control panel under the sub forum. It's just when I plug in info, it isn't displayed. What do you say? Help out a friend. :)

OK I've quicky done it, you do need another box if you are displaying a different banner, like I said I've quickly done this and I've also had a couple of beers but I think it works :)


Code:

// Adds fields to forum table.

Run Query:
ALTER TABLE `forum` ADD `fhbanner2` VARCHAR( 50 ) NOT NULL AFTER `description` ;
ALTER TABLE `forum` ADD `fhbannerlink2` VARCHAR( 250 ) NOT NULL AFTER `fhbanner2` ;
ALTER TABLE `forum` ADD `fhmessage2` VARCHAR( 50 ) NOT NULL AFTER `fhbannerlink2` ;

------------------------------

Find in: admincp/forum.php

print_textarea_row($vbphrase['description'], 'forum[description]', $forum['description']);


below add:

print_input_row($vbphrase['fhbanner2'], 'forum[fhbanner2]', $forum['fhbanner2']);
print_input_row($vbphrase['fhbannerlink2'], 'forum[fhbannerlink2]', $forum['fhbannerlink2']);
print_input_row($vbphrase['fhmessage2'], 'forum[fhmessage2]', $forum['fhmessage2']);

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

below add:
$forum['fhbanner2'] = convert_to_valid_html($forum['fhbanner2']);
$forum['fhbannerlink2'] = convert_to_valid_html($forum['fhbannerlink2']);
$forum['fhmessage2'] = convert_to_valid_html($forum['fhmessage2']);
---------------------------------

Edit Template : forumhome_forumbit_level1_post

Find:
<tbody>
        <tr align="center">
                <td class="alt1Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]">

below add:

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



--------------------------------------------
Add these phrases:

Varname:
fhbanner2

text:
Banner 2

Varname:
fhbannerlink2

text:
Banner 2 Link

Varname:
fhmessage2

text:
Postbits 2 Banner text i.e. Sponsored By or Affiliate with

--------------------------------------------
Then,

Create a "fhbanner2" folder EX: $vbhome/images/fhbanner


[email protected] vbmenu_register("postmenu_573972", true); 11-19-2004 09:53 PM

I'm not sure you understand what I'm trying to do.

Go to www.sportbikes.ws and look at the "Pocketbike" forum. I have a sponsor already there. Done deal...happy.

Now go into that forum http://www.sportbikes.ws/forumdisplay.php?f=103 and you'll see a sub forum "FAQ". That's were I want to put the second sponsor. I put the one you see there now just using some html to get by.

In the admincp, if I go into that FAQ sub forum, I see all the fields that I do on the main forumhome page.

Is this your understanding? Maybe I'm the one needing to have a few beers. :)

Thanks for the help !!

Gottcha 12-20-2004 06:22 PM

Been messing with this for awhile now and cant get it to run......can someone help installl or install it for me.....followed all the steps and banners not showing up.

CSS59 12-28-2004 02:02 PM

How do i run query? I dont know how to do the first step

do i need to do anything diff for 3.0.3?

Beermonster 12-28-2004 02:19 PM

Quote:

Originally Posted by JonelZ
How do i run query? I dont know how to do the first step

do i need to do anything diff for 3.0.3?

You need to run the query in mysql, you can do that using phpmyadmin, if you have cpanel hosting there will be a link to it from there, or you can also run then from within the admincp providing you have the right permissions set for it.

MajorFm.com 01-09-2005 04:13 PM

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


All times are GMT. The time now is 09:39 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.01414 seconds
  • Memory Usage 1,841KB
  • 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_code_printable
  • (2)bbcode_html_printable
  • (17)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
  • (40)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