Tìm kiếm
 
 

Display results as :
 


Rechercher Advanced Search

Liên kết
DuyMinh Software
Minh Hoang HiTech
Music
Keywords

winzip  tes824  Thanh  


Last post subject on index phpBB3

Go down

Last post subject on index phpBB3

Bài gửi  duyminh on Sun Apr 18, 2010 11:09 am

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 />&nbsp;<!-- 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>&nbsp;<!-- 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]

_________________
Website: (www.phamduyminh.com)
Forum: (http://forum.phamduyminh.com)
(http://diendan.phamduyminh.com)

Let's share to be shared.
Hãy chia sẻ để được sẻ chia.

PostReply to see hidden links.
avatar
duyminh

Tổng số bài gửi : 2887
Points : 5567
Reputation : 83
Join date : 12/09/2008
Age : 37
Đến từ : http://diendan.phamduyminh.com

Xem lý lịch thành viên http://www.phamduyminh.com

Về Đầu Trang Go down

Về Đầu Trang


 
Permissions in this forum:
Bạn không có quyền trả lời bài viết