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

Recent

Welcome to TinyPortal. Please login or sign up.

May 23, 2024, 06:05:43 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,197
  • Total Topics: 21,221
  • Online today: 67
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 47
  • Total: 47

Widening forum but not TP front page;possible?

Started by bluedevil, July 12, 2009, 02:52:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mick

Widening forum but not TP front page;possible?

Is it really?   I tried resizing the "wrapper" to 100% in .css file.  Yeah,it widens the forum but TP page as well too.

Is there a way to leave TP front page be and only widen the forum? 

Thanx,Mick.

ZarPrime

#1
bluedevil,

To do what you want to do would probably require not only a new entry in the style.css file for the custom theme but also an edit to the custom theme to pickup a different width for the front page.  Since you are using a theme from http://www.dzinerstudio.com/ you may be better off asking this question there, especially since the edits required will be for the custom theme.

ZarPrime

EDIT:  I can't tell which theme you are using, but it looks like DSv4, one of their premium themes.  They give support for their premium themes right on their site.

Mick

Ill try them.

I always thought that not always TP blocks look right with the page wide.  Everytime i create an article or block,i have to remember that not all users own a wide screen monitor or laptop.   The forum on the other hand, looks great wide.

ZarPrime

I've never had any trouble showing blocks whether on the front page or the forum with a wide setting.  Like you, I generally don't use the right panel.  As long as the left panel width is set correctly for the content in your blocks, you shouldn't have any problem showing the front page with a wide setting.  Have a look at my site.  Click the little world icon below my avatar, and have a look at the front page.

ZarPrime 

IchBin

You could set the width in index.template.php by checking for TP's frontpage setting:

if($context['TPortal']['not_forum'])
    echo 'set frontpage width, which also affects article pages';
else
    echo 'set width for everything else';


From there, I'll let you figure out the HTML to do the rest.

Mick

I'll try your code Bin when I get home.  Thanx!

The idea behind all this is, I want to widen the forum but not tp's front page.  Later to add an image in the background only visible in the front page.

ZarPrime

After reading your guy's posts, I thought of another possible way.  There is a somewhat undocumented, though not unknown, feature of TP that might work for you.

Right now you have your Forum set to use the DSv4 theme.  If you changed the width of that one to be 100% (or 90% or whatever) and then uploaded another instance of the DSv4 theme (rename it "dsv4narrow" or something like that to keep track of it) and set your featured article to use only that theme, then your front page should use the narrow version of the theme while the rest of the Forum should you use the original theme that you edited the width wider for.  I think that might work.

ZarPrime

Mick

Quote from: ZarPrime on July 13, 2009, 08:50:08 PM
After reading your guy's posts, I thought of another possible way.  There is a somewhat undocumented, though not unknown, feature of TP that might work for you.

Right now you have your Forum set to use the DSv4 theme.  If you changed the width of that one to be 100% (or 90% or whatever) and then uploaded another instance of the DSv4 theme (rename it "dsv4narrow" or something like that to keep track of it) and set your featured article to use only that theme, then your front page should use the narrow version of the theme while the rest of the Forum should you use the original theme that you edited the width wider for.  I think that might work.

ZarPrime

Great idea!  It makes me think tho',.... i may have to add my website's logo and edit the navigation bar?

Mick

Im hooked!   It works but it will take lots of edits.

I can have 2 logos 2 footers,etc.  2 of everything :o

Mick

LOL!   You're a genius.  Thank you ZP & Bin for your responses.  I never thought of that even tho i knew about this option but never cared to use it.   Wow,i can have 2 logos.  lol.........

I copied my entire index.template to my new renamed theme and thats it.

Off i go to create a new banner.   Woot!