4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Show/Hide Category Like On This Forum
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
thor
WebHelper
WebHelper


Joined: 10 Mar 2003
Posts: 71

PostPosted: Sun Jan 18, 2004 4:35 pm (13 years, 9 months ago) Reply with QuoteBack to Top

o rite silly me i never tried that how dumb lol Smile
OfflineView User's ProfileFind all posts by thorSend Personal Message
thor
WebHelper
WebHelper


Joined: 10 Mar 2003
Posts: 71

PostPosted: Tue Jan 20, 2004 9:26 pm (13 years, 9 months ago) Reply with QuoteBack to Top

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...
Code:
{L_ONLINE_EXPLAIN}

Can be found ? this may be a bad example of one but youíll problem get the what I mean.
OfflineView User's ProfileFind all posts by thorSend Personal Message
Darren
Team Member



Joined: 05 Feb 2002
Posts: 549
Location: London

PostPosted: Wed Jan 21, 2004 8:47 am (13 years, 9 months ago) Reply with QuoteBack to Top

Is this what you are after?
http://www.phpbb.com/styles/listvars.php
OfflineView User's ProfileFind all posts by DarrenSend Personal MessageVisit Poster's Website
thor
WebHelper
WebHelper


Joined: 10 Mar 2003
Posts: 71

PostPosted: Wed Jan 21, 2004 3:31 pm (13 years, 9 months ago) Reply with QuoteBack to Top

Nope but thats useful too Smile 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 Smile
OfflineView User's ProfileFind all posts by thorSend Personal Message
Darren
Team Member



Joined: 05 Feb 2002
Posts: 549
Location: London

PostPosted: Wed Jan 21, 2004 4:03 pm (13 years, 9 months ago) Reply with QuoteBack to Top

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&amp;" . 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
OfflineView User's ProfileFind all posts by DarrenSend Personal MessageVisit Poster's Website
thor
WebHelper
WebHelper


Joined: 10 Mar 2003
Posts: 71

PostPosted: Wed Jan 21, 2004 4:34 pm (13 years, 9 months ago) Reply with QuoteBack to Top

yep thats what i ment kewl thanx dude Smile Smile
OfflineView User's ProfileFind all posts by thorSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   


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.054766 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme