PDA

View Full Version : Post New Thread Button



admin
25-02-2010, 10:36 PM
Post New Thread Button To Showthread
Above, Below / Closed, Open Thread



What Is This Again? This is a simple and more better way to add the same Post New Thread Button to showthread page...to a closed and open thread...above and below with you to decide the space and adjust the size...

PROCEDURES/INSTALLATION:
[Pls. Read Clearly Or If You Need Reading Glass (Wear It First) And Follow The Steps Below



NOW GO:

ACP > Styles & Templates > Search in Templates > Search in Style:Click Dropdown Arrow (Choose Actual Style)> Search for Text: SHOWTHREAD > Search Titles Only: YES > Click Find


NOW SELECT SHOWTHREAD TO OPEN!

======================================
1: ADDING POST NEW THREAD BUTTON ABOVE!
======================================

FIND THIS CODE:

<div id="above_postlist" class="above_postlist">
<vb:if condition="$show['largereplybutton']">
<a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&amp;noquote=1"
class="newcontent_textcontrol" id="newreplylink_top"><vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>

ADD BELOW:

<!--- POST NEW THREAD BUTTON ABOVE START --->

<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top" style="margin-left:10px;"><span>+</span> {vb:rawphrase post_new_thread}</a>

<!--- POST NEW THREAD BUTTON ABOVE END --->

==================================
NOTE: ADJUST THE RED ONE IF NEEDED!
==================================

======================================
2: ADDING POST NEW THREAD BUTTON BELOW!
======================================

NOW GO DOWN BELOW AND SEARCH/FIND THIS CODE:

<div id="below_postlist" class="below_postlist">
<vb:if condition="$show['largereplybutton']">
<a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&amp;noquote=1"
class="newcontent_textcontrol" id="newreplylink_bottom">
<vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>

ADD BELOW:

<!--- POST NEW THREAD BUTTON BELOW START --->

<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top" style="margin-left:160px;"><span>+</span> {vb:rawphrase post_new_thread}</a>

<!--- POST NEW THREAD BUTTON BELOW END --->

==================================
NOTE: ADJUST THE RED ONE IF NEEDED!
==================================

SPECIAL NOTE:
Now you will notice that something is not right... the Post New Thread or Reply To Thread Button is quite larger or bigger than the others (Because Of The Font Size!)
Now you want to have it all the same size...which is more better to see...right?


NOW GO TO EDIT THAT BUTTON:

ACP > Styles & Templates > Search in Templates > Search in Style:Click Dropdown Arrow (Choose Actual Style)> Search for Text: vbulletin-chrome.css > Search Titles Only: YES > Click Find

NOW GO SELECT vbulletin-chrome.css TO OPEN

Search in Template: .newcontent_textcontrol span { Click Find:


OR LOOK/FIND THIS CODE:

}
.newcontent_textcontrol span {
font-size:15px;
font-weight:bold;
display:inline;
}

CHANGE/ADJUST THE RED INTO: 10-12px



SAVE AND RELOAD FOR A TEST IF NOT OKAY ADJUST MORE:

UNTIL OKAY....SAVE AND ENJOY!

Screen Shot:
http://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/02/25/10/48351267112155.pnghttp://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/02/25/10/93281267112162.pnghttp://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/02/25/10/89471267112168.pnghttp://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/02/25/10/13211267112175.png

trh_itm
04-04-2011, 12:32 AM
2681

2682

Ai đó chỉ mình làm đi. Huhu

gatheki21
04-04-2011, 01:31 AM
2681

2682

Ai đó chỉ mình làm đi. Huhu
trên có hướng dẫn hoặc đây nè bạn http://itvnn.net/showthread.php?5197-New-Thread-Button-in-Showthread

vietnam17488
04-04-2011, 02:11 AM
2681

2682

Ai đó chỉ mình làm đi. Huhu

Vào Search in Templates tìm SHOWTHREAD

Rồi mở SHOWTHREAD tìm đoạn :


<div id="above_postlist" class="above_postlist">
<vb:if condition="$show['largereplybutton']">
<a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&amp;noquote=1"
class="newcontent_textcontrol" id="newreplylink_top"><vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>


Thêm vào phía sau :


<!--- POST NEW THREAD BUTTON ABOVE START --->

<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top" style="margin-left:10px;"><span>+</span> {vb:rawphrase post_new_thread}</a>

<!--- POST NEW THREAD BUTTON ABOVE END --->


Tiếp tục tìm :


<div id="below_postlist" class="below_postlist">
<vb:if condition="$show['largereplybutton']">
<a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&amp;noquote=1"
class="newcontent_textcontrol" id="newreplylink_bottom">
<vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>


Thêm vào phía sau :


<!--- POST NEW THREAD BUTTON BELOW START --->

<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top" style="margin-left:160px;"><span>+</span> {vb:rawphrase post_new_thread}</a>

<!--- POST NEW THREAD BUTTON BELOW END --->


The End!

s0ct0j0c
08-04-2011, 01:05 PM
Attack cho anh em đây đỡ phải chèn nếu thêm style mới :MatCuoi (9):