Search found 8 matches

by shahpound
Sat Mar 15, 2008 4:20 pm
Forum: Joomla! Coding 101
Topic: $_POST vs. 'post'
Replies: 5
Views: 3205

Re: $_POST vs. 'post'

Thanks for the reply, is there really a difference (other than syntatically of course) betweenthese two methods?
by shahpound
Thu Mar 13, 2008 12:55 pm
Forum: Joomla! Coding 101
Topic: $_POST vs. 'post'
Replies: 5
Views: 3205

$_POST vs. 'post'

Hi, In a component I created, depending on the system, visitors will get errors from this: $this->assignRef( 'name', JRequest::getVar( 'name','', 'post', 'string') ); but not from this: $this->assignRef( 'name', JRequest::getVar( 'name','', $_POST, 'string') ); The error is from PHP: *Fatal error*: ...
by shahpound
Mon Feb 11, 2008 4:51 pm
Forum: Joombie Coding Q/A
Topic: display tinyMCE with no buttons
Replies: 0
Views: 458

display tinyMCE with no buttons

Is there a way to display the tinyMCE editor with absolutely no buttons (not just the "image" and "read more" ones, but all of them)? Basically I want to use the editor to display some HTML, and not allow any editing. The API references that $buttons can be either false, or an ar...
by shahpound
Mon Feb 11, 2008 4:48 pm
Forum: Joombie Coding Q/A
Topic: SOLVED: Storing Record from Custom Component strips tags
Replies: 4
Views: 955

Re: SOLVED: Storing Record from Custom Component strips tags

$data = JRequest::get('post'); $data['text'] = JRequest::getVar( 'text', '', 'post', 'string', JREQUEST_ALLOWRAW ); 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. Understood. I was just trying to de...
by shahpound
Sun Feb 10, 2008 9:15 pm
Forum: Joombie Coding Q/A
Topic: Some JToolBarHelper methods not recognized
Replies: 2
Views: 1035

Re: Some JToolBarHelper methods not recognized

I think you want the following:

JToolBarHelper::editListX();
by shahpound
Sun Feb 10, 2008 4:22 pm
Forum: Joombie Coding Q/A
Topic: SOLVED: Storing Record from Custom Component strips tags
Replies: 4
Views: 955

Re: SOLVED: Storing Record from Custom Component strips tags

Hope this helps someone. Basically when I was consuming the POST data prior to the bind I had to use this: $data = JRequest::get( 'post',JREQUEST_ALLOWRAW) instead of $data = JRequest::get( 'post') Afterwards, cycling through all the post variables and attempting to use JREQUEST_ALLOWRAW obviously w...
by shahpound
Sun Feb 10, 2008 4:01 pm
Forum: Joombie Coding Q/A
Topic: SOLVED: Storing Record from Custom Component strips tags
Replies: 4
Views: 955

Re: Storing Record from Custom Component strips tags

Update: Its still an issue but i also notice it is stripping out
tags and any other html as well....
by shahpound
Sun Feb 10, 2008 4:32 am
Forum: Joombie Coding Q/A
Topic: SOLVED: Storing Record from Custom Component strips tags
Replies: 4
Views: 955

SOLVED: Storing Record from Custom Component strips tags

Any ideas? Basically I've written my first component and its working great (or so I thought)! I've imported the editor to the admin area of my components element editing view. I can updated all the fields including the one I will call "newsletter". The data field is updated through the tin...