vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Header images modification (https://vborg.vbsupport.ru/showthread.php?t=315538)

338Lapua 11-22-2014 06:34 AM

Header images modification
 
I'm trying to fix the two trike images in my header on my forum that should be all on the same row, with it being - left image, tpc trikes banner, right image.

Here is my code for my header;

Code:

<!-- content table -->

$spacer_open



$_phpinclude_output



<!-- logo -->

<a name="top"></a>

<div id="header">

        <div id="nav">

                <ul>

                <if condition="$show['member']">

                        <li><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></li>

                </if>

                <if condition="$show['registerbutton']">

                        <li><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></li>

                </if>

                        <li><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></li>

                        <li><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></li>

                <if condition="!$show['member']">

                        <li><a href="search.php?do=getdaily$session[sessionurl_q]">$vbphrase[todays_posts]</a></li>

                </if>

                        <li id="navbar_search"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a>
                        <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search", true); </script></if></li>

                <if condition="$show['member']">

                        <li id="usercptools"><a href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script

type="text/javascript"> vbmenu_register("usercptools", true); </script></li>

                        <li><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out

('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></li>

                </if>

                </ul>

        </div>

       
<table>
<tr>
<td align="left" >

<img height="96" src="http://www.tpctrikes.com/forum/images/IMG_1545.jpg" style="border-style: none" alt="" /></A>
<div style="clear:


</td><td align = "center">

<A HREF="http://www.tpctrikes.com"><center><img height="96" src="images/banner.jpg" style="border-style: none" alt="" /></center></A>
<div


</td><td align = "right">

<img height="96" src="http://www.tpctrikes.com/forum/images/TPC Air.jpg" style="border-style: none" alt="" /></A>

<!-- /logo -->


</td>
</tr>
</table>

<table cellspacing="0" cellpadding="0" border="0" width="100%">

<tr valign="top">

        <td class="main_cell" style="padding: 10px $stylevar[spacersize]px">

$ad_location[ad_header_end]

Here is how it looks right now;

http://img.photobucket.com/albums/v6...psmysfsrxj.jpg

Thanks for helping me since I'm still learning vbulletin.

ForceHSS 11-22-2014 07:09 AM

Can you put the above in code brackets

338Lapua 11-22-2014 07:32 AM

Like I said before, I'm still learning vbulletin and coding.

What do you mean by putting it in code brackets?

Thanks.

Simon Lloyd 11-22-2014 08:49 AM

Does that actually work? you have two malformed DIVs with no conclusion? you also have misplaced and malformed <a>'s

Replace all of
HTML Code:

<table>
 <tr>
 <td align="left" >
 
<img height="96" src="http://www.tpctrikes.com/forum/images/IMG_1545.jpg" style="border-style: none" alt="" /></A>
 <div style="clear:


</td><td align = "
center">
 
<A HREF="http://www.tpctrikes.com"><center><img height="96" src="images/banner.jpg" style="border-style: none" alt="" /></center></A>
 <div


</td><td align = "right">
 
<img height="96" src="http://www.tpctrikes.com/forum/images/TPC Air.jpg" style="border-style: none" alt="" />
</A>
 
<!-- /logo -->
 

</td>
 </tr>
 </table>

with this
HTML Code:

<table align = "center">
 <tr>
  <td>
 
  <a href="http://www.tpctrikes.com" border="0"><img height="96" src="images/IMG_1545.jpg" style="border-style: none" alt="" />
  <img height="96" src="images/banner.jpg" style="border-style: none" alt="" />
  <img height="96" src="images/TPC Air.jpg" style="border-style: none" alt="" /></a>
 
<!-- /logo -->
 

  </td>
 </tr>
</table>

but you'll have to add your css...etc for background, padding and whatever else to the containers. It's a good idea to include your alternative texts for the images before you add the code.

ForceHSS 11-22-2014 10:06 AM

Quote:

Originally Posted by 338Lapua (Post 2523690)
Like I said before, I'm still learning vbulletin and coding.

What do you mean by putting it in code brackets?

Thanks.

The way Simon has just done as it is easier to read

blind-eddie 11-22-2014 03:37 PM

After you save a copy of your header template to have as a backup incase there is an issue, Replace your header template with the following:

You will have to edit your image width to fit the page...


Code:

<!-- content table -->

$spacer_open



$_phpinclude_output



<!-- logo -->

<a name="top"></a>

<div id="header">

<div id="nav">

<ul>

<if condition="$show['member']">

<li><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></li>

</if>

<if condition="$show['registerbutton']">

<li><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></li>

</if>

<li><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></li>

<li><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></li>

<if condition="!$show['member']">

<li><a href="search.php?do=getdaily$session[sessionurl_q]">$vbphrase[todays_posts]</a></li>

</if>

<li id="navbar_search"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a>
<if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search", true); </script></if></li>

<if condition="$show['member']">

<li id="usercptools"><a href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script

type="text/javascript"> vbmenu_register("usercptools", true); </script></li>

<li><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out

('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></li>

</if>

</ul>

</div>


<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center">
<img height="96" src="http://www.tpctrikes.com/forum/images/IMG_1545.jpg" style="border-style: none" alt="" />
</td>
<td align="center">
<a href="http://www.tpctrikes.com" border="0"><img height="96" src="http://www.tpctrikes.com/forum/images/banner.jpg" style="border-style: none" alt="" />
</td>
<td align="center">
<img height="96" src="http://www.tpctrikes.com/forum/images/TPC Air.jpg" style="border-style: none" alt="" /></a>
</td></tr></table>


<!-- /logo -->


</td>
</tr>
</table>

<table cellspacing="0" cellpadding="0" border="0" width="100%">

<tr valign="top">

<td class="main_cell" style="padding: 10px $stylevar[spacersize]px">

$ad_location[ad_header_end]


338Lapua 11-22-2014 03:48 PM

Thank you very much! I'm a Network Administrator and not a programmer. I'm still learning this stuff :-)

Simon Lloyd 11-23-2014 04:40 AM

@blind-eddie it might be worth setting the table to Auto instead of 100% for fluidity (fluidity? is that a word? lol :))


All times are GMT. The time now is 11:53 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.01102 seconds
  • Memory Usage 1,759KB
  • 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_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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