joomla1.7

Joomla article page: code to check published or not

狂风中的少年 提交于 2019-12-05 19:25:48
I'm looking for php code in article page to check if the article is published or not. I tried this one, but it false. if($listing['Listing']['published']==1){ } Could anyone give me some hint? Thanks a lot PS: Joomla 1.7.3, JReviews 2.3(using Joomla default content structure) Try this: jimport('joomla.database.table'); $article_id = [place here the article Id]; $article =& JTable::getInstance("content"); $article->load($article_id); echo $article->get("state"); you can find more info here 来源: https://stackoverflow.com/questions/8777915/joomla-article-page-code-to-check-published-or-not

How to hide the toogle editor from the tinymce editor

爱⌒轻易说出口 提交于 2019-12-01 23:03:11
问题 My XML is as shown below. Everything except the toogle editor button becomes hidden from the editor. Is there any other code to fix the problem. <field name="description" type="editor" cols="20" label="COM_TEST_DESCRIPTION_LBL" description="COM_TEST_DESCRIPTION_DESC" class="inputbox" filter="JComponentHelper::filterText" buttons="true" hide="readmore,pagebreak,image,article,toogle editor" /> 回答1: The simplest way would be to use CSS styling to disable the visibility of this button: .toggle

How to hide the toogle editor from the tinymce editor

怎甘沉沦 提交于 2019-12-01 20:16:31
My XML is as shown below. Everything except the toogle editor button becomes hidden from the editor. Is there any other code to fix the problem. <field name="description" type="editor" cols="20" label="COM_TEST_DESCRIPTION_LBL" description="COM_TEST_DESCRIPTION_DESC" class="inputbox" filter="JComponentHelper::filterText" buttons="true" hide="readmore,pagebreak,image,article,toogle editor" /> The simplest way would be to use CSS styling to disable the visibility of this button: .toggle-editor { display: none; } 来源: https://stackoverflow.com/questions/12138275/how-to-hide-the-toogle-editor-from

Show a joomla article to registered users only, or a login screen if not logged in yes

坚强是说给别人听的谎言 提交于 2019-11-30 22:28:07
In Joomla prior to 1.6 i could set a menu-item to public , and its contents: an article for example to registered . This lead to a situation where people could see the link to an article in the menu when not logged in, but got a login component whenever they clicked it. And after that they saw the article. In 1.7 these same actions lead to a situation where when I click the link the component screen just stays empty. How do I get registered articles to show a login screen when the front end user is not logged in with sufficient rights? It was soo easy before and I can't seem to get it to work

Show a joomla article to registered users only, or a login screen if not logged in yes

早过忘川 提交于 2019-11-30 05:36:53
问题 In Joomla prior to 1.6 i could set a menu-item to public , and its contents: an article for example to registered . This lead to a situation where people could see the link to an article in the menu when not logged in, but got a login component whenever they clicked it. And after that they saw the article. In 1.7 these same actions lead to a situation where when I click the link the component screen just stays empty. How do I get registered articles to show a login screen when the front end

Override components/com_users/models/forms/login.xml - Joomla 2.5?

巧了我就是萌 提交于 2019-11-29 16:37:19
I've been trying to override the file login.xml but no matter what I try, the edited version in my template folder doesn't show up. How can I override this file? Update I have tried template/<templatename>/html/com_users/models/login.xml and other variations like template/<templatename>/html/com_users/models/forms/login.xml or template/<templatename>/html/com_users/forms/login.xml etc without any success. Shaz Here's a solution: http://forum.joomla.org/viewtopic.php?t=583380#p2375649 I just tested it in Joomla 2.5.3 and it works. Update here is the solution copied from above URL We can

Override components/com_users/models/forms/login.xml - Joomla 2.5?

坚强是说给别人听的谎言 提交于 2019-11-28 09:36:40
问题 I've been trying to override the file login.xml but no matter what I try, the edited version in my template folder doesn't show up. How can I override this file? Update I have tried template/<templatename>/html/com_users/models/login.xml and other variations like template/<templatename>/html/com_users/models/forms/login.xml or template/<templatename>/html/com_users/forms/login.xml etc without any success. 回答1: Here's a solution: http://forum.joomla.org/viewtopic.php?t=583380#p2375649 I just

500 internal server error at back end - Joomla

时光总嘲笑我的痴心妄想 提交于 2019-11-27 09:40:42
I have installed new site in Joomla 1.7 and its working fine, but when i checked its back-end (administrator) got 500 Internal Server Error . Note: Site is working fine in Local server. Please suggestion me any solution. Thanks in advance. Okiemute Omuta First you have change folder permission to 775 for the following folders: cache, logs, tmp & administrator/cache then go to: configuration.php find code: $log_path = 'XXXXXXXXXXXXX'; $tmp_path = 'XXXXXXXXXXXXX'; and change code into: $log_path = './logs'; $tmp_path = './tmp'; problem solved :) I had this problem, but none of your advices didn

500 internal server error at back end - Joomla

荒凉一梦 提交于 2019-11-26 14:48:36
问题 I have installed new site in Joomla 1.7 and its working fine, but when i checked its back-end (administrator) got 500 Internal Server Error . Note: Site is working fine in Local server. Please suggestion me any solution. Thanks in advance. 回答1: First you have change folder permission to 775 for the following folders: cache, logs, tmp & administrator/cache then go to: configuration.php find code: $log_path = 'XXXXXXXXXXXXX'; $tmp_path = 'XXXXXXXXXXXXX'; and change code into: $log_path = '.