I found some older threads, related to this, but nothing specific. Forgive me if I missed it, somewhere.
I'm trying to move a Center Block (ads) from where it normally shows up on a board (right beneath the header) to near the bottom. Specifically, between the link tree and the Quick Reply, right above the Mod button array.
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi81.photobucket.com%2Falbums%2Fj202%2Fbrendwyn%2FForums%2Fad.jpg&hash=b1fb41a843a4d32718ec8a1f9a3d9a9673cff70a)
I know the text that displays the block (I've been able to move it to below the "Powered By" - as seen in the pic):
if($context['TPortal']['centerbar'])
echo '<div>' , TPortal_sidebar('center') , '</div>';
And I know that for a board specific block, I can use the block manager settings for it.
However, to get the block to show in the right place, I think it has to be in the Display.template.php, rather than the index.template.
Would I have to use an if statement for "current_board"?
And, more to the point, I can't just insert that bit of code, to where I want it, without a parse error. I assume it's because of the div.
What am I missing? And how do I get around it? Anybody know?
Update: Mark as "solved".
I found a work-around using the SMF 'ad management' mod and moving that code around, until I got it right where I wanted it. I just have to use multiple ads, instead of one (nice and neat) TP block.
Thanks anyway, guys, you can disregard. ;)
Thanks for the update, pleased you found what you were looking for.
You can mark this topic as solved by changing the icon in your first post :)
Coool! Thanks Zetan, I didn't even see that..
D'oh!