FAQ Database Discussion Community


jQuery move contents of one div into another append() not working

jquery,twitter-bootstrap,joomla
I am working on a tabbed layout using Bootstrap 2.3.2 in Joomla and due to the way Hikashop generates a product layout, I have an outer "tab-content" div and when putting in a product description, the result is an inner "tab-content div within a "tab-pane" with a single nav at...

Joomla page down

joomla,content-management-system
I have a Joomla 1.6 page running on my server and it suddenly went down. The homepage's source code, instead of being the HTML it used to be is now the following: <? function...

Do I need to install Joomla again for subdirectory?

php,mysql,joomla,joomla2.5
Till now I was comfortable in installing and using Joomla in single server directory say “mywebsite”. Now my requirement is to have subdirectory say “mywebsite/exam” which will have its own index file. Do I need to install Joomla for sub directory too??? Or else is there any way so need...

Protect a dangerous static method in PHP

php,security,joomla
myClass.php public function clearCache() { // validate input and determine the appropriate cache folder; ... helper::removeFolder($folder); } helper.php static function removeFolder($folder) { ... } The first method does all the input validation to ensure we're not removing the wrong folder. I would like to protect the second method from php...

Selecting sorted value from mysql

php,mysql,joomla
I'm working with the following MySQL table with joomla. id | Parent_id 7049 | 7051 0 | 7052 7051 | 7053 0 | 7054 7054 | 7055 I want select data from table in following way: parent ID followed by child ID. Is it is possible? I have attached Image...

PHP string operation - strip .jpg extension [duplicate]

php,joomla
This question already has an answer here: How to remove extension from string (only real extension!) 12 answers I have the following php: <?php $image_directory = JPATH_SITE . '/images/site/'; $images = JFolder::files($image_directory); foreach($images as $image) { echo '<li><img src="/images/site/'.$image.'"> <p class="slidecaption">'.$image.'</p></li>'; } ?> So $images ends up being 1980.jpg...

Show joomla modules only on specific URL using PHP condition with Metamod

php,joomla,query-string,request-uri
I need to show modules only on pages which url contains "saucony". For example show product slider only on pages like: /sneakers/woman-sneakers-saucony-dxn-trainer-black-orange-detail or /sneakers/woman-sneakers-saucony-jazz-low-pro-vegan. There are a lot of urls with random names, so i cant put all of them into condition directly by hand using full URL path with...

Adding a background image to a single table cell

html,css,joomla
Hello I was wondering if it's possible to add a background image to a single table cell? If you look at the image I have below I would like the green background image I have to be in those cells. My code for the table is, <table class="TFtable" style="height: 448px;"...

How to format date column in SQL Query in Joomla Model

mysql,joomla
I am trying to format a date column to YYYY in SQL query in Joomla so that i can use this in a where condition for selecting data. Because the column is always in '' the query produces error. Please see an example below. $query->where('(e.date_from LIKE '.$ref_year.' OR e.date_to LIKE...

Joomla Front-End User Editing Content in One Area

joomla,wysiwyg,frontend
On my website, I have an area where a user can create a team profile page. On the top of this page, is a header area that is 960px width x 170px height. This header, I would like to make a customizable area (like a user WYSIWYG) for the users....

Keep getting jQuery conflicts, can't resolve

javascript,joomla
I'm currently updating the website http://www.dev.optiekvandevecht.nl/, I updated it from Joomla 3.3.6 to Joomla 3.4.1. Before updating to 3.4.1, a few lightbox thigns wouldn't work. Right now, I've updated Joomla, and the lightboxes work fine, however, now the nivoSlider seems to be broken (and I suppose it's got to do...

Access permission inside Joomla custom component

php,joomla
I am developing a Joomla custom component for my project. I have 3 user groups in my system, apart from Joomla's default user groups. Let's say, "Lab assistance", "Doctor" and "reception", and inside my component there are sections for doctor, lab assistance and reception. Each section can only be accessed...

https site not working on php upgrade

php,joomla,https
I tried to upgrade Joomla version from 3.3.6 to 3.4.1 which ended up in "could not open joomlaupdate.xml for writing" error. I had to upgrade php from version 5.3 to 5.5 which ended up in the https site not working.http site works fine.Now I've downgraded to 5.3 and still the...

Calling li's in css

html,css,joomla,html-lists
i am working on a site with this fieldset with ul. It is a joomla template where I am logged in as a publisher. This is the menu where you are able to change your articles. What I would like to happen is that the first a and the last...

Advise on simplifying a PHP statement

php,joomla,coding-style
I am new to PHP and am coding a template file for a Joomla K2 item layout. I have an 'extra field' $extrafields[15] configured which outputs as "Yes", "No" or "". $extrafields[16] is a text string. I have this code, which works but would appriciate advice on how to simplify...

Joomla call specific function from component to module

database,joomla
I just want to call a specific function in a component. From the RokGallery Component in com_rokgallery\lib\RokGallery\Model.file.php is a &createNew function that i need in a module. Did anyone know how I can call these from my module and gave them spec variables? In components\com_rokgallery\lib\RokGallery\Job\Processor\import.php on Line 31 is something...

Remove span from column with introtext

mysql,sql,joomla
In my database, I have my_table, with column introtext. Some of the records include a span, I'd like to remove: <p><span style="line-height: 1.7142857148;">Text text text...</span></p> And get instead something like: <p>Text text text....</p> I need an SQL query to do this automatically. I am trying this: UPDATE my_table SET introtext=...

Having Users IP Address Showing In My Email Form [duplicate]

php,html,forms,joomla
This question already has an answer here: How to get the client IP address in PHP? 13 answers Hello I have created an email form but am very unfamiliar with how to code in a section that displays a users IP address in the email that is sent. Here...

How to align text next to my Image in PHP

php,html,joomla
I am wanting the text I have above the photo on my website to be positioned on the right hand side next to the image. I have attempted to do this but the formatting must be wrong. Can anyone steer me in the right direction. Thanks. http://newrealestate.properties/lily-104-maidstone-3012-victoria.html Here is my...

Write to Joomla database

php,mysql,json,joomla
I have a cool component for joomla that help me register users by creating a url (see the link). joomla extention What i would like to do is to be able to write on a different table using the same method: This is the code that help with user registration:...

pass specific element of array to ajax in joomla 3 module

php,jquery,ajax,joomla
I'm sure this is really simple but I have been trying to get this for ages. I have a foreach loop which iterates over an array of objects and displays them in an html table with a submit button which when clicked makes an ajax call to display some data...

Drop Down Menu in CSS not working correctly

php,html,css,joomla
I've created a joomla template and the drop down menu is opening wrong. It's pushing my content down instead of going over my text. My CSS: .main_menu { margin-top: 0px; margin-bottom: 10px; text-align: center; } .main_menu ul { margin: 0px; list-style: none; display: inline-block; } .main_menu li { margin-right: 5px;...

Integrate content from API with a CMS website

wordpress,joomla,content-management-system,ecm
I don't have lots of experience with Wordpress, Joomla, or any other PHP CMS for that matter. But I do know how to build a JSON RESTful API. In this particular case I've created one that handles creative content (articles, events data etc.) Now I would like to create websites...

Reducing the size of a div container

html,css,joomla
Hello I was wondering how I would go about making my div container smaller in size in height but keep the text centered? Here is an image of it below. My css so far for this div is, .contactdet { background: rgba(255,255,255,0.1); // transparent white background: #fff; // Left as...

Joomla file system routing

joomla,file-structure,joomla-sef-urls
A friend asked me to help him change something on his Joomla website, but I'm having a bit of difficulty understanding the file system and routing. From what I've read so far, looks like SEF urls are activated. Now if the sub directory is /index.php/standings, for instance, how can I...

Redirect URLs using Redirect component or htacess

php,.htaccess,redirect,joomla
In Joomla 3.4 want to redirect this page: https://www.portal-gestao.com/component/k2/1422-como-i...%C3%A9tica-na-sua-empresa.html To this: https://www.portal-gestao.com/item/1422-como-i...%C3%A9tica-na-sua-empresa.html Using Compontent - > Redirect, I added the following redirect: /component/k2/1422-como-i...ética-na-sua-empresa.html Redirect to: https://www.portal-gestao.com/item/1422-como-i...%C3%A9tica-na-sua-empresa.html But this did not work. Then I added in .htaccess: RewriteEngine On RewriteCond %{HTTP_HOST}...

Frontend editor in joomla 3 does not load the assigned position

php,joomla,joomla3.0,joomla-extensions
Well I use the new feature frontend editor in joomla 3.4 and works well with a single template (protostar - default). I need to use multiple templates on my site. Then copy the protostar template, delete I do not need and protostar2 name, just place a call position position-80. Template...

Can Joomla has a custom excerpt like WordPress, Drupal?

joomla
Both WordPress and Drupal have a custom excerpt, it's very useful, but Joomla seems doesn't have one. Does someone know which extension can enable Joomla's custom excerpt function? Thank you!...

PHP pages in Joomla! 3.x

php,joomla
I'm building a Joomla! 3.3.6 website, and I want to put in it a tool that I've made. I know there are lots of plugins that lets me to write PHP or JavaScript in Joomla!'s modules, but this tool uses a dompdf library and has lots of .js and .php...

joomla menu not vertically aligning icons

joomla
Hi I am struggling with a joomla application that I am currently writing. I am using Joomla 3.3 and in this instance I am using the icons that come with the menu, the text for the menu is vertically aligned (correct) but the images are top aligned. I have tried...

Joomla pretty link to article

joomla,hyperlink,module,pretty-urls
I want to create a button with a link to an article for which I have the ID. I get the ID from a form field which returns a menu item ID. So far I've tried this: <a href="index.php?option=com_content&view=featured&id=280"><p>read it</p></a> result = /joomla/index.php?id=69, so it doesn't work. The end result...

Syntax Error - Database

mysql,joomla
Can someone please tell me what the syntax error is here: SELECT T.id,T.vmProductID,T.name AS Course,C.title AS Category FROM j25_lms_tests AS T LEFT JOIN j25_lms_categories AS C ON C.id = T.catid WHERE T.published=1 AND T.vmProductID IN() ORDER BY T.ordering This is the main code from script: 'SELECT T.id,T.vmProductID,T.name AS Course,C.title AS...

Joomla css path incorrect

css,joomla,path
i have a problem with the joomla css path... Go to the url for check : http://www.vendreweb.fr/cx/ You can see the page is correct, but now click on Shipment button... you will see my problem... The Fields css won't run correctly... Can you help me please :( Below the source...

resolved Jumi code is replaced when re-editing an article in Joomla

php,joomla,jumi
I did following in order to include php code into Joomla: writing a php application with jumi as: <?php echo '<p>Hallo Welt</p>'; ?> include following code in the target article, where the previous code should be included: {jumi [*1]} this worked so far. But, when i try to edit the...

Is CMS caching needed while it runs on Varnish Cache?

wordpress,magento,caching,joomla,varnish
I know that the question seems weird but i am really not sure about it. I am running a bunch of Joomla, Wordpress and Magento websites and i am not sure if there is a need to enable build-in CMS cache while they run on varnish.

Joomla Upgrade from 3.3.6 to 3.4 ERROR: Invalid AJAX data

php,ajax,joomla
There is an error showed in a pop-up when I try to upgrade my 3.3.6 Joomla website: ERROR: Invalid AJAX data: Fatal error: Cannot access protected property JException::$code in /home/MYSITE/public_html/WEBSITE-FOLDER/templates/MY_index_template/error.php on line 14 I guess there is 404 page url on line 14 : (between line 13-17): defined( '_JEXEC' )...

How to override CSS in joomla template

css,joomla,override
In my Joomla template I would like to override some styles, so I've created my own css and added styles, also media queries. Most of all works only if I use the !important keyword and something does not work at all. For example: <div id="content_right" class="span3"> In this div I...

Update Joomla from 2.5.28 to 3.4.0

php,mysql,joomla
I need to update my joomla website which current version is 2.5.28. Now I'm trying to update it using this: I use XAMPP as a server environment (PHP 5.4, MySQL 5.6) Use a backup of my site Also use astable version of joomla 2.5.28 I tried to update with both...

How can override the view files of the componenet in joomla

view,joomla,override,joomla-component
I using the ARI Quiz lite for online quiz. i need to orverride view of quiz listing, but i dont know how to do this. I tried to override listing file /components/com_ariquizlite/view/quiz_list.html.php to /templates/rhuk_milkyway/html/com_ariquizlite/view/quiz_list.html.php but it's not working. please help me. thx adv.......

Accidentally replaced joomla with wordpress [closed]

wordpress,joomla
I've accidentally installed wordpress into a production joomla directory. The website is not mine, how do I fixed it? I'm assuming that only the root directory would be affected, so delete all wordpress directories and replace the index.php with the one from joomla, but it still gives a blank page....

htaccess redirect to subdomain based on query string

php,apache,.htaccess,redirect,joomla
I searched for similar questions but none of them was applicable to my situation. What I need to do is redirect from old url's that have specific query string: option=com_virtuemart to a subdomain : http://parts.domain.com Tried bunch of rules and conds but haven't achieved right redirection. It was always redirecting...

How do I add Facebook and Twitter share buttons to a group of existing articles in Joomla?

joomla,website
Am I going to have to do it individually or is there some way I can alter the template or wrapper or whatever to add buttons to all articles at once?

Mijoshop “Add To Cart” with custom options

php,joomla
I am working with Joomla and Mijoshop currently but they do not meet my needs as I also am having to integrate these with jCalPro. The idea is that users can create events on jCalPro, and members can sign up for them. The problem is figuring out how to integrate...

adding inline script in joomla 3

javascript,jquery,joomla
I'm trying to add script in my teplate but it often gives an error: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in Z:\home\localhost\www\RealEstate\templates\real_estate\index.php on line 21 This is my code: <?php defined('_JEXEC') or die; $app = JFactory::getApplication(); $doc = JFactory::getDocument(); $user = JFactory::getUser(); $this->language = $doc->language; $this->direction = $doc->direction; $params =...

Joomla Get menu id from names

joomla,menu,params
I am in joomla 2.5 and I try to get the id of a menu, I have the name, the alias exemple : menu = FAQ-> menu item =FAQ I have try : $app = JFactory::getApplication('site'); $params = $app->getParams(); $idfaq = $params->get('content_id_faq'); but i am a newbie so I dont...

.htaccess and “URL Rewrite on” in Joomla 3.4

php,.htaccess,joomla
at my Joomla 3.4 Installation the URL Rewrite to on results in http://xxx.ch/index.php/de --> http://xxx.ch/de/** this ends in a Error 403! What code in my .htaccess is doing this? My .htaccess is as follows: ## # @package Joomla # @copyright Copyright (C) 2005 - 2015 Open Source Matters. All rights...

Joomla and PHP Smarty Framework

php,joomla,smarty
I have a website which goes on Joomla 3 and PHP Smarty Framework (in which the component is written) It is Auction site and I currently have some issues with the Smarty... Here's the deal - When user is logged on, the site shows all his bids, in the bid...

Joomla - How to override component controller?

joomla
I want to override a controller inside a component ie; File path : components/com_test/controllers/test.php how to override test.php ?...

PHP : Joomla:- File upload issue issue in “iPhone devices” (Uploading the same image from different file upload fields) while working fine on desktop

php,html,ios,iphone,joomla
I am facing an issue on all iPhone devices (iphone 4, 5, 6 & iPad). I have created a page: http://joomla.iworklab.com/aquadam_newtheme/index.php/rfq-construction-stage/constructionstageform On this page, there many file upload fields but only three file upload fields are taken the same image on iphone devices & others file uploads fields are working...

Understanding Joomla login logic

php,joomla,login
I'm fairly new to Joomla and Php in general. I need to understand how does Joomla perform login operation. The following is the php snippet that performs the operation: <form action="<?php echo JRoute::_('index.php?option=com_users&task=user.login'); ?>" method="post"> <fieldset> <?php foreach ($this->form->getFieldset('credentials') as $field): ?> <?php if (!$field->hidden): ?> <div class="login-fields"><?php echo $field->label;...

Can't install joomla 3.4 (blank page) [closed]

php,joomla,server,joomla3.0,vps
I've tried installing Joomla 3.4 on to my server(upload .zip and extract everything), but everytime I want to run it, it directs me to "installation/index.php" then the entire page is blank. On the console menu inspect element the error I got is : "Failed to load resource: the server responded...

Joomla, Falang integrate component… Fatal error: Call to a member function getTable() on null

php,xml,joomla,components,multilanguage
Hello I am having some issues for integrate a custom component of joomla in Falang for multilanguage website Debugging I got null: Fatal error: Call to a member function getTable() on null object(ContentObject)[183] public '_contentElement' => null My XML for integrate my component looks as: <?xml version="1.0"?> <falang type="contentelement"> <name>Members</name>...

Look for a string in URL using test and location.href

javascript,php,regex,joomla
I'm trying to create a code that will show a text only if the word "obyn" is in the URL. <p id="p1">Hello World!</p> <script> function myFunction() { var str = self.location.href; var patt = new RegExp("obyn"); var res = patt.test(str); return res; } if(myFunction()){ document.getElementById("p1").innerHTML = "New text!"; else{ document.getElementById("p1").innerHTML...

Joomla article background CSS

html,css,joomla
I want a background (color) to be displayed by default for each article. I thougt of doing this in a css file, but I don't know where to place the statement. Btw I can't find the definition of the article tag in any css file. The following code shows 2...

Joomla 3.4.0 pagination

php,joomla,joomla3.0
I have just updated to Joomla 3.4.0 and my pagination hack has disappeared. Previously the number of (pagination) links to show could be edited in pagination.php but I can no longer find out where that file lives? What's causing this issue and how can I fix it?...

SQL - move data from 1 table to another in a range [closed]

php,mysql,sql,joomla
I have 1 table q3ept_content there is 8000 entries. i want to to move data from 1 to 500 in a range into a new table2 In table q3ept_content i have many columns but one id column i have through that i can move all 500 rows.. please tell me...

Joomla: K2 - How to strip out curly brackets from meta description using preg_replace

php,joomla,metadata,curly-brackets,k2
I need to strip out some curly brackets from the meta description which is created by joomla/K2. I found two php solutions to strip unneeded curly brackets: $description = preg_replace( '/{.+?}/', '', $description); and $metaDescItem = str_replace('/{.+?}/', '', $metaDescItem); There are different curly brackets which control the content of my...

Mail is not working in joomla?

php,email,joomla
Here is joomla code about send and receive mail: $mailSender = JFactory::getMailer(); $mailSender->addRecipient($mailSender->From); $mailSender->setSubject($subject); $mailSender->setBody($body); $mailSender->isHtml(1); if ($mailSender->Send() !== true) { echo "Send Fail"; } else { echo "Send Success"; } But it didn't work when I send and receive mail. When I send mail, it output "Send Fail". What're...

Even number slides are hidden in Bootstrap's carousel

javascript,jquery,css,twitter-bootstrap,joomla
I have created a slideshow module for joomla 2.5.x/3.x. It reads image files in specified directory and shows slides. Today I wanted to use it in another template. Joomla shows my slideshow module well but even numbered slides are hidden. 1st is shown and 2nd is hidden, 3rd is shown...

how to write this query in joomla

php,mysql,joomla
I want to get all parent category title of child category so in mysql i can do this with this code SELECT T2.id, T2.title FROM ( SELECT @r AS _id, (SELECT @r := parent_id FROM `up8te_categories` WHERE id = _id) AS parent_id, @l := @l + 1 AS lvl FROM...

Joomla database migration

joomla,content-management-system,database-migration
I have a Joomla website but I have to admit that it is a mess. I've played with files I shouldn't have been playing with. Therefore I'd like to start over with a fresh installation. But I also don't want to lose my content. Will it be enough to tell...

Which joomla module choose to create screencasts?

joomla,joomla-extensions
I have a task from the client to create a screncasts website. It must be similar to egghead.io or laracasts.com. I decided to choose Joomla for a basis. And for this reason, I want to know are there components or modules for Joomla, which realize similar video functionality? For example,...

jQuery not running correctly on Joomla

javascript,jquery,joomla
I am working on a website and I cannot find the reason why the jQuery code doesn't show as it shows on my local server, without using Joomla. I am using Joomla 2.5.1 and I am trying to run the following piece of code on this website: http://www.elitartravel.com Code: <script>...

Get the article to extract title, alias, content, etc. Joomla 3.X [PHP]

php,joomla,get,extract,article
I'm new on this community, and I'll be very grateful if someone can help me with this. Well, I'm trying to get the information from any article, by ID or by [object]. The idea is, "do some actions" for all of these data, extracting the "title", "content", etc. then manipulate...

Text centered overlayed on video in Joomla module in HTML

html,css,html5,video,joomla
Ok. Ive been struggling with this for a day. Can any one help? I am trying to auto play a .mp4 video as the background in a Joomla CMS module with text overlaying on the top in the center of the module. I decided simple html would be better than...

How to add custom forms in Joomla 3.4 Articles and save data [closed]

php,database,forms,joomla,joomla3.0
I am new in Joomla, I need to add form(inquiry, feedback,...) in pages (it may be articles or ...), What Should I have to do.There is no predefined feature in Joomla or I have to do copy paste code etc....

Ubuntu Lamp - Proxy - Firewall - Joomla curl and fsockopen wont work

php,apache,ubuntu,curl,joomla
Ok i have been struggling with this for a couple of days now. I have a Joomla installation on a local machine on our network for our intranet, also installed is Jomsocial. The problem is that when i go to site configuration or edit an event or navigate to any...

Joomla 3.x: How to add or Link to a external javascript file

javascript,jquery,joomla,joomla3.3
I want to use a parallax for my Joomla. Specifically this one: https://github.com/IanLunn/jQuery-Parallax How can I insert these to my joomla pages. <script type="text/javascript" src="scripts/jquery.parallax-1.1.3.js"></script> <script type="text/javascript" src="scripts/jquery.localscroll-1.2.7-min.js"></script> <script type="text/javascript" src="scripts/jquery.scrollTo-1.4.2-min.js"></script> I am using this template with Helix Framework http://demo.joomshaper.com/?template=radon#...

Joomla 3 get configuration of other plugin onAfterInitialize()

plugins,joomla
Joomla 3 get configuration of other plugin onAfterInitialize() I have two plugins authentication and system. I'd like make action onAfterInitialize event in system event using configuration defined in .xml file of authetication plugin. What's the right way to do it? Do I need separate plugin for configuration and how do...

www Rewrite Rules for IIS Web.config Not Working

mod-rewrite,joomla,url-rewriting,iis-7,web-config
I have a rewrite rule in IIS that is supposed to rewrite inbound URL's without the 'www' to 'www'. The rewrite rule is in fact rewriting the URL to include the 'www', but it's directing the visitor to /index.php instead of sending them to the link they were trying to...

How to add a new page to Joomla Admin panel

joomla,joomla3.0
I'm new to Joomla. I need to add a new custom PHP page inside Joomla admin panel (not on the main site) to display some data from my own tables. My Joomla version is 3.4.1 Stable. Please help me. Thank you....

Joomla JFactory Select

php,joomla
I have this code trying to get data from a table: <?php define( '_JEXEC', 1 ); define( 'JPATH_BASE', realpath(dirname(__FILE__).'/../../' )); require_once ( $_SERVER['DOCUMENT_ROOT'].'/xampp/hobbies/includes/defines.php' ); require_once ( $_SERVER['DOCUMENT_ROOT'].'/xampp/hobbies/includes/framework.php' ); $db =& JFactory::getDbo(); $query = $db->getQuery(true); $query = 'SELECT * FROM vftd8_community_events'; $db->setQuery($query,0,30); $results = $db->loadObjectList(); if ($db->getErrorNum()) { echo $db->getErrorMsg();...

Joomla 3.3 Article URL?

url,joomla,joomla3.0
I am using Joomla 3.3 and have a lot of articles. My goal is to make it so the URL for an article is, www.mysite.com/menu-item/article However, right now when you click on an article it goes to www.mysite.com/(id)-article and takes you to the main page instead of staying on the...

How to disable ctrl-u on a joomla 3 website

joomla,ctrl
i have simple and very interesting question, that is the following, my client wants to disable the ctrl-u in his joomla 3 website, I mean that i have noticed that on many various websites when i m trying to view the code by pressing the ctrl-u it pop up a...

set og tags for homepage only

php,html,facebook,joomla
i have a problem with og tags. i added on my template index a string like <meta property="og:image" content="http://www.example.com/facebook.jpg" /> to fix an image for the site when shared on facebook because otherwise strange images where chosen by facebook. But this conflicts with all my blog articles pages when shared...

How to insert column in Joomla table

mysql,joomla
i have a problem in inserting a varchar in column in a table in joomla. I know that there is a syntax ALTER TABLE joom_virtuemart_categories_en_gb ADD short_desc varchar(1200); But how do i do it in joomla query? Here is my code. Hope you can help me. thanks $db = JFactory::getDbo();...

jQuery Uncaught TypeError $ is not a function (only working on few pages)

jquery,joomla
I am quite new to jQuery and I am trying to include a toggle-nav script to my Joomla template. I included the latest version of jQuery and my .js file where the function is stored in. The script works on few pages (e.g home, shop), but it does not work...

How to update table within joomla module or backend?

php,mysql,joomla,module
I working on some module and want to have ability to update table with image sizes - there already two columns in table (width, height). Its my first approach to joomla module develop. All code works except last foreach with update. Where I'm wrong? And how to trigger this function...

Fatal error: require_once() [function.require]: Failed opening required global.php

mysql,joomla,xampp,virtuemart
I am try to open my site in locally. xampp is installed, but I get the following errors. How can I rectify this: Warning: require_once(/Applications/XAMPP/xamppfiles/htdocs/artgallery/administrator/components/com_virtuemart/classes/phpInputFilter/class.inputfilter.php) [function.require-once]: failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/artgallery/administrator/components/com_virtuemart/global.php on line 104 And: Fatal error: require_once() [function.require]: Failed opening required...

PHP post to url

php,python,redirect,joomla
I have a python script that listen to specific port on a server and waits until it gets an http request from browser or program to run. I want that script to run when the admin on my Joomla site clicks on the save button. That means that I need...

How To Break Up Company Website Into Groups To Manage Their Content

php,apache,joomla,content-management-system
I've been looking around and not finding any good answers. I work at a small company. They have a quick information website for internal users. It needs updating but here is the situation. I want each group to be able to manage their own page/s contents. For instance HR to...

Getting Joomla User Group Id to variable

php,arrays,joomla,foreach,joomla3.0
Joomla 3.0 $user = JFactory::getUser(); $groups = $user->get('groups'); foreach($groups as $group) { echo $group; } This was an answer @lodder gave a while back, in regards to getting the user group id. My issue is that the user is in multiple groups. I need to differentiates between using the second...

joomla module position if else and

php,if-statement,joomla,joomla3.0
I am creating an responsive template and for that to happen I need to use and if else and function. This is what I have so far. <?php if ($this->countModules('left')) { ?> <p>Left + Content</p> <?php } elseif ($this->countModules('right')) { ?> <p>Right + Content</p> <?php } elseif ($this->countModules('left')) && ($this->countModules('right'))...

How to make formula with mathjax responsive

joomla,responsive-design,mathjax
I have a big problem with displaying math expressions in my responsive website. In particular, if you visit this page with a smartphone, you can see that most of the math expressions are cut off due to responsive design. I'm using Joomla and the Jextbox Equation plugin for displaying them....

How to show form with specific fields to the user after registration

joomla,joomla2.5,joomla3.0,joomla-extensions
I would like to show the form to the user with additional fields to fill after the registration. This will help me to have the very simple registration form (username, email, password) and after that I will ask all additional info in that new form so as not to bother...

Override components/com_users/models/forms/login.xml add class - Joomla 3

php,joomla,joomla3.0
I'm working on the default login page in Joomla 3. I overrided /templates/MYTEMPLATE/html/com_users/login/default_login.php and it's working fine but in that file to generate the form field it uses JForm, which create the html tags using : /components/com_users/models/forms/login.xml Now what I would like to do is override that file to add...

How to access the frontend menu object in Joomla from the backend?

php,joomla,joomla2.5,joomla3.0
I'm writing a component, and I have this code for the frontend that works great to pull the menu object: $menuObjects= JFactory::getApplication()->getMenu(); $menuArrays = $menuObjects ->getMenu(); From there, I can generate an article URL given an article ID (which is what I'm trying to do). However, from the backend administrator...

how to convert a joomla 2.5 plugin to 3

joomla,joomla3.0
I have a plugin for joomla 2.5 I want install it in joomla 3 but after installing I see this error : Fatal error: Call to undefined method JController::getInstance() in /home/xxx/public_html/administrator/components/xxx/xxx.php on line 21 Line of error: // Require specific controller if requested if($controller = JRequest::getCmd('controller')) { $path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php';...

How can I put Component into Module in Joomla! site?

joomla,module,components,joomla-extensions
I wonder if exists a way to put component into module without install plugin, neither component nor module. Thanks and my apologize for my bad English....

Importing custom CSS into joomla

php,css,joomla
I've created a custom template for Joomla and in my CSS I've got a number of style sheets that activate at a certain pixel dimension, like so: <link rel="stylesheet" media="(min-width:761px) and (max-width:1080px)" href="css/720.css"> Now if I'm to transfer it to Joomla under the PHP for the template I'd write it...

Joomla bootstrap jdoc component width

twitter-bootstrap,joomla,kunena
Building a Joomla template using bootstrap. I use 3 grids as follows: <div class="row"> <div id="leftbar" class="col-xs-3"> <jdoc:include type="modules" name="leftbar" /> </div> <div id="middle-content" class="col-xs-6"> <jdoc:include type="component" /> </div> <div id="rightbar" class="col-xs-3"> <jdoc:include type="modules" name="rightbar" /> </div> When a user presses on "Forum" on my website, they are taken to...

CSS Table with Alternating Colour Rows

html,css,joomla
Hello I was wondering if it's possible with a css table to have alternating colour rows? I would like it to look like this, http://i.imgur.com/zT04atv.jpg My code so far for the table is this. I have tried but just can't seem to get it to work. Is this possible? And...

Using helper getTagItemsQuery needs alias ids not actual aliases

joomla,joomla3.0
I am writing a module to display tags and I'm using the JHelper method getTagItemsQuery. In the documentation it states that the second parameter should be a content alias (eg. 'com_content.article' ) but from what I can see in the code, it assumes that the second parameter is a content...

Redirect all subdirectory links to another subdirectory

wordpress,apache,.htaccess,redirect,joomla
Need to redirect all blog links such as website.com/2015/03/post-title to website.com/blog/2015/03/post-title . So far nothing I used worked - neither redirect, nor redirectmatch. What happened was the website was redesigned from Wordpress to Joomla, so there's a Joomla .htaccess file on the root of the website, but the blog remained...

Joomla taks works with Friendly url OFF but do not with Friendly url ON

joomla,friendly-url,joomla-task
I have trouble with joomla 3.3.3 site. When my Firendly url is off this url with task works fine <a href="<?php echo Juri::root(); ?>index.php?option=com_ezwatchlists&amp;task=delete&amp;rowid=<?php echo $row->id; ?>"><?php echo JText::_('EZWATCHLISTS_DELETE')?></a> but when i turn ON Friendly url task is ignored. NOTICE: When I look in file inspector I see link like...

Translate joomla K2 template sentence

joomla,translation,joomla3.0,multilingual,k2
I have a joomla website with 5 subtemplate K2. The website is multilingual and I want to translate some sentences in subtemplate. Where I can put this translation ? I think it's in de-DE.com_k2.ini but in the next K2's update, sentence will be erase ? Thank you for your time...

Break echo output based on value from column in database

php,mysql,joomla,mysqli
I have 5 tables in a database: players (for general info about player) seasons (table for seasons) clubs (tables for general info about club) playerstats (table for players statistics, apps, goals) clubseason (table thats connecting clubs and seasons and for clubs statistics) I want to echo statistics for players by...

Joomla 3.0 Hello World Program Will Not Display

php,joomla,joomla3.0
Long story short: I tried copying a Hello World plugin for Joomla designed to put "Hello World" on every article, it installed properly, yet doesn't work at all. helloworld.php: <?php // no direct access defined('_JEXEC') or die; class plgContentHelloworld extends JPlugin { public function onContentAfterTitle($context, &$article, &$params, $limitstart) { return...

ajax request to login in Joomla 3.3

javascript,jquery,ajax,joomla
I am trying to add a login option in a form to fill the inputs after login . I added the following script to login using ajax but I cannot make it work and it returns a 404 error. Any idea of what I am doing wrong ? $('#mydiv').on('click','#login',function(e){ e.preventDefault();...

Encoding data in joomla 1.0.0

joomla
I'm writing a tool to migrate data from excel to joomla 1.0.0 db. My data have Vietnamese character (Ex: "Thành Phố Hồ Chí Minh"). When migarted, data show in page is error ("Th?nh Ph? H? Ch? Minh"). I think joomla encoded data before saving to db but i dont know...