|
Author |
Message |
thor
WebHelper
Joined: 10 Mar 2003
Posts: 71
|
Posted:
Sun Jan 18, 2004 4:35 pm (20 years, 3 months ago) |
|
o rite silly me i never tried that how dumb lol |
|
|
|
|
thor
WebHelper
Joined: 10 Mar 2003
Posts: 71
|
Posted:
Tue Jan 20, 2004 9:26 pm (20 years, 3 months ago) |
|
This has not got anything to do with this thread but I thought i might as well just post in here because its a topic about phpbb. Anyway Is there a certain template file or php file where all the variables such as...
Can be found ? this may be a bad example of one but you’ll problem get the what I mean. |
|
|
|
|
Darren
Team Member
Joined: 05 Feb 2002
Posts: 549
Location: London
|
Posted:
Wed Jan 21, 2004 8:47 am (20 years, 3 months ago) |
|
|
|
|
thor
WebHelper
Joined: 10 Mar 2003
Posts: 71
|
Posted:
Wed Jan 21, 2004 3:31 pm (20 years, 3 months ago) |
|
Nope but thats useful too thanx
I was looking for a place where i could find things like
Code: | {catrow.forumrow.LAST_POST} |
so I could edit what they will look like. I’m not to sure if this is even possible lol
thanx |
|
|
|
|
Darren
Team Member
Joined: 05 Feb 2002
Posts: 549
Location: London
|
Posted:
Wed Jan 21, 2004 4:03 pm (20 years, 3 months ago) |
|
You mean you want to edit the HTML contained in certain variables.
You basically need to find the piece of code in the PHP file that generates the the variables that are assigned to the template.
In the case of {catrow.forumrow.LAST_POST} that is created by index.php
If you look for this bit of code around line 390 depending on if you have modded the file. You should be able to adjust the HTML bits to suit your needs:
Code: | if ( $forum_data[$j]['forum_last_post_id'] )
{
$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);
$last_post = $last_post_time . '<br />';
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
}
else
{
$last_post = $lang['No_Posts'];
} |
Just below that you'll see where this $last_post is actually assigned to the template.
Hope that helps |
|
|
|
|
thor
WebHelper
Joined: 10 Mar 2003
Posts: 71
|
Posted:
Wed Jan 21, 2004 4:34 pm (20 years, 3 months ago) |
|
yep thats what i ment kewl thanx dude |
|
|
|
|
|
|
Go to page Previous 1, 2
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.157018 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |