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 - New Thread Button on post viewing (https://vborg.vbsupport.ru/showthread.php?t=228384)

cabledr 11-18-2009 10:00 PM

New Thread Button on post viewing
 
1 Attachment(s)
I find that members post more when there is a post new thread option after they have posted / when there reading thread so i have done the following with a little bit of help from Lynne (thanks)

Go to the Showthread template :

First find :

HTML Code:

<a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}"
class="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="images/misc/progress.gif"  alt="" />

then after add :

HTML Code:

<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw thread.forumid}" rel="nofollow" class="textcontrol" id="newthreadlink_top"><span>+</span> {vb:rawphrase post_new_thread}</a>
then find :

HTML Code:

<a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}"
                        class="textcontrol" id="newreplylink_bottom"
                        >
<vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>

Then after add :

HTML Code:

&nbsp <span style="padding-left:140px">
<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw thread.forumid}" rel="nofollow" class="textcontrol" id="newthreadlink_bottom"><span>+</span> {vb:rawphrase post_new_thread}</a></span>

UPDATE

Make the new thread button bigger as requested :)

Go to > Showthread.css

At the very bottom add >

HTML Code:

#newthreadlink_top, #newthreadlink_bottom {
        background: {vb:stylevar control_content_background};
        -moz-border-radius: {vb:stylevar control_content_radius};
        -webkit-border-radius: {vb:stylevar control_content_radius};
        -moz-box-shadow: 0 3px 8px #e1e1e1;
        -webkit-box-shadow: 0 3px 8px #e1e1e1;
        font: {vb:stylevar control_content_font};
        color: {vb:stylevar control_content_color};
        padding: {vb:stylevar control_content_padding};
        display:inline-block;
        clear:both;
}
#newthreadlink_top span, #newthreadlink_bottom span {
        font-size:15px;
        font-weight:bold;
        display:inline;
}
#newthreadlink_top:hover, #newthreadlink_bottom:hover {
        background: {vb:stylevar control_content_hover_background};
}

Screen shot attached (new one coming :))

steve1966 11-19-2009 04:32 PM

Thanks will give it a try :)

erel34 11-19-2009 05:33 PM

thanks

Kolbi 11-19-2009 06:40 PM

The second code is not XHTML valid. ThereĀ“s an open span tag that is not closed.

cabledr 11-19-2009 07:22 PM

sorry bit confused by your reply i only put that in to move it away from new reply and as far as i knew that was correct coding if you can improve it please let me know and i will change it

Kolbi 11-20-2009 09:14 AM

Quote:

Originally Posted by cabledr (Post 1917361)
sorry bit confused by your reply i only put that in to move it away from new reply and as far as i knew that was correct coding if you can improve it please let me know and i will change it

Code:

&nbsp <span style="padding-left:140px">
<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw thread.forumid}" rel="nofollow" class="textcontrol" id="newthreadlink_bottom"><span>+</span> {vb:rawphrase post_new_thread}</a></span>


mbc100 11-20-2009 12:59 PM

It will be easy

cabledr 11-20-2009 01:32 PM

Quote:

Originally Posted by Kolbi (Post 1917629)
Code:

&nbsp <span style="padding-left:140px">
<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw thread.forumid}" rel="nofollow" class="textcontrol" id="newthreadlink_bottom"><span>+</span> {vb:rawphrase post_new_thread}</a></span>


thanks i will change mod

Dr.osamA 11-22-2009 02:41 AM

Thank you, man

I will try

but in the attached photo shows a small button
________
Ferrari 250 Tr 61 Spyder Fantuzzi

cabledr 11-22-2009 07:50 AM

Yes it shows a small button at the moment im trying to find the correct way to make it show a big button but should just be a simple edit to change size


All times are GMT. The time now is 10:32 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.01101 seconds
  • Memory Usage 1,748KB
  • 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
  • (5)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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