vBA CMS: add an image beside your links in navigation module
Mod Version: 1.0.0, by Milad
This modification is in the archives.
vB Version: 3.5.2 |
Rating: (0 vote - 0 average) |
Installs: 6 |
Released: 27 Feb 2006 |
Last Update: 27 Feb 2006 |
Downloads: 20 |
Not Supported
Template Edits
Code Changes
|
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:
- In includes/adminfunctions_vba_cmps.php
- 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>';
- 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>';
- 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>');
- In adv_portal_navigationbits template find:
Replace with:
HTML Code:
<if condition="$navlinks[image]"><img src="$navlinks[image]" alt="$title" align="middle" /><else />$navmark</if>
- Edit your "Site Navigation" module and add an image's URL for every link (or page) you want. Be noticed: "Image" field is optional.
- Click to receive updates.
- Done! Thank you for installing.
Changelog:
Support is free-time controlled.
Download
This modification is archived and cannot be downloaded.
Screenshots
|