Warning: strpos(): Empty delimiter. in /home/joomlaha/public_html/components/com_smf/smf.php on line 14
Help coding a module: linking an img. NEWBIE
Home arrow Forum Help coding a module: linking an img. NEWBIE
  Welcome, Guest. Please login or register.
Did you miss your activation email?
August 29, 2008, 02:27:38 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Addon Discussion
| |-+  Joomla Modules
| | |-+  Help coding a module: linking an img. NEWBIE
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Help coding a module: linking an img. NEWBIE  (Read 440 times)
bernal
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
Help coding a module: linking an img. NEWBIE
« on: April 08, 2008, 06:17:39 PM »

Hi all
This is the module code:
Code:
<?php
defined('_VALID_MOS') or die('Direct Access to this location is not allowed.');
global $mainframe$database$option;
if($option == "com_content"){
$database->setQuery("SELECT `title` from #__content WHERE `id` = {$_REQUEST['id']}");
if(!$database->query()){
die($database->stderr());
}else{
$title $database->loadResult();
}
echo "<div id=\"content-title_\">&nbsp;{$title}</div>\n";
}
?>
the id class "Content-title_" has a background image of 580px 65px plus the text format. I need that image to be linked to the home page. Im not good at this and the guy who did this does not work with me anymore. This is the div:
Code:
#content-title_
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-style:normal;
position: relative;
left: 0px;
top: 0px;
width: 580px;
height: 65px;
padding: 40px 0px 0px 15px;
float: left;
background: url(../images/content-title-bg.jpg) no-repeat;
font-size: 16px;
fo

How can I add the link to that image? I dont mind to add the image inside the module but I really need that image linked.



Thank you in advance!
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal.
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use