vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   show date prefix or sth in input file in the new_thread (https://vborg.vbsupport.ru/showthread.php?t=152881)

LiLSnooP 07-20-2007 09:31 PM

show date prefix or sth in input file in the new_thread
 
hi i would like to an able my users add date to they threads
so i write little hack...

if you also wat to join this hack please advanced this 3 step....

first of all i write little script php in hoock

Go to ...

Quote:

Plugins & Products > Plugin Manager > [Add New Plugin] > ....
....edit file...

Product: vBulletin
Hook Location: newthread_start
Title: threaddate
Execution Order: 5
Plugin PHP Code:
PHP Code:

ob_start();
echo 
date ("[j.m.y]");
$threaddate ob_get_contents();
ob_end_clean(); 

Plugin is active: YES

screen shout for fools :
http://img53.imageshack.us/img53/5814/screen1yk3.png


and afterwards

go to:

Styles & Templates > Search in Templates > (write $subject)

and then edit newthread template:


place this:

$threaddate

before it:

$subject

NOTE: remember about spaces "value="$threaddate $subject"

screen for you:

http://img217.imageshack.us/img217/3338/screen2ls6.png




That's all folk's
work perfectly
with 3.0.x and 3.6.8

screenshout:

http://img217.imageshack.us/img217/8499/screen3li8.png


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