Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBA CMS: add an image beside your links in navigation module Details »»
vBA CMS: add an image beside your links in navigation module
Version: 1.0.0, by Milad Milad is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 02-26-2006 Last Update: 02-26-2006 Installs: 6
Template Edits
Code Changes  
No support by the author.

Version: 1.0.0
vB Version: 3.5.2
Assuming that you have vBAdvanced Version: 2.1.0 installed.

Description:add an image beside your links in navigation module
Details: 1 Template Edit and 1 File Edit.
Difficulty: easy.

Author: Milad

Installation:
  1. In includes/adminfunctions_vba_cmps.php
    1. Find:

      PHP Code:
      $inputs .= '<tr><td><input class="bginput" name="' $name '[' $pagecount '][order]" value="' $navlinks['order'] . '" size="1" ' iif($type == 'page''onclick="' $jsdefault '"') . '/></td><td><input class="bginput" name="' $name '[' $pagecount '][level]" value="' $navlinks['level'] . '" size="1" ' iif($type == 'page''onclick="' $jsdefault '"') . '/></td><td><input class="bginput" name="' $name '[' $pagecount '][link]" value="' $navlinks['link'] . '" size="20" ' iif($type == 'page''onclick="' $jsdefault '"') . '/></td><td><input class="bginput" name="' $name '[' $pagecount '][text]" value="' $navlinks['text'] . '" size="20" ' iif($type == 'page''onclick="' $jsdefault '"') . '/></td></tr>'
      Replace with:

      PHP Code:
      $inputs .= '<tr><td><input class="bginput" name="' $name '[' $pagecount '][order]" value="' $navlinks['order'] . '" size="1" ' iif($type == 'page''onclick="' $jsdefault '"') . '/></td><td><input class="bginput" name="' $name '[' $pagecount '][level]" value="' $navlinks['level'] . '" size="1" ' iif($type == 'page''onclick="' $jsdefault '"') . '/></td><td><input class="bginput" name="' $name '[' $pagecount '][link]" value="' $navlinks['link'] . '" size="20" ' iif($type == 'page''onclick="' $jsdefault '"') . '/></td><td><input class="bginput" name="' $name '[' $pagecount '][text]" value="' $navlinks['text'] . '" size="20" ' iif($type == 'page''onclick="' $jsdefault '"') . '/></td><td><input class="bginput" name="' $name '[' $pagecount '][image]" value="' $navlinks['image'] . '" size="20" ' iif($type == 'page''onclick="' $jsdefault '"') . '/></td></tr>'
    2. Find:

      PHP Code:
      $inputs .= '<tr><td><input class="bginput" name="' $name '[' $pagecount '][order]" value="" size="1" ' iif($type == 'page''onclick="' $jsdefault '"') . '/></td><td><input class="bginput" name="' $name '[' $pagecount '][level]" value="" size="1" ' iif($type == 'page''onclick="' $jsdefault '"') . '/></td><td><input class="bginput" name="' $name '[' $pagecount '][link]" value="" size="20" ' iif($type == 'page''onclick="' $jsdefault '"') . '/></td><td><input class="bginput" name="' $name '[' $pagecount '][text]" value="" size="20" ' iif($type == 'page''onclick="' $jsdefault '"') . '/></td></tr>'
      Replace with:

      PHP Code:
      $inputs .= '<tr><td><input class="bginput" name="' $name '[' $pagecount '][order]" value="" size="1" ' iif($type == 'page''onclick="' $jsdefault '"') . '/></td><td><input class="bginput" name="' $name '[' $pagecount '][level]" value="" size="1" ' iif($type == 'page''onclick="' $jsdefault '"') . '/></td><td><input class="bginput" name="' $name '[' $pagecount '][link]" value="" size="20" ' iif($type == 'page''onclick="' $jsdefault '"') . '/></td><td><input class="bginput" name="' $name '[' $pagecount '][text]" value="" size="20" ' iif($type == 'page''onclick="' $jsdefault '"') . '/></td><td><input class="bginput" name="' $name '[' $pagecount '][image]" value="" size="20" ' iif($type == 'page''onclick="' $jsdefault '"') . '/></td></tr>'
    3. Find:

      PHP Code:
      print_description_row($description '<br /><table align="center" cellpadding="4" cellspacing="0" class="tborder"><tr><td class="thead">' $vbphrase['order'] . '</td><td class="thead">' $vbphrase['level'] . '</td><td class="thead">' $vbphrase['link'] . '</td><td class="thead">' $vbphrase['text'] . '</td></tr>' $inputs '</table>'); 
      Replace with:

      PHP Code:
      print_description_row($description '<br /><table align="center" cellpadding="4" cellspacing="0" class="tborder"><tr><td class="thead">' $vbphrase['order'] . '</td><td class="thead">' $vbphrase['level'] . '</td><td class="thead">' $vbphrase['link'] . '</td><td class="thead">' $vbphrase['text'] . '</td><td class="thead">' $vbphrase['image'] . '</td></tr>' $inputs '</table>'); 
  2. In adv_portal_navigationbits template find:

    HTML Code:
    $navmark
    Replace with:

    HTML Code:
    <if condition="$navlinks[image]"><img src="$navlinks[image]" alt="$title" align="middle" /><else />$navmark</if>
  3. Edit your "Site Navigation" module and add an image's URL for every link (or page) you want. Be noticed: "Image" field is optional.
  4. Click to receive updates.
  5. Done! Thank you for installing.

Changelog:
  • Feb, 27th 2006: (1.0.0)
    • Initial release

Support is free-time controlled.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-27-2006, 04:29 AM
sensimilla sensimilla is offline
 
Join Date: Dec 2004
Location: Poland
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a better navigation module than default one available for download at vbadvanced..
Thanks anyway for your work, someone might need it.
Reply With Quote
  #3  
Old 02-27-2006, 06:02 AM
3mr3 3mr3 is offline
 
Join Date: Oct 2004
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool thanks
Reply With Quote
  #4  
Old 02-27-2006, 02:54 PM
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Location: golpo.net
Posts: 931
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice..but does that works only with the defult menu?
Reply With Quote
  #5  
Old 02-28-2006, 02:13 AM
Milad's Avatar
Milad Milad is offline
 
Join Date: Apr 2005
Location: Syro
Posts: 663
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes this is a modification for the default menu only.
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 09:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04826 seconds
  • Memory Usage 2,299KB
  • Queries Executed 18 (?)
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
  • (2)bbcode_html
  • (6)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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_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