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

Recent

Welcome to TinyPortal. Please login or sign up.

May 01, 2024, 07:15:21 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,174
  • Total Topics: 21,220
  • Online today: 177
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 152
  • Total: 153
  • @rjen

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

Started by Ruscon, September 27, 2008, 02:26:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ruscon

I'm trying to find where to edit this code:
<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:
<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

Ianedres

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.

IchBin

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

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/

IchBin

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

Quote from: IchBinâ,,¢ on September 27, 2008, 06:47:29 PM
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

I found fix for left/center blocks now, the right one is still not affected.

For left one:
// 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

IchBin

So you posted the line... lol
<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

Quote from: IchBinâ,,¢ on September 27, 2008, 10:02:27 PM
So you posted the line... lol
<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?

IchBin

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.

Ruscon

Quote from: IchBinâ,,¢ on September 28, 2008, 05:10:07 AM
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.

Probably shouldn't bump this up but I was thinking if anyone have same issue as me. Firebug helped me out directly, took me 5 minutes to fix it using firebug to locate the error. Thanks alot for your help

So to anyone out there with simliar or same issue, use firebug! It's very useful