Messages administration rights
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexExplain Please
Author Message
bszb1
Newbie


Joined: Feb 06, 2005
Posts: 13
Location: SCG, Kanjiza

PostPost subject: Messages administration rights
Posted: Tue Nov 22, 2005 8:07 am
Reply with quote

does only superuser-admin have right to post a messages to the main page (so not "news and newsletter", only messages) .../admin.php?op=messages

does anybody have any idea how to give right for simple admins to post messages?

tnx!


bszb1's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Unix/1.3.31/4.1.13/4.3.11/9.0.6.1


Last edited by bszb1 on Sat Nov 26, 2005 3:21 pm; edited 1 time in total
Back to top
View user's profile Visit poster's website
Biggles
Debugger


Joined: Aug 03, 2005
Posts: 637
Location: St. Louis, MO

PostPost subject: Re: Messages administration
Posted: Wed Nov 23, 2005 4:57 am
Reply with quote

Run this query in phpMyAdmin to add the "messages" option to the list of permissions in the admins section:
PHP:
ALTER TABLE `cms_admins` ADD `radminmessages` TINYINT( 4 ) DEFAULT '0' NOT NULL ;


To allow users to modify the messages, open your admin/modules/messages.php file and change line 17 from:
PHP:
if (!can_admin()) { die('Access Denied'); }

to:
PHP:
if (!can_admin('messages')) { die('Access Denied'); }


And lastly, to show the messages link in the administrator menu, open admin/links/adlnk_main.php and cut lines 58 and 59 and paste them at the end of the file. Then put around them:
PHP:
if (can_admin('messages')) { }

So, the end of this file should look like:
PHP:
if (can_admin('messages')) {
$menuitems['_AMENU3'][_MESSAGES]['URL'] = adminlink('messages');
$menuitems['_AMENU3'][_MESSAGES]['IMG'] = 'messages';
}


Biggles's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Win, Linux/1.3.34/4.0.26, 5.0.19/4.3.10, 5.1.2, 8.1.4(PostgresSQL)/9.0.6.1, CVS
Back to top
View user's profile Visit poster's website ICQ Number AIM Address MSN Messenger Yahoo Messenger
bszb1
Newbie


Joined: Feb 06, 2005
Posts: 13
Location: SCG, Kanjiza

PostPost subject: Re: Messages administration
Posted: Fri Nov 25, 2005 5:46 pm
Reply with quote

Thank U Mr. Biggles, my problem is solved

bszb1's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Unix/1.3.31/4.1.13/4.3.11/9.0.6.1
Back to top
View user's profile Visit poster's website
alejgonz
Newbie


Joined: Aug 15, 2006
Posts: 17
Location: Ottawa

PostPost subject: Re: [solved]Messages administration
Posted: Sat Sep 09, 2006 9:35 pm
Reply with quote

Hi Biggles and bszb1.

bszb1: you had exactly the same question as I have.

Biggles: thanks a lot for the precise instruction... it works just as I need it.

Thanks a lot!! not worthy


alejgonz's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux. Apache v1.3.36, MySQL v4.1.21, PHP v5.0.4, CPGdragonfly 9.0.6.1
Back to top
View user's profile Visit poster's website
stegran
Newbie


Joined: Sep 11, 2007
Posts: 2

PostPost subject: Re: Messages administration rights
Posted: Tue Sep 11, 2007 9:44 am
Reply with quote

Hi all, this is my first post, so I hope its okay me replying in this thread. I have the exact same problem as bszb1 except I want my admins to have access to messages, news, surveys and topics.
I can follow the excellant advice of mr. biggles, and just wondered if any1 could help me with the extra stuff I need to do to allow access for the news, surveys and topics.

Any help much appreciated Smile


stegran's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
9.1.2.1
Back to top
View user's profile Visit poster's website
stegran
Newbie


Joined: Sep 11, 2007
Posts: 2

PostPost subject: Re: Messages administration rights
Posted: Wed Sep 12, 2007 1:31 pm
Reply with quote

Bump Crying or Very sad

stegran's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
9.1.2.1
Back to top
View user's profile Visit poster's website
Phoenix
Site Admin


Joined: Apr 19, 2004
Posts: 8729
Location: Netizen

PostPost subject: Re: Messages administration rights
Posted: Wed Sep 12, 2007 1:48 pm
Reply with quote

Well, if you have assigned admins, you would also have seen the list of modules you can assign to them.
admin.php?op=admins


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: Messages administration rights
Posted: Wed Jan 06, 2010 5:08 pm
Reply with quote

Does anyone have a current (9.2.1) version for this hack? TIA
_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
Dizfunkshunal
Platinum Supporter


Joined: Mar 23, 2006
Posts: 2079

PostPost subject: Re: Messages administration rights
Posted: Wed Jan 06, 2010 9:52 pm
Reply with quote

Phoenix wrote:
Well, if you have assigned admins, you would also have seen the list of modules you can assign to them.
admin.php?op=admins



messages is not in the list of modules you can assign to admin

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: Messages administration rights
Posted: Thu Jan 07, 2010 7:34 am
Reply with quote

That I understand, thanks.

My question is: Does anyone have an update to Biggles original hack (here) to make it work in DF 9.2.1?

The code given by Biggles seems to be required but doesn't seem to be sufficient in my tests. It looks as if messages.php has been rewritten since 2005 Wink

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
Dizfunkshunal
Platinum Supporter


Joined: Mar 23, 2006
Posts: 2079

PostPost subject: Re: Messages administration rights
Posted: Thu Jan 07, 2010 4:26 pm
Reply with quote

it has but that part has not changed. I think and im no pro or even amature at php but I think adding
PHP:
if (can_admin('messages')) {
$menuitems['_AMENU3'][_MESSAGES]['URL'] = adminlink('messages');
$menuitems['_AMENU3'][_MESSAGES]['IMG'] = 'messages';
}
after line 100 in the admin/links/adlnk_main.php with the rest of the changed biggles listed should do the trick. i attached a screeny so you can what is above it.

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: Messages administration rights
Posted: Thu Jan 07, 2010 4:54 pm
Reply with quote

Well thanks Diz, it does kind of work now.

I'd done the above already, and was expecting Messages to appear in the selection list in the Admins page, but it does not. Which led me to believe that it didn't work.

But I did manage to activate Messages access, by skipping that step, and editing the db directly (after applying the changes of course).

Would be nice if it appeared in the selection list though ...

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3678
Location: Melbourne, AU

PostPost subject: Re: Messages administration rights
Posted: Thu Feb 25, 2010 1:27 pm
Reply with quote

In 9.2.3 CVS.

Log out and log in after the upgrade to make all changes active.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexExplain Please All times are GMT
Page 1 of 1


Jump to:  
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 cannot attach files in this forum
You cannot download files in this forum

stopsoftwarepatents.eu petition banner
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 1.08 seconds with 17 DB Queries in 0.1713 seconds
Memory Usage: 3.09 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy