top50servers
Active Member
Hello guys/Mark,
I'm doing a plugin where I display a tag on details page and on rankings page, I've managed to display tag on details page, but I have no idea how to do it for rankings and details page.
This is what I have on details_compile_details.php:
1. Is this the proper way of displaying stuff on details page.
2. How can i display on rankings per user to check if user have Yes or isset
Thanks,
Top50
I'm doing a plugin where I display a tag on details page and on rankings page, I've managed to display tag on details page, but I have no idea how to do it for rankings and details page.
This is what I have on details_compile_details.php:
PHP:
$result = $DB->query("SELECT `acf_squidhq_display` FROM {$CONF['sql_prefix']}_sites WHERE username = '{$TMPL['username']}' AND `acf_squidhq` = 1", __FILE__, __LINE__);
while($row = $DB->fetch_array($result)){
if($row['acf_squidhq_display'] == "Yes"){
$TMPL['squid'] = '<a href="https://squidhq.com/" rel="nofollow" title="SquidHQClient" target="_blank"><button class="btn btn-default btn-blue pull-right squidhd"> <img src="../skins/parabola/child/img/squidhqsmall.png"> <span>SQUIDHQ SERVER</span></button></a>';
}
}
2. How can i display on rankings per user to check if user have Yes or isset
Thanks,
Top50