Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Problem using Template Conditionals
hansolo Offline
Junior Member
**
Posts: 22
Joined: Sep 2015
Post: #7
RE: Problem using Template Conditionals
Oh OK thanks. I might use that, but there is a possibility I will reuse this control bar in later posts in a thread (i.e. reshowing it and changing its buttons), so I think the plugin is the safest bet.

I do have a question about the use of eval in the above example:

Code:
eval("\$post['button_quote'] = \"".$templates->get("postbit_quote")."\";");


Maybe I'm having a mental blank, but why isn't it just written as:

Code:
$post['button_quote'] = $templates->get("postbit_quote");

?

Cheers!

09-19-2015 10:48 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Problem using Template Conditionals - hansolo - 09-19-2015 10:48 PM

 Standard Tools
Forum Jump: