Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Actions and Without Actions
Destro Offline
Junior Member
**
Posts: 39
Joined: Nov 2012
Post: #1
Actions and Without Actions
Hello there,

I'm using this code to control active tab

PHP Code:
class="section-usergroups <if (THIS_SCRIPT == "usercp.php" AND $mybb->input['action'] == "usergroups") then>nav-active</if>"


It's working, but there is a problem, that it will duplicate class "nav-active" if I use this code in the main file like this

PHP Code:
class="section-home <if THIS_SCRIPT == "usercp.php" then>nav-active</if>"


The class nav-active will be duplicated when I go to usercp.php?action=usergroups (the condition is always true) !

How to avoid this ?

06-08-2013 02:54 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Actions and Without Actions - Destro - 06-08-2013 02:54 AM
RE: Actions and Without Actions - Destro - 06-09-2013, 03:14 PM

 Standard Tools
Forum Jump: