MyBB Community Forums

Full Version: My page doesn't understand the variables
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I uploaded a custom page where I was to show the top posters and it seems to grab from the template fine but my page doesn't seem to know how to interpret the variables.

<?php
echo "{$templates->get('ttp_index')}";
?>

This little snippit displays this...

[Image: snippet.jpg]

Does anybody know how to solve this problem?
eval("\$ttp_index = \"".$templates->get("ttp_index")."\";");

echo $ttp_index;
Tried that, now it doesn't show the variables on the page, just a blank section.
Are the variables defined?
Yes, it comes from the Top Poster's plugin but I wanted to display the users on a custom page I created.
The variables might not be defined by the plugin on your page.
That snippit of code I put in my original post is all that there is on that page. Confused

Yep, I'm a n00b when it comes to this. Always baffles me!
Please post a link to the plugin you're trying to get the data from.
I don't understand your question... a link to the plugin I'm trying to get the data from?
Post a link to the Top Poster's plugin.
Pages: 1 2 3