Wed, 2012-08-22 20:14
i have a joomla module and i want to change how its look.
its look like now <a href="http://imageshack.us/f/411/picture1gk.jpg/" rel="nofollow">http://imageshack.us/f/411/picture1gk.jpg/</a>
and i want to show it like<a href="http://my.imageshack.us/v_images.php" rel="nofollow">http://my.imageshack.us/v_images.php</a>
can some help me about it.
this is the code
<?php defined('_JEXEC') or die('Restricted access'); // website root directory $_root = JURI::root(); ?> <style type="text/css"> .cofiMarketplaceRecentRow { width: 100%; border-bottom: 1px dotted #AAAAAA; padding-top: 5px; padding-bottom: 5px; } .cofiMarketplaceRecentReplies { float: left; width: 66px; margin: 1px 0px 0px 0px; padding: 1px 1px 1px 1px; font-size: 14px; color: #AAAAAA; background: #FFFFFF; text-align: center; border: 1px solid #DDDDDD; } .cofiMarketplaceRecentText { float: left; margin-left: 7px; margin-right: 5px; font-size: 11px; color: #777777; } .cofiMarketplaceRecentSubjectText { margin: 0px; padding: 0px; color: #777777; line-height: normal; } .cofiMarketplaceRecentDateText { margin: 2px 0px 0px 0px; padding: 0px; color: #777777; font-size: 11px; line-height: normal; } .cofiMarketplaceRecentPoweredByText { margin-top: 10px; margin-bottom: 0px; color: #777777; font-size: 9px; } .cofiMarketplaceRecentHeaderText { margin-top: 0px; margin-bottom: 0px; padding-bottom: 5px; color: #777777; font-size: 9px; border-bottom: 1px dotted #AAAAAA; } </style> <?php $_number = $params->get( 'number', 5 ); $_length = $params->get( 'length', 25 ); $_show_poweredby = $params->get( 'show_poweredby', 1 ); $_more = $params->get( 'more', '>' ); $_label = $params->get( 'label', 0 ); $db =& JFactory::getDBO(); $posts = null; if ( $_label == <img src="https://csscreator.com/sites/all/modules/smileys/packs/Roving/innocent.png" title="Innocent" alt="Innocent" class="smiley-content" /> { $query = 'SELECT e.id AS entryid, e.alias, e.category_id, e.image1 AS image, c.id, c.alias, c.name AS categoryname, e.headline,' . ' CASE WHEN CHAR_LENGTH(e.alias) THEN CONCAT_WS(\':\', e.id, e.alias) ELSE e.id END as eslug,' . ' CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(\':\', c.id, c.alias) ELSE c.id END as cslug,' . ' DATE_FORMAT( e.date_created, "%d.%m.%Y %k:%i") AS createdate' . ' FROM #__marketplace_entries e, #__marketplace_categories c' . ' WHERE e.category_id=c.id AND e.published=1 AND c.published=1' . ' ORDER BY e.date_created DESC LIMIT ' . $_number; } else { $query = 'SELECT e.id AS entryid, e.alias, e.category_id, e.image1 AS image, c.id, c.alias, c.name AS categoryname, e.headline,' . ' CASE WHEN CHAR_LENGTH(e.alias) THEN CONCAT_WS(\':\', e.id, e.alias) ELSE e.id END as eslug,' . ' CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(\':\', c.id, c.alias) ELSE c.id END as cslug,' . ' DATE_FORMAT( e.date_created, "%d.%m.%Y %k:%i") AS createdate' . ' FROM #__marketplace_entries e, #__marketplace_categories c' . ' WHERE e.label_id=' . $_label . ' AND e.category_id=c.id AND e.published=1 AND c.published=1' . ' ORDER BY e.date_created DESC LIMIT ' . $_number; } $db->setQuery($query); $entries = $db->loadObjectList(); if ($db->getErrorNum()) { JError::raiseWarning( 500, $db->stderr() ); } // get marketplace itemid $sql = "SELECT id FROM " . $db->nameQuote('#__components') . " WHERE " . $db->nameQuote('option') . "='com_marketplace'"; $db->setQuery( $sql); $componentid = $db->loadResult(); if ( !$componentid) { $itemid = 0; } else { $sql = "SELECT id FROM " . $db->nameQuote('#__menu') . " WHERE " . $db->nameQuote('componentid') . "='" . $componentid . "' AND parent='0' AND published='1' "; $db->setQuery( $sql); $itemid = $db->loadResult(); if ( !$itemid) { $itemid = 0; } } if (count($entries)) { foreach ($entries as $entry) { $longsubject = strip_tags( $entry->headline); $i_longsubjectlength = strlen( $longsubject); $shortsubject = substr( strip_tags( $longsubject), 0, $_length); $link = JRoute::_('index.php?option=com_marketplace&view=entry&catid=' . $entry->cslug . '&entry=' . $entry->eslug . '&Itemid=' . $itemid); echo "<div class='cofiMarketplaceRecentRow'>"; echo "<div class='cofiMarketplaceRecentReplies'>"; echo "<a href='".$link."' title=\"".$longsubject."\" rel='nofollow'>"; if ( $entry->image == "") { // no image echo "<img src='/components/com_marketplace/assets/entries/default.png' width='64px' border='0' alt='default' />"; } else { echo "<img src='" . $_root . "images/marketplace/entries/" . $entry->entryid . "/small/" . $entry->image . "' width='64px' border='0' alt='default' />"; } echo "</a>"; echo "</div>"; echo "<div class='cofiMarketplaceRecentText'>"; echo "<div class='cofiMarketplaceRecentSubjectText'>"; echo "<a href='".$link."' title=\"".$longsubject."\" rel='nofollow'>"; echo $shortsubject; if ( $i_longsubjectlength > $_length) { echo ">"; } echo "</a>"; echo "</div>"; echo "<div class='cofiMarketplaceRecentDateText'>"; $categorylink = JRoute::_('index.php?option=com_marketplace&view=category&catid=' . $entry->cslug . '&Itemid=' . $itemid); echo "<a href='".$categorylink."' title='" . $entry->categoryname . "' style='color: #777777;' >"; echo $entry->categoryname; echo "</a>"; echo "</div>"; echo "<div class='cofiMarketplaceRecentDateText'>"; echo $entry->createdate; echo "</div>"; echo "</div>"; echo "<br style='clear:left;'/>"; echo "</div>"; } } }
Thu, 2012-08-23 13:29
#1
No server side code
Can you link to the page or paste the code sent to the browser, not the server side code?