vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Display Enhancements - New Post (https://vborg.vbsupport.ru/showthread.php?t=185129)

blind-eddie 07-11-2008 10:00 PM

New Post
 
I ask this question a while back.



Always back-up any template before you edit them!!!

This a a simple Navbar Template edit.
To change the search perimeters from 24 hours to 10, 20 30, days,
When hitting New Post,

Open your Navbar Template

Search for:

Code:

<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[new_posts_nav]</a></td>
Change this to:

Code:

<td class="vbmenu_control"><a href="search.php?do=getdaily&amp;days=10" accesskey="2">$vbphrase[new_posts_nav]</a></td>
Click Save.

Doing this will show all post from the last 10 days. The number of days,
can be what ever you want it to be.

-------------------------------------------------------------------------------
Optional Quick Links Edit

(This is in the Navbar template)
Search for:

Code:

<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
Add Below that:

Code:

<tr><td class="thead">View Post From</td></tr>
<td class="vbmenu_control"><a href="search.php?do=getdaily&amp;days=20" accesskey="2">$vbphrase[new_posts_20]</a></td>

For each amount of days you wish to display, you will need make a new vbphrase.
To apply this One Optional edit, Go to,

Languages & Phrases/Phrase Manager/Add New Phrase

Varname: $vbphrase[new_posts_20]

Text: Last 20 days

Click Save

This step can be repeated, just change the Number of days on each one.
Once this optional edit has been completed, click save.
7/12/08, Add Text Doc of Instructions.
7/12/08, Added vbadvanced welcome block Template Edits.

ahmedeldeep 07-13-2008 01:19 AM

thank you

GaiLoan 08-24-2008 01:54 AM

how can you search by minutes ? like last 5 hours or last half hour, thanks for the mods

space? 08-25-2008 09:57 AM

Quote:

Originally Posted by GaiLoan (Post 1605484)
how can you search by minutes ? like last 5 hours or last half hour, thanks for the mods

I don't think it is possible with small effort, you'll have to add a query because there is no function "gethourly" in vBulletin.


All times are GMT. The time now is 01:57 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.01035 seconds
  • Memory Usage 1,720KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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