This is working perfectly for me. I think you shouldn't get all the post variables with ALLOWRAW unless all the fields you are using requires HTML.$data = JRequest::get('post');
$data['text'] = JRequest::getVar( 'text', '', 'post', 'string', JREQUEST_ALLOWRAW );
Search found 61 matches
- Mon Feb 11, 2008 12:47 pm
- Forum: Joombie Coding Q/A
- Topic: SOLVED: Storing Record from Custom Component strips
tags
- Replies: 4
- Views: 829
Re: SOLVED: Storing Record from Custom Component strips
tags
- Wed Feb 06, 2008 9:31 pm
- Forum: Joomla! Coding 101
- Topic: Adding Model to View
- Replies: 5
- Views: 1028
Re: Adding Model to View
I'm overriding display method in my controller like this. Second is the second model's name: function display() { $document =& JFactory::getDocument(); $viewType = $document->getType(); $viewName = JRequest::getCmd( 'view', $this->getName() ); $viewLayout = JRequest::getCmd( 'layout', 'default' ...
- Tue Jan 22, 2008 5:12 pm
- Forum: Announcements Discussions
- Topic: Discuss: Ladies and Gentlemen... here
- Replies: 126
- Views: 46782
Re: Discuss: Ladies and Gentlemen... here
Thanks everybody who has contributed in this great project for all this hard work. 

- Mon Jan 07, 2008 4:45 pm
- Forum: Joombie Tools of the Trade
- Topic: Building the Ship - IDE
- Replies: 116
- Views: 45041
Re: Building the Ship - IDE
.... Then, I checkout the trunk into a folder in my webroot, so I might have something like: /var/www/amazing /var/www/amazing/components/com_amazing /var/www/amazing/administrator/components/com_amazing etc. etc... now all that is left is to get Joomla! there. Well, to do that, I do: c...
- Sun Jan 06, 2008 10:22 pm
- Forum: Joomla! Coding 101
- Topic: HOWTO? Acquiring a list of all "editors" or higher? [SOLVED]
- Replies: 3
- Views: 1027
Re: HOWTO? Acquiring a list of all "editors" or higher? [SOLVED]
If you want to create a select list of editors, take a look at JHTMLList class in libraries/joomla/html/html/list.php. It's much easier to use and also forward-compatible. Example code: <?php echo JHTML::_('list.users', 'added_by', 1, 0, NULL, 'name', 1); ?> P.S. You should add 'AND block = 0' to th...
- Fri Dec 14, 2007 10:14 am
- Forum: Joomla! Coding 101
- Topic: How to Joomla-ize this MySQL/PHP code
- Replies: 12
- Views: 2686
Re: How to Joomla-ize this MySQL/PHP code
Code: Select all
$rows = $database->loadObjectList();
instead of mysql_fetch_assoc() use this above line and then do a var_dump for $rows variable to see what it has.
- Sun Dec 09, 2007 11:29 am
- Forum: Joombie Coding Q/A
- Topic: Importing users from MS Access database into Joomla 1.5
- Replies: 9
- Views: 2872
Re: Importing users from MS Access database into Joomla 1.5
@Fennopolpot
Should we do a $user->check(); or something before saving the user?
Should we do a $user->check(); or something before saving the user?
- Wed Dec 05, 2007 9:50 pm
- Forum: Joombie Tools of the Trade
- Topic: Building the Ship - IDE
- Replies: 116
- Views: 45041
Re: Building the Ship - IDE
In case someone needs it,
In the problems window, on the upper right corner there's a button for configuring filters.
If you choose 'On any element in same project', only the errors on the current project are shown. Same thing applies for tasks.
In the problems window, on the upper right corner there's a button for configuring filters.
If you choose 'On any element in same project', only the errors on the current project are shown. Same thing applies for tasks.
- Wed Dec 05, 2007 9:06 pm
- Forum: Joombie Coding Q/A
- Topic: problem with editor
- Replies: 3
- Views: 700
Re: problem with editor
Can you please enter the code you use for showing editors here?
I think you're using same id's for both editors.
I think you're using same id's for both editors.
- Wed Dec 05, 2007 9:04 pm
- Forum: Joombie Coding Q/A
- Topic: Problem with javascript calendar
- Replies: 2
- Views: 607
Re: Problem with javascript calendar
Are you using rc3? If so, please try a nightly build. This was fixed before 2-3 weeks.
- Sat Nov 17, 2007 1:14 pm
- Forum: Joombie Tools of the Trade
- Topic: Building the Ship - IDE
- Replies: 116
- Views: 45041
Re: Building the Ship - IDE
Does anyone here see lots of errors and warnings in Joomla directory structure? These two are the only ones related to PHP. Others are about HTML. (You can see them all in the attachment.) Syntax Error mezun/libraries/joomla/utilities/compat php50x.php line 100 1195304541015 2268 Syntax Error: expec...
- Thu Nov 15, 2007 12:20 pm
- Forum: Joombie Developer Lab
- Topic: My first Plugin
- Replies: 16
- Views: 10502
Re: My first Plugin
Hi Bruni, it's really very good to see you again. :) Btw, I haven't tried the plugin yet but I'll give it a go when I have time. I'd like to ask something that I found weird. $plugin =& JPluginHelper::getPlugin( 'system' , 'notifyadmin' ); $params = new JParameter( $plugin->params ); Do we have to u...
- Sun Nov 11, 2007 4:34 pm
- Forum: Joombie Coding Q/A
- Topic: Plugin - editing body and inserting scripts
- Replies: 4
- Views: 1143
Re: Plugin - editing body and inserting scripts
You can use JHTML::script() for files or $document->addScriptDeclaration() for including a variable that contains JS code in head. I think these two links will be useful for you:
http://api.joomla.org/Joomla-Framework/ ... tml#script
http://api.joomla.org/Joomla-Framework/ ... eclaration
http://api.joomla.org/Joomla-Framework/ ... tml#script
http://api.joomla.org/Joomla-Framework/ ... eclaration
- Fri Nov 09, 2007 9:02 pm
- Forum: Joomla! Coding 101
- Topic: How to make this mambot
- Replies: 4
- Views: 1122
Re: How to make this mambot
onAfterDisplayContent event is for you, I think. Developer wiki has wider explanations on this subject.
http://dev.joomla.org/component/option, ... s:plugins/
http://dev.joomla.org/component/option, ... s:plugins/
- Fri Nov 09, 2007 3:59 pm
- Forum: Tips & Tricks
- Topic: MiniDoc: An Incomplete Guide to SEO
- Replies: 23
- Views: 32460
Re: MiniDoc: An Incomplete Guide to SEO
Thanks a lot. I will surely take a deep look at them.
- Fri Nov 09, 2007 3:45 pm
- Forum: Tips & Tricks
- Topic: MiniDoc: An Incomplete Guide to SEO
- Replies: 23
- Views: 32460
Re: Updated Version!
9. Clean URL (Joomla SEF) Although Keywords in the file name (URL) don’t seem to have a positive effect (based on the German study), a URL with few parameters (?id=123, etc.) is important. Turn on Joomla SEF but don‘t get anal about it. Barrie, if the mentioned study here is publicly available, can...
- Thu Nov 08, 2007 10:17 pm
- Forum: Joombie Coding Q/A
- Topic: Is Joomla a good model to learn elegant OOP coding practices?
- Replies: 2
- Views: 892
Re: Is Joomla a good model to learn elegant OOP coding practices?
Well, I'm not a coder at all and it's not been so long since I learnt PHP. But about oop and general coding practices Joomla helped me a lot. But I'd suggest not using 1.0 but 1.5 because it's written in a more object oriented way and implements many design patterns. So v1.5 is what you are looking ...
- Wed Nov 07, 2007 9:18 pm
- Forum: Joombie Coding Q/A
- Topic: stop an onAfterDisplayContent from triggering
- Replies: 1
- Views: 600
Re: stop an onAfterDisplayContent from triggering
I think onAfter... event echoes the returned values. So instead of 'return true' just use 'return'.
I don't know much about your other problem. But logically, if it is triggered after displaying content, then $row->text can't be modified I think.
I don't know much about your other problem. But logically, if it is triggered after displaying content, then $row->text can't be modified I think.
- Fri Nov 02, 2007 5:07 pm
- Forum: Joombie Coding Q/A
- Topic: away from java script core - how to?
- Replies: 6
- Views: 1679
- Fri Nov 02, 2007 4:02 pm
- Forum: Joombie Coding Q/A
- Topic: away from java script core - how to?
- Replies: 6
- Views: 1679
Re: away from java script core - how to?
newart wrote:obviously the problem is that the back-end has a need of mootools...
Also some parts of the site frontend use it. There was a thread about avoiding mootools to load. But I can't find it now. My advice would be taking a look at Joomla 1.5 Dev forum. I guess it was there.
- Fri Nov 02, 2007 3:57 pm
- Forum: Joombie Coding Q/A
- Topic: Plugin question
- Replies: 6
- Views: 1215
Re: Plugin question
TheVigilante wrote:I think I already see what goes wrong. When the redirect is done, the plugin will be called again and redirects again etc, etc.
So I guess I got it solved!
My first thought would be using a static variable. Can you explain how you got it solved please?
- Thu Nov 01, 2007 8:41 pm
- Forum: Joomla! Coding 101
- Topic: how to solve if Value does not insert into database...
- Replies: 4
- Views: 1196
Re: how to solve if Value does not insert into database...
I don't know if you have a reason not to use Joomla api to do things about database. But that's not the question here.
I think the problem is an integer field is being tried to populate with strings. So in the query don't use '$var'. Instead, use only $var.
I think the problem is an integer field is being tried to populate with strings. So in the query don't use '$var'. Instead, use only $var.
- Thu Nov 01, 2007 8:38 pm
- Forum: Joombie Coding Q/A
- Topic: Plugin question
- Replies: 6
- Views: 1215
Re: Plugin question
onAfterInitialise should do the trick, I think. Use $mainframe->isAdmin() in the plugin to make sure that it's only enabled in administration.
- Tue Oct 23, 2007 1:16 pm
- Forum: Joombie Think Tank
- Topic: Anyone want to help with....
- Replies: 7
- Views: 4405
Re: Anyone want to help with....
Some brainstorming about what we can do could be useful, I think.
- Sat Oct 20, 2007 8:26 pm
- Forum: Joombie Think Tank
- Topic: Anyone want to help with....
- Replies: 7
- Views: 4405
Re: Anyone want to help with....
Great I have started dabbling with the code, though I am no coder by any means I'm not a coder or programming, either. Same situation here. Since I am testing the bridge my plan is to try and leverage the connections to the tables for phpbb3 to retrieve latest post and such to a module in 1.5 so fa...
- Sat Oct 20, 2007 9:31 am
- Forum: Joombie Think Tank
- Topic: Anyone want to help with....
- Replies: 7
- Views: 4405
Re: Anyone want to help with....
I'd be glad. Because in the last couple of days, I took a look at rc6-7 and liked it a lot. It would be good to get some experience about Joomla development, as well as Phpbb3.
- Wed Oct 17, 2007 12:28 pm
- Forum: Joomla! Coding 101
- Topic: Help modifying this module code
- Replies: 21
- Views: 4050
Re: Help modifying this module code
Maybe it's a silly idea, but before each line on the query insert a space after '.
- Mon Oct 15, 2007 8:43 am
- Forum: Joomla! Coding 101
- Topic: Help modifying this module code
- Replies: 21
- Views: 4050
- Sun Oct 14, 2007 10:24 am
- Forum: Joomla! Coding 101
- Topic: Help modifying this module code
- Replies: 21
- Views: 4050
Re: Help modifying this module code
$query = 'SELECT c.id, c.title, c.created_by, u.username, cb.avatar, cb.avatarapproved' . 'FROM #__content AS c' . 'LEFT JOIN #__users AS u ON u.id = c.created_by' . 'INNER JOIN #__comprofiler AS cb ON u.id = cb.user_id' . 'WHERE sectionid=' (int) $section_id . 'A...
- Sat Oct 13, 2007 10:13 pm
- Forum: Joombie Coding Q/A
- Topic:
- Replies: 2
- Views: 827
Re:
Amy,
After reading that great tip, it would be good to check this link too:
http://demos.mootools.net/DomReadyVS.Load
After reading that great tip, it would be good to check this link too:
http://demos.mootools.net/DomReadyVS.Load