vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Post New Thread Button (https://vborg.vbsupport.ru/showthread.php?t=236685)

blackberry 08-28-2013 08:22 PM

works on 4.2.1

Spangle 08-30-2013 08:47 AM

As my Dad would often say "This fixes something that isn't broken"

DemOnstar 09-04-2013 07:30 AM

How do I make the button invisible for unregistered users?
Thanks....

ozzy47 09-04-2013 04:06 PM

Wrap it in a conditional.

Code:

<vb:if condition="$show['member']">
<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top"  style="margin-left:160px;"><span>+</span> {vb:rawphrase post_new_thread}</a>
</vb:if>


DemOnstar 09-05-2013 05:31 AM

Quote:

Originally Posted by ozzy47 (Post 2443193)
Wrap it in a conditional.

Code:

<vb:if condition="$show['member']">
<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top"  style="margin-left:160px;"><span>+</span> {vb:rawphrase post_new_thread}</a>
</vb:if>


Sorry old boy but I am not so tech savvy... I am sure it works but where do I add this code?
Do I replace existing code or add it underneath?

Very good job sir....

ozzy47 09-05-2013 09:24 AM

Same place the OP told you to do it, either way you want, above or below the post. So instead of using the code he gave, use the code I provided. :)

DemOnstar 09-05-2013 10:39 AM

Shall give it a shot sir....

Marvelous..

DemOnstar 09-05-2013 12:34 PM

Confusion Mr 47, the mod I am using is this one https://vborg.vbsupport.ru/showthrea...=258983&page=4

Not sure now what to do. I guess I will have to experiment..

Thanks..

Any advice?

ozzy47 09-06-2013 12:21 AM

Quote:

Originally Posted by DemOnstar (Post 2443433)
Confusion Mr 47, the mod I am using is this one https://vborg.vbsupport.ru/showthrea...=258983&page=4

Not sure now what to do. I guess I will have to experiment..

Thanks..

Any advice?

I replied in that mod as what to do. :)

ozzy47 09-06-2013 02:08 AM

Here is my take on this mod, no template edits, https://vborg.vbsupport.ru/showthread.php?t=301929


All times are GMT. The time now is 10:36 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.01099 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
  • (2)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