vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBA CMS: add an image beside your links in navigation module (https://vborg.vbsupport.ru/showthread.php?t=109003)

Milad 02-26-2006 10:00 PM

vBA CMS: add an image beside your links in navigation module
 
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 https://vborg.vbsupport.ru/ to receive updates.
  5. Done! Thank you for installing.

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

Support is free-time controlled.

sensimilla 02-27-2006 04:29 AM

There is a better navigation module than default one available for download at vbadvanced..
Thanks anyway for your work, someone might need it.

3mr3 02-27-2006 06:02 AM

cool thanks :)

Zia 02-27-2006 02:54 PM

nice..but does that works only with the defult menu?

Milad 02-28-2006 02:13 AM

Yes this is a modification for the default menu only.


All times are GMT. The time now is 09:41 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.02084 seconds
  • Memory Usage 1,783KB
  • 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_html_printable
  • (6)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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