<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4315869776892514053</id><updated>2011-11-27T15:20:19.693-08:00</updated><title type='text'>Joomla Hax</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://joomlahax.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4315869776892514053/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://joomlahax.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>GXI</name><uri>http://www.blogger.com/profile/06086803555651602200</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='http://1.bp.blogspot.com/_nuwKxGXGxOs/SytevVBS8zI/AAAAAAAAAAw/gl5wiulWxFs/S220/logo.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4315869776892514053.post-8579892509745339999</id><published>2010-02-02T12:54:00.001-08:00</published><updated>2010-02-02T12:59:08.562-08:00</updated><title type='text'>HOW TO: Allow users to delete their own forum posts! [kunena &amp; Joomla]</title><content type='html'>Enjoy!&lt;br /&gt;&lt;br /&gt;1: post.php (/components/com_kunena/template/default/)&lt;br /&gt;&lt;br /&gt;1.1) Find:&lt;br /&gt;&lt;br /&gt;[code]&lt;br /&gt;else if ($do == "deletepostnow")&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;if (!$is_Moderator)&lt;br /&gt;[/code]&lt;br /&gt;&lt;br /&gt;1.2) Change to:&lt;br /&gt;&lt;br /&gt;[code]&lt;br /&gt;else if ($do == "deletepostnow")&lt;br /&gt;{&lt;br /&gt;$modified_reason = addslashes(mosGetParam($_POST, "modified_reason", null));&lt;br /&gt;$modified_by = $my-&gt;id;&lt;br /&gt;$modified_time = CKunenaTools::fbGetInternalTime();&lt;br /&gt;$id  = (int) $id;&lt;br /&gt;&lt;br /&gt;$database-&gt;setQuery("SELECT * FROM #__fb_messages LEFT JOIN #__fb_messages_text ON #__fb_messages.id=#__fb_messages_text.mesid WHERE #__fb_messages.id=$id");&lt;br /&gt;$message1 = $database-&gt;loadObjectList();&lt;br /&gt;check_dberror("Unable to load messages.");&lt;br /&gt;$mes = $message1[0];&lt;br /&gt;$userid = $mes-&gt;userid;&lt;br /&gt;&lt;br /&gt;//Check for a moderator or superadmin&lt;br /&gt;if ($is_Moderator) {&lt;br /&gt;$allowEdit = 1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if ($fbConfig-&gt;useredit == 1 &amp;&amp; $my-&gt;id != "")&lt;br /&gt;{&lt;br /&gt;//Now, if the author==viewer and the viewer is allowed to edit his/her own post the let them edit&lt;br /&gt;if ($my-&gt;id == $userid) {&lt;br /&gt;if(((int)$fbConfig-&gt;useredittime)==0) {&lt;br /&gt;$allowEdit = 1;&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;$modtime = $mes-&gt;modified_time;&lt;br /&gt;if(!$modtime) {&lt;br /&gt;$modtime = $mes-&gt;time;&lt;br /&gt;}&lt;br /&gt;if(($modtime + ((int)$fbConfig-&gt;useredittime) + ((int)$fbConfig-&gt;useredittimegrace)) &gt;= CKunenaTools::fbGetInternalTime()) {&lt;br /&gt;$allowEdit = 1;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (!$allowEdit == 1)&lt;br /&gt;[/code]&lt;br /&gt;&lt;br /&gt;1.1.1) Find:&lt;br /&gt;&lt;br /&gt;[code]&lt;br /&gt;else if ($do == "delete")&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;if (!$is_Moderator)&lt;br /&gt;[/code]&lt;br /&gt;&lt;br /&gt;1.1.2) Change to:&lt;br /&gt;&lt;br /&gt;[code]&lt;br /&gt;else if ($do == "delete")&lt;br /&gt;{&lt;br /&gt;$modified_reason = addslashes(mosGetParam($_POST, "modified_reason", null));&lt;br /&gt;$modified_by = $my-&gt;id;&lt;br /&gt;$modified_time = CKunenaTools::fbGetInternalTime();&lt;br /&gt;$id  = (int) $id;&lt;br /&gt;&lt;br /&gt;$database-&gt;setQuery("SELECT * FROM #__fb_messages LEFT JOIN #__fb_messages_text ON #__fb_messages.id=#__fb_messages_text.mesid WHERE #__fb_messages.id=$id");&lt;br /&gt;$message1 = $database-&gt;loadObjectList();&lt;br /&gt;check_dberror("Unable to load messages.");&lt;br /&gt;$mes = $message1[0];&lt;br /&gt;$userid = $mes-&gt;userid;&lt;br /&gt;&lt;br /&gt;//Check for a moderator or superadmin&lt;br /&gt;if ($is_Moderator) {&lt;br /&gt;$allowEdit = 1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if ($fbConfig-&gt;useredit == 1 &amp;&amp; $my-&gt;id != "")&lt;br /&gt;{&lt;br /&gt;//Now, if the author==viewer and the viewer is allowed to edit his/her own post the let them edit&lt;br /&gt;if ($my-&gt;id == $userid) {&lt;br /&gt;if(((int)$fbConfig-&gt;useredittime)==0) {&lt;br /&gt;$allowEdit = 1;&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;$modtime = $mes-&gt;modified_time;&lt;br /&gt;if(!$modtime) {&lt;br /&gt;$modtime = $mes-&gt;time;&lt;br /&gt;}&lt;br /&gt;if(($modtime + ((int)$fbConfig-&gt;useredittime) + ((int)$fbConfig-&gt;useredittimegrace)) &gt;= CKunenaTools::fbGetInternalTime()) {&lt;br /&gt;$allowEdit = 1;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (!$allowEdit == 1)&lt;br /&gt;[/code]&lt;br /&gt;&lt;br /&gt;2: message.php (/components/com_kunena/template/default_ex/) * NB: default_ex must be the template you are using)&lt;br /&gt;&lt;br /&gt;2.1) Find:&lt;br /&gt;&lt;br /&gt;[code]&lt;br /&gt;if ($msg_edit) {&lt;br /&gt;echo " | " . $msg_edit;&lt;br /&gt;[/code]&lt;br /&gt;&lt;br /&gt;2.2) Change to:&lt;br /&gt;&lt;br /&gt;[code]&lt;br /&gt;if ($msg_edit) {&lt;br /&gt;echo " | " . $msg_edit;&lt;br /&gt;echo " | " . $msg_delete;&lt;br /&gt;[/code]&lt;br /&gt;&lt;br /&gt;3: view.php (/components/com_kunena/template/default_ex/) * NB: default_ex must be the template you are using)&lt;br /&gt;&lt;br /&gt;3.1) Find:&lt;br /&gt;&lt;br /&gt;[code]&lt;br /&gt;if($allowEdit)&lt;br /&gt;{&lt;br /&gt;$msg_edit = CKunenaLink::GetTopicPostLink('edit', $catid, $fmessage-&gt;id , $fbIcons['edit']?'&lt;img src="' . KUNENA_URLICONSPATH . $fbIcons['edit'] . '" alt="Edit" border="0" title="' . _VIEW_EDIT . '" /&gt;':_GEN_EDIT);&lt;br /&gt;&lt;br /&gt;[/code]&lt;br /&gt;&lt;br /&gt;3.2) Change to:&lt;br /&gt;&lt;br /&gt;[code]&lt;br /&gt;if($allowEdit)&lt;br /&gt;{&lt;br /&gt;$msg_delete = CKunenaLink::GetTopicPostLink('delete', $catid, $fmessage-&gt;id , $fbIcons['delete']?'&lt;img src="' . KUNENA_URLICONSPATH . $fbIcons['delete'] . '" alt="Delete" border="0" title="' . _VIEW_DELETE . '" /&gt;':_GEN_DELETE);&lt;br /&gt;$msg_edit = CKunenaLink::GetTopicPostLink('edit', $catid, $fmessage-&gt;id , $fbIcons['edit']?'&lt;img src="' . KUNENA_URLICONSPATH . $fbIcons['edit'] . '" alt="Edit" border="0" title="' . _VIEW_EDIT . '" /&gt;':_GEN_EDIT);&lt;br /&gt;&lt;br /&gt;[/code]&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4315869776892514053-8579892509745339999?l=joomlahax.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joomlahax.blogspot.com/feeds/8579892509745339999/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://joomlahax.blogspot.com/2010/02/how-to-allow-users-to-delete-their-own.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4315869776892514053/posts/default/8579892509745339999'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4315869776892514053/posts/default/8579892509745339999'/><link rel='alternate' type='text/html' href='http://joomlahax.blogspot.com/2010/02/how-to-allow-users-to-delete-their-own.html' title='HOW TO: Allow users to delete their own forum posts! [kunena &amp; Joomla]'/><author><name>GXI</name><uri>http://www.blogger.com/profile/06086803555651602200</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='http://1.bp.blogspot.com/_nuwKxGXGxOs/SytevVBS8zI/AAAAAAAAAAw/gl5wiulWxFs/S220/logo.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4315869776892514053.post-2023270464225379650</id><published>2009-12-20T04:07:00.000-08:00</published><updated>2009-12-20T04:07:47.314-08:00</updated><title type='text'>Link Building Tip</title><content type='html'>Here is a simple TIP I am using for my link building.&lt;br /&gt;&lt;br /&gt;Common practise in link building is the exchanging of links A.K.A Reciprocal links, however too many reciprocal links can damage your own Page Rank. I have created a links page on one of my websites and am using a meta tag to stop that page from being indexed by search engines:&lt;br /&gt;&lt;br /&gt;To prevent all robots from indexing a page on your site, place the following meta tag into the  section of your page:&lt;br /&gt;&lt;br /&gt;&lt; meta content="noindex" name="robots"&gt;&lt; /meta&gt;&lt;br /&gt;&lt;br /&gt;To allow other robots to index the page on your site, preventing only Google's robots from indexing the page:&lt;br /&gt;&lt;br /&gt;&lt; meta content="noindex" name="googlebot"&gt;&lt; /meta&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.google.com/support/webmasters/bin/answer.py?answer=93710"&gt;http://www.google.com/support/webmasters/bin/answer.py?answer=93710&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4315869776892514053-2023270464225379650?l=joomlahax.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joomlahax.blogspot.com/feeds/2023270464225379650/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://joomlahax.blogspot.com/2009/12/link-building-tip.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4315869776892514053/posts/default/2023270464225379650'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4315869776892514053/posts/default/2023270464225379650'/><link rel='alternate' type='text/html' href='http://joomlahax.blogspot.com/2009/12/link-building-tip.html' title='Link Building Tip'/><author><name>GXI</name><uri>http://www.blogger.com/profile/06086803555651602200</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='http://1.bp.blogspot.com/_nuwKxGXGxOs/SytevVBS8zI/AAAAAAAAAAw/gl5wiulWxFs/S220/logo.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4315869776892514053.post-7793767273935795500</id><published>2009-12-17T23:58:00.000-08:00</published><updated>2009-12-18T00:00:57.984-08:00</updated><title type='text'>Joomla 1.5 Community Builder and Virtuemart auto user sync</title><content type='html'>######## Solution 1: (Just cron job) ########&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;DB Username: username&lt;br /&gt;DB Password: password&lt;br /&gt;Database name: database&lt;br /&gt;Host: cmysql5-1.host.com&lt;br /&gt;Port: 3306&lt;br /&gt;NB: change jos_ if you are using an alternative prefix e.g. joom_&lt;br /&gt;Note: The info below goes into your “Command” line, you need to configure how often you want to run the cron job in the cron job settings while scheduling/setting up the cron job. For more info on setting up your cron job please contact your website host or go to our support forum: http://gxi.co.za/webmaster-forum.html&lt;br /&gt;&lt;br /&gt;// SIMPLE:&lt;br /&gt;&lt;br /&gt;Use this if your sql host is “localhost” (default in most cases)&lt;br /&gt;&lt;br /&gt;mysql -uusername -ppassword database -e "INSERT IGNORE INTO jos_comprofiler(id,user_id) SELECT id,id FROM jos_users";&lt;br /&gt;&lt;br /&gt;e.g (will run every hour):&lt;br /&gt;&lt;br /&gt;* */1 * * * mysql -uusername -ppassword database -e "INSERT IGNORE INTO jos_comprofiler(id,user_id) SELECT id,id FROM jos_users";&lt;br /&gt;&lt;br /&gt;// ADVANCED:&lt;br /&gt;&lt;br /&gt;Use this if your sql host is not “localhost” and you need to enter a host address and port (cmysql5-1.host.com: 3306 etc)&lt;br /&gt;&lt;br /&gt;mysql -uusername -ppassword -hcmysql5-1.host.com -P3306 database -e "INSERT IGNORE INTO jos_comprofiler(id,user_id) SELECT id,id FROM jos_users";&lt;br /&gt;&lt;br /&gt;e.g (will run every hour):&lt;br /&gt;&lt;br /&gt;* */1 * * * mysql -uusername -ppassword -hcmysql5-1.host.com -P3306 database -e "INSERT IGNORE INTO jos_comprofiler(id,user_id) SELECT id,id FROM jos_users";&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;######## Solution 2: (Cron job + File) ########&lt;br /&gt;&lt;br /&gt;Create a PHP file somewhere with the following information (be sure to correct to your database settings), when you setup you crone job ensure you include the full path i.e.&lt;br /&gt;&lt;br /&gt;* */1 * * * php /full/path/to/script.php&lt;br /&gt;&lt;br /&gt;The PHP file must contain:&lt;br /&gt;&lt;br /&gt;&lt; ?php&lt;br /&gt;&lt;br /&gt;$server = 'localhost';&lt;br /&gt;$username = 'mysql_username';&lt;br /&gt;$password = 'mysql_password';&lt;br /&gt;$database = 'mysql_database_name';&lt;br /&gt;&lt;br /&gt;### connects to the database, or dies with error&lt;br /&gt;$connection = mysql_connect($server,$username,$password);&lt;br /&gt;if (!$connection)&lt;br /&gt;{&lt;br /&gt;die( mysql_error() );&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;### selects the db of choice, or dies with error&lt;br /&gt;$db_selection = mysql_select_db($database, $connection);&lt;br /&gt;if (!$db_selection)&lt;br /&gt;{&lt;br /&gt;die( mysql_error() );&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;### selects all tables in the db of choice, or dies with error&lt;br /&gt;$alltables = mysql_query("SHOW TABLES") or die ( mysql_error() );&lt;br /&gt;&lt;br /&gt;### loops through all of the tables and optimizes each, or dies with error&lt;br /&gt;while ( $table = mysql_fetch_array($alltables) )&lt;br /&gt;{&lt;br /&gt;mysql_query("INSERT IGNORE INTO jos_comprofiler(id,user_id) SELECT id,id FROM jos_users") or die( mysql_error() );&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;### closes the mysql connection&lt;br /&gt;mysql_close($connection);&lt;br /&gt;&lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4315869776892514053-7793767273935795500?l=joomlahax.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joomlahax.blogspot.com/feeds/7793767273935795500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://joomlahax.blogspot.com/2009/12/joomla-15-community-builder-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4315869776892514053/posts/default/7793767273935795500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4315869776892514053/posts/default/7793767273935795500'/><link rel='alternate' type='text/html' href='http://joomlahax.blogspot.com/2009/12/joomla-15-community-builder-and.html' title='Joomla 1.5 Community Builder and Virtuemart auto user sync'/><author><name>GXI</name><uri>http://www.blogger.com/profile/06086803555651602200</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='http://1.bp.blogspot.com/_nuwKxGXGxOs/SytevVBS8zI/AAAAAAAAAAw/gl5wiulWxFs/S220/logo.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4315869776892514053.post-886705252942178138</id><published>2009-12-17T17:31:00.000-08:00</published><updated>2009-12-17T23:51:45.203-08:00</updated><title type='text'>Joomla 1.5 &amp; 1.0 - Specific modules/script based on URL (PHP Hack)</title><content type='html'>The "%" in &lt;%script src='XXXXX' type='text/javascript'&gt;&lt;%/script&gt; is simply there to show this code but would be removed&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt; ?php&lt;br /&gt;        $currentpage = $_SERVER['REQUEST_URI'];&lt;br /&gt;        if($currentpage=="/" || $currentpage=="/index.php" || $currentpage=="" ) {&lt;br /&gt;         echo "&lt;%script src='XXXXX' type='text/javascript'&gt;&lt;%/script&gt;";&lt;br /&gt;     } else {&lt;br /&gt;         echo "";&lt;br /&gt;     };&lt;br /&gt;?&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;This will show your script on http://yourdomain.com/ , http://yourdomain.com/index.php and http://yourdomain.com . And will not show this on any other page.&lt;br /&gt;&lt;br /&gt;The first echo ""; will be what is shown on these pages (Your script/module) and the second echo ""; will be what is shown on all the other pages (In this case nothing)&lt;br /&gt;&lt;br /&gt;You can change ($currentpage=="/" || $currentpage=="/index.php" || $currentpage=="" ) to represent your pages.&lt;br /&gt;&lt;br /&gt;You can change &lt;%script src='XXXXX' type='text/javascript'&gt;&lt;%/script&gt; to &lt;jdoc:include type="modules" name="special"/&gt; to load module position special (Joomla 1.5)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4315869776892514053-886705252942178138?l=joomlahax.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joomlahax.blogspot.com/feeds/886705252942178138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://joomlahax.blogspot.com/2009/12/joomla-15-10-specific-modulesscript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4315869776892514053/posts/default/886705252942178138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4315869776892514053/posts/default/886705252942178138'/><link rel='alternate' type='text/html' href='http://joomlahax.blogspot.com/2009/12/joomla-15-10-specific-modulesscript.html' title='Joomla 1.5 &amp; 1.0 - Specific modules/script based on URL (PHP Hack)'/><author><name>GXI</name><uri>http://www.blogger.com/profile/06086803555651602200</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='http://1.bp.blogspot.com/_nuwKxGXGxOs/SytevVBS8zI/AAAAAAAAAAw/gl5wiulWxFs/S220/logo.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4315869776892514053.post-5504297442443837833</id><published>2009-12-17T16:05:00.000-08:00</published><updated>2009-12-17T16:15:57.801-08:00</updated><title type='text'>Joomla 1.5 eWeather - Show the Forecast City in Title</title><content type='html'>Joomla 1.5 eWeather&lt;br /&gt;&lt;br /&gt;How to show the forecast city in title of the of the page instead of the component / link name.&lt;br /&gt;&lt;br /&gt;For example on the distribution websites demo: http://www.robertjlavey.com/index.php?option=com_eweather&amp;amp;Itemid=9&lt;br /&gt;&lt;br /&gt;You will see the page title is eWeather with no reference to the weather conditions in "Siloam Springs, AR"&lt;br /&gt;&lt;br /&gt;To correct this you will need to edit the components/com_eweather/eweather.html.php&lt;br /&gt;&lt;br /&gt;Find the following 2 lines:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;  function displayWeather(&amp;amp;$weather, $weatherIconStyle){&lt;br /&gt;    $url = JUri::base(true);&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Directly under these 2 lines you need to add:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;    $document =&amp;amp; JFactory::getDocument();&lt;br /&gt;    $document-&gt;setTitle($weather-&gt;loc_city);&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;It will now look like:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;  function displayWeather(&amp;amp;$weather, $weatherIconStyle){&lt;br /&gt;    $url = JUri::base(true);&lt;br /&gt;    $document =&amp;amp; JFactory::getDocument();&lt;br /&gt;    $document-&gt;setTitle($weather-&gt;loc_city);&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4315869776892514053-5504297442443837833?l=joomlahax.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://joomlahax.blogspot.com/feeds/5504297442443837833/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://joomlahax.blogspot.com/2009/12/joomla-15-eweather-show-forecast-city.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4315869776892514053/posts/default/5504297442443837833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4315869776892514053/posts/default/5504297442443837833'/><link rel='alternate' type='text/html' href='http://joomlahax.blogspot.com/2009/12/joomla-15-eweather-show-forecast-city.html' title='Joomla 1.5 eWeather - Show the Forecast City in Title'/><author><name>GXI</name><uri>http://www.blogger.com/profile/06086803555651602200</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='http://1.bp.blogspot.com/_nuwKxGXGxOs/SytevVBS8zI/AAAAAAAAAAw/gl5wiulWxFs/S220/logo.gif'/></author><thr:total>0</thr:total></entry></feed>
