Menu rows

Theme, template, layout, or image issues

Menu rows

Postby dt1375 » Thu Jan 25, 2007 8:39 pm

Hi.

As u can see on our page:
http://wow.naboene.net

I've alteret the menu, but can't figure out how to display the addons as 4 in a row.
Any suggestions?

Regards
DT1375
User avatar
dt1375
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Wed Jan 24, 2007 1:26 pm

Menu rows

Postby zanix » Thu Jan 25, 2007 11:50 pm

Looks like you figured it out to me
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Menu rows

Postby dt1375 » Fri Jan 26, 2007 4:27 am

Hi!

At first I thought: "Hu? Did I?"
Then I had a look at the code, and discovererd the width parameter...
Just altered this one, and it's ok. Tnx m8!
print " <tr>\n <td colspan=\"4\" align=\"center\" valign=\"top\" class=\"row".(($roster_conf['menu_right_pane'] && $guild_data_rows > 0) ? '' : 'right')." addon\" style=\"width:430px;\">\n";
User avatar
dt1375
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Wed Jan 24, 2007 1:26 pm

Menu rows

Postby JROCK2004 » Thu Feb 22, 2007 10:53 pm

Do you mind posting how you did that? Plus how did you add those buttons?
User avatar
JROCK2004
WR.net Apprentice
WR.net Apprentice
 
Posts: 52
Joined: Wed Feb 21, 2007 6:54 pm
Location: PA

Re: Menu rows

Postby dt1375 » Thu Jul 26, 2007 7:53 am

Some of the code in /lib/menu.php file

this is how I added my custom buttons...

Code: Select all
<li><a href="teamspeak.php">TeamSpeak</a></li>


Code: Select all
<!-- Links Column 2 -->
    <td valign="top" class="row links">
      <ul>
<?php
if( $roster_conf['menu_pvp_page'] && $roster_conf['pvp_log_allow'] )
   print '<li><a href="'.$roster_conf['roster_dir'].'/indexpvp.php">'.$wordings[$roster_conf['roster_lang']]['pvplist'].'</a></li>'."\n";

if( $roster_conf['menu_honor_page'] )
   print '        <li><a href="'.$roster_conf['roster_dir'].'/indexhonor.php">'.$wordings[$roster_conf['roster_lang']]['menuhonor'].'</a></li>'."\n";

if( $roster_conf['menu_memberlog'] )
   print '        <li><a href="'.$roster_conf['roster_dir'].'/memberlog.php">'.$wordings[$roster_conf['roster_lang']]['memberlog'].'</a></li>'."\n";

if( $roster_conf['menu_keys_page'] )
   print '        <li><a href="'.$roster_conf['roster_dir'].'/indexinst.php">'.$wordings[$roster_conf['roster_lang']]['keys'].'</a></li>'."\n";
?>
   <li><a href="teamspeak.php">TeamSpeak</a></li>
   
     </ul></td>
<!-- Links Column 3 -->


Just remember the small ?> there...
PHP script before it, and CSS after... ;)

For the Allakhazam and Thottbot, I made a php file for each, and made a button in the menu-tree.
The php file contains:
Code: Select all
<?php

require_once( 'settings.php' );

if( empty($guild_info) )
{
   message_die( $wordings[$roster_conf['roster_lang']]['nodata'] );
}
$header_title = "Allakhazam";
include_once (ROSTER_BASE.'roster_header.tpl');

include_once (ROSTER_LIB.'menu.php');

print border('syellow','start');

?>
<table width="1000" cellspacing="0" cellpadding="1" border="0" class="main_roster_menu">
<td valign="top" class="row links">
      <ul><li>
<iframe style="width:100%" height="700" scrolling="yes" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0"  src="http://wow.allakhazam.com/db/qlookup.html"></iframe>
</ul></td>
</table>
<?php print border('syellow','end');
include_once (ROSTER_BASE.'roster_footer.tpl');
?>

http://wow.v1a.org

Looks nicer now though...
Last edited by dt1375 on Thu Jul 26, 2007 7:59 am, edited 2 times in total.
User avatar
dt1375
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Wed Jan 24, 2007 1:26 pm

Menu rows

Postby Gator81 » Thu Jul 26, 2007 3:54 pm

So that is the file that has to be edited to clean up the buttons?
could the buttons but put to the side?
or maby into another box?

not to take away from what they do! but to place them in another area that would look better for the site.

example...the config button being place in area that only admins for the site can see and nobody else.

I guess the other idea would be could the menu file be loaded in a block for nuke, like a colum on the left and click on those would make the changes to the main.

this would mean that as more addons are added the box would grow to show any extra addons that would be added.'

just thinking outloud hoping that someone else may have the same idea :)
If anyone would like to share this info, it would be great of you. :)
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am


Return to Appearance

Who is online

Users browsing this forum: No registered users and 0 guests

cron