Tìm kiếm
Similar topics
Music
Last post subject on index phpBB3
Trang 1 trong tổng số 1 trang
Last post subject on index phpBB3
Last post subject on index phpBB3
- Code:
Them chu de bai post phia truoc va them thuoc tinh hide trong phpBB3 moi:
Menu Giao diện --> Thành phần giao diện --> Khuôn mẫu --> Sửa khuôn mẫu --> Chọn tập tin khuôn mẫu: forumlist_body.html
Last post subject on index --> Prosilver: Open forumlist_body.html
************
Last post subject on index
Prosilver
Open forumlist_body.html
Find:
<dd class="lastpost"><span>
<!-- IF forumrow.U_UNAPPROVED_TOPICS --><a href="{forumrow.U_UNAPPROVED_TOPICS}">{UNAPPROVED_IMG}</a><!-- ENDIF -->
<!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn> {L_POST_BY_AUTHOR} {forumrow.LAST_POSTER_FULL}
<!-- IF not S_IS_BOT --><a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a> <!-- ENDIF --><br />{forumrow.LAST_POST_TIME}<!-- ELSE -->{L_NO_POSTS}<br /> <!-- ENDIF --></span>
</dd>
Replace with:
<dd class="lastpost"><span>
<!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn> {L_POST_BY_AUTHOR} {forumrow.LAST_POSTER_FULL}
<br /><a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG} {forumrow.LAST_POST_SUBJECT}</a> <br />{L_POSTED_ON_DATE} {forumrow.LAST_POST_TIME}<!-- ELSE -->{L_NO_POSTS}<!-- ENDIF --></span>
</dd>
**************
subsilver2
Open forumlist_body.html
Find:
<!-- IF forumrow.LAST_POST_TIME -->
<p class="topicdetails"><!-- IF forumrow.U_UNAPPROVED_TOPICS --><a href="{forumrow.U_UNAPPROVED_TOPICS}">{UNAPPROVED_IMG}</a> <!-- ENDIF -->{forumrow.LAST_POST_TIME}</p>
<p class="topicdetails">{forumrow.LAST_POSTER_FULL}
<!-- IF not S_IS_BOT --><a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a><!-- ENDIF -->
</p>
<!-- ELSE -->
Replace with:
<!-- IF forumrow.LAST_POST_TIME -->
<p class="topicdetails">{forumrow.LAST_POST_TIME}</p>
<p><a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG} {forumrow.LAST_POST_SUBJECT}</a>
</p>
<p class="topicdetails">{forumrow.LAST_POSTER_FULL}</p>
<!-- ELSE -->
****************************
http://www.ktuk.net/phpBB3/viewtopic.php?f=32&t=2300
Open viewtopic.php bang notepad ++
Nho them phia dang truoc
http://www.modphpbb3.com/viewtopic.php?f=7&t=409
*****************
You can try this courtesy of This Author.
Open viewtopic.php
Find:
$rowset[$row['post_id']] = array(
Before add:
// Mod for members bbcode
if ($user->data['user_id'] == ANONYMOUS)
{
$offset = 0;
$newstring = $row['post_text'];
$strpos = strpos($newstring ,'[members:', $offset);
$strcnt = substr_count($newstring ,'[members:');
while ($strcnt <> false):
$endpos = strpos($newstring, '[/members', $offset);
$strpos = $strpos + 18;
$strlen = $endpos - $strpos;
$newstring = substr_replace($newstring, 'You must be a Registered Member to view this content', $strpos, $strlen);
$offset = $strpos + 53;
if ($offset < strlen($newstring))
{
$strrem = substr($newstring, $offset);
$strcnt = substr_count($strrem ,'[members:');
$strpos = strpos($newstring, '[members:', $offset);
}
else
{
$strcnt = false;
}
endwhile;
$row['post_text'] = $newstring;
}
// End Mod for members bbcode
In ACP / Posting / BBcodes add the new bbcode
BBCode Usage:
[members]{TEXT}[/members]
HTML:
<div style="margin:20px; margin-top:5px"><div class="quotetitle"><b>Registered Members Only:</b> <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }" /></div><div class="quotecontent"><div style="display: none;">{TEXT}</div></div></div>
Helpline:
Hide :[members]your content[/members]
Similar topics
» Pha lê Mỹ Linh http://phalemylinh.com/index.php
» Echip http://websitetinhoc.com/forum/index.php
» http://meslab.org/mes/index.php MES Lab. (Be Professional!) - Diễn đàn của Cộng đồng Kỹ thuật Vật liệu - Cơ khí - Tự động hóa - Kỹ thuật Công nghiệp
» Echip http://websitetinhoc.com/forum/index.php
» http://meslab.org/mes/index.php MES Lab. (Be Professional!) - Diễn đàn của Cộng đồng Kỹ thuật Vật liệu - Cơ khí - Tự động hóa - Kỹ thuật Công nghiệp
Trang 1 trong tổng số 1 trang
Permissions in this forum:
Bạn không có quyền trả lời bài viết
|
|