Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-09-2015, 05:04 AM
Daniel's Avatar
Daniel Daniel is offline
 
Join Date: Jul 2005
Location: USA
Posts: 707
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default CMS Publish by Default

Hey all,

Articles on my site frequently go unpublished because people don't realize that articles are set to "Not Published" by default.

[See attachment]

Can you help me set it to Publish by default?

Here's the code in vbcms_edit_publisher:
HTML Code:
    <div class="blockrow">
        <label class="thirdleft">{vb:rawphrase published}</label>
        <div class="twothirdsright">
            <ul class="multifield group floatcontainer">
                <li><input type="radio" value="0" name="setpublish" id="setpublish0" tabindex="1" <vb:if condition="$setpublish"> checked="checked"</vb:if> /> <label for="setpublish0" class="secondary">{vb:rawphrase yes}</label>&nbsp;&nbsp;{vb:stylevar dirmark}</li>
                <li><input type="radio" value="1" name="setpublish" id="setpublish1" tabindex="1" <vb:if condition="!$setpublish"> checked="checked"</vb:if> /> <label for="setpublish1" class="secondary">{vb:rawphrase no}</label></li>
            </ul>
        </div>
    </div>
Thank you for the help.
Attached Images
File Type: png Screen Shot 2015-04-08 at 11.56.54 PM.png (17.6 KB, 0 views)
Reply With Quote
  #2  
Old 04-10-2015, 10:38 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not familiar with that area, but just looking at what you posted, you could do this:
Code:
    <div class="blockrow">
        <label class="thirdleft">{vb:rawphrase published}</label>
        <div class="twothirdsright">
            <ul class="multifield group floatcontainer">
                <li><input type="radio" value="0" name="setpublish" id="setpublish0" tabindex="1" checked="checked" /> <label for="setpublish0" class="secondary">{vb:rawphrase yes}</label>&nbsp;&nbsp;{vb:stylevar dirmark}</li>
                <li><input type="radio" value="1" name="setpublish" id="setpublish1" tabindex="1"  /> <label for="setpublish1" class="secondary">{vb:rawphrase no}</label></li>
            </ul>
        </div>
    </div>

But that will make "Yes" selected every time, even if "No" was chosen before. I'm not sure that would ever happen, but maybe it does when editing an article? Anyway, to make 'Yes' the default only the first time you'd probably need a plugin (assuming there's a hook location that allows you do change that default).
Reply With Quote
  #3  
Old 04-10-2015, 09:17 PM
Daniel's Avatar
Daniel Daniel is offline
 
Join Date: Jul 2005
Location: USA
Posts: 707
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The code you posted forces "Yes" even if the user wants it unpublished-- so that's no good. I think we're looking at changing something to do with $setpublish. Any hints or help is appreciated...

HTML Code:
<li><input type="radio" value="1" name="setpublish" id="setpublish0" tabindex="1" <vb:if condition="$setpublish"> checked="checked"</vb:if> /> <label for="setpublish0" class="secondary">{vb:rawphrase yes}</label>&nbsp;&nbsp;{vb:stylevar dirmark}</li>
<li><input type="radio" value="0" name="setpublish" id="setpublish1" tabindex="1" <vb:if condition="! $setpublish"> checked="checked"</vb:if> /> <label for="setpublish1" class="secondary">{vb:rawphrase no}</label></li>
Reply With Quote
  #4  
Old 04-13-2015, 05:19 PM
Daniel's Avatar
Daniel Daniel is offline
 
Join Date: Jul 2005
Location: USA
Posts: 707
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A bump here, could really use this mod.

I went into phpmyadmin, into the table "cms_node" and changed "setpublish" from 0 to 1. That didn't seem to change anything.

Does anyone else have some ideas for me? Thanks a million
Reply With Quote
  #5  
Old 05-04-2015, 05:32 AM
Daniel's Avatar
Daniel Daniel is offline
 
Join Date: Jul 2005
Location: USA
Posts: 707
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump just in case? <3
Reply With Quote
  #6  
Old 05-04-2015, 07:51 AM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried to add something in RED/BOLD explaining your writers to check the right radio box button ? (just besides the image you posted above as well somewhere near the submit/post button).
That might be handy at present till you find a proper fix ??
Reply With Quote
Благодарность от:
Daniel
  #7  
Old 05-07-2015, 11:02 AM
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Posts: 436
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have used the CMS in a very serious fashion since 4.0.1, now using 4.2.3 beta, www.tooraktimes.com.au, and I do not recommend removing it. It has so many options that are useful and the 'Not Published' is a Draft that only appears to the user and admins.

Using a couple of other mods, Change User Profile and Date and CMS or/and Blog RSS feeds you can also gain a bit more, Login as User is also awesome to check user experience.

I love the Drag and Drop pix also.

Cheers

Have you tried your User Group settings or permissions? WHATEVER you do don't change much unless you are sure.
Reply With Quote
  #8  
Old 05-08-2015, 07:03 AM
Daniel's Avatar
Daniel Daniel is offline
 
Join Date: Jul 2005
Location: USA
Posts: 707
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hiya,
I want to keep the Publishing option. I'm looking for a way for the default radio box selection to be set to "Published" instead of "Not Published".

Thanks for your reply.
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 04:11 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04269 seconds
  • Memory Usage 2,262KB
  • Queries Executed 14 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (1)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • 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
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete