Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 29

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 06.05.2004, 16:27   #1 (permalink)
Leo
Baby Mamber
 
Join Date: May 2004
Posts: 13
Leo is on a distinguished road
World Menu V2.1 - by Arthur Konze

Problem with www links in this cool menu.
There is code from akoblueportal template(very nice one):

# Vertical Menu V2.1 - by Arthur Konze - www.mamboportal.com
$database->setQuery("SELECT id, name, link FROM #__menu WHERE menutype='mainmenu' AND parent='0' AND access<='$gid' AND sublevel='0' AND published='1' AND type<>'separator' ORDER BY ordering");
$rows = $database->loadObjectList();
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td width='2'><img src='$mosConfig_live_site/templates/akoblueportal/images/but_bar_divider.gif' /></td>";
$num_rows = count($rows);
$tab_width = floor(100 / $num_rows);
foreach($rows as $row) {
echo "<td width='$tab_width%' align='center'><a class='buttonbar' href='$row->link&Itemid=$row->id'>$row->name</a></td>";
echo "<td width='2'><img src='$mosConfig_live_site/templates/akoblueportal/images/but_bar_divider.gif' /></td>";
}
echo "</tr></table>";


The main prblem I think is in this part:
<a class='buttonbar' href='$row->link&Itemid=$row->id'>$row->name</a>

I`m not php programmer, please help me with this.
Leo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 06.05.2004, 17:14   #2 (permalink)
Professional Mamber
 
stingrey's Avatar
 
Join Date: Apr 2004
Location: Marikina, Manila, Philippines
Posts: 776
stingrey is on a distinguished road
Default Re: Menu V2.1 - by Arthur Konze

Try my Display News - Simple 1-0 module.
http://forum.mamboserver.com/viewtopic.php?t=13730


It is powered by a modified version of Arthur's Vertical Menu
__________________
Joomla! Core Team Member
Software Coding & Design - Stability Team Leader
www.joomla.org
Former Mambo Core Team Member
stingrey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 07.05.2004, 13:57   #3 (permalink)
Leo
Baby Mamber
 
Join Date: May 2004
Posts: 13
Leo is on a distinguished road
Default Re: Menu V2.1 - by Arthur Konze

I do not need another menu, I need help with subject.
Leo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 07.05.2004, 21:32   #4 (permalink)
Professional Mamber
 
stingrey's Avatar
 
Join Date: Apr 2004
Location: Marikina, Manila, Philippines
Posts: 776
stingrey is on a distinguished road
Default Re: Menu V2.1 - by Arthur Konze

Quote:
I do not need another menu, I need help with subject.
Still reckon its smarter to use the module instead of harcoding into your template.
Means you can move it to different module positions, without having to change the template.
Also the menu used by the module, has a few features Arthurs module doesn't:

  • The ability to highlight the active link
  • Full control of look with CSS
  • The ability to have display horizontally or vertically
  • The ability to have it show a mymenu instead of the default setting of your Main Menu
I use it for my top horizontal menu on my own site:
www.stingrey.biz


But hey, just offering a suggestion.


anyway, here is the code you would need to hardcode it into your template:

# Vertical Menu V2.1 - by Arthur Konze - www.mamboportal.com
$database->setQuery("SELECT id, name, link FROM #__menu WHERE menutype='mainmenu' AND parent='0' AND access<='$gid' AND sublevel='0' AND published='1' AND type<>'separator' ORDER BY ordering");
$rows = $database->loadObjectList();
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td width='2'><img src='$mosConfig_live_site/templates/akoblueportal/images/but_bar_divider.gif' /></td>";
$num_rows = count($rows);
$tab_width = floor(100 / $num_rows);
foreach($rows as $row) {
$mymenulink = $mymenu_row->link;
// $mymenu_row->name = strtoupper($mymenu_row->name);
if ($mymenu_row->type != "url") {
$mymenulink .= "&Itemid=$mymenu_row->id";
}

echo "<td width='$tab_width%' align='center'><a class='buttonbar' href='$mymenulink'>$row->name</a></td>";
echo "<td width='2'><img src='$mosConfig_live_site/templates/akoblueportal/images/but_bar_divider.gif' /></td>";
}
echo "</tr></table>";


__________________
Joomla! Core Team Member
Software Coding & Design - Stability Team Leader
www.joomla.org
Former Mambo Core Team Member
stingrey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 08.05.2004, 20:25   #5 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 5
xiami is on a distinguished road
Default Re: Menu V2.1 - by Arthur Konze

my change to:
PHP Code:
        # Vertical Menu V2.1 - by Arthur Konze - [url]www.mamboportal.com[/url]
        
$database->setQuery("SELECT * FROM #__menu WHERE menutype='mainmenu' AND parent='0' AND access<='$gid' AND sublevel='0' AND published='1' AND type<>'separator' ORDER BY ordering");
        
$vmrows $database->loadObjectList();
        echo 
"<table border='0' cellpadding='0' cellspacing='2' width='75%'><tr>";
        
$num_vmrows  count($vmrows);
        
$vmtab_width floor(100 $num_vmrows);
        foreach(
$vmrows as $vmrow) {
          if(
$vmrow->type!='url')
          {
                echo 
"<td width='$vmtab_width%'><a href='".sefRelToAbs("$vmrow->link&Itemid=$vmrow->id")."' class='buttonbar'>$vmrow->name</a></td>";
          }else {
          echo 
"<td width='$vmtab_width%'><a href='".sefRelToAbs("$vmrow->link")."' class='buttonbar'>$vmrow->name</a></td>";
          }
        }
        echo 
"</tr></table>"
__________________
IT580.COM-Chinese-
IT580.COM Forums(SMF 1.1.3)-Chinese-
D.C Life-Chinese-
Cindy Cafe-Chinese-
xiami is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06.12.2004, 16:40   #6 (permalink)
Baby Mamber
 
Join Date: Nov 2004
Posts: 1
PicsOne is on a distinguished road
Default Re: Menu V2.1 - by Arthur Konze

I have Nenu v2.1 embedded in visualtech template. Run ok, but when create a link with new window as target, open into the same windows. Any help?
PicsOne is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to add new menu item in Main Menu Max Kaar Mambo 4.5 Installation and Upgrades 8 06.09.2006 04:02
Imagemaps in the Main Menu (and elsewhere!)... henrycooperavel Mambo 5.0 Wishlist 5 05.05.2004 22:54
Anyone remember 4.014? Menu Issue anjenaire Mambo 4.5 Installation and Upgrades 0 30.04.2004 00:47
How to link content items to main menu afru Mambo 4.5 'How Do I' Questions 3 11.04.2004 16:16
sub menu under dtree menu dgs Mambo 4.5 'How Do I' Questions 5 10.04.2004 05:35


All times are GMT +2. The time now is 20:13.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.