Search found 41 matches
- Fri Mar 21, 2008 11:31 am
- Forum: Joombie Coding Q/A
- Topic: mosReadDirectory equivalent for Joomla 1.5 ?
- Replies: 2
- Views: 540
Re: mosReadDirectory equivalent for Joomla 1.5 ?
Perhaps what you are looking for is in joomla_root/libraries/joomla/filesystem/folder.php ... /** * Utility function to read the files in a folder * * @param string $path The path of the folder to read * @param string $filter A filter for file names * @param mixed $recurse True to recursively search...
- Thu Mar 20, 2008 5:34 pm
- Forum: Joombie Coding Q/A
- Topic: 1.5 Pulling Custom Table
- Replies: 1
- Views: 714
Re: 1.5 Pulling Custom Table
You need to establish a connection with the database. Use the following to accomplish this: $db =& JFactory::getDBO(); The next "Joomla!" step would be to create your SQL query $query = 'SELECT field FROM tablename"; Often in other components or modules you will see the next line ...
- Wed Mar 19, 2008 12:12 pm
- Forum: Joomla! Coding 101
- Topic: JToolbar Questions in Comp. Development
- Replies: 3
- Views: 1500
Re: JToolbar Questions in Comp. Development
joomla_root/administrator/templates/khepri/images/header/generic.pngId like to change the "generic.png" icon in an component i'm working on. Where is the directory where its placed ?
The key is to look at the icon.css file in the khepri template.
- Tue Mar 18, 2008 2:54 pm
- Forum: Joombie Coding Q/A
- Topic: how does JTable's store() works?
- Replies: 6
- Views: 1021
Re: how does JTable's store() works?
name="title" in the input field <-- binds to a database field named "title" I don't think this is quite correct and may be the source of dimsum's problem. It appears that the fields to be added to the database must have BOTH name= and id= . I was having a similar problem with hi...
- Sun Mar 16, 2008 2:59 pm
- Forum: Joombie Coding Q/A
- Topic: $my in Joomla 1.5 ? if($my->usertype=='Super Administrator')
- Replies: 2
- Views: 605
Re: $my in Joomla 1.5 ? if($my->usertype=='Super Administrator')
Code: Select all
$user =& JFactory::getUser();
$user_type = $user->get('usertype');
- Sat Mar 15, 2008 4:18 pm
- Forum: Joomla! Coding 101
- Topic: How To Modify Labels in contact form
- Replies: 2
- Views: 661
Re: How To Modify Labels in contact form
Sounds like you want the language file ... joomla_root/language/yourlanguage/yourlanguage.com_contact.ini
- Sat Mar 15, 2008 4:10 pm
- Forum: Joomla! Coding 101
- Topic: PHP in Joomla Problems
- Replies: 1
- Views: 538
Re: PHP in Joomla Problems
Consider rewriting it as $db = &JFactory::getDBO(); $num = 1; $db->setQuery('SELECT * FROM #__recipe WHERE id = ' . $num); $row = $db->loadAssocList(); echo $row['title'] . '<br />'; echo $row['ingredients'] . '<br />'; echo $row['directions'] . '<br />'; $row should be an associative array of a...
- Sat Mar 15, 2008 3:49 pm
- Forum: Joomla! Coding 101
- Topic: Multiple Frontends for component
- Replies: 1
- Views: 522
Re: Multiple Frontends for component
I'm assuming you are writing this for J! 1.5.x. You have the right idea as far as the controller is concerned. Your display() method in the controller could look something like: function display() { $view = JRequest::getVar('view'); JRequest::setVar('view', $view); parent::display(); } Then create a...
- Sat Mar 15, 2008 3:42 pm
- Forum: Joomla! Coding 101
- Topic: how can i tweak category view?
- Replies: 3
- Views: 671
Re: how can i tweak category view?
where's that 'items' template? joomla_root/components/com_content/views/category/tmpl/default_items.php The 'default.php' is the header portion of the page and 'default_items.php' handles the item list. If you haven't considered it already, you should save your revised files as a template override ...
- Sat Mar 15, 2008 3:33 pm
- Forum: Joomla! Coding 101
- Topic: Search for Documentation
- Replies: 1
- Views: 448
Re: Search for Documentation
Well, lacking a location where it is spelled out, perhaps print out your configuration.php file and compare the values to the Global Configuration screenshots on this page.
- Sat Mar 15, 2008 3:24 pm
- Forum: Joomla! Coding 101
- Topic: saving data in database
- Replies: 1
- Views: 533
Re: saving data in database
The error would indicate that it expects $row to be an object, but it is not.
Have you included the tables subdirectory and related table file in your component?
Have you included the tables subdirectory and related table file in your component?
- Sat Mar 15, 2008 3:17 pm
- Forum: Joomla! Coding 101
- Topic: $_POST vs. 'post'
- Replies: 5
- Views: 862
Re: $_POST vs. 'post'
Instead of including the getVar method within the assignRef method, set the variable first and then pass the variable to assignRef(). Such as
Code: Select all
$name = JRequest::getVar( 'name','', 'post', 'string');
$this->assignRef('name', $name);
- Sat Mar 15, 2008 3:10 pm
- Forum: Joombie Coding Q/A
- Topic: J1.5 Component, different view but the same menu option?
- Replies: 1
- Views: 532
Re: J1.5 Component, different view but the same menu option?
Perhaps you are missing the hidden field with the component name on the page?
Code: Select all
<input type="hidden" name="option" value="com_yourcomponent" />
- Sat Mar 15, 2008 2:55 pm
- Forum: Joombie Coding Q/A
- Topic: How can I get the current user_id?
- Replies: 3
- Views: 1052
Re: How can I get the current user_id?
If you are running J! 1.5.x, you can get the user_id with
Code: Select all
$user = &JFactory::getUser();
$user_id = $user->get('id');
- Wed Mar 05, 2008 1:12 pm
- Forum: Joombie Coding Q/A
- Topic: How do I Pass Variable =$name in URL from Menu?
- Replies: 6
- Views: 773
Re: How do I Pass Variable =$name in URL from Menu?
I haven't found a way yet to accomplish this using the menu system as is. My suggestion about creating a module would not cause the user to click more than once. By using a module, the user information is gathered as the page is created and the link that is generated would have the user info appende...
- Mon Mar 03, 2008 1:45 pm
- Forum: Joombie Coding Q/A
- Topic: How do I Pass Variable =$name in URL from Menu?
- Replies: 6
- Views: 773
Re: How do I Pass Variable =$name in URL from Menu?
Is it a must that the link be part of a menu? You might consider creating a module (its appearance on the Front-end could be simply a clickable image), but that would allow you to collect the username or userid and append it to the URL and then redirect them to the external site.
- Fri Feb 29, 2008 10:34 pm
- Forum: Joombie Coding Q/A
- Topic: add text to a form
- Replies: 1
- Views: 359
Re: add text to a form
Assuming you are using J!1.5, create an override for the mod_login template file. Open joomla_root/modules/mod_login/tmpl/default.php and save it as joomla_root/templates/yourtemplate/html/mod_login/default.php . Then edit the input boxes for the username and password fields. Change <input id="...
- Fri Feb 29, 2008 10:22 pm
- Forum: Joombie Coding Q/A
- Topic: How do I Pass Variable =$name in URL from Menu?
- Replies: 6
- Views: 773
Re: How do I Pass Variable =$name in URL from Menu?
Is that because the link is external (non-Joomla! content)?
- Sun Feb 24, 2008 1:00 pm
- Forum: Joombie Coding Q/A
- Topic: [SOLVED] J!1.5 - Preferences Button
- Replies: 2
- Views: 347
- Sat Feb 23, 2008 1:13 am
- Forum: Joombie Coding Q/A
- Topic: [SOLVED] Pagination in J!1.5
- Replies: 2
- Views: 418
- Wed Feb 20, 2008 3:56 pm
- Forum: Joomla! Coding 101
- Topic: Alter "Postal Code/ZIP" length restrictions in Contacts
- Replies: 3
- Views: 557
Re: Alter "Postal Code/ZIP" length restrictions in Contacts
Sorry for my confusion. You are likely looking for the file in com_contact that generates the form, and more specifically for the "postcode" input box (at least that is what it is named in 1.5). It will look something like this: <input class="inputbox" type="text" name=...
- Tue Feb 19, 2008 1:30 am
- Forum: Joombie Tools of the Trade
- Topic: help me out
- Replies: 3
- Views: 823
Re: help me out
Anu is referring to the ChronoForms extension, listed here: http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,1508/Itemid,35/ At any rate anu24365, given that this is an Extension (thus not something supported directly by Joomla! team members), have you tried contacting t...
- Mon Feb 18, 2008 10:50 am
- Forum: Joomla! Coding 101
- Topic: Alter "Postal Code/ZIP" length restrictions in Contacts
- Replies: 3
- Views: 557
Re: Alter "Postal Code/ZIP" length restrictions in Contacts
Unless we are looking at different pages, I don't see such a small limitation on the Contacts input form. (Although my experience with J! is 1.5 only.) In 1.5, the field on the input form is 60 chars up to a maximum of 100, and the database field will hold a maximum of 100 chars.
- Sat Feb 16, 2008 2:16 pm
- Forum: Joombie Coding Q/A
- Topic: How to set default component?
- Replies: 2
- Views: 478
Re: How to set default component?
Open the Menu Manager for Main Menu. Locate the menu item for your component (assuming you have added this to the menu). Click the checkbox next to it and then click Default (the star) in the toolbar at top right.
- Fri Feb 15, 2008 12:15 pm
- Forum: Sites & Infrastructure - Feedback/Information
- Topic: Search Not Working
- Replies: 11
- Views: 1095
Re: Search Not Working
While not a perfect solution, remember that you can still search with Google and retrieve a cached version from the previous forum. This helped me tremendously yesterday.
- Wed Feb 13, 2008 1:41 pm
- Forum: Joomla! Extensions Directory Forum
- Topic: Separate Extensions by 1.0 and 1.5
- Replies: 11
- Views: 1651
Re: Separate Extensions by 1.0 and 1.5
Woo hoo! This would really be helpful for those of us who would like to help bring more popular extensions into full 1.5 compatibility. Looking forward to it.
- Mon Feb 11, 2008 1:58 pm
- Forum: Joombie Coding Q/A
- Topic: Batch Insert Text Files as Content Items
- Replies: 6
- Views: 743
Re: Batch Insert Text Files as Content Items
saratoga, glad to see you found a friend to help with the sql statement. I got preoccupied with other things last night and didn't get back to the forum. O3car, The fields listed in the query match those in the jos_content table for 1.5.1 with two exceptions: alias and metadata have been...
- Sun Feb 10, 2008 10:42 pm
- Forum: Joombie Coding Q/A
- Topic: Batch Insert Text Files as Content Items
- Replies: 6
- Views: 743
Re: Batch Insert Text Files as Content Items
I wrote something similar to this for a publishing company that needed to transfer several years worth of articles into a mySQL database for another CMS. It helped a great deal that all of the articles were saved into year/month/ subdirectories on their server (the year and month designations ...
- Sun Feb 10, 2008 9:52 pm
- Forum: Joombie Coding Q/A
- Topic: Some JToolBarHelper methods not recognized
- Replies: 2
- Views: 409
Re: Some JToolBarHelper methods not recognized
And there it is! lol I knew it was something simple. Thanks!!
- Sun Feb 10, 2008 8:17 pm
- Forum: Joombie Coding Q/A
- Topic: Some JToolBarHelper methods not recognized
- Replies: 2
- Views: 409
Some JToolBarHelper methods not recognized
While in the process of building a component for J!1.5, my forehead has developed a few bruises over adding certain buttons to the Admin toolbar. So far, I've been able to add: title, deleteList, save, and cancel. However, attempting to use editNew or editNewX (as was shown in the MVC tutorial...