Home arrow Forum
myLANsite forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:How to apply CSS to checklist? (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:How to apply CSS to checklist?
#825
mnal (User)
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
How to apply CSS to checklist? 4 Months, 3 Weeks ago Karma: 0  
By default the menu appears like this, with no style.

Code:

$i = 1; $links = array( "sign_up" => array( "text" => $l->m("sign_up"), "url" => $mosConfig_live_site."/index.php?option=com_registration&task=register"), "enrol_for_event" => array( "text" => $l->m("enrol_for_event"), "url" => $mosConfig_live_site."/index.php?option=com_mls_events&task=enrol&eventid=".$event->id), "pay" => array( "text" => $l->m("pay"), "url" => $mosConfig_live_site."/index.php?option=com_mls_events&task=details&eventid=".$event->id."#financial"), "get_seat" => array( "text" => $l->m("get_seat"), "url" => $mosConfig_live_site."/index.php?option=com_mls_seatmap&eventid=".$event->id), "create_teams" => array( "text" => $l->m("create_teams"), "url" => $mosConfig_live_site."/index.php?option=com_mls_teams"), "enrol_for_tournaments" => array( "text" => $l->m("enrol_for_tournaments"), "url" => $mosConfig_live_site."/index.php?option=com_mls_tournaments&eventid=".$event->id) ); ?>
When I try to add style to the links, nothing works.
Code:

$i = 1; $links = array( "sign_up" => array( "text" => $l->m("sign_up"), "class" => "mainlevel", "url" => $mosConfig_live_site."/index.php?option=com_registration&task=register"), "enrol_for_event" => array( "text" => $l->m("enrol_for_event"), "class" => "mainlevel", "url" => $mosConfig_live_site."/index.php?option=com_mls_events&task=enrol&eventid=".$event->id), "pay" => array( "text" => $l->m("pay"), "class" => "mainlevel", "url" => $mosConfig_live_site."/index.php?option=com_mls_events&task=details&eventid=".$event->id."#financial"), "get_seat" => array( "text" => $l->m("get_seat"), "class" => "mainlevel", "url" => $mosConfig_live_site."/index.php?option=com_mls_seatmap&eventid=".$event->id), "create_teams" => array( "text" => $l->m("create_teams"), "class" => "mainlevel", "url" => $mosConfig_live_site."/index.php?option=com_mls_teams"), "enrol_for_tournaments" => array( "text" => $l->m("enrol_for_tournaments"), "class" => "mainlevel", "url" => $mosConfig_live_site."/index.php?option=com_mls_tournaments&eventid=".$event->id) ); ?>
Am I doing this the wrong way? Please help! Thanks!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#831
moensch (Admin)
Admin
Posts: 282
graph
User Offline Click here to see the profile of this user
Re:How to apply CSS to checklist? 4 Months, 3 Weeks ago Karma: 13  
You are doing it in the wrong place. You just add a value to the PHP Data arrays, but are not displaying it anywhere in the HTML code. Look further down where the <table> begins and add your class straight there.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#835
mnal (User)
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Re:How to apply CSS to checklist? 4 Months, 2 Weeks ago Karma: 0  
I was inputing that code everywhere I could to see its effect. That was the last location that I tried. The correct line is here.
Code:

<tr align="left" class="mainlevel"><td><?=$i.". "; ?><?=$linkpre;?><?=$text;?><?=$linkpost;?></td></tr>
But the thing is that no matter what I do, I will not be able to do what I want. The second and third replies to this post demonstrate my problems. http://forum.mamboserver.com/showthread.php?t=10676 Off hand would you happen to know of a work around? There solutions don't see to work... links are dead. Thanks for the speedy reply!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
© 2008 myLANsite - Lanparty components for Joomla
Joomla! is Free Software released under the GNU/GPL License.