Help! Remove image from listing?
5 posts by 2 authors in: Forums > CMS Builder
Last Post: April 8, 2010 (RSS)
By aubreyb - April 7, 2010 - edited: April 7, 2010
Re: [aubreyb] Help! Remove image from listing?
By Jason - April 7, 2010
You can try removing the HTML tags from your content on the where you're outputting it on the listing page.
It will look something like this:
strip_tags($records['content']);
Let me know if this works.
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Jason] Help! Remove image from listing?
By aubreyb - April 8, 2010 - edited: April 8, 2010
I tried it, but did not have any luck. It's very possible that I'm not doing something correctly though. I'm not a php wizard by any means. Here is what I did:
<?PHP echo textLimit($record['content'], 200)?><?PHP echo strip_tags($record['content']);?> <br />
Re: [aubreyb] Help! Remove image from listing?
By Jason - April 8, 2010
You're close. We just need to roll all of that up into one statement. Try this:
<?php echo textLimit(strip_tags($record['content']),200); ?>
Give that a try and let me know if it works.
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Jason] Help! Remove image from listing?
By aubreyb - April 8, 2010