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
Switch to threaded view of this topic Create a new topic Submit Reply
show topic rating in tree view [message #15144] Wed, 03 December 2003 21:29 Go to next message
bobmurphy is currently offline  bobmurphy   Ireland
Messages: 166
Registered: November 2003
Location: ireland
Karma: 0
Senior Member
why does the topic rating disappear from the topics when i switch to tree view --- it it designed this way for some reason -- can i change it so that tree view displays the stars beside the topics
Re: show topic rating in tree view [message #15147 is a reply to message #15144] Wed, 03 December 2003 23:45 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Topic rating is not shown on tree view, that is intentional.

FUDforum Core Developer
Re: show topic rating in tree view [message #15152 is a reply to message #15144] Thu, 04 December 2003 05:41 Go to previous messageGo to next message
bobmurphy is currently offline  bobmurphy   Ireland
Messages: 166
Registered: November 2003
Location: ireland
Karma: 0
Senior Member
could you point me in the right direction for a customisation
Re: show topic rating in tree view [message #15160 is a reply to message #15152] Thu, 04 December 2003 12:44 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
threadt.tmpl look @ the code display the subjects.

FUDforum Core Developer
Re: show topic rating in tree view [message #15161 is a reply to message #15144] Thu, 04 December 2003 13:51 Go to previous messageGo to next message
bobmurphy is currently offline  bobmurphy   Ireland
Messages: 166
Registered: November 2003
Location: ireland
Karma: 0
Senior Member
thanks - have found the correct insertion point but cant get the right code to show the stars --- tried adding {TEMPLATE-DATA: rating} from the same place in the thread.tmlp file but nothing showed even after rebuilding the theme
could you yet again point me in the direction for the code to insert Razz

[Updated on: Thu, 04 December 2003 13:52]

Report message to a moderator

Re: show topic rating in tree view [message #15167 is a reply to message #15161] Thu, 04 December 2003 14:11 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You cannot use {TEMPLATE-DATA: rating} because $rating variable does not exist. You need to also edit threadt.php.t and add the code which generates the rating image.

FUDforum Core Developer
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 next message
bobmurphy is currently offline  bobmurphy   Ireland
Messages: 166
Registered: November 2003
Location: ireland
Karma: 0
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




Re: show topic rating in tree view [message #15178 is a reply to message #15169] Thu, 04 December 2003 16:44 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You need to copy template rating & rating_none from thread.tmpl into threadt.tmpl you may need to modify the rating template to use r[17] instead of whatever it is using now.

FUDforum Core Developer
Re: show topic rating in tree view [message #15179 is a reply to message #15144] Thu, 04 December 2003 17:36 Go to previous messageGo to next message
bobmurphy is currently offline  bobmurphy   Ireland
Messages: 166
Registered: November 2003
Location: ireland
Karma: 0
Senior Member
Quote:

you may need to modify the rating template to use r[17] instead of whatever it is using now

stuck on this thread seems to use a x->y system which i'm not familiar with and i cant find what to replace r[17] with
the theme now rebuilds ok but there are still no stars displayed

any help greatfully appreciated
Re: show topic rating in tree view [message #15275 is a reply to message #15179] Sun, 07 December 2003 21:59 Go to previous message
bobmurphy is currently offline  bobmurphy   Ireland
Messages: 166
Registered: November 2003
Location: ireland
Karma: 0
Senior Member
would really apreciate any help you could provide on this Confused
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Sat Nov 30 01:08:53 GMT 2024

Total time taken to generate the page: 0.02443 seconds