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,223
  • Total Topics: 21,352
  • Online today: 633
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 209
  • Total: 210
  • @rjen

Move blocks to specific place in theme

Started by rousseauxy, December 11, 2011, 02:35:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rousseauxy

Hehe, this is what i want :) ht tp://smf.loyaltyguild.eu/Themes/smfWoW/wanted.html
Basicly i want to reposition the <div class="block_leftcontainer"> so that it appears on the left side of my theme and not in the middle, same for the other containers/panels
with extra theming of the blocks ofcourse, but it's just an example

ZarPrime

I'll take a look at this here in a little while but I don't think what you are trying to do can be done with TinyPortal.  The reason for this is because TinyPortal places it's left and right panels within the confines of the content margins (left and right) of your theme and the panels that you have added on the left and right are outside of those constraints.  In addition, scroll to the very bottom of your site (http://smf.loyaltyguild.eu/index.php) where you will see the TP bottom block that you have added.  The TP bottom panel (where you have placed BOTTOM BLOCK #1) will also fit within the constraints of your content margin  rather than from the very left side of your browser window to the right side.

Again, I will have a look at this but I have feeling that you would be better off doing as Lurkalot mentioned, that is removing the extra panels that you added and adjusting the content margins in your theme's CSS to something a little wider.

ZarPrime

rousseauxy

Thx Zar, i've just found the panel-code in the TPBlockLayoutTemplate.php after alot of searching and adjusting my theme and that file accordingly :)
Isn't as clean as using a tag but it does the trick to get it the way i want it to be and i still get to use TinyPortal :D

All i need to find now is the code where the blocks are generated and the transformation will be complete ^^

ZarPrime

Well, I think you've got it pretty close at this point, at least for the left and right panels.  It actually looks almost like your e107 site at this point.  Whatever you do though, be sure to keep track of just what you did to get it like that so that you can easily duplicate the effort when a new version of TinyPortal comes out.

ZarPrime

rousseauxy

Indeed will do so :-) Thanks for your helf anyway!

This website is proudly hosted on Crocweb Cloud Website Hosting.