How to allow authors to auto-publish in Joomla 1.5.x ? This can be achieved using third party components or modules such as ja submit or content submit. But i've got some little trick here to make our registered users or authors can publish the contents to our website without administrator approval.
The hack for Joomla 1.5.X is to change the following two files, note that the hack has to be applied to any future upgrade of the core.
components\com_content\controller.php
components\com_content\models\article.php
For the first comment out some lines around 229 as follows to stop the wrong message coming up on save:
// if ($access->canPublish)
// {
// Publishers, admins, etc just get the stock msg
$msg = JText::_('Item successfully saved.');
// }
// else
// {
// $msg = $isNew ? JText::_('THANK_SUB') : JText::_('Item successfully saved.');
// }
For the second file change a zero to one on line 332 or thereabouts. This opens the gate to authors.
// For new items - author is not allowed to publish - prevent them from doing so
$article->state = 1;
:), that;s it fellas!
skip to main |
skip to sidebar
Thursday, July 29, 2010
Labels
- iPhone (8)
- Joomla (3)
- Mobile Phones (3)
- My Life (7)
- Photologs (3)
- Tips and Tricks (4)
- Ubuntu Stuff (14)
Blog Archive
-
▼
2010
(43)
-
▼
July
(17)
- How to allow authors to auto-publish in Joomla 1.5.x
- ffmpeg is cool!!! :)
- Downloading youtube videos without 3rd party plug-...
- Iphone 2g : Jailbreak iPhone OS 3.1.3 Firmware wit...
- How to Create Bootable Linux USB Flash/Pen Drive f...
- Changing your default apache publishing directory
- Installing phpmyadmin on ubuntu server 10.04 lucid...
- Setting Up Webserver using Ubuntu 10.04 [part 3]
- Setting Up Webserver using Ubuntu 10.04 [part 2]
- Setting Up Webserver using Ubuntu 10.04 [part 1]
- Unlock almost all nokia models security code
- Streamyx dns
- Hardening your Apache and PHP on Ubuntu 9.04 Server
- I'm losing my root password
- Command line is everything... :)
- Hack and crack that WEP keys!
- Ubuntu 10.04 is called lucid lynx
-
▼
July
(17)
Pages
dr rude's blog |. Powered by Blogger.
Blog Archive
-
▼
2010
(43)
-
▼
July
(17)
- How to allow authors to auto-publish in Joomla 1.5.x
- ffmpeg is cool!!! :)
- Downloading youtube videos without 3rd party plug-...
- Iphone 2g : Jailbreak iPhone OS 3.1.3 Firmware wit...
- How to Create Bootable Linux USB Flash/Pen Drive f...
- Changing your default apache publishing directory
- Installing phpmyadmin on ubuntu server 10.04 lucid...
- Setting Up Webserver using Ubuntu 10.04 [part 3]
- Setting Up Webserver using Ubuntu 10.04 [part 2]
- Setting Up Webserver using Ubuntu 10.04 [part 1]
- Unlock almost all nokia models security code
- Streamyx dns
- Hardening your Apache and PHP on Ubuntu 9.04 Server
- I'm losing my root password
- Command line is everything... :)
- Hack and crack that WEP keys!
- Ubuntu 10.04 is called lucid lynx
-
▼
July
(17)
1 comments:
thanks a lot, I tried desperately to this article. I also stretch the same topic in my blog if you want (www.paskuale.it) also removes the link from this message before approving it, write it just for your knowledge
Post a Comment