Joomla

What is the best way to override an existing CSS table rule?

家住魔仙堡 提交于 2019-12-13 13:14:19
问题 We're using a template for joomla where creators defined the rule in constant.css table { border-collapse:collapse; border:0px; width:100%; } When I need my own table with a custom params (width, border and so on), a nightmare begins. If I use general html params, they don't work since css rules are more important (CMIIW). If I use style= param, I suppose I can't control how the table looks for IE up to 7 inclusive. So is there a general approach to work around this or I just need to comment

Failed to get an object property that containing “:protected” [duplicate]

寵の児 提交于 2019-12-13 10:40:00
问题 This question already has answers here : What is the difference between public, private, and protected? (17 answers) Closed 6 years ago . I used the code below to get the object's property _items:protected , but no luck. $obj = JSite::getMenu(); print_r($obj->_items:protected); Object output JMenuSite Object ( [_items:protected] => Array ( [101] => stdClass Object ( [id] => 101 [menutype] => mainmenu Anyone know what wrong with my code? Thanks. 回答1: You are trying to access a protected

Good tutorials for Joomla? [closed]

喜你入骨 提交于 2019-12-13 09:54:13
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Can anyone recommend me a really good tutorial for learning Joomla, most of which I found were spam ads just to get people to click several ads without learning anything. I'm using Joomla for the first time and I'm sort of confused with certain terms because they are all alike. For example, Section and Category

My Joomla site crashes with this error SQL code [closed]

爱⌒轻易说出口 提交于 2019-12-13 09:49:08
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . So my joomla site crashes throwing me this error , the weird thing is that the other guy being on my site at the sametime in another state still has my

why i lost name of my my new joomla hello world extension in components menu?

社会主义新天地 提交于 2019-12-13 07:28:44
问题 I just made my new joomla3.1 hello world extension using discover extension method i install it. BUT after installation i am unable to locate extension name in joomla component menu. i already tried this link its working fine. http://localhost/COM/administrator/index.php?option=com_process anticipating helpful response <?xml version="1.0" encoding="UTF-8"?> <!-- $Id$ --> <extension type="component" version="3.1" method="upgrade"> <name>COM_PROCESS_NAME</name> <author>Arslan Tahir</author>

Joomla 3 use form in modal

百般思念 提交于 2019-12-13 07:17:06
问题 I want to use a jForms form in a Joomla modal window I use: Joomla 3.4.5 Bootstrap 3.3.5 jQuery 1.11.3 mootools (don't know which version) I load the needed scripts via JHTML::_('behavior.modal'); , add .modal to the a element and used the Joomla url snippet &tmpl=component for only displaying the component. The form is displayed in the modal. Errors Every time I open the modal, javascript gives me this error Uncaught TypeError: jQuery(...).find(...).radioToBtn is not a function The form is

Passing php array as variables to javascript load url and back to php array?

北战南征 提交于 2019-12-13 07:16:18
问题 I saw many examples related but I'm still confused. I'm using ajax (which I don't know much about) to get the results of a file updated every xxx seconds. It's working perfectly if I pass just one variable, but what is the best way if I need to pass an array from php through it? Structure is simples: show_results.php <?php include_once('modWhosonlineCustom.inc.php'); $document->addScript("http://code.jquery.com/jquery-latest.js"); $document->addScript("ajax.js"); $array_name =

bypass joomla menu system

戏子无情 提交于 2019-12-13 07:12:47
问题 I would love a code snippet that allowed me to intercept the URL given and then depending on a parameter serve a specific page. The purpose would be that no matter the url if the last part of the url had say '/blah' the page I wanted would display. ex 1: http://website/index.php/blah/ ex 2: http://website/index.php/blogcategory/articlex/blah/ ex 3: http://website/index.php/blogcategory/article5/blah/ Would all show the same article. Thanks, Mat 回答1: You need a plugin that is triggered

How to get username in joomla 3.2

北城以北 提交于 2019-12-13 06:59:22
问题 I had built an external application which retrieve Joomla User Information and I user the code as below : session_start(); define( '_JEXEC', 1 ); define('JPATH_BASE', '../' ); require_once ( JPATH_BASE .'../includes/defines.php' ); require_once ( JPATH_BASE .'../includes/framework.php' ); $app = JFactory::getApplication('site'); $user = JFactory::getUser(); $myuserid = $user->username; $_SESSION["myid"] = "$myuserid"; $myid = $_SESSION["myid"]; echo 'User name: ' . $myid . '<br />'; However,

How resolve this Error Loading ModulesMySQL server has gone away for large joomla database website

谁说我不能喝 提交于 2019-12-13 06:42:47
问题 I have developed a joomla website with a large database expecially the jos_users which is having about 2 million users.. I get this below error when i try to create a New contact in the backennd of joomla admin (contact component) I have dedicated server and have told me host providers to see if there is changes to be done from their side or my side to the MYSQL server... But they say the script needs to be optimized or something... below is are the ERRORs Error Loading Modules MySQL server