| Author |
Message |
bszb1


Joined: Feb 06, 2005 Posts: 13 Location: SCG, Kanjiza
|
Post subject: Messages administration rights Posted: Tue Nov 22, 2005 8:07 am |
|
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 |
|
 |
Biggles


Joined: Aug 03, 2005 Posts: 637 Location: St. Louis, MO
|
Post subject: Re: Messages administration Posted: Wed Nov 23, 2005 4:57 am |
|
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 |
|
 |
bszb1


Joined: Feb 06, 2005 Posts: 13 Location: SCG, Kanjiza
|
Post subject: Re: Messages administration Posted: Fri Nov 25, 2005 5:46 pm |
|
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 |
|
 |
alejgonz


Joined: Aug 15, 2006 Posts: 17 Location: Ottawa
|
Post subject: Re: [solved]Messages administration Posted: Sat Sep 09, 2006 9:35 pm |
|
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!!
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 |
|
 |
stegran


Joined: Sep 11, 2007 Posts: 2
|
Post subject: Re: Messages administration rights Posted: Tue Sep 11, 2007 9:44 am |
|
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
stegran's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) 9.1.2.1 |
|
| Back to top |
|
 |
stegran


Joined: Sep 11, 2007 Posts: 2
|
Post subject: Re: Messages administration rights Posted: Wed Sep 12, 2007 1:31 pm |
|
Bump
stegran's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) 9.1.2.1 |
|
| Back to top |
|
 |
Phoenix


Joined: Apr 19, 2004 Posts: 8729 Location: Netizen
|
Post subject: Re: Messages administration rights Posted: Wed Sep 12, 2007 1:48 pm |
|
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 |
|
 |
layingback


Joined: Apr 19, 2004 Posts: 953
|
Post subject: Re: Messages administration rights Posted: Wed Jan 06, 2010 5:08 pm |
|
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 |
|
 |
Dizfunkshunal


Joined: Mar 23, 2006 Posts: 2079
|
Post subject: Re: Messages administration rights Posted: Wed Jan 06, 2010 9:52 pm |
|
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 |
|
 |
layingback


Joined: Apr 19, 2004 Posts: 953
|
Post subject: Re: Messages administration rights Posted: Thu Jan 07, 2010 7:34 am |
|
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
_________________ 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 |
|
 |
Dizfunkshunal


Joined: Mar 23, 2006 Posts: 2079
|
Post subject: Re: Messages administration rights Posted: Thu Jan 07, 2010 4:26 pm |
|
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 |
|
 |
layingback


Joined: Apr 19, 2004 Posts: 953
|
Post subject: Re: Messages administration rights Posted: Thu Jan 07, 2010 4:54 pm |
|
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 |
|
 |
NanoCaiordo


Joined: Jun 29, 2004 Posts: 3678 Location: Melbourne, AU
|
Post subject: Re: Messages administration rights Posted: Thu Feb 25, 2010 1:27 pm |
|
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 |
|
 |