vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - AMP New Thread Button in Showthread (https://vborg.vbsupport.ru/showthread.php?t=258983)

Fivestones 11-20-2012 11:20 PM

thanks a lot

DaNis 11-21-2012 10:37 AM

Quote:

Originally Posted by DaNis (Post 2378707)
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?

Princezz 11-21-2012 02:03 PM

Works fine in 4.2 :) thx.

franzes80 04-28-2013 11:54 AM

work on vb 4.2.1

Filgga 07-18-2013 03:45 PM

Works on vB 4.2.1 but need to be fixed so that it's aligned LEFT

DemOnstar 08-16-2013 09:37 AM

Works in 4.2.1, all good.

Thanks...

DemOnstar 09-05-2013 12:32 PM

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

How to change this thanks.

ozzy47 09-06-2013 12:21 AM

Quote:

Originally Posted by DemOnstar (Post 2443432)
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.

ozzy47 09-06-2013 02:08 AM

Ok I made the mod, here it is, https://vborg.vbsupport.ru/showthread.php?t=301929

DemOnstar 09-06-2013 04:37 AM

Uninstalled due to lack of support...Good idea though.


All times are GMT. The time now is 02:22 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.01167 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete