TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 515
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 459
  • Total: 460
  • @rjen

Center block code

Started by Chain, October 27, 2007, 04:16:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Chain

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.




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?

Chain

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. ;)

Zetan

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 :)

Chain

Coool! Thanks Zetan, I didn't even see that..

D'oh!

This website is proudly hosted on Crocweb Cloud Website Hosting.