Błąd z tematami

Błąd   Założony przez  biter555.

wersja skryptu MyBB: 1.8.6
adres forum: http://4miners.xaa.pl/showthread.php?tid=1&pid=1#pid1
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu): Coś źle działa

Jak sie napiszę temat to wyskakuje taki błąd 
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /home/p482062/public_html/inc/functions_post.php(471) : eval()'d code on line 11

I jak zmienić ten różowy kolor na zielony?
(03.06.2016, 21:52)Fyeem napisał(a): Pokaż swój szablon.

Na domyślnym szablonie u mnie to wygląda tak:
<html>
<
head>
<
title>{$thread['subject']}</title>
{
$headerinclude}
<
script type="text/javascript">
<!--
 var 
quickdelete_confirm "{$lang->quickdelete_confirm}";
 var 
quickrestore_confirm "{$lang->quickrestore_confirm}";
 var 
allowEditReason "{$mybb->settings['alloweditreason']}";
 
lang.save_changes "{$lang->save_changes}";
 
lang.cancel_edit "{$lang->cancel_edit}";
 
lang.quick_edit_update_error "{$lang->quick_edit_update_error}";
 
lang.quick_reply_post_error "{$lang->quick_reply_post_error}";
 
lang.quick_delete_error "{$lang->quick_delete_error}";
 
lang.quick_delete_success "{$lang->quick_delete_success}";
 
lang.quick_delete_thread_success "{$lang->quick_delete_thread_success}";
 
lang.quick_restore_error "{$lang->quick_restore_error}";
 
lang.quick_restore_success "{$lang->quick_restore_success}";
 
lang.editreason "{$lang->postbit_editreason}";
// -->
</script>
<!-- 
jeditable (jquery) -->
<
script type="text/javascript" src="{$mybb->asset_url}/jscripts/report.js?ver=1804"></script>
<
script src="{$mybb->asset_url}/jscripts/jeditable/jeditable.min.js"></script>
<
script type="text/javascript" src="{$mybb->asset_url}/jscripts/thread.js?ver=1804"></script>
</
head>
<
body>
 {
$header}
 {
$threadnotesbox}
 {
$pollbox}
 <
div class="float_left">
 {
$multipage}
 </
div>
 <
div class="float_right">
 {
$newreply}
 </
div>
 {
$ratethread}
 <
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder tfixed clear">
 <
tr>
 <
td class="thead">
 <
div class="float_right">
 <
span class="smalltext"><strong><a href="javascript:;" id="thread_modes">{$lang->thread_modes}</a>{$threadnoteslink}</strong></span>
 </
div>
 <
div>
 <
strong>{$thread['threadprefix']}{$thread['subject']}</strong>
 </
div>
 </
td>
 </
tr>
<
tr><td id="posts_container">
 <
div id="posts">
 {
$posts}
 </
div>
</
td></tr>
 <
tr>
 <
td class="tfoot">
 {
$search_thread}
 <
div>
 <
strong>&laquo; <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> &raquo;</strong>
 </
div>
 </
td>
 </
tr>
 </
table>
 <
div class="float_left">
 {
$multipage}
 </
div>
 <
div style="padding-top: 4px;" class="float_right">
 {
$newreply}
 </
div>
 <
br class="clear" />
 {
$quickreply}
 {
$threadexbox}
 {
$similarthreads}
 <
br />
 <
div class="float_left">
 <
ul class="thread_tools">
 <
li class="printable"><a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></li>
 {
$sendthread}
 <
li class="subscription_{$add_remove_subscription}"><a href="usercp2.php?action={$add_remove_subscription}subscription&amp;tid={$tid}&amp;my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a></li>
 {
$addpoll}
 </
ul>
 </
div>

 <
div class="float_right" style="text-align: right;">
 {
$moderationoptions}
 {
$forumjump}
 </
div>
 <
br class="clear" />
 {
$usersbrowsing}
 {
$footer}
 <
div id="thread_modes_popup" class="popup_menu" style="display: none;"><div class="popup_item_container"><a href="showthread.php?mode=linear&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}class="popup_item">{$lang->linear}</a></div><div class="popup_item_container"><a href="showthread.php?mode=threaded&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}class="popup_item">{$lang->threaded}</a></div></div>
 <
script type="text/javascript">
 
// <!--
 
if(use_xmlhttprequest == "1")
 {
 $(
"#thread_modes").popupMenu();
 }
 
// -->
 
</script>
 <
script type="text/javascript">
 $(
".author_avatar img").error(function () {
 $(
this).unbind("error").closest('.author_avatar').remove();
 });
 </
script>
</
body>
</
html
Dałem jak u cb i nadal 
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /home/p482062/public_html/inc/functions_post.php(471) : eval()'d code on line 11

(03.06.2016, 21:52)Fyeem napisał(a): Pokaż swój szablon.

Na domyślnym szablonie u mnie to wygląda tak:
<html>
<
head>
<
title>{$thread['subject']}</title>
{
$headerinclude}
<
script type="text/javascript">
<!--
 var 
quickdelete_confirm "{$lang->quickdelete_confirm}";
 var 
quickrestore_confirm "{$lang->quickrestore_confirm}";
 var 
allowEditReason "{$mybb->settings['alloweditreason']}";
 
lang.save_changes "{$lang->save_changes}";
 
lang.cancel_edit "{$lang->cancel_edit}";
 
lang.quick_edit_update_error "{$lang->quick_edit_update_error}";
 
lang.quick_reply_post_error "{$lang->quick_reply_post_error}";
 
lang.quick_delete_error "{$lang->quick_delete_error}";
 
lang.quick_delete_success "{$lang->quick_delete_success}";
 
lang.quick_delete_thread_success "{$lang->quick_delete_thread_success}";
 
lang.quick_restore_error "{$lang->quick_restore_error}";
 
lang.quick_restore_success "{$lang->quick_restore_success}";
 
lang.editreason "{$lang->postbit_editreason}";
// -->
</script>
<!-- 
jeditable (jquery) -->
<
script type="text/javascript" src="{$mybb->asset_url}/jscripts/report.js?ver=1804"></script>
<
script src="{$mybb->asset_url}/jscripts/jeditable/jeditable.min.js"></script>
<
script type="text/javascript" src="{$mybb->asset_url}/jscripts/thread.js?ver=1804"></script>
</
head>
<
body>
 {
$header}
 {
$threadnotesbox}
 {
$pollbox}
 <
div class="float_left">
 {
$multipage}
 </
div>
 <
div class="float_right">
 {
$newreply}
 </
div>
 {
$ratethread}
 <
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder tfixed clear">
 <
tr>
 <
td class="thead">
 <
div class="float_right">
 <
span class="smalltext"><strong><a href="javascript:;" id="thread_modes">{$lang->thread_modes}</a>{$threadnoteslink}</strong></span>
 </
div>
 <
div>
 <
strong>{$thread['threadprefix']}{$thread['subject']}</strong>
 </
div>
 </
td>
 </
tr>
<
tr><td id="posts_container">
 <
div id="posts">
 {
$posts}
 </
div>
</
td></tr>
 <
tr>
 <
td class="tfoot">
 {
$search_thread}
 <
div>
 <
strong>&laquo; <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> &raquo;</strong>
 </
div>
 </
td>
 </
tr>
 </
table>
 <
div class="float_left">
 {
$multipage}
 </
div>
 <
div style="padding-top: 4px;" class="float_right">
 {
$newreply}
 </
div>
 <
br class="clear" />
 {
$quickreply}
 {
$threadexbox}
 {
$similarthreads}
 <
br />
 <
div class="float_left">
 <
ul class="thread_tools">
 <
li class="printable"><a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></li>
 {
$sendthread}
 <
li class="subscription_{$add_remove_subscription}"><a href="usercp2.php?action={$add_remove_subscription}subscription&amp;tid={$tid}&amp;my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a></li>
 {
$addpoll}
 </
ul>
 </
div>

 <
div class="float_right" style="text-align: right;">
 {
$moderationoptions}
 {
$forumjump}
 </
div>
 <
br class="clear" />
 {
$usersbrowsing}
 {
$footer}
 <
div id="thread_modes_popup" class="popup_menu" style="display: none;"><div class="popup_item_container"><a href="showthread.php?mode=linear&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}class="popup_item">{$lang->linear}</a></div><div class="popup_item_container"><a href="showthread.php?mode=threaded&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}class="popup_item">{$lang->threaded}</a></div></div>
 <
script type="text/javascript">
 
// <!--
 
if(use_xmlhttprequest == "1")
 {
 $(
"#thread_modes").popupMenu();
 }
 
// -->
 
</script>
 <
script type="text/javascript">
 $(
".author_avatar img").error(function () {
 $(
this).unbind("error").closest('.author_avatar').remove();
 });
 </
script>
</
body>
</
html
Dałem jak u cb i nadal 
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /home/p482062/public_html/inc/functions_post.php(471) : eval()'d code on line 11
https://webboard.pl/thread-66545.html

Nie dawaj tego co u mnie, każdy szablon może mieć inny zapis, ponieważ domyślny był edytowany na taki jaki posiadasz!

Pokaż szablon postbit_author_user. (Opis posta)
Cytat:w pół dnia stałeś się lepszym pytonistą niż kawenanowo kiedykolwiek programisto :3 ~ Riess 13.11.2018 16:28
Cytat:ale z tą nazwą to fyeem ma racje  ~ Divir 29.07.2019 16:08
(03.06.2016, 21:53)Divir napisał(a): Ty to wkleiłeś do css zamiast do szablonu html.

Googluj "html a css".
A gdzie jest showtread.html
(03.06.2016, 21:51)Fyeem napisał(a): Jesteś pewny, że jest to szablon - widok wątku - showtread?

Pokaż szablon postbit_author_user. (Opis posta)
Cytat:w pół dnia stałeś się lepszym pytonistą niż kawenanowo kiedykolwiek programisto :3 ~ Riess 13.11.2018 16:28
Cytat:ale z tą nazwą to fyeem ma racje  ~ Divir 29.07.2019 16:08
(03.06.2016, 21:57)Fyeem napisał(a):
(03.06.2016, 21:51)Fyeem napisał(a): Jesteś pewny, że jest to szablon - widok wątku - showtread?

Pokaż szablon postbit_author_user. (Opis posta)

<div class="author_statistics">
        <!-- 
startpostbit_author_user -->
 <
span class="autor_stats" Grupa {$lang->primary_usergroup}{$usergroup['title']}</span>
    
    
<
span class="autor_stats" {$lang->postbit_posts {$post['postnum']}</span>
    
<
span class="autor_stats" {$lang->postbit_joined {$post['userregdate']}</span>
        
<
span class="autor_stats" Online <?php echo ($post['timeonline'] > 0) ? nice_time($post['timeonline'], array('years' => false'seconds' => false'short' => 1)) : $lang->none_registered?></span>
    

    
    

<!-- end: postbit_author_user -->
    </div> 
Znajdź i usuń ten kod php (NIE WOLNO UŻYWAĆ GO W SZABLONACH!)
<?php echo ($post['timeonline'] > 0) ? nice_time($post['timeonline'], array('years' => false'seconds' => false'short' => 1)) : $lang->none_registered?>
Cytat:w pół dnia stałeś się lepszym pytonistą niż kawenanowo kiedykolwiek programisto :3 ~ Riess 13.11.2018 16:28
Cytat:ale z tą nazwą to fyeem ma racje  ~ Divir 29.07.2019 16:08
Dzięki wam!



Użytkownicy przeglądający ten wątek:

1 gości