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 Posts Button (https://vborg.vbsupport.ru/showthread.php?t=237017)

rungok 02-26-2010 10:00 PM

New Posts Button
 
1 Attachment(s)
There should be a "new posts"-button below all posts on each page so you don't have to scroll up to the navbar to click on the "New Posts" again. A button to the right of "reply"-button should be the most practical solution. That is exactly what I have done.

NOW GO:

ACP > Styles & Templates > Search in Templates > Search in Style:Click Dropdown Arrow (Choose Actual Style)> Search for Text: SHOWTHREAD > Search Titles Only: YES > Click Find

NOW SELECT SHOWTHREAD AND OPEN.


FIND:
Code:

<div id="below_postlist" class="below_postlist">
        <vb:if condition="$show['largereplybutton']">
                <a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&amp;noquote=1"
        class="newcontent_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>

ADD BELOW:
Code:

<!--- NEW POSTS BUTTON BELOW START --->

<a href="search.php?{vb:raw session.sessionurl}do=getnew&contenttype=vBForum_Post" rel="nofollow" class="newcontent_textcontrol" id="newposts"  style="margin-left:160px;">{vb:rawphrase new_posts_nav}</a>

<!--- NEW POSTS BUTTON BELOW END --->


COL NIL SATIS 02-27-2010 03:12 PM

tagged...will install this later ...nice one

Huy Ho?ng 02-28-2010 05:16 AM

This button is not a new post but see new posts in that topic.
When you click on get a message:
Quote:

Sorry, there are no new posts to view.

You may search for posts updated during the previous 24 hours, here
I want a new topic Submit button :(


.....

princeedward 02-28-2010 06:49 AM

Quote:

Originally Posted by Huy Ho?ng (Post 1993442)
This button is not a new post but see new posts in that topic.
When you click on get a message:


I want a new topic Submit button :(


.....

have you seen THIS?

Huy Ho?ng 02-28-2010 09:30 AM

Quote:

Originally Posted by princeedward (Post 1993486)
have you seen THIS?

oh ... thank you very much :up:

steve1966 02-28-2010 11:20 AM

is this the same mod as

https://vborg.vbsupport.ru/showthread.php?t=236685

rungok 02-28-2010 01:57 PM

Quote:

Originally Posted by steve1966 (Post 1993603)

Eh, no. That's another button (new thread), but the "code" is of course similar.

markwein 03-11-2010 02:35 PM

perfect!

Is there a way to add a URL to the button? Some of my members want a button like this that takes them back to a specific forum...

rungok 03-12-2010 07:40 AM

Quote:

Originally Posted by markwein (Post 2001568)
perfect!

Is there a way to add a URL to the button? Some of my members want a button like this that takes them back to a specific forum...

Of course. Just change the "search.php?{vb:raw session.sessionurl}do=getnew&contenttype=vBForum_P ost"-part to the url you may want and then change the text on the button {vb:rawphrase new_posts_nav} to whatever you want. If you think it's difficult, just give me the url to the forum and I can make the code for you.

hyppa 01-27-2011 05:10 PM

I presume the template in 4.1.1 that looks like this:

<div id="below_postlist" class="<vb:if condition="!$show['inlinemod']">noinlinemod </vb:if>below_postlist">
<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_bottom"
><vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>

is the one i shall look for and add the code after?

Anyone testet it in 4.1.1?


All times are GMT. The time now is 09:23 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.01774 seconds
  • Memory Usage 1,743KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete