Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
liqiud
Regular
Regular


Joined: Nov 05, 2006
Posts: 53

PostPosted: Wed Nov 22, 2006 8:36 am Reply with quote

When i'm signed in as an admin, is there a way to hide the Inactive Modules from the Modules Block. It makes my modules block huge, and pushes the rest of my content down. I know i could delete the modules, but i'm not sure i want to do that.

Thanks in advance.
 
View user's profile Send private message Visit poster's website
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Wed Nov 22, 2006 8:44 am Reply with quote

Delete the entire block of code from block-Modules.php starting
Code:


/* If you're Admin you and only you can see Inactive modules and test it */
/* If you copied a new module is the /modules/ directory, it will be added to the database */
if (is_admin($admin)) {

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Wed Nov 22, 2006 8:47 am Reply with quote

here we go...
openup block-modules.php

somewhere below look for :

if ($a == 1 AND $dummy != 1) {

put this //
infront of it...
Same goes for every line after that...like
//
//
//
etc..
but end with } < <
leave that last one intact.
 
View user's profile Send private message
liqiud
PostPosted: Wed Nov 22, 2006 9:31 am Reply with quote

You guys rock. Thank you so much.
 
-I4nI-GENOCIDE
New Member
New Member


Joined: Apr 10, 2005
Posts: 4

PostPosted: Fri Aug 10, 2007 12:18 am Reply with quote

Is this still valid because I tried that and it does not work for me. I wish to hide the Inactive Modules. I added // in front of the code and my site will not load. I am running the latest version of RN.
 
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9453
Location: Arizona

PostPosted: Fri Aug 10, 2007 6:26 am Reply with quote

Sounds as though you have introduced a parse error. Check the changes that you made and make sure you have TWO slashes at the beginning and not one somewhere.

The concept is still the same.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
liqiud
PostPosted: Fri Aug 10, 2007 6:39 am Reply with quote

I just did an install 3 or 4 days ago, and it still worked for me.
 
fkelly
Former Moderator in Good Standing


Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Fri Aug 10, 2007 7:45 am Reply with quote

You could also create a directory called /inactive_modules and move your inactive modules there. The admin program wouldn't pick them up and they would still be there if you ever wanted to activate one ... just move it back to /modules. I'm pretty sure that would work without needing to change any code and it would save you a few nanoseconds every time admin.php runs. That said, I haven't tried it so it's not warranteed.
 
View user's profile Send private message Visit poster's website
-I4nI-GENOCIDE
PostPosted: Sat Aug 11, 2007 11:48 pm Reply with quote

Thanks guys it was a simple error on my part.

I must say I have been using this forum for support for a long time but I have only posted a few times. The reason is, all of the problems I have had have been covered. All you have to do is search and you find the answer.

Thanks again for all of your support to nuke.
 
montego
PostPosted: Sun Aug 12, 2007 8:13 am Reply with quote

RavensScripts
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©