Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.5
Author Message
mvillamizar
Regular
Regular



Joined: Nov 02, 2004
Posts: 54
Location: Colombia

PostPosted: Thu Dec 23, 2004 10:13 am Reply with quote

Hi Raven,

I want to have in my site de news module working, but only de admin is the only one how can create news.

The news module is active and everyone can see it, the submit news module is active and only de admin can use it, but when I try to use any of this two modules I've got the access denied messege.

I have tried this:
Code:


f (!eregi("modules.php", $_SERVER['SCRIPT_NAME']))

then you change it...

if (!eregi("modules.php", $_SERVER['PHP_SELF']))


but still the same, what else can I do?[/code]
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Dec 23, 2004 12:36 pm Reply with quote

Why not just make it invisible? Out of site, out of mind Wink
 
View user's profile Send private message
mvillamizar







PostPosted: Thu Dec 23, 2004 1:03 pm Reply with quote

What do you mean?
 
Raven







PostPosted: Thu Dec 23, 2004 2:32 pm Reply with quote

In the administration panel for modules, edit Submit News and find this setting:
Visible in Modules Block?

Set it to No.
 
mvillamizar







PostPosted: Thu Dec 23, 2004 2:46 pm Reply with quote

Done....but still the same problem

What else can I do?
 
Raven







PostPosted: Thu Dec 23, 2004 2:51 pm Reply with quote

Then I'm not understanding the problem. If the module is no longer visible how can they be submitting it? Remember that you have to log out as admin to see what a guest would see.
 
mvillamizar







PostPosted: Thu Dec 23, 2004 4:03 pm Reply with quote

well now the submit news module is only visible to the admin and is working, but when I tried to see the messeges sended for admin aproval, I can't see it cos access denied problem.

is there any way to publish it without admin aproval, in this case the admin is the only one who can publish a news.
 
Raven







PostPosted: Thu Dec 23, 2004 5:45 pm Reply with quote

I am confused. You said
Quote:
I want to have in my site de news module working, but only de admin is the only one how can create news.
By making it invisible and/or for admins only, it seems that solves your problem. What am I missing?
 
mvillamizar







PostPosted: Fri Dec 24, 2004 8:06 am Reply with quote

I'm going to try to make my self clear, before hand excuse my English!!! Razz

At the moment the situation is the following:
The news module is active and visible for every one.
The submit news module is active and visible only for admins.

The submit news module is working and I have submited some news already, but when I try to use the submissions module from the modules administration to aprove any news that has been submited, I get access denied. So no news have been published so far.

As well, when I try to access the news module or icon on the modules administration I get access denied.

I hope that this time the problem is much clear.

Thanks a lot Raven!!
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.5

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 ©