Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-08-2014, 05:55 AM
TheAdminMarket's Avatar
TheAdminMarket TheAdminMarket is offline
 
Join Date: Jun 2013
Location: Thessaloniki, Greece
Posts: 511
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Home Icom as Tab

Hello,

I've a page landing as homepage and I want to avoid adding text like "Home" in Navigation manager but rather to use a Home icon like in my WP template at:
http://www.dimoslagada.com/

Is there anyway to do it?

Thank you
Reply With Quote
  #2  
Old 11-08-2014, 06:52 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit the phrase, and make it an image, or edit the navigation manager entry and make it an image?
Reply With Quote
  #3  
Old 11-08-2014, 07:26 AM
TheAdminMarket's Avatar
TheAdminMarket TheAdminMarket is offline
 
Join Date: Jun 2013
Location: Thessaloniki, Greece
Posts: 511
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery View Post
Edit the phrase, and make it an image, or edit the navigation manager entry and make it an image?
I think that I've tried this solution one year ago (then I gave up the idea), and if I remember well it was working half the way. What I mean. There are 2 icons. One for active tab and a second one (grey out) for inactive tab. It was always showing one icon.

But thanks to your suggestion I just got an idea. As it will be just for my site I can modify the template and add something like:
Code:
<vb:if condition="THIS_SCRIPT == '.....'">
<img border="0" src="active.png">
<vb:else />
<a href="..."><img border="0" src="inactive.png"></a>
</vb:if>
I've a feeling that it will works.

Thank you !!

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

Well, I was able to add it on the way that I said before, but my try to make it professional using the Plugin system currently stucks.

I want to place it on the hook: navtab_start but seems that using as hookname: navigation_tab_complete is not the right one.

My code (in the xml file) is:
Code:
<plugin active="1" executionorder="90">
	<title>Index: Home Tab</title>
	<hookname>navigation_tab_complete</hookname>
	<phpcode><![CDATA[
            $template_hook['navtab_start'] .= vB_Template::create('index_hometab')->render();
         ]]></phpcode>
</plugin>
and the template code (which works when I'm adding it manually) is:
HTML Code:
<template name="index_hometab" templatetype="template" date="" username="" version="1.0.0">
<![CDATA[
<vb:if condition="THIS_SCRIPT == 'index'">
	<img border="0" src="images/portal/misc/navhome_active.png" style="float:left;">
<vb:else />
	<a href=""><img border="0" src="images/portal/misc/navhome_inactive.png" style="float:left;"></a>
</vb:if>
]]></template>
Anyone can catch the bug?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:51 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.03680 seconds
  • Memory Usage 2,189KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete