DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • July 15, 2018, 04:07:38 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Collapsable content addition  (Read 3670 times)
0 Members and 1 Guest are viewing this topic.
Spider
Guest
« on: January 05, 2005, 08:40:11 AM »

I personally didn't like the navs being collapsable, mainly because it adds an extra line with the [-] thing for each nav section, making them a whole lot larger, so I edited the collapsable content so that you can choose to have navs on/off and the main text on/off, here are the changes:

add in a settings array:
Code:
      "settings"=>array(
         "Collapsable content settings,title",
         "navs"=>"Are the navs collapsable?,bool|1",
         "main"=>"Is the page content collapsable?,bool|1",
      ),

then in the dohook section, add the following:
at line 159:
Code:
      if (get_module_setting("navs")){

at line 163:
Code:
      }

at line 166:
Code:
      if (get_module_setting("navs")){

at line 170:
Code:
      }

at line 172:
Code:
      if (get_module_setting("main")){

at line 175:
Code:
      }

at line 178:
Code:
      if (get_module_setting("main")){

at line 180:
Code:
      }

Logged
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #1 on: January 05, 2005, 12:33:44 PM »

I will definitely like this change.
Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #2 on: January 05, 2005, 12:36:22 PM »

I just don't like the collapsing at all Tongue So, I just leave it deactivated.

But, if I ever do decide to activate them, I shall put this in.
« Last Edit: January 05, 2005, 12:37:12 PM by Sichae » Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Kendaer
Guest
« Reply #3 on: January 05, 2005, 07:00:26 PM »

These should be done as user_prefs not as module settings so that each user has control.

I'll make that change for the next pre-release.
Logged
Dannic
Guest
« Reply #4 on: January 05, 2005, 07:09:42 PM »

It should be both.
Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #5 on: January 05, 2005, 07:17:05 PM »

It should be both.

Nah, it is really a user's preference if they want them or not... so it would work better as a user_pref... an Admin setting wouldn't be really good, unless you are running a communist server or something... if you want, you can have it as an "setting &&  user_pref" statement to do them up, so that if the Admin wants, but the user does not, then they dont get put in, or the other way around... but, to avoid all that, just make it a user_pref, and leave it be Tongue

"In Soviet Russia, Car drives YOU!"
« Last Edit: January 05, 2005, 07:24:03 PM by Sichae » Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

enderwiggin
Guest
« Reply #6 on: January 05, 2005, 07:19:49 PM »

I don't understand how you have it as both.  The admin sets it as either being on or off and then user then decides seperately to turn it on or off?

The admin can either install the mod, or not.  The user should then have it as a preference.
Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #7 on: January 05, 2005, 07:27:02 PM »

I don't understand how you have it as both.  The admin sets it as either being on or off and then user then decides seperately to turn it on or off?

The admin can either install the mod, or not.  The user should then have it as a preference.

Quote
If you want, you can have it as an "setting &&  user_pref" statement to do them up, so that if the Admin wants, but the user does not, then they dont get put in, or the other way around... but, to avoid all that, just make it a user_pref, and leave it be.

From the post, just before. ^.^

Though, you are right. It should be the user's choice...
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
38 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search