Search found 8 matches

by Plaidfox
Fri Mar 07, 2008 3:32 pm
Forum: Joombie Coding Q/A
Topic: Making objectHTMLSafe work
Replies: 5
Views: 644

Re: Making objectHTMLSafe work

Oh, nevermind, figured it out. For future readers, all I did was paste:

Code: Select all

$data['directions'] = JRequest::getVar( 'directions', '', 'post', 'string', JREQUEST_ALLOWRAW );
into my models/recipe.php file right where Bodom78 was saying it went and now it works. :D Thanks for the help!
by Plaidfox
Thu Mar 06, 2008 8:38 pm
Forum: Joombie Coding Q/A
Topic: Making objectHTMLSafe work
Replies: 5
Views: 644

Re: Making objectHTMLSafe work

Well, I tried putting your code into my controllers/recipe.php, but I keep getting this error: Fatal error: Call to a member function on a non-object in /home/russell/public_html/administrator/components/com_recipe/controllers/recipe.php on line 51 Here's my code: /** * save a record (and redirect t...
by Plaidfox
Thu Mar 06, 2008 5:46 pm
Forum: Joombie Coding Q/A
Topic: Making objectHTMLSafe work
Replies: 5
Views: 644

Re: Making objectHTMLSafe work

So, should the code you gave me be put on the form.php page or on some other page? I based my component off the hello_world component shown to us by joomla.
by Plaidfox
Mon Mar 03, 2008 10:33 pm
Forum: Joombie Coding Q/A
Topic: Making objectHTMLSafe work
Replies: 5
Views: 644

Re: Making objectHTMLSafe work

Here's my code so far, if it helps: <?php defined('_JEXEC') or die('Restricted access');?> <form action="index.php" method="post" name="adminForm" id="adminForm"> <div class="col100"> <fieldset class="adminform"> <legend><?php echo JText::_...
by Plaidfox
Mon Mar 03, 2008 9:58 pm
Forum: Joombie Coding Q/A
Topic: Making objectHTMLSafe work
Replies: 5
Views: 644

Making objectHTMLSafe work

Could use some help with my coding. I'm trying to get a textarea to save html code to my mysql database. Can anyone tell me how to set this up?

Thanks!
by Plaidfox
Mon Mar 03, 2008 4:51 pm
Forum: Joombie Coding Q/A
Topic: Need Help with PHP inside an Article
Replies: 0
Views: 287

Need Help with PHP inside an Article

I could really use some help. I haven't really worked with PHP for about a year, and I'm still learning joomla. I have joomla 1.5 and I installed the IncludePHP plug-in. What I'm trying to do is pull information from my database onto an article. My code so far is: {php} defined('_JEXEC') or die('Res...
by Plaidfox
Fri Feb 29, 2008 8:53 pm
Forum: Joomla! Coding 101
Topic: PHP in Joomla Problems
Replies: 1
Views: 1419

PHP in Joomla Problems

I could really use some help. I haven't really worked with PHP for about a year, and I'm still learning joomla. I have joomla 1.5 and I installed the IncludePHP plug-in. What I'm trying to do is pull information from my database onto an article. My code so far is: {php} defined('_JEXEC') or die('Res...
by Plaidfox
Fri Feb 08, 2008 5:23 pm
Forum: Submit Your Suggested Tips & Tricks Here
Topic: FAQ: How do I put a separator between articles or news items?
Replies: 14
Views: 12663

Re: FAQ: How do I put a separator between articles or news items?

Ever wondered if there was an easy way to put a separator between a new items and articles?  Well, there is a CSS class recognized by the Joomla! core that makes this a simple chore.  At the end of each content item, Joomla! generates the following statement:   The folowiing example puts a solid ba...