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
AMP New Thread Button in Showthread Details »»
AMP New Thread Button in Showthread
Version: 1.00, by testbot testbot is offline
Developer Last Online: Nov 2018 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.1.0 Rating:
Released: 02-15-2011 Last Update: 02-15-2011 Installs: 86
Uses Plugins
Re-useable Code Translations Is in Beta Stage  
No support by the author.

*Mark Installed*

AMP New Thread Button in Showthread

Description
This adds a 'Post New Thread' button to showthread.php. Quick and easy. Nothing special.

Installation
To install simply import the attached amp_new_thread_button.xml file. That's it.
(Plugins & Products>Manage Products>Add/Import Product)

Known Issues (Bugs):
None

Notes
This was created and tested on 4.1.2. I'm not sure if it works on previous versions.

Download Now

File Type: xml product-amp_new_thread_button.xml (1.9 KB, 474 views)

Screenshots

File Type: png post_new_thread_button_below.png (4.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Filgga, WendM

Comments
  #42  
Old 11-20-2012, 11:20 PM
Fivestones's Avatar
Fivestones Fivestones is offline
 
Join Date: Jan 2009
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks a lot
Reply With Quote
  #43  
Old 11-21-2012, 10:37 AM
DaNis DaNis is offline
 
Join Date: Jan 2012
Location: Turkey
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DaNis View Post
With Internet Explorer 9, the presentation is shown in the photo.

There are two photos. A top and bottom view of the other.

Does anyone have a solution for it


PS: Why the guest can see the Buton in Internet Explorer 9

Does anyone offer a solution to this problem.

Why, guests can see the Buton at all?
Reply With Quote
  #44  
Old 11-21-2012, 02:03 PM
Princezz Princezz is offline
 
Join Date: Mar 2012
Location: Germany
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works fine in 4.2 thx.
Reply With Quote
  #45  
Old 04-28-2013, 11:54 AM
franzes80 franzes80 is offline
 
Join Date: Sep 2012
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

work on vb 4.2.1
Reply With Quote
Благодарность от:
Filgga
  #46  
Old 07-18-2013, 03:45 PM
Filgga's Avatar
Filgga Filgga is offline
 
Join Date: Jul 2007
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works on vB 4.2.1 but need to be fixed so that it's aligned LEFT
Reply With Quote
  #47  
Old 08-16-2013, 09:37 AM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works in 4.2.1, all good.

Thanks...
Reply With Quote
  #48  
Old 09-05-2013, 12:32 PM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Correction, the new post thread button shouldn't be visible to unregistered users.

How to change this thanks.
Reply With Quote
  #49  
Old 09-06-2013, 12:21 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DemOnstar View Post
Correction, the new post thread button shouldn't be visible to unregistered users.

How to change this thanks.
ACP --> Plugins & Products --> Plugin Manager search for the following, AMP New Thread Button in Showthread

Then click on Edit, and replace the code in the field, Plugin PHP Code with the following:

Code:
if (THIS_SCRIPT == 'showthread' AND $show['member']){
    $sessionurl = $session['sessionurl'];
    $forumid = $GLOBALS['forumid'];
    $post_phrase = $vbphrase['post_new_thread'];

    $new_thread_link = '<div><a href="newthread.php?'.$sessionurl.'do=newthread&amp;f='.$forumid.'" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top" style="margin-left:10px;"><span>+</span> '.$post_phrase.'</a></div>';

    $find = '<div id="pagination_top"';
    $replace = $new_thread_link.$find;
    $vbulletin->templatecache['SHOWTHREAD'] = str_replace($find, $replace, $vbulletin->templatecache['SHOWTHREAD']);

    $new_thread_link = '<div style="padding-left:145px"><a href="newthread.php?'.$sessionurl.'do=newthread&amp;f='.$forumid.'" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_bottom" style="margin-left:10px;"><span>+</span> '.$post_phrase.'</a></div>';
    $find = '<div id="pagination_bottom"';
    $replace = $new_thread_link.$find;
    $vbulletin->templatecache['SHOWTHREAD'] = str_replace($find, $replace, $vbulletin->templatecache['SHOWTHREAD']);
}
This will make the button only show for members.

If I get some time, I may re make a mod similar to this, but I would add where you could choose which usergroups could see the mod, it would be a option for you to select them.
Reply With Quote
  #50  
Old 09-06-2013, 02:08 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I made the mod, here it is, https://vborg.vbsupport.ru/showthread.php?t=301929
Reply With Quote
  #51  
Old 09-06-2013, 04:37 AM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uninstalled due to lack of support...Good idea though.
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 03:49 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.04664 seconds
  • Memory Usage 2,338KB
  • Queries Executed 26 (?)
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)bbcode_code
  • (2)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • 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
  • 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