vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   adding banner left of "Welcome, <user>."? (https://vborg.vbsupport.ru/showthread.php?t=102331)

Sculli 12-06-2005 07:59 AM

adding banner left of "Welcome, <user>."?
 
I would like to add a small banner right to the left of "Welcome, Sculli, You last visited...", not within the cell that shows the welcome message, but in the cell to the left of it. So basically the banner would be right aligned in the left cell. Does that make any sense? Which template do I have to edit?

Thanks in advance.

evenmonkeys 12-06-2005 09:39 PM

That's in the navbar. You can have it two ways... You can either have the banner as a background so it displays behind the breadcrumbs, or you can have it to the right of the breadcrumbs.

Styles & Templates > Style Manager > Navigation/Breadcrumb > navbar

To have it as a background:

FIND:
HTML Code:

<td class="alt1" width="100%">
<if condition="is_array($navbits)">

REPLACE WITH:
HTML Code:

<td background src="image_url_here" class="alt1" width="100%">
<if condition="is_array($navbits)">

Replace image_url_here with the link to your banner.

To have it to the right of your breadcrumb:

FIND:
HTML Code:

<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>

ADD BELOW:
HTML Code:

<!-- banner hack thinger -->
<td class="alt1" valign="top" nowrap="nowrap">
<img src="" height="40" width="420">
</div>
</td>
<!-- // banner hack thinger -->

Just add in the actual link, height, and width.

How's that for ya? Good? Good. No? Oh well. Yarub tried.

Sculli 12-07-2005 08:49 AM

Thanks, worked like a charm, see the effect at http://www.qcdn.org


All times are GMT. The time now is 07:18 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.01074 seconds
  • Memory Usage 1,718KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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