Home arrow Forum Frontpage Hacks
  Welcome, Guest. Please login or register.
Did you miss your activation email?
November 23, 2008, 07:18:28 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Core Discussion
| |-+  Joomla 1.0.x
| | |-+  Frontpage Hacks
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Frontpage Hacks  (Read 1336 times)
xKillswitchx
Joomla Newbie
*

Karma: +0/-1
Offline Offline

Posts: 2


View Profile
Frontpage Hacks
« on: August 21, 2006, 02:01:22 AM »

Hello all,
Hope this is the right place for this, and hopefully someone can help Wink I want to change the way the frontpage looks, but dont know php too well.  I figured that the file content.html.php is controlling the visuals there.

Basically, I want to change how the date, category, and author name displays on the frontpage.  Instead of each of them being placed on their own line, I wanted to put them in the same line, maybe seperated by a button or | sign.

Can anyone assist me with doing this?  Here is the bit of code I believe runs all that...

Code:
/**
* Writes Category
*/
function Category( $row, $params ) {
if ( $params->get( 'category' ) ) {
?>
<span>
<?php
echo $row->category;
?>

</span>
<?php
}
}

/**
* Writes Author name
*/
function Author$row$params ) {
global $acl;
if ( ( $params->get'author' ) ) && ( $row->author != "" ) ) {
/* This is too slow white large sites
$grp = $acl->getAroGroup( $row->created_by );
$is_frontend_user = $acl->is_group_child_of( intval( $grp->group_id ), 'Public Frontend', 'ARO' );
$by = $is_frontend_user ? _AUTHOR_BY : _WRITTEN_BY;
*/
?>

<tr>
<td width="70%" align="left" valign="top" colspan="2">
<span class="small">
<?php echo _WRITTEN_BY ' '.( $row->created_by_alias $row->created_by_alias $row->author ); ?>
</span>
&nbsp;&nbsp;
</td>
</tr>
<?php
}
}


/**
* Writes Create Date
*/
function CreateDate$row$params ) {
$create_date null;
if ( intval$row->created ) != ) {
$create_date mosFormatDate$row->created );
}
if ( $params->get'createdate' ) ) {
?>

<tr>
<td valign="top" colspan="2" class="createdate">
<?php echo $create_date?>
</td>
</tr>
<?php
}
}

I also wanted to make it so it will display the news category its displayed in, but before that have it say , Filed Under -  I tried to put that in after the echo function but it made the main page a blank page afterwards.

Thanks if any can help me through this, even if you dont directly tell me how.  Someone needs to hack the content.html.php page and put them up for download Wink
Logged
xKillswitchx
Joomla Newbie
*

Karma: +0/-1
Offline Offline

Posts: 2


View Profile
Re: Frontpage Hacks
« Reply #1 on: August 21, 2006, 11:40:28 PM »

Ok nevermind, I got it all figured out now  Grin 
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
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login