GDP
  • Member for 7 years, 9 months
  • Last seen more than a week ago
JHtml Tabs have no IDs - how can I specify them?
2 votes

If you look at the source code of the page, you'll see that Joomla is using jQuery to append the LI and A elements at runtime. You can use the same technique to add IDs, Classes, CSS, or any other ...

View answer
How to create contact form from scratch
2 votes

Yet another suggestion for an existing Extension...the work has already been done for you by 74 different developers at the JED Contact Forms section. They range from very simple to very complexed, ...

View answer
How to exclude files or views from joomla debug?
Accepted answer
2 votes

I'm not sure that this will solve your problem, but it does answer your question in that you referenced libraries/joomla/log/log.php. Per Using JLog, and the JLog Class Reference, only the component, ...

View answer
Component Views don't appear when creating a new menu item
Accepted answer
2 votes

Insure that there is a matching XML file for the view in the \tmpl folder: <?xml version="1.0" encoding="utf-8"?> <metadata> <layout title="COM_MYCOMPONENT_VIEW_TITLE" option="View"...

View answer
Custom profile fields, restricted to admin only
Accepted answer
2 votes

I'm not dead sure that this will work as i don't have such a user plugin installed to try, but try adding this function to your plugin. It's intent is to check if the user is in a usergroup of your ...

View answer
Search engine for a custom component
2 votes

It's very easy to create your own search plugin as is fully documented at Creating a search plugin.

View answer
How is content "locking" handled in custom components?
2 votes

You're correct in your assumptions. You need the table set up with associated logic to accomplish what you're trying to do. As I am learning Joomla 3+, I've been using Component Creator to create ...

View answer
Is there a Joomla function to determine the last fiscal quarter?
Accepted answer
2 votes

Haven't used JDate for this, but the below PHP code works it for us: // Current Date $current_date = date('Y-m-d'); list ($year, $month, $day) = explode('-', $current_date); $today = new DateTime(); $...

View answer
Joomla 3 overwrite user validation rule
2 votes

This is precisely what writing a custom Authentication Plugin is for. Joomla installs an LDAP example to work from, and writing your own is really quite simple. I actually cloned the entire ...

View answer
How to programmatically set 'created_by' when creating a new category
Accepted answer
2 votes

To get around the problem, we used $app->login() before saving. This seemed to be the cleanest answer for our situation, as a great number of other category and content items were being added at the ...

View answer
Multiple styles on a website
2 votes

We've battled this in the past, and in our experience always gets messy, so abandoned it for a simpler approach. Afterwards, we found an extension called Chameleon, which was going to do exactly what ...

View answer
From the model, how I can access the data retrieved in the view?
Accepted answer
2 votes

Try the parent from your get function public function getMyInfo($pk = null) { $myItem = parent::getItem($pk); echo $myItem->myfieldname; . . .

View answer
Is it possible to update an article remotely?
2 votes

I've got a few suggestions that I've done in the past We added a jQuery page to our B/E for these kinds of utilities, using $.post, we mimic various POSTs that Joomla performs when saving Articles, ...

View answer
Advice on creating a custom searchable db within Joomla
2 votes

Perhaps a simple approach would be to import the Access records as Articles in the #__content table, and use the Categories and/or Tags to separate the Books/DVDs. This way you can leverage all the ...

View answer
Joomla 3.3 specific menu item nofollow
2 votes

Yes you can. Edit the menu item from Admin, and go to the Metadata tab. Below the metadata description and keywords is a droptdown of the Robot options, including NoIndex, NoFollow

View answer
Is it possible to check if a method or function exists in the component controller?
Accepted answer
1 votes

I never figured out how to use $this, but it was pretty straightforward otherwise. This checks to see if the add method exists in the Article controller. $ToolsClass = 'ContentControllerArticle'; $...

View answer
Any “Link Preview” (like the facebook feature) in joomla editor?
1 votes

I checked Joomla Extensions - Article Preview and found 4 plugins and a component/plugin that appear to do what you're looking for. With your clarification, I wouldn't expect this to be an easy ...

View answer
Combine custom First Name field and Last Name field into 'Name' in Users table
1 votes

I might be off with this, but your first name field definition is still "name", so its only capturing the "first" part and storing it. Presumably, it's saving the "second" part as the last name. I ...

View answer
Using PHP in Joomla 2.5, is there a decent way to create groups without going through the menu or SQL?
1 votes

This code is actually for Joomla 3.x, and I skipped v2.5, so can't be sure that it will work, but if not, perhaps it will give you a starting point to find the v2.5 equivalent: $basePath = ...

View answer
using ajax inside a component without using com_ajax?
Accepted answer
1 votes

There are quite a number of ways to call AJAX without com_ajax. Look at What Is The Proper Way To Make An AJAX Call to understand and choose a method, and then apply your search logic accordingly.

View answer
How can I temporarily change the article ID of a menu item within PHP?
1 votes

Apparently the hooks I need aren't there, so here's the code I used to get it working: $menu = $app->getMenu(); $menuitem = $menu->getItem(100); $querystring = str_ireplace('index.php?','',$...

View answer
Child XML for joomla parameters
1 votes

Because you did not use any known template frameworks, I'd be very very surprised if anyone will be able to give you a direct answer to your question. I googled a few, and found Using a Joomla ...

View answer
How do I restrict the editing of a Tab to certain user group but not it's accessability?
1 votes

I assume you're referring to the fields within a tab, not the Tab itself, so you can modify the attributes of the form fields in it's model. // One method that can be used to determine if they CAN ...

View answer
Joomla logout When browser close
1 votes

This is not tried/tested, so the best implementation is up for debate, but you could load this javascript in your template so that it is included on all pages. When the window closes, it will POST to ...

View answer
How to create teaser articles on home page with "read more" link to article page
1 votes

Many templates include this kind of thing. Rockettheme generally does, though we seldom use the feature. There's a free template that provides it if you're interested in how they accomplish it ...

View answer
How can I set the page title from a component
1 votes

This is actually for Page Header output, but the same applies to the Browser Title. I've had this situation occur most frequently with 3rd party components. Joomla stores these values when you ...

View answer
Joomla MVC Component File upload w/ Database field update
1 votes

I'd suggest starting at the actual SQL that is being executed and working back from there. Just before any query is run, add a line like this: echo $query->dump(); die; It will show the SQL that ...

View answer
Google Analytics code be added to a template which I am not using?
1 votes

Might I suggest a plugin - you can just install and enable it for your whole site, then it doesn't matter which template you're using at all. At the Extensions Directory, there's quite a selection ...

View answer
How can I get information about the main Category being displayed in a content plugin
Accepted answer
1 votes

As @codinghands pointed out, the category is not technically content so (by design) all the information of interest is not available, leaving only the title of the category generally available to ...

View answer
How to use logout() method without duplicate session record in db
Accepted answer
1 votes

It all seems to be tied to guest users on the site. Adding the below code after logging out solved the problem: $app->logout(); $session =& JFactory::getSession(); $session->destroy(); $...

View answer