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.

MattZ DSLR 12-24-2009 08:32 PM

Thank you
This is great

Magz 12-27-2009 11:59 PM

When i click on View threads with no reply, i get this

Please add more constraints to your search. Searches that return all or most of the database are a bad idea

Any ideas ?

BoredOutOfMyMin 12-29-2009 03:19 AM

Excellent fix and going to mod footer to solve missing Forum Jump Navigation

coloradomoms 12-29-2009 04:11 PM

Awesome! thanks!!

captkirk 01-01-2010 07:47 PM

Thanks works great, I don't know why it was removed in the first place

JonUrban 01-02-2010 10:29 PM

Thanks. I did it and it works perfectly. Why did they take this out? vB works in mysterious ways I guess.

Thanks again!

SuperGLS 01-03-2010 01:35 AM

Very good. Added!

COL NIL SATIS 01-09-2010 05:30 PM

Thanks Allan..nice little code!!! much appreciated

Anne Lise 02-05-2010 06:17 AM

I cannot get this to work.

KProjects 02-15-2010 10:39 PM

Thanks!

I used it a little differently..

http://www.twilightrumors.com ;)

COL NIL SATIS 02-16-2010 09:30 PM

Great add on Allan Merci ..installed sir

I.am 02-18-2010 06:26 AM

In 4.0.2 this code is already implemented but i can't see the url in quick link menu...why?

skwestle 03-08-2010 04:01 AM

Thank you I have been looking for this

donnie_ogm 03-10-2010 08:20 PM

good!
A question ... do you know how to edit:

in order to obtain new posts from all the forum excluded someone?
for example I don't want to take into account new posts from forum 44 ... any ideas?

SuperGLS 03-15-2010 02:48 AM

Allan, any plans on putting this in plugin form to avoid having to make the change at every update?

voglermc 03-17-2010 12:39 AM

check your install, when I'm in my settings, quick links has the normal pull down, not all like on the forum home

docvader 04-30-2010 05:40 PM

What template do we use to change the wording in the "what's new" link? I want to search for more than 24 hours, as I had in my previous 3.7 version. I usually have links for 7, 14, 21, 30, 60, 90 days, as some of my visitors are kind of "infrequent".

Bounce 05-14-2010 07:01 PM

Quote:

Originally Posted by I.am (Post 1985333)
In 4.0.2 this code is already implemented but i can't see the url in quick link menu...why?

same for me, why is it not there? :eek:

Videx 07-07-2010 02:30 AM

Yes, this isn't making too much sense any longer in 404. Can we get some updated instructions?

Edit: Maybe this will make more sense. In the navbar template, find around line 68
PHP Code:

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

Add on the line before it
PHP Code:

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


Gero50 08-01-2010 03:49 AM

Instaled, thanks so much this will be so nice.

Dr Aj642 08-03-2010 09:02 AM

Quote:

Originally Posted by Magz (Post 1939844)
When i click on View threads with no reply, i get this

Please add more constraints to your search. Searches that return all or most of the database are a bad idea

Any ideas ?

Need to somehow code the line below to a restricted search, say show up the last 30 threads with no posts. I'm not a coding guy so i don't know what to change.

<li><a href="search.php?do=process&replyless=1&replylimit =0&exclude=30">Threads with no replies</a></li>

Front Range 4x4 08-04-2010 12:59 AM

Merci Allan, nice touch!

Dr Aj642 08-11-2010 10:41 PM

Quote:

Originally Posted by Dr Aj642 (Post 2078498)
Need to somehow code the line below to a restricted search, say show up the last 30 threads with no posts. I'm not a coding guy so i don't know what to change.

<li><a href="search.php?do=process&replyless=1&replylimit =0&exclude=30">Threads with no replies</a></li>

Anyone got any ideas?

Videx 08-11-2010 11:00 PM

There's already a way to show unanswered threads if that's what you're looking for.

Forum-wide Search For Unanswered Threads
Search For Unanswered Threads By Forum

sbsforum.us 08-18-2010 01:31 AM

Thanks, Installed!

Mr Peabody 09-12-2010 07:23 AM

No idea why they removed it.
Cheers for the fix!.

Videx 09-13-2010 02:42 AM

FYI, there's a vote up at http://tracker.vbulletin.com/browse/VBIV-8256

FReeSTER 11-29-2010 10:59 PM

Quote:

Originally Posted by Videx (Post 2065641)
Yes, this isn't making too much sense any longer in 404. Can we get some updated instructions?

Edit: Maybe this will make more sense. In the navbar template, find around line 68
PHP Code:

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

Add on the line before it
PHP Code:

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


Thank you works on vB 4.0.8 pl2:D

Fergal C 12-04-2010 02:20 PM

Thanks for that, installed.

Danasy 12-05-2010 01:11 AM

Installed! :D

Thanks


All times are GMT. The time now is 07:14 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.01654 seconds
  • Memory Usage 1,836KB
  • 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
  • (8)bbcode_php_printable
  • (8)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
  • (40)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