The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
how would i change the link and text of a new topic based on a specific forum channel?
Edit: Template: conversation_toolbar Find: plus_new_conversation Code:
<button type="button" class="b-button b-button--primary-light new-conversation-btn js-movable-toolbar-button">
<span class="b-button__icon b-button__icon--plus"></span>
<span class="b-button__text-primary js-button__text-primary"><vb:if condition="$showBlogNewEntryButton">{vb:phrase plus_new_blog_post}<vb:elseif condition="$showSGNewTopicButton" />{vb:phrase plus_new_sg_post}<vb:elseif condition="$showNewConversationBtn == 'article'" />{vb:phrase plus_new_article}<vb:else />{vb:phrase plus_new_conversation}</vb:if></span>
</button>
Code:
<button type="button" class="b-button b-button--primary-light new-conversation-btn js-movable-toolbar-button">
<span class="b-button__icon b-button__icon--plus"></span>
<span class="b-button__text-primary js-button__text-primary">
<vb:if condition="$showBlogNewEntryButton">{vb:phrase plus_new_blog_post}
<vb:elseif condition="$showSGNewTopicButton" />{vb:phrase plus_new_sg_post}
<vb:elseif condition="$showNewConversationBtn == 'article'" />{vb:phrase plus_new_article}
<vb:elseif condition="$page['nodeid'] == 38" />{vb:phrase plus_new_toScript}
<vb:else />{vb:phrase plus_new_conversation}</vb:if>
</span>
</button>
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|