Перейти к публикации

Рекомендованные сообщения

Кстати реально трабла...не она вывоядтся в столбик! Я пытался изменить это но никак, мож ктонить поможет??

Get a better translator or use English if possible.

Anyway, if you are talking about BBCODEs not being in line then you should make necessary adjustments either in engine/modules/bbcode.php or template you are using at the moment.

Ссылка на сообщение
Поделиться на других сайтах

1vic,

I changed these files, but it is not working at all. How did you debug this problem?

Return everything to default and start over.

With bbcodes.php you have to know that there are 2 html files there

1 for admin panel and another for comments. Also, you have some settings in engine.CSS file responsible for the distance between buttons (padding).

Basically, with bbcodes.php and engine.CSS file you can change the shape of BBCODEs menu any way you want.

Ссылка на сообщение
Поделиться на других сайтах

this is my themplate's file addnews.tpl

is it right?

<!-- Окно с сообщением. Начало. !-->

<table cellpadding="0" cellspacing="0" bgcolor="ffce00" width="95%">

<tr height="4"><td background="{THEME}/images/window_top_left_.gif" width="16"></td><td background="{THEME}/images/window_top_.gif" style="color: ffffff;"></td><td background="{THEME}/images/window_top_right_.gif" width="16"></td></tr>

<tr height="31"><td background="{THEME}/images/window_top_left.gif" width="16"></td><td background="{THEME}/images/window_top.gif" style="color: ffffff; text-align: center; font-weight: bold; font-size: 12px; font-family: Verdana;" class="newstop">


Публикация новости на сайте


</td><td background="{THEME}/images/window_top_right.gif" width="16"></td></tr>

<tr><td background="{THEME}/images/window_left.gif" width="16"><img width="16" src="{THEME}/images/window_left.gif"></td><td bgcolor="ffffff" style="color: 494848; font-size: 10px; font-family: Verdana; vertical-align: top; padding-top: 10px; padding-bottom: 10px;">


<table width="100%" class="slink">

					<tr height="26" valing="middle">

		<td nowrap="nowrap" width="130" style="text-align:right;">Введите заголовок:&nbsp&nbsp</td>

		<td width="100%"><input type="text" name="title" value="{title}" maxlength="150" style="width:220px; height:18px; font-family: tahoma; font-size: 11px; border: 1px solid #e09a03;"></td>

	</tr>

[urltag]

	<tr height="26" valing="middle">

		<td nowrap="nowrap" style="text-align:right;">URL статьи:&nbsp&nbsp</td>

		<td><input type="text" name="alt_name" value="{alt-name}" maxlength="150" style="width:220px; height:18px; font-family: tahoma; font-size: 11px; border: 1px solid #e09a03;"></td>

	</tr>

[/urltag]

	<tr>

		<td style="text-align:right;" valign="top">Категория:&nbsp&nbsp</td>

		<td>{category}</td>

	</tr>

[not-wysywyg]<tr>

		<td style="text-align:right;">Коды:&nbsp&nbsp</td>

		<td>{bbcode}</td>

	</tr>[/not-wysywyg]

	<tr>

		<td style="text-align:right;" valign="top">Краткое&nbsp&nbsp<br>содержание:&nbsp&nbsp</td>

		<td>[not-wysywyg]<textarea name="short_story" id="short_story" onclick=setFieldName(this.name) style="width:499px; height:160px; font-family: tahoma; font-size: 11px; border: 1px solid #e09a03;">{short-story}</textarea>[/not-wysywyg]{shortarea}</td>

	</tr>

	<tr>

		<td style="text-align:right;" valign="top">Полная новость:&nbsp&nbsp<br>(необязательно)&nbsp&nbsp</td>

		<td>[not-wysywyg]<textarea name="full_story" id="full_story" onclick=setFieldName(this.name) style="width:499px; height:200px; font-family: tahoma; font-size: 11px; border: 1px solid #e09a03;">{full-story}</textarea>[/not-wysywyg]{fullarea}</td>

	</tr>

{xfields}

	<tr>

		<td> </td>

		<td>{admintag}</td>

	</tr>

	<tr>

		<td> </td>

		<td><br><input class="search" style="width: 100px; height: 20px;" type="submit" name="add" value="отправить">  

	<input class="search" style="width: 100px; height: 20px;" type="button" name="nview" onClick="preview()" value="просмотр"><br /><br /></td>

	</tr>

</table>


</td><td background="{THEME}/images/window_right.gif" width="16"><img width="16" src="{THEME}/images/window_right.gif"></td></tr>

<tr height="5"><td background="{THEME}/images/window_bottom_left.gif" width="16"></td><td background="{THEME}/images/window_bottom.gif"></td><td background="{THEME}/images/window_bottom_right.gif" width="16"></td></tr>

</table><br><br>

<!-- Окно с сообщением. Конец. !-->

Ссылка на сообщение
Поделиться на других сайтах

Try to remove &nbsp; from this section because it might be the source of the problem.

[not-wysywyg]<tr>

		<td style="text-align:right;">Коды:&nbsp&nbsp</td>

		<td>{bbcode}</td>

	</tr>[/not-wysywyg]

should be
[not-wysywyg]<tr>

		<td style="text-align:right;">Коды:</td>

		<td>{bbcode}</td>

	</tr>[/not-wysywyg]

I wouldn't use &nbsp; in tables with {dle codes}

Padding works better.

Let me know if it helped.

Ссылка на сообщение
Поделиться на других сайтах

The code you have posted didn't work for me

I cleaned it up a bit so now everything is ok at least on my workstation.

check it out

I hope it will work for you too.

http://www.megaupload.com/?d=7HBI00QD

do not make any changes to the file

just drop it to your server

rename the old file to something like ADDNEWS.TPL-OLD first

You might get garbage instead of letters

never mind those just check if BBCODEs are working

let me know

Ссылка на сообщение
Поделиться на других сайтах

Firefox is less sensitive to HTML imperfections.

IE and Opera are not.

Always check your script with Opera first.

Anyways, I assume that you have used the file I gave you

and BBCODEs look fine in Firefox but the template is still falling apart in IE and Opera, right?

If everything looks fine and works ok in Default template than you are having a problem with your custom template.

As I mentioned before you should get rid of   tag through out the script which screws table alignment in the worst possible way in IE and Opera. You can keep this tag if you are using it as a place holder. Take a look at Default template how it's done.

From my experience there are only two things that you should watch out for:

1 This stupid tag

2 and the size of the tables located inside of other tables.

Everything should be done in Photoshop first to avoid the second problem.

I wonder if you could post a screen shot of your site 'cause

I am still not clear what exactly is going on there.

I am signing off for today

talk to you tomorrow.

Изменено пользователем 1vic
Ссылка на сообщение
Поделиться на других сайтах

Hm...may be you can help me too? :rolleyes:

<table class=blocks cellspacing=0 cellpadding=0 width="100%" align=center  border=0>

			<tbody> 

			<tr> 

			  <td  background="{THEME}/images/newsbg.gif" height=25> 

				<table height=25 cellspacing=0 cellpadding=0 width="100%"   border=0>

				  <tbody> 

				  <tr background="{THEME}/images/h3bg.gif"> 

					<td class=blanc style="PADDING-LEFT: 5px" align=left width="100%">{title}</td>

				  </tr>

				  </tbody>

				</table>

			  </td>

			</tr>

			<tr> 

			  <td bgcolor=#9dccec height=5><img height=5 src="{THEME}/images/spacer.gif" width=1></td>

			</tr>

			<tr> 

			  <td  style="PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; PADDING-TOP: 2px" bgcolor=#ffffff><table width="100%" class="slink">

[not-logged]

<tr><td colspan="2">

<table width="500"  class="slink">

				<tr align="left" valign="middle">

				  <td width="60" height="25" style="padding-left:5px;">Ваше Имя:</td>

				  <td height="25"><input type="text" name="name" tabindex="1" style="width:140px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 "></td>

				</tr>

				<tr align="left" valign="middle">

				  <td width="60" height="25" style="padding-left:5px;">Ваш E-Mail:</td>

				  <td height="25"><input type="text" name="mail" tabindex="2" style="width:140px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 "></td>

				</tr></table>

</td></tr>

[/not-logged]

[not-wysywyg]<tr><td coldspan="2">{bbcode}</td></tr>[/not-wysywyg]


		<tr>

	  <td colspan="2">[not-wysywyg]<textarea name=comments style="width:500px; height:160px; font-family:verdana; font-size:11px; border:1px solid #E0E0E0;">{text}</textarea>[/not-wysywyg]{wysiwyg}<br><br>

		<input name="submit" type="image" src="{THEME}/images/send.png"><br /><br /></td>

	</tr>

</table></td>

			</tr>

			<tr> 

			  <td bgcolor=#9dccec height=5><img height=7 src="{THEME}/images/spacer.gif" width=1></td>

			</tr>

			</tbody>

		  </table>

Изменено пользователем Scorp
Ссылка на сообщение
Поделиться на других сайтах

Look at this

Looks like table or image alignment is incorrect.

check all alignment tags.

It should to be valign="top" or align="top", that's depends on the place

also, I see that you are using CSS tags for the whole table

<table class=blocks  width="100%" align=center border=0>
make shure it has no effect on {dle codes} I fixed most obvious spots but you might have to play with this thing a bit more to make it work. do not forget rename your old file before uploading.
<table class=blocks  width="100%" align=center valign="top" border=0>

			<tbody>

			<tr>

			  <td  background="{THEME}/images/newsbg.gif" height=25>

				<table height=25 cellspacing=0 cellpadding=0 width="100%"   border=0>

				  <tbody>

				  <tr background="{THEME}/images/h3bg.gif">

					<td class=blanc style="PADDING-LEFT: 5px" align=left width="100%">{title}</td>

				  </tr>

				  </tbody>

				</table>

			  </td>

			</tr>


			<tr>

			  <td bgcolor=#9dccec height=5><img height=5 src="{THEME}/images/spacer.gif" width=1></td>

			</tr>

			<tr>

			  <td  style="PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; PADDING-TOP: 2px" bgcolor=#ffffff><table width="100%" class="slink">

[not-logged]

<tr>

   <td colspan="2">

<table cellspacing=0 cellpadding=0 border="0" align="top" width="500"  class="slink">

				<tr align="left" valign="middle">

				  <td width="60" height="25" style="padding-left:5px;">Ваше Имя:</td>

				  <td height="25"><input type="text" name="name" tabindex="1" style="width:140px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 "></td>

				</tr>

				<tr align="left" valign="middle">

				  <td width="60" height="25" style="padding-left:5px;">Ваш E-Mail:</td>

				  <td height="25"><input type="text" name="mail" tabindex="2" style="width:140px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 "></td>

				</tr></table>

</td></tr>

[/not-logged]

<tr><td align="top" coldspan="2">{bbcode}</td></tr>


		<tr>

	  <td colspan="2"><textarea name=comments style="width:500px; height:160px; font-family:verdana; font-size:11px; border:1px solid #E0E0E0;">{text}</textarea>

		<br>

		<br>

		<input name="submit" type="image" src="{THEME}/images/send.png"><br /><br /></td>

	</tr>

</table></td>

			</tr>

			<tr>

			  <td bgcolor=#9dccec height=5><img height=7 src="{THEME}/images/spacer.gif" width=1></td>

			</tr>

			</tbody>

		  </table>

Ссылка на сообщение
Поделиться на других сайтах

@SCORP

Actually it's quite easy to check

Just use this table:


<table width="100%" cellspacing=0 cellpadding=0 border=0 align="top">

 <tr>

	 <td>{bbcode}</td>

 </tr> 

</table>

if it's still falling apart then we move to checking bbcode.php.

:)

Ссылка на сообщение
Поделиться на других сайтах

Yes, sure we should check bbcode.php <_< but that file is used by all templates, so it doesn't metter! =( i may be the main problem is css?

.bbcodes {

	background-color: #FFF;

	border: 1px solid #E0E0E0;

	color: #666666;

	font-family: tahoma;

	font-size: 11px; 

	height: 20px;

background-image: url(../images/dlet_bttn_bbcodes.gif)

		background-repeat: repeat-x;

	font-weight: bold;

}


/* 

Ссылка на сообщение
Поделиться на других сайтах

fircxo, your problem is - engine.css (i'm sure)

Try this one :)))

/* 

* ========================================

* BB коды

* ========================================

*/ 

.bbcodes {

	background: #FFF;

	border: 1px solid #E0E0E0;

	color: #666666;

	font-family: Verdana, Tahoma, helvetica, sans-serif;

	padding: 2px;

	vertical-align: middle;

	font-size: 10px; 

	vertical-align: middle;

	margin:2px;

	height: 21px;

}


.editor_button {

	float:left;

	cursor:pointer;

	padding-left: 2px;

	padding-right: 2px;

}

.editor_buttoncl {

	float:left;

	cursor:pointer;

	padding-left: 1px;

	padding-right: 1px;

	border-left: 1px solid #BBB;

	border-right: 1px solid #BBB;

}

.editbclose {

	float:right;

	cursor:pointer;

}

Ссылка на сообщение
Поделиться на других сайтах

Присоединяйтесь к обсуждению

Вы можете опубликовать сообщение сейчас, а зарегистрироваться позже. Если у вас есть аккаунт, войдите в него для написания от своего имени.

Гость
Ответить в тему...

×   Вставлено в виде отформатированного текста.   Вставить в виде обычного текста

  Разрешено не более 75 эмодзи.

×   Ваша ссылка была автоматически встроена.   Отобразить как ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставить изображения напрямую. Загрузите или вставьте изображения по ссылке.

×
×
  • Создать...