vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   [vB 3.0.3] Replace Today's/New Posts Links with Dropdown (https://vborg.vbsupport.ru/showthread.php?t=89695)

calorie 08-23-2004 10:00 PM

[vB 3.0.3] Replace Today's/New Posts Links with Dropdown
 
This small template mod is for the vB 3.0.3 navbar template. This mod replaces the Today's Posts/New Posts links with a Get Posts dropdown menu. It only works when vB dropdowns are allowed, otherwise the default vB link is displayed. The dropdown includes a link to New Posts as well as links to daily posts from the last week. Note that vB does 'getdaily' searches on 24-hour cycles so, for example, selecting '2 Days Ago' in the dropdown gets all posts in the last 48 hours. Directions to exlude forums from Get Posts search results are also included, and after adding some vB phrases, only the vB 3.0.3 navbar template needs to be edited for this mod to work.

Tony G 08-24-2004 04:52 AM

Nice but effective mod. Thank you for sharing. :)

Symbian.info 08-27-2004 06:01 PM

Was looking for something like that! thanks!

venomx 09-05-2004 11:50 PM

Question without doing the excludes will this show forums that the usergroup cant access?

imported_Mathiau 09-20-2004 06:07 AM

Code:

1) Go to the vB Phrase Manager and add the following phrases (see vB help for further directions):

$vbphrase[get_posts_nav] = "Get Posts";
$vbphrase[get_one_day] = "1 Day Ago";
$vbphrase[get_two_days] = "2 Days Ago";
$vbphrase[get_three_days] = "3 Days Ago";
$vbphrase[get_four_days] = "4 Days Ago";
$vbphrase[get_five_days] = "5 Days Ago";
$vbphrase[get_six_days] = "6 Days Ago";
$vbphrase[get_seven_days] = "7 Days Ago";


Since i am new @ vb3

what should the "Varname" be for each one? i tried Get Post and it said it is invalid - because of the space...

imported_bi11i 09-22-2004 07:06 PM

get_posts_nav

or

get_one_day

no brackets, no spaces....

memobug 09-27-2004 12:48 AM

Quote:

Originally Posted by bi11i
get_posts_nav

or

get_one_day

no brackets, no spaces....

Do you mean run down the list;
get_posts_nav
get_one_day
get_two_days

or do you really mean "or" i.e., use a single variable?

imported_bi11i 10-06-2004 04:14 PM

yeah, run down the list. don't use brackets. just enter the variable name using _'s instead of spaces.....

trevelyn1015 01-03-2005 07:54 PM

i followed the same route creating mine...

had to edit the search.php

here is what i built mine to look like:

wrang 03-25-2005 03:59 AM

Strange. When i should put in the code in the vB Phrase Manager
i get this error
The varname you specified for this phrase is invalid. You may only include a-z, A-Z, 0-9, and _ (underscore).

It tried to lay in this $vbphrase[get_posts_nav]

Renada 04-09-2005 07:12 PM

Quote:

Originally Posted by waxed
This small template mod is for the vB 3.0.3 navbar template. This mod replaces the Today's Posts/New Posts links with a Get Posts dropdown menu. It only works when vB dropdowns are allowed, otherwise the default vB link is displayed. The dropdown includes a link to New Posts as well as links to daily posts from the last week. Note that vB does 'getdaily' searches on 24-hour cycles so, for example, selecting '2 Days Ago' in the dropdown gets all posts in the last 48 hours. Directions to exlude forums from Get Posts search results are also included, and after adding some vB phrases, only the vB 3.0.3 navbar template needs to be edited for this mod to work.

The links for this mod appear to be broken?

Renada

mgurain 04-14-2005 09:56 PM

Quote:

Originally Posted by venomx
Question without doing the excludes will this show forums that the usergroup cant access?

I've the same question :

Will it show the private forums ??

thanks in advance,,

Elfo King 06-07-2005 08:29 PM

Quote:

Originally Posted by Trevelyn1015
i followed the same route creating mine...

had to edit the search.php

here is what i built mine to look like:

which it is the method (string) for display hour e minutes ?

Elfo King 06-15-2005 09:56 PM

Any help ?

VBUsers 06-22-2005 06:49 AM

i added this link but on 2 of my templates when i click it it takes me to the search page and then i can click the get post link again and it gives me the drop down. how can i fix this?

enginethatcan't 07-10-2005 02:14 AM

Quote:

Originally Posted by wrang
Strange. When i should put in the code in the vB Phrase Manager
i get this error
The varname you specified for this phrase is invalid. You may only include a-z, A-Z, 0-9, and _ (underscore).

It tried to lay in this $vbphrase[get_posts_nav]

You need to just enter this:

get_posts_nav



NO BRACKETS

After the "=" you enter that part into the bigger box

m0nde 08-04-2005 12:31 AM

This is exactly what my users were asking for! :up:

- Sid

amykhar 08-04-2005 12:47 AM

Here's something you may want to combine with this template mod:
https://vborg.vbsupport.ru/showthrea...threadid=73077

It allows you to check minutes and hours instead of just days.

Amy

m0nde 08-04-2005 01:18 AM

Quote:

Originally Posted by amykhar
Here's something you may want to combine with this template mod:
https://vborg.vbsupport.ru/showthrea...threadid=73077

It allows you to check minutes and hours instead of just days.

Amy

That's too good for my users, Amy!

;)

BTW, I miss your old avatar!

- Sid

amykhar 08-04-2005 01:25 AM

I don't even remember what my old avater was :D

italks 09-19-2005 07:06 PM

Cool hacks got it straight here : http://www.italks.net

Thanks a lot clicked install.

DevServe 11-17-2005 07:51 AM

I'd like to apply this mod to my forum which is running 3.5.1. Any issues? tips? alternatives?

Thanks,

Carlos


All times are GMT. The time now is 12:12 AM.

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.01165 seconds
  • Memory Usage 1,758KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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