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)
-   -   Forum Home Enhancements - Add link "Today's posts" in quicks Links (https://vborg.vbsupport.ru/showthread.php?t=230302)

Allan 12-15-2009 10:00 PM

Add link "Today's posts" in quicks Links
 
1 Attachment(s)
This mod add a link "Today's posts" in quicks Links (removed in vB4)
  • In the "navbar" template, find (the third from top):
PHP Code:

<vb:if condition="$show['member']">
<
vb:if condition="$show['member']"

  • Add under:
PHP Code:

<li><a href="search.php?do=getdaily&contenttype=vBForum_Post">{vb:rawphrase todays_posts}</a></li

PS: This is a useful function and I find that this is more original in VB4, like many things, damage ..

VonDoom 12-16-2009 07:31 PM

Good stuff, My members have been asking for this one.

Leo Brazil 12-17-2009 02:02 PM

Hi Allan,

I was looking exacly for something like this.

I have on 3.8.4 something like this:

- /search.php?do=process&replyless=1&replylimit=0&exc lude=30 - To get Threads with no replies

- /search.php?do=getnew - To get posts since my last visit

- /search.php?do=getdaily&days=7- Posts from a week before

- /search.php?do=getdaily&days=30 - Posts from a month before

Any idea how would be the links for those ? Got my idea ?

Dr.osamA 12-18-2009 08:19 PM

1 Attachment(s)
Quote:

Originally Posted by Leo Brazil (Post 1932247)
Hi Allan,

I was looking exacly for something like this.

I have on 3.8.4 something like this:

- /search.php?do=process&replyless=1&replylimit=0&exc lude=30 - To get Threads with no replies

- /search.php?do=getnew - To get posts since my last visit

- /search.php?do=getdaily&days=7- Posts from a week before

- /search.php?do=getdaily&days=30 - Posts from a month before

Any idea how would be the links for those ? Got my idea ?

After Brother Allan

Leo Brazil !!

try this code

find in navbar

PHP Code:

<vb:if condition="$show['member']">
<
vb:if condition="$show['member']"

Add under:
PHP Code:

<li><a href="search.php?do=getdaily&contenttype=vBForum_Post">{vb:rawphrase todays_posts}</a></li>
<
li><a href="search.php?do=process&replyless=1&replylimit=0&exclude=30">Threads with no replies</a></li
<
li><a href="search.php?do=getnew">{vb:rawphrase last_visit}</a></li>
<
li><a href="search.php?do=getdaily&days=7">Posts from a week before</a></li>
<
li><a href="search.php?do=getdaily&days=30">Posts from a month before</a></li

installed:D
________
Crime insurance advice

woffie 12-19-2009 12:55 PM

Very Nice!

SİMAR 12-21-2009 04:56 PM

thanks man

Leo Brazil 12-22-2009 10:10 AM

Quote:

Originally Posted by Dr.osamA (Post 1933087)
After Brother Allan

Leo Brazil !!

try this code

installed:D

Awesome !! Thx a lot.

clmazin 12-23-2009 03:05 PM

I can't seem to find the code you're describing in the navbar template (so I'm not sure where to put your new code).

Can you be more specific? There doesn't seem to be any place in the navbar template that repeats those two lines:

Code:

<vb:if condition="$show['member']">
<vb:if condition="$show['member']">

Could you give me a bigger picture of the code area and where I specifically need to insert your code to get "today's posts"?

Thanks.

Allan 12-23-2009 03:15 PM

Quote:

Originally Posted by clmazin (Post 1936450)
I can't seem to find the code you're describing in the navbar template (so I'm not sure where to put your new code).

Can you be more specific? There doesn't seem to be any place in the navbar template that repeats those two lines:

Code:

<vb:if condition="$show['member']">
<vb:if condition="$show['member']">

Could you give me a bigger picture of the code area and where I specifically need to insert your code to get "today's posts"?

Thanks.

Above the first:

Code:

<li><a href="subscription.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase subscribed_threads}</a></li>

clmazin 12-23-2009 03:24 PM

Et voila! Merci, Allan!

C.


All times are GMT. The time now is 03:53 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.01263 seconds
  • Memory Usage 1,751KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_php_printable
  • (3)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