Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

August 12, 2022, 03:59:10 AM

Login with username, password and session length
Members
  • Total Members: 3842
  • Latest: Kokoro
Stats
  • Total Posts: 193479
  • Total Topics: 21088
  • Online today: 50
  • Online ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 0
Guests: 45
Total: 45

Author Topic: <td style="padding: 4px 1ex 4px 4px;" valign="top" width="170">  (Read 26233 times)

0 Members and 1 Guest are viewing this topic.

Ruscon

  • Guest
<td style="padding: 4px 1ex 4px 4px;" valign="top" width="170">
« on: September 27, 2008, 07:26:06 AM »
I'm trying to find where to edit this code:
Code: [Select]
<td style="padding: 4px 1ex 4px 4px;" valign="top" width="170">
Here's more code to give an idea of what code I'm talking about:
Code: [Select]
<div id="bdy-l">

<div id="bdy-r">

<div id="bdy-tl">

<div id="bdy-tr">

<div id="bodyarea">

<table cellpadding="4" cellspacing="0" width="100%">

<tbody><tr>

<td style="padding: 4px 1ex 4px 4px;" valign="top" width="170">

<div id="tpleftbarHeader" style="width: 170px;">

<div class="tp_leftpanel">

<div style="margin-bottom: 4px;" class="tborder tp_leftblock_frame">

<h3 style="margin: 0pt; font-size: 1em;" class="catblock tp_leftblock_title"><a href=""><img style="margin-right: 4px;" src="" alt="" align="right" border="0"></a><a class="subject" href="">User</a>

</h3>

Basically I'd like to know which file includes that code so I can edit it. Would be really helpfull if anyone could help me  ;D

Offline Ianedres

  • Friends
  • *
  • Posts: 685
  • $foo['ianedres'] < $foo['ichbin']
    • Clickity click dot dot dot com thingy
Re: <td style="padding: 4px 1ex 4px 4px;" valign="top" width="170">
« Reply #1 on: September 27, 2008, 10:38:01 AM »
Look in the style.css file for your theme. You can locate it by way of your admin panel, or directly in your theme's directory (forumpath/Themes/- theme name -/ styles.css.

You'll need to be familiar with CSS and work within the class name of the DIV block you're wanting to alter.

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: <td style="padding: 4px 1ex 4px 4px;" valign="top" width="170">
« Reply #2 on: September 27, 2008, 10:51:21 AM »
That code could be located in any number of pages. You'll have to give us a link so we can look at it. My first guess would be index.template.php.

Ruscon

  • Guest
Re: <td style="padding: 4px 1ex 4px 4px;" valign="top" width="170">
« Reply #3 on: September 27, 2008, 11:40:03 AM »
This code exists in every forum that uses TP with DzinerStudio theme atleast. Not sure if it's situed in the actual theme or the TP. I guess it would be the theme, I've checked ALL files that themes includes and I can't find that in any of them using search function.

Edit: Here is link http://demo.dzinerstudio.com/
« Last Edit: September 27, 2008, 11:43:09 AM by Ruscon »

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: <td style="padding: 4px 1ex 4px 4px;" valign="top" width="170">
« Reply #4 on: September 27, 2008, 11:47:29 AM »
Its in the indext.template.php file. The reason you don't find it is because there is PHP code mixed in with that line. If the padding is not setting in the TP admin panel, then it uses the default padding: 4px. Look at the line right before the leftbar code in the index.template.php file and you'll see what I'm talking about.

Ruscon

  • Guest
Re: <td style="padding: 4px 1ex 4px 4px;" valign="top" width="170">
« Reply #5 on: September 27, 2008, 11:56:01 AM »
Its in the indext.template.php file. The reason you don't find it is because there is PHP code mixed in with that line. If the padding is not setting in the TP admin panel, then it uses the default padding: 4px. Look at the line right before the leftbar code in the index.template.php file and you'll see what I'm talking about.

I can't find it in the theme index.template.php file. I searched for 4px in whole document, not finding it. I might have already removed that, since I've desperatly tried to remove all px in order to find the correct one

Ruscon

  • Guest
Re: <td style="padding: 4px 1ex 4px 4px;" valign="top" width="170">
« Reply #6 on: September 27, 2008, 12:08:14 PM »
I found fix for left/center blocks now, the right one is still not affected.

For left one:
Code: [Select]
// TinyPortal integrated bars

if($context['TPortal']['leftpanel']==1)

{

echo '

<td width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 4px;padding-right: 1ex;" valign="top">

There was the code indeed with alot PHP like you said (I searched for 1ex, instead of full line). Thanks for that help. Maybe you know where the right one is?  ::)

Edit: This was not in index.template.php. It was in TPBlockLayout.template.php
Edit 2: Found the right one searching in same file for same thing (1ex)

New problem: It's still padding somewhere (not visible directly in code though so I'm thinking it's from the css) Where can I find following css classes tpleftbarHeader & tp_leftpanel
« Last Edit: September 27, 2008, 12:23:05 PM by Ruscon »

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: <td style="padding: 4px 1ex 4px 4px;" valign="top" width="170">
« Reply #7 on: September 27, 2008, 03:02:27 PM »
So you posted the line... lol
Code: [Select]
<td width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 4px;padding-right: 1ex;" valign="top">
any tp style is in the tpstyle.css file.

Ruscon

  • Guest
Re: <td style="padding: 4px 1ex 4px 4px;" valign="top" width="170">
« Reply #8 on: September 27, 2008, 05:15:14 PM »
So you posted the line... lol
Code: [Select]
<td width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 4px;padding-right: 1ex;" valign="top">
any tp style is in the tpstyle.css file.

after changing that line, i still end up with some padding, like 2x padding on each side. I was wondering where it's located?

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: <td style="padding: 4px 1ex 4px 4px;" valign="top" width="170">
« Reply #9 on: September 27, 2008, 10:10:07 PM »
Can't tell what you're talking about. If you need to edit the themes in such a way, I can only recommend that you download and install firebug for firefox. This will help you find what is setting that padding easily.