TinyPortal

Development => Support => Topic started by: Racenut on October 08, 2008, 10:48:07 PM

Title: changing block width
Post by: Racenut on October 08, 2008, 10:48:07 PM
How do you change the width of a left or right block in TP 1.05?

thanks :)
Title: Re: changing block width
Post by: bloc on October 09, 2008, 12:01:17 AM
Hello, Racenut, long time no see. :)

The width is determined by panel widths, which are global, but you can override panels widths in individual articles. For example, left panel is 200px normally, but in article TEST you like the blocks shown there to be 500px in width instead, making the page look like 2 equal columns almost. For that you just go the article's display settings and add a new width for the panel and add blocks in left panel with display setting to only show in that article.
Title: Re: changing block width
Post by: Racenut on October 09, 2008, 12:36:54 AM
Yes it has been a while Bloc. Good to hear from you.

Maybe you can answer an unrelated question for me.

The site of course is www.mydomain.com/forums/index.php. Is there a way to have it so when a person types in just the domain, www.mydomain.com that it will re-direct them to the forum?

thanks  ;)
Title: Re: changing block width
Post by: IchBin on October 09, 2008, 12:43:01 AM
In your hosts control panel, they ususally have something that will allow you to enter a redirect in to point your domain to another place.
Title: Re: changing block width
Post by: Ianedres on October 09, 2008, 02:27:55 AM
I had a similar situation for my forum; I made a simple index.php file for my root directory with this:

<?php
header
('Location: http://www.yourdomain.com/forums/index.php');
?>


One caveat is that search engine may not index you properly, thus affecting your ranking in their results.

You can not have any output before the opening php statement, not even a space, since the header will redirect to your site.
Title: Re: changing block width
Post by: bloc on October 09, 2008, 05:26:39 PM
.htaccess file is also an option.Probably yo got one already, in that case put this in it:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.mydomain.com/forums/$1 [R=301,L]
Title: Re: changing block width
Post by: Racenut on October 11, 2008, 09:44:01 PM
Quote from: Bloc on October 09, 2008, 12:01:17 AM
Hello, Racenut, long time no see. :)

The width is determined by panel widths, which are global, but you can override panels widths in individual articles. For example, left panel is 200px normally, but in article TEST you like the blocks shown there to be 500px in width instead, making the page look like 2 equal columns almost. For that you just go the article's display settings and add a new width for the panel and add blocks in left panel with display setting to only show in that article.


Bloc, Sorry for being such a newb but im not following you or am not doing something right. You are going to have to take me through it.

Also you said the panel widths are global. Is there a way to change the width globally?

also about the .htaccess file. If I have one where would it be?


thanks
Title: Re: changing block width
Post by: IchBin on October 11, 2008, 10:58:12 PM
Racenut, go into your blocks and panel settings. From there you can change the width of the panels. The htaccess file would be in the directory that you want to redirect from.