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,970
  • Latest: bynw
Stats
  • Total Posts: 196,044
  • Total Topics: 21,335
  • Online today: 287
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 141
  • Total: 142
  • lurkalot

need a little help

Started by perro88, August 13, 2007, 06:14:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

perro88

 I just use the left collum of tp on my forum and just on the home page, I want to stick that collum to the left size with border = 0. can anyone give me suggestions?
on the other pages the main border should not be 0, so the maybe to do this itÃ,´s needed to do some "if" on the index.template like if(currentpage=home)
   .....leftpadding="0"
else
...style="..."....
IÃ,´m using the default theme.

even doing this, the block have a default padding so in some place I have to change something like the left padding to 0 and keep the right,bottom and top

G6Cad

Please read the posting guide and then apply what we need to know in order to assist you.
We have a LOT of themes, and about every one of them are diffrent....


IchBin

He said he's using the default theme hun. I don't have the time to try and figure it out right now.

G6Cad


perro88

#4
I think i just need to know how to make this:
if(currentaction != home)/*need what to put inside the if*/
...

about the padding or border forget it, was a mistake I made. ;)

IÃ,´m trying this
if($context['current_action'] != 'home')
       echo' class="main" ';
where on the main class on the css have the border.
but this if is not working

IchBin

style="', $context['TPortal']['is_front'] ? 'left-padding: 0px' : 'left-padding: 5px','"

This is how you can do it on the frontpage. Add this style to whatever tag you need for the padding/border. This is like saying if you're on the frontpage left-padding: 0px, else left-padding: 5px.

perro88

Quote from: IchBinâ„¢ on August 13, 2007, 08:21:50 PM
style="', $context['TPortal']['is_front'] ? 'left-padding: 0px' : 'left-padding: 5px','"

This is how you can do it on the frontpage. Add this style to whatever tag you need for the padding/border. This is like saying if you're on the frontpage left-padding: 0px, else left-padding: 5px.
thanks, that condition was what I needed, then I  write the if this way and worked
if(empty($context['TPortal']['is_front']))
   echo'class="..."';
where the if is on the main table and if is not in the home page it calls the css who have the paddings, if not continue.
thanks for the help ;)

This website is proudly hosted on Crocweb Cloud Website Hosting.