Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Post Always Details »»
Post Always
Version: 1.01, by Wayne Luke (Senior Member) Wayne Luke is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.1.10 Rating:
Released: 01-19-2012 Last Update: 01-20-2012 Installs: 75
Supported Uses Plugins
Re-useable Code  

A change in vBulletin 4.1.10, removes the new post and new thread buttons from display if the user does not have that permission. However this can reduce forum activity because people won't see the button if they get logged out for any reason.

This addon adds a new option to have the New Post and New Thread buttons shown on showthread.php and forumdisplay.php respectively.

Includes a setting and two plugins to restore the previous functionality.

To install, import the product file.

To enable, go to Settings -> Options -> Message Posting and Editing Options. Edit the Show Post Buttons option to Yes.

No template edits required. No additional files. No permission changes required.

Download Now

File Type: xml product-rbs_guestpost.xml (1.8 KB, 215 views)

Show Your Support

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

Comments
  #22  
Old 02-03-2012, 07:08 AM
David Copeland's Avatar
David Copeland David Copeland is offline
 
Join Date: Oct 2001
Location: USA
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wayne, how do I "import" a file?

(I am using cPanel for my server. Do I save the file to my PC, and then upload it to a certain file folder in cPanel?)

David
Reply With Quote
  #23  
Old 02-10-2012, 07:18 PM
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
Senior Member
 
Join Date: Jan 2002
Location: Southern California
Posts: 1,694
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by David Copeland View Post
Wayne, how do I "import" a file?

(I am using cPanel for my server. Do I save the file to my PC, and then upload it to a certain file folder in cPanel?)

David
In your Admin CP you go to Plugins / Products -> Add new Product.
Reply With Quote
  #24  
Old 02-20-2012, 10:53 PM
HansiB HansiB is offline
 
Join Date: May 2003
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you!!!
Reply With Quote
  #25  
Old 03-27-2012, 02:30 PM
satlazone satlazone is offline
 
Join Date: Mar 2008
Location: Israel
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have faced a problem with this mod.
Click on a category and you will be able to find the button also shown in there.

Please if you can fix this.
Thanks!
Reply With Quote
  #26  
Old 01-09-2013, 03:26 PM
MarceloS MarceloS is offline
 
Join Date: Aug 2008
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice product. Installed.

I wonder if it is possible to show only the "post" button, but not the "new thread" button?
Reply With Quote
  #27  
Old 03-11-2013, 12:06 AM
postcd postcd is offline
 
Join Date: Feb 2012
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please can You add an option for the admin to add New Thread button next to Reply button in the showthread ? Would be also very handy. // edit, here is the mod for that
Reply With Quote
  #28  
Old 09-30-2013, 05:13 AM
RedTurtle's Avatar
RedTurtle RedTurtle is offline
 
Join Date: May 2006
Location: California
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Wayne,

Thank you for making this mod. I have it installed and was hoping I could ask you a question regarding the functionality.

Currently when a guest clicks on the Post a Reply button they are shown the standard vB no permissions error page where they can choose to login or register. However, that error page isn't super clear and I was hoping to skip it entirely.

Is there a way to have your mod check if the user clicking on the "Post reply" button is a guest and if so, taking them directly to the registration page rather than the no permissions error page?

Thank you!
Reply With Quote
  #29  
Old 09-30-2013, 05:38 AM
RedTurtle's Avatar
RedTurtle RedTurtle is offline
 
Join Date: May 2006
Location: California
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually I tinkered around with this a little bit and was able to edit the template (SHOWTHREAD) and was able to get this to work.

Changed this code:
PHP Code:
<vb:if condition="$show['largereplybutton']">
            <
a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}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>
            <
img style="display:none" id="progress_newreplylink_top" src="{vb:stylevar imgdir_misc}/progress.gif" alt="" />
        </
vb:if> 
to this code:
PHP Code:
<vb:if condition="$show['largereplybutton']">
<
vb:if condition="$show['guest']">
<
a href="/register.php" 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><img style="display:none" id="progress_newreplylink_top" src="{vb:stylevar imgdir_misc}/progress.gif" alt="" /><vb:else />

            <
a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}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>
            <
img style="display:none" id="progress_newreplylink_top" src="{vb:stylevar imgdir_misc}/progress.gif" alt="" />
        </
vb:if></vb:if> 
This changes the button to always go straight to the registration page for guests when they click on the reply button.
Reply With Quote
Reply

Thread Tools

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 03:58 PM.


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.04562 seconds
  • Memory Usage 2,321KB
  • Queries Executed 24 (?)
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
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete