FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » show topic rating in tree view
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: show topic rating in tree view [message #15169 is a reply to message #15144] Thu, 04 December 2003 15:11 Go to previous messageGo to previous message
bobmurphy is currently offline  bobmurphy   Ireland
Messages: 166
Registered: November 2003
Location: ireland
Karma:
Senior Member
i found basicaly three secions where threadt.php.t was missing the instance of rating contained in thread.php.t - one was in a string definition at the start
t.moved_to, t.thread_opt, t.root_msg_id, r.last_view,
to which i added t.rating,

next i left out on my first attempt and put in on my second
there was a string of definitions with rating in the midst of:
so i added
	/* Field Defenitions

	 * 18 thread.rating

	 */



the last was at the end round about line 80
i added 4 lines of code
if ($FUD_OPT_2 & 4096) {

				$rating = $r[17] ? '{TEMPLATE: rating}' : '{TEMPLATE: rating_none}';

			} else {

				$rating = '';

in basicaly the same place as it was in thread.php.t

however on both attempts rebuilding the theme threw an error saying the template rating is undefined

how do i set that up -- and it looks like there may be another one undefined also --- {TEMPLATE: rating_none} ??

thanks




[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PowerPoint
Next Topic: How to move all posts to another forum
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 17:26:14 GMT 2024

Total time taken to generate the page: 0.04940 seconds