Search found 237 matches
- Sun Feb 24, 2008 5:43 am
- Forum: Joomla! Coding 101
- Topic: Warning: Division by zero error
- Replies: 5
- Views: 904
Re: Warning: Division by zero error
Hi, if ($color_index && isset($tab_colors[($tab_index)%count($tab_colors)])) { $id .= $tab_colors[($tab_index)%count($tab_colors)]; $tab_index++; } Division by zero errors indicate you are dividing by zero - the value of this is undefined. The only thing you are dividing by in here is count...
- Fri Feb 22, 2008 1:23 am
- Forum: JoomlaCode - Feedback/Information
- Topic: JoomlaCode - tracker doesn't switch status on commit...
- Replies: 2
- Views: 2147
Re: JoomlaCode - tracker doesn't switch status on commit...
No problem... thanks Mateusz!
(for the record... I posted that before the email conversation)
Ian
(for the record... I posted that before the email conversation)
Ian
- Thu Feb 14, 2008 3:55 am
- Forum: Joombie Coding Q/A
- Topic: SQL query to calculate age from birthdate
- Replies: 3
- Views: 860
Re: SQL query to calculate age from birthdate
Try:
$user = &JFactory::getUser();
$userid = $user->id;
$user = &JFactory::getUser();
$userid = $user->id;
- Thu Feb 07, 2008 4:01 pm
- Forum: JoomlaCode - Feedback/Information
- Topic: downloads.joomlacode.org is not responding again
- Replies: 3
- Views: 2416
Re: downloads.joomlacode.org is not responding again
Anthony and I were also having trouble last night Brad. We were too lazy to report though 
Ian

Ian
- Wed Feb 06, 2008 7:41 pm
- Forum: Joombie Coding Q/A
- Topic: MVC - Passing data between Controller and View via Model
- Replies: 11
- Views: 1533
Re: MVC - Passing data between Controller and View via Model
thanks for your help ian, so if i use JView::setModel i can set more that one model? and then use JView::getModel to get them both? Yes. also: You can also use just normal classes that you need as library type classes how do i do this, because it sounds exactly what i need? sa i build a class that ...
- Wed Feb 06, 2008 7:11 pm
- Forum: Joombie Coding Q/A
- Topic: modifying com_regestration
- Replies: 2
- Views: 475
Re: modifying com_regestration
If you're using J! 1.5, look for Kevin Devine's user meta extension. If you're using 1.0, look at community builder.
Ian
Ian
- Wed Feb 06, 2008 7:08 pm
- Forum: Joombie Coding Q/A
- Topic: MVC - Passing data between Controller and View via Model
- Replies: 11
- Views: 1533
Re: MVC - Passing data between Controller and View via Model
Great points Ben. And I'll add that having this discussion is also helping me develop a more clear view of MVC architecture, etc. so thanks for that. :) My point in saying the controller did not interact directly with the model was really to clarify that you are not "calling" the model ...
- Tue Feb 05, 2008 8:40 pm
- Forum: Joomla! Coding 101
- Topic: Organization of Component in a Repository
- Replies: 12
- Views: 1490
Re: Organization of Component in a Repository
I usually give each component its own repository or at least its own folder...
Ian
Ian
- Tue Feb 05, 2008 5:12 pm
- Forum: JoomlaCode - Feedback/Information
- Topic: JoomlaCode - tracker doesn't switch status on commit...
- Replies: 2
- Views: 2147
JoomlaCode - tracker doesn't switch status on commit...
I used to be able to post the bug number in the change log when I commited and the tracker would automatically change status to Fixed in SVN. It no longer does this. Is there something I'm doing wrong? Or is this related to the recent work done on JoomlaCode that hasn't been fixed yet?
Ian
Ian
- Tue Feb 05, 2008 5:04 pm
- Forum: Joomla! Coding 101
- Topic: Organization of Component in a Repository
- Replies: 12
- Views: 1490
Re: Organization of Component in a Repository
oh...
didn't clarify that...
So, you checkout the working copy of your repository. And then you export the Joomla! repository over top of it (or just use the Joomla! 1.5 stable package).
Ian
didn't clarify that...
So, you checkout the working copy of your repository. And then you export the Joomla! repository over top of it (or just use the Joomla! 1.5 stable package).
Ian
- Tue Feb 05, 2008 5:03 pm
- Forum: Joomla! Coding 101
- Topic: General Joomla php include question
- Replies: 12
- Views: 2041
Re: General Joomla php include question
I think you only need to implement a raw view if you are using MVC... if you are not using MVC, then you should be okay I think.
Ian
Ian
- Tue Feb 05, 2008 4:21 pm
- Forum: Joomla! Coding 101
- Topic: General Joomla php include question
- Replies: 12
- Views: 2041
Re: General Joomla php include question
You might also use format=raw so that you don't get any extra HTML around your component.
Ian
Ian
- Tue Feb 05, 2008 4:19 pm
- Forum: Joomla! Coding 101
- Topic: Organization of Component in a Repository
- Replies: 12
- Views: 1490
Re: Organization of Component in a Repository
This is a great question for this forum, I think. I'm not a developer, but I have some experience working with this and building components. When I first started out, I would create two directories in my SVN tree: site and admin. Then, I would install the component, and then checkout those directo...
- Thu Jan 31, 2008 4:43 am
- Forum: Joomla! Coding 101
- Topic: General Joomla php include question
- Replies: 12
- Views: 2041
Re: General Joomla php include question
Create a simple component to support your module that will handle the ajax request.
Ian
Ian
- Thu Jan 31, 2008 4:41 am
- Forum: Joomla! Coding 101
- Topic: Remove template from 1 page inside a component
- Replies: 2
- Views: 679
Re: Remove template from 1 page inside a component
Sure that is easy... Try adding &tmpl=component on to the end of your query string. This is the solution if you want only the component to show, but you want it wrapped in HTML. Or, add &format=raw, if you want only the output from your component. If you do this, and you are using MVC, you...
- Thu Jan 17, 2008 4:05 pm
- Forum: Joombie Coding Q/A
- Topic: Best process for developing extensions (components, modules, plugins)?
- Replies: 3
- Views: 858
Re: Best process for developing extensions (components, modules, plugins)?
The easiest way to do it is to keep the install file somewhat general...
This is easy with 1.5's new folder tag, where you can specify that a folder be copied instead of just individual files.
Ian
This is easy with 1.5's new folder tag, where you can specify that a folder be copied instead of just individual files.
Ian
- Tue Jan 15, 2008 3:33 pm
- Forum: Tips & Tricks
- Topic: accessing the joomla source code !!!!!!!!
- Replies: 4
- Views: 1104
Re: accessing the joomla source code !!!!!!!!
If you really want to get into modifying the code, I would suggest getting a code book on PHP and spend some time learning the language.
You will get good mileage out of that.
Ian
You will get good mileage out of that.
Ian
- Sun Jan 13, 2008 2:18 pm
- Forum: Tips & Tricks
- Topic: User authentication
- Replies: 8
- Views: 1779
Re: User authentication
Just grab the part after the colon.
Ian
Ian
- Sun Jan 13, 2008 2:42 am
- Forum: Tips & Tricks
- Topic: User authentication
- Replies: 8
- Views: 1779
Re: User authentication
When comparing,
get the salt from the database, add it to the password, and md5 hash it.
This value should equal the hashed value stored in the database.
Ian
get the salt from the database, add it to the password, and md5 hash it.
This value should equal the hashed value stored in the database.
Ian
- Sun Jan 13, 2008 2:27 am
- Forum: Tips & Tricks
- Topic: User authentication
- Replies: 8
- Views: 1779
Re: User authentication
No, the salt just be randomly generated every time you save a password. Just store the new salt along with the password.
Ian
Ian
- Sun Jan 13, 2008 2:20 am
- Forum: Tips & Tricks
- Topic: accessing the joomla source code !!!!!!!!
- Replies: 4
- Views: 1104
Re: accessing the joomla source code !!!!!!!!
ummm... Joomla! is written in PHP. PHP is an uncompiled language. That means that the files you installed contain the source code for Joomla!
Ian
Ian
- Sun Jan 13, 2008 2:16 am
- Forum: Tips & Tricks
- Topic: User authentication
- Replies: 8
- Views: 1779
Re: User authentication
Well... say you had the user's password... how would you get the value to match the one in the database? You have answered the question yourself really... You insert the password, hash it using md5 ($password.$salt):salt... right? So, you have password... and you can get the ...
- Wed Jan 09, 2008 5:31 pm
- Forum: Joomla! Coding 101
- Topic: [solved] Need Help with php module. Simple php, 1st attempt
- Replies: 7
- Views: 1432
Re: Need Help with php module. Simple php, 1st attempt
I didn't know you were on a Mac except by opening up the archive - I have seen this problem with Mac's before.
You can follow the instructions on the link I mentioned indicating how to get an archiver that works properly.
Even with the extra files, it installed fine here.
Ian
You can follow the instructions on the link I mentioned indicating how to get an archiver that works properly.
Even with the extra files, it installed fine here.
Ian
- Wed Jan 09, 2008 5:07 pm
- Forum: Joomla! Coding 101
- Topic: Inserting registered users directly in mysql
- Replies: 6
- Views: 1217
Re: Inserting registered users directly in mysql
Another thing to try is to get Joomla! to pull the information from the IRC server. You can do this with Joomla! 1.5 by using a User plugin.
Ian
Ian
- Wed Jan 09, 2008 5:05 pm
- Forum: Joomla! Coding 101
- Topic: [solved] Need Help with php module. Simple php, 1st attempt
- Replies: 7
- Views: 1432
Re: Need Help with php module. Simple php, 1st attempt
Installs fine here...
Please note though that there is a deficiency in the Mac OS/X package system that adds extra files to zip files without prompting the user.
See http://floatingsun.net/2007/02/07/whats ... -zip-files for more information.
Ian
Please note though that there is a deficiency in the Mac OS/X package system that adds extra files to zip files without prompting the user.
See http://floatingsun.net/2007/02/07/whats ... -zip-files for more information.
Ian
- Wed Jan 09, 2008 4:59 pm
- Forum: Joomla! Coding 101
- Topic: Error when using component tutorial?
- Replies: 4
- Views: 776
Re: Error when using component tutorial?
You click the link for 'Documentation Wiki' which takes you to: m On that page, there is a heading called 'Tutorials' and underneath is a link 'http://dev.joomla.org/component/option,com_jd-wiki/Itemid,/id,tutorials:components/' The MVC tutorials are most up to date. We are working on a bit of an ov...
- Wed Jan 09, 2008 4:06 pm
- Forum: Joomla! Coding 101
- Topic: Error when using component tutorial?
- Replies: 4
- Views: 776
Re: Error when using component tutorial?
The tutorials on help.joomla.org are for Joomla! 1.0 and are not designed to be used with 1.5. You should look at the tutorials on dev.joomla.org.
Ian
Ian
- Mon Dec 17, 2007 8:09 pm
- Forum: Joomla! Coding 101
- Topic: Style sheets in modules
- Replies: 4
- Views: 824
Re: Style sheets in modules
$document = &JFactory::getDocument();
$document->addStyleSheet( $url );
Ian
$document->addStyleSheet( $url );
Ian
- Thu Dec 06, 2007 2:44 pm
- Forum: Joombie Coding Q/A
- Topic: how can I display my component errors?
- Replies: 8
- Views: 1229
Re: how can I display my component errors?
If you really want to do this right then get Eclipse and the PHPEclipse plugin and use it with XDebug to debug your component. It'll make things a lot easier.
You will get more from changing error reporting in PHP, but no where near what you get with XDEbug.
Ian
You will get more from changing error reporting in PHP, but no where near what you get with XDEbug.
Ian
- Thu Dec 06, 2007 2:25 am
- Forum: Joombie Coding Q/A
- Topic: how can I display my component errors?
- Replies: 8
- Views: 1229
Re: how can I display my component errors?
The setting you need to change is in php.ini, which your host may or may not allow you to override. Contact your host regarding this.
Ia
Ia