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

Home » FUDforum Development » FUDforum 3.0+ » Fixing custom templates after upgrade (Issue with Kharma upgrade 3.03 to 3.04RC4)
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Fixing custom templates after upgrade [message #167507] Wed, 04 July 2012 17:36 Go to next message
ShineOn is currently offline  ShineOn   United States
Messages: 53
Registered: July 2011
Karma: 1
Member
add to buddy list
ignore all messages by this user
I have some customized themes, using path info, along with some other tweaks (icons, CSS gradient, etc.)

Upgrading from FUDforum 3.03 to FUDforum 3.04RC4, I encountered these errors:

Please manually update custom theme SnSSlateBlue.
Unable to compile theme SnSSlateBlue. Please fix it manually: Undefined template: "karma_show" inside "message_entry" in file drawmsg.tmpl
Please manually update custom theme SnSTwilightGrey.
Unable to compile theme SnSTwilightGrey. Please fix it manually: Undefined template: "karma_show" inside "message_entry" in file drawmsg.tmpl
Please manually update custom theme SnSUserInfoLeft.
Unable to compile theme SnSUserInfoLeft. Please fix it manually: Undefined template: "karma_change" inside "dmsg_message_toolbar" in file drawmsg.tmpl
Please manually update custom theme SnSUserInfoRight.
Unable to compile theme SnSUserInfoRight. Please fix it manually: Undefined template: "karma_change" inside "dmsg_message_toolbar" in file drawmsg.tmpl
Please manually update custom theme SnSForestGreen.
Unable to compile theme SnSForestGreen. Please fix it manually: Undefined template: "karma_show" inside "message_entry" in file drawmsg.tmpl


It appears the easy fix is to copy the three kharma template files and the drawmsg.tmpl file from default set to the custom template sets. I haven't determined if that breaks anything else. If anyone knows whether that is "the" fix, or if I have to re-create my custom template sets from scratch, please let me know.

<edit> That doesn't seem to be the fix, because apparently path_info has its own drawmsg.tmpl file (which is waaaay smaller than the one in default) - now when viewing messages, the "friendly urls" don't show. They just show when in the forum list.

Gaah.

Is the drawmsg.tmpl in the upgraded path_info template set updated for kharma?

[Updated on: Wed, 04 July 2012 18:11]

Report message to a moderator

Re: Fixing custom templates after upgrade [message #167516 is a reply to message #167507] Thu, 05 July 2012 02:19 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
The easy fix is to open drawmsg.tmpl and add this line:
{REF: karma_show.tmpl}


After that, recompile your themes.
Re: Fixing custom templates after upgrade [message #167532 is a reply to message #167516] Fri, 06 July 2012 23:55 Go to previous messageGo to next message
ShineOn is currently offline  ShineOn   United States
Messages: 53
Registered: July 2011
Karma: 1
Member
add to buddy list
ignore all messages by this user
That took care of it. Thanks!


[Updated on: Sat, 07 July 2012 00:56]

Report message to a moderator

Re: Fixing custom templates after upgrade [message #167535 is a reply to message #167532] Sun, 08 July 2012 01:16 Go to previous messageGo to next message
AutoHost is currently offline  AutoHost   United States
Messages: 99
Registered: October 2002
Karma: 0
Member
add to buddy list
ignore all messages by this user
I have a similar problem, trying to rebuild my custom theme I get this error:
Please fix theme: Undefined template: "thread_rating" inside "ratethread.php.t".


I created that theme under v2.3.5, then upgraded forum to 2.7.3, then 3.0.0, then 3.0.3.


Ron Miller
Stars! AutoHost
Re: Fixing custom templates after upgrade [message #167539 is a reply to message #167535] Sun, 08 July 2012 13:09 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
Edit "ratethread.php.t", and add "{REF: topic_rating.tmpl}" and recompile your theme.
Open the file in the default theme to see how it's done.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Maillist post import causing email bounce messages
Next Topic: recent bots joining
Goto Forum:
  

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

Current Time: Mon Oct 23 02:26:30 EDT 2017

Total time taken to generate the page: 0.00646 seconds