Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
''Promote to Article Page Edited'' For Same Coments in CMS and Forum Always active Details »»
''Promote to Article Page Edited'' For Same Coments in CMS and Forum Always active
Version: 1.00, by Twikitero Twikitero is offline
Developer Last Online: Dec 2014 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.2.2 Rating:
Released: 07-03-2014 Last Update: Never Installs: 5
Template Edits
Code Changes  
No support by the author.

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:



Comment in forum
Click to view image

Comment in the CMS
Click to view image

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

Code:
<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:

Code:
<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

Code:
<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:

Code:
<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

Code:
<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:

Code:
<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

Code:
<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:

Code:
<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

Screenshots

File Type: png example.png (8.3 KB, 0 views)
File Type: jpg in forum.jpg (70.3 KB, 0 views)
File Type: png in cms.png (98.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-09-2015, 06:30 AM
chloe101 chloe101 is offline
 
Join Date: Dec 2007
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:24 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03771 seconds
  • Memory Usage 2,243KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (3)postbit_attachment
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete