PDA

View Full Version : Mini Mods - ''Promote to Article Page Edited'' For Same Coments in CMS and Forum Always active


Twikitero
07-03-2014, 10:00 PM
This is a small modification that I have on my forum for page Promote to Article Page Edited VBulletin CMS.
It can be very useful for people who always want to show them the comments of the last post of the forum to VBulletin CMS

Example:

https://vborg.vbsupport.ru/attachment.php?attachmentid=149603&stc=1&d=1404476843

Comment in forum
Click to view image (https://vborg.vbsupport.ru/attachment.php?attachmentid=149606&stc=1&d=1404478773)

Comment in the CMS
Click to view image (https://vborg.vbsupport.ru/attachment.php?attachmentid=149607&stc=1&d=1404478773)

Same commentaries

With this modification not we have to checking these options every time you move an item to CMS from the forum so always show us comments from users on the forum and in the cms.

Steps

1 - In Template vbcms_edit_publisher search

<ul class="multifield group floatcontainer">
<li><input type="radio" name="comments_enabled" id="comments_enabled0" value="1" <vb:if condition="$comments_enabled"> checked="checked"</vb:if> tabindex="1" /> <label for="comments_enabled0" class="secondary">{vb:rawphrase yes}</label>&nbsp;&nbsp;{vb:stylevar dirmark}</li>
<li><input type="radio" name="comments_enabled" id="comments_enabled1" value="0" <vb:if condition="!$comments_enabled"> checked="checked"</vb:if> tabindex="1" /> <label for="comments_enabled1" class="secondary">{vb:rawphrase no}</label></li>
</ul>

- And Repleace with this:

<ul class="multifield group floatcontainer">
<li><input type="radio" name="comments_enabled" id="comments_enabled0" value="1" <vb:if condition="$comments_enabled"> checked="checked"</vb:if> tabindex="1" /> <label for="comments_enabled0" class="secondary">{vb:rawphrase yes}</label>&nbsp;&nbsp;{vb:stylevar dirmark}</li>
<li><input type="radio" name="comments_enabled" id="comments_enabled1" value="0" <vb:if condition="!$comments_enabled"> checked="checked"</vb:if> tabindex="1" /> <label for="comments_enabled1" class="secondary">{vb:rawphrase no}</label></li>
</ul>

2 - Search

<ul class="multifield group floatcontainer">
<li><input type="radio" name="keepthread" id="keepthread1" value="1" <vb:if condition="$keepthread"> checked="checked"</vb:if> tabindex="1" /> <label for="keepthread1" class="secondary">{vb:rawphrase yes}</label>&nbsp;&nbsp;{vb:stylevar dirmark}</li>
<li><input type="radio" name="keepthread" id="keepthread0" value="0" <vb:if condition="!$keepthread"> checked="checked"</vb:if> tabindex="1" /> <label for="keepthread0" class="secondary">{vb:rawphrase no}</label></li>
</ul>

- And replace with this:

<ul class="multifield group floatcontainer">
<li><input type="radio" name="keepthread" id="keepthread1" checked="checked" value="1" <vb:if condition="$keepthread"></vb:if> tabindex="1" /> <label for="keepthread1" class="secondary">{vb:rawphrase yes}</label>&nbsp;&nbsp;{vb:stylevar dirmark}</li>
<li><input type="radio" name="keepthread" id="keepthread0" value="0" <vb:if condition="!$keepthread"> </vb:if> tabindex="1" /> <label for="keepthread0" class="secondary">{vb:rawphrase no}</label></li>
</ul>

3 - Search

<ul class="multifield group floatcontainer">
<li><input type="radio" name="movethread" id="movethread1" value="1" <vb:if condition="$movethread"> checked="checked"</vb:if> tabindex="1" /> <label for="movethread1" class="secondary">{vb:rawphrase yes}</label>&nbsp;&nbsp;{vb:stylevar dirmark}</li>
<li><input type="radio" name="movethread" id="movethread0" value="0" <vb:if condition="!$movethread"> checked="checked"</vb:if> tabindex="1" /> <label for="movethread0" class="secondary">{vb:rawphrase no}</label></li>
</ul>

- And replace with this:

<ul class="multifield group floatcontainer">
<li><input type="radio" name="movethread" id="movethread1" value="1" <vb:if condition="$movethread"></vb:if> tabindex="1" /> <label for="movethread1" class="secondary">{vb:rawphrase yes}</label>&nbsp;&nbsp;{vb:stylevar dirmark}</li>
<li><input type="radio" name="movethread" id="movethread0" checked="checked" value="0" <vb:if condition="!$movethread"></vb:if> tabindex="1" /> <label for="movethread0" class="secondary">{vb:rawphrase no}</label></li>
</ul>

4- Search

<ul class="multifield group floatcontainer">
<li><input type="radio" name="allcomments" id="allcomments1" value="1" <vb:if condition="$allcomments > 0"> checked="checked"</vb:if> tabindex="1" /> <label for="allcomments1" class="secondary">{vb:rawphrase yes}</label>&nbsp;&nbsp;{vb:stylevar dirmark}</li>
<li><input type="radio" name="allcomments" id="allcomments0" value="0" <vb:if condition="!($allcomments > 0)"> checked="checked"</vb:if> tabindex="1" /> <label for="allcomments0" class="secondary">{vb:rawphrase no}</label></li>
</ul>

- And replace with this:

<ul class="multifield group floatcontainer">
<li><input type="radio" name="allcomments" id="allcomments1" checked="checked" value="1" <vb:if condition="$allcomments > 0"> </vb:if> tabindex="1" /> <label for="allcomments1" class="secondary">{vb:rawphrase yes}</label>&nbsp;&nbsp;{vb:stylevar dirmark}</li>
<li><input type="radio" name="allcomments" id="allcomments0" value="0" <vb:if condition="!($allcomments > 0)"> </vb:if> tabindex="1" /> <label for="allcomments0" class="secondary">{vb:rawphrase no}</label></li>
</ul>

Finish,save de template and enjoy:D

chloe101
12-09-2015, 06:30 AM
You really really rock! Thank you. I was searching everywhere for how to edit that stupid template and you had the only clear answer. Thanks again!