Support Forums

Description text below image in RSS/external.php

This is a discussion on Description text below image in RSS/external.php within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Currently, in external.php, the description text is on the right of the image. How do I put the text below ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 07-02-2008, 04:07 AM   #1
Customer
 
Join Date: Jun 2008
Location: Maldives
Posts: 134
Rep Power: 13
business is on a distinguished road
Default Description text below image in RSS/external.php

Currently, in external.php, the description text is on the right of the image. How do I put the text below the image... Thanks
business is offline   Reply With Quote
Old 07-02-2008, 07:42 PM   #2
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,058
Rep Power: 61
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

I haven't tested this, but in looking at the code in the external.php file I would try this. (Always make a back up copy of your file before adding any modifications. Also, recommend putting in comments at the beginning and end of your modifications for future reference)

Look for this code around line 149:
PHP Code:
               $imDescription "<a href="URL ."/viewlisting.php?view=".$listing['id']."><img src='"URL "/thumbs/small_" $irs['image'] . "' align='left' style='margin: 0 5px 5px 0;' border='0'  /></a>".$listing['description'].'<br clear="all" />';
            }
            else
            {
                
$imDescription "<a href="URL ."/viewlisting.php?view=".$listing['id']."><img src='"URL ."/images/nophoto.gif' ' align='left'  style='margin: 0 5px 5px 0;' border='0'  /></a>".$listing['description'].'<br clear="all" />'
Replace that with this:
PHP Code:
               $imDescription "<a href="URL ."/viewlisting.php?view=".$listing['id']."><img src='"URL "/thumbs/small_" $irs['image'] . "' align='left' style='margin: 0 5px 5px 0;' border='0'  /></a>[color="red"]<br />[/color]".$listing['description'].'<br clear="all" />';
            }
            else
            {
                
$imDescription "<a href="URL ."/viewlisting.php?view=".$listing['id']."><img src='"URL ."/images/nophoto.gif' ' align='left'  style='margin: 0 5px 5px 0;' border='0'  /></a>[color="red"]<br />[/color]".$listing['description'].'<br clear="all" />'
This is simply adding "<br />" after your image which should then put your description on the next line under the image.

Hope that helps!
-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mod: Favorites Image Fix crystal Modules / Plugins / Modifications 5 05-27-2008 03:59 PM


All times are GMT -4. The time now is 10:56 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0