PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
sharlein
Member Emeritus


Joined: Nov 19, 2002
Posts: 321
Location: On the Road

PostPosted: Wed Oct 29, 2003 12:35 pm Reply with quote Back to top

Is it possible to create an admin, and allow them to only update 3 scrolling blocks? They are tournament times, top 100 and top team scores. Thank you, Steve
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15235
Location: Kansas

PostPosted: Wed Oct 29, 2003 1:01 pm Reply with quote Back to top

Anything is possible, for sure Wink Yes, that could be done. I would probably use the approach mentioned in this post
Only registered users can see links on this board!
Get registered or login to the forums!
and then modify admin/modules/blocks.php to only display the 3 blocks for that admin. Make sense?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sharlein
Member Emeritus


Joined: Nov 19, 2002
Posts: 321
Location: On the Road

PostPosted: Wed Oct 29, 2003 6:39 pm Reply with quote Back to top

Yes, it does. Thank you Raven.
View user's profile Send private message
sharlein
Member Emeritus


Joined: Nov 19, 2002
Posts: 321
Location: On the Road

PostPosted: Wed Oct 29, 2003 8:19 pm Reply with quote Back to top

I followed the instructions for the first part, allowing an admin assigned with encyc. permissions to have access to blocks. It worked, but, lol, access to MSAnalysis also appears. What did I do wrong? (Other than get up this morning.) Thanks, Steve
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15235
Location: Kansas

PostPosted: Wed Oct 29, 2003 8:30 pm Reply with quote Back to top

I don't use that package so I don't know how it's setup. Is it perchance using the encyc. admin? Check the module file for MSAnalysis to see if it grants permission to encyc admins.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sharlein
Member Emeritus


Joined: Nov 19, 2002
Posts: 321
Location: On the Road

PostPosted: Thu Oct 30, 2003 2:21 pm Reply with quote Back to top

Yes, Raven, it does. I am trying to use content, but I am running into some problems. I will start all over to make sure I am doing it correctly.
View user's profile Send private message
sharlein
Member Emeritus


Joined: Nov 19, 2002
Posts: 321
Location: On the Road

PostPosted: Sat Nov 01, 2003 12:47 pm Reply with quote Back to top

I got radmincontent to work - simple errors I made, but I wonder if you could please give me a start on admin/blocks.php (to allow only the three blocks to be edited for this particular admin). Thank you, Steve
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15235
Location: Kansas

PostPosted: Sat Nov 01, 2003 6:49 pm Reply with quote Back to top

Start with this. In BlocksAdmin() find
Code:
   echo "<td align=\"center\" bgcolor=\"$bgcolor2\"><b>"._FUNCTIONS."</b></tr>";
   $result = sql_query("select bid, bkey, title, url, bposition, weight, active, blanguage, blockfile, view from ".$prefix."_blocks order by bposition, weight", $dbi);
and modify it to
Code:
   if ($radmincontent&&!$radminsuper) $whereClause = "where bid = 1 ||bid = 2 ||bid = 3";
   else $whereClause = "";
   echo "<td align=\"center\" bgcolor=\"$bgcolor2\"><b>"._FUNCTIONS."</b></tr>";
   $result = sql_query("select bid, bkey, title, url, bposition, weight, active, blanguage, blockfile, view from ".$prefix."_blocks $whereClause order by bposition, weight", $dbi);
You will need to substitute the actual bid for the 3 blocks that you want to restrict. Also, you may want to remove/restrict othe functions, like the Add Block functionality, too. Do that by making a check for the admin level as above and just returning from the function instead of processing it.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sharlein
Member Emeritus


Joined: Nov 19, 2002
Posts: 321
Location: On the Road

PostPosted: Sun Nov 02, 2003 4:25 pm Reply with quote Back to top

Thank you very much, Raven. Up and running. That solved the problem.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum