PDA

View Full Version : Adding " Todays Post" to quick links


hackgirl
10-04-2004, 02:31 PM
It there a way to add a button to the quick links to veiw all of the days post?
Some times I only get to browes at short times and when I go back later I would like to sit down and read through all the days post.

I know I can add this "/search.php?searchid=442" and find them but a button would be nice.

Thanks

Colin F
10-04-2004, 02:42 PM
It there a way to add a button to the quick links to veiw all of the days post?
Some times I only get to browes at short times and when I go back later I would like to sit down and read through all the days post.

I know I can add this "/search.php?searchid=442" and find them but a button would be nice.

Thanks
Here on vBulletin.org it's in the quick links menu, you can add such a link with this address:

http://www.yourforum.com/search.php?$session[sessionurl]do=getdaily

hackgirl
10-04-2004, 03:20 PM
Thanks Colin.
Is there a detailed document on how to add this?
Which template to edit and what to add to it?

I am no coder so it would have to be spelled out for me.

Thanks

BTW,
I tried the link on my forum and it takes me to a search page.

Colin F
10-04-2004, 03:34 PM
Thanks Colin.
Is there a detailed document on how to add this?
Which template to edit and what to add to it?

I am no coder so it would have to be spelled out for me.

Thanks

BTW,
I tried the link on my forum and it takes me to a search page.
you'll have to have the link built in for it to work, as it has to parse $session[sessionurl]

To use it just like this, you'll need the ending /search.php?do=getdaily

I'll check if there's a tutorial on adding links to the quicklink bar...

Colin F
10-04-2004, 03:40 PM
you can probably follow these instructions more or less: http://www.vbulletintemplates.com/mods/showthread.php?t=6379

Just exchange the other text and link

hackgirl
10-04-2004, 03:43 PM
Thanks Colin
I will give it a try

hackgirl
10-04-2004, 04:37 PM
ok,
This is what I put in my navbar template.
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily ">$vbphrase[todays_posts_nav]</a></td></tr></if>

I put that right after:
<tr><td class="thead">$vbphrase[quick_links]</td></tr>

I also made a new Global:
title: todays_posts_nav
text: Todays Post

But I am not seeing it under the quick links.
Guess I am lost here now.

hackgirl
10-04-2004, 05:40 PM
Updateded

Figured it out. Forgot to add "s" to today in Global title.

Works great now.

Thanks

SpadMan
10-09-2004, 03:04 PM
Thanks hackgirl. I also wanted to add Today's Posts to the Quick Links menu. Rather than create a new GLOBAL phrase (todays_posts_nav) I used the existing GLOBAL phrase: todays_posts.

kwopper
09-11-2005, 07:53 PM
Is there a way to make this go back 3 days instead of just one?