vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Adding banner to header and footer. (https://vborg.vbsupport.ru/showthread.php?t=280886)

runnerjp 03-30-2012 10:53 AM

Adding banner to header and footer.
 
How could i add a banner to my header and footer so its looks like the one here http://www.clubscuderia.co.uk/forum/

(below nav bar and above footer)

HHelp1 03-30-2012 12:40 PM

Well those are not banner.. They have added ads on it. But you could add your images/ banner by do this :
Code:

Advertising > Add New Ad > Then Choose Below Navbar or Footer ( click those yellow box box to choose) > Then enter title and add your codes there. . . . .
if there any question please don't afraid to ask ^^.

Regard.

runnerjp 03-30-2012 03:13 PM

is php allowed within the Ad HTML ??

--------------- Added [DATE]1333124922[/DATE] at [TIME]1333124922[/TIME] ---------------

also how would i show Sub-Forum name the user is on?

Iain M 03-30-2012 10:07 PM

I wouldn't think that PHP is allowed in the Ad HTML.

Where do you want to show the sub forum name?

runnerjp 03-31-2012 07:34 AM

where is the file stored that the ad html is stored to as i could hard code it.

I want to display a different banner depending on the sub forum name

Iain M 03-31-2012 11:07 AM

The ads are stored in the database.

What ad network needs you to put PHP code to display ads?

You could have your PHP in a separate file then load the PHP page in an iframe? For example, you would put
Code:

<iframe src="YOUR PHP PAGE"></iframe>
in the ad manager.

To show certain banners in certain forums you could try this:
Code:

<vb:if condition="$GLOBALS['forumid'] == XX">
<iframe src="YOUR PHP PAGE"></iframe>
<vb:elseif condition="$GLOBALS['forumid'] == YY">
<iframe src="YOUR PHP PAGE"></iframe>
<vb:else />
Everywhere else banner
</vb:if>

Change XX and YY to forumid's of where you want the banners.

To add more just keep adding elseif's... that could get messy tho.

runnerjp 04-02-2012 08:45 AM

With the above which files do i need to include on the page ???

--------------- Added [DATE]1333367218[/DATE] at [TIME]1333367218[/TIME] ---------------

I treid
PHP Code:

session_start();

require_once(
'./global.php');
require_once(
DIR '/includes/functions_user.php');
require_once(
DIR '/includes/functions_misc.php');

echo 
$GLOBALS['forumid']; 

But it shows nothing


All times are GMT. The time now is 04:33 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.01002 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete