vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Yesterday/Today Datestamp Hack (https://vborg.vbsupport.ru/showthread.php?t=34527)

bigmattyh 03-21-2002 03:37 PM

I'm not sure why you'd be getting a parse error, unless you made some sort of mistake when editing the code. The lines should read exactly like this:

PHP Code:

if ($date==$todaydate) {
  
$date="heute";


PS -- I'll be out of town for a couple of days, so anyone needs support, hold tight until Saturday!

Kohhal 03-22-2002 10:31 AM

Quote:

Originally posted by LamBras
I want to use this hack on a German board, and everytime I try to replace $date="Today"; with $date="heute"; I get a parse error.
I had a similiar problem. I wanted to replace "Today" with "Today at" and couldn't get it to work either :disappointed:
I'd be interested to know what's going wrong?

LamBras 03-22-2002 11:10 AM

There might be a fixed length needed?

When replacing "today" with "heute", all is well.
When replacing "yesterday" with it's German correspondant "gestern", there occurs an error. When I chose " gestern" (mark the two leading blanks), all is well again.

Strange, maybe someone can enlighten us?

bigmattyh 03-23-2002 05:43 AM

TheMasterG, LamBras:

I can't seem to replicate this problem on my own board.

What version of PHP are you running?

LamBras 03-23-2002 08:06 AM

4.0.6

bigmattyh 03-23-2002 02:34 PM

Well, honestly, I'm stumped. There should be no reason that you can't change what's in the quotes for $date="".

Stumped, I tells you. Stumped.

LamBras 03-23-2002 04:04 PM

I can change it, but it must have the same length as "today" and "yesterday". Well, the workaround is using blanks. :)

r.cakir 03-24-2002 03:38 PM

I use this hack also on a german Board. Without any problems. :surprised:

Hubsi 03-30-2002 07:00 AM

thx for this hack, great work ;)

Hubsi

pHAZE_1 04-19-2002 03:23 AM

it doesnt work.. i did everything correct twice and nothing shows up. ????


All times are GMT. The time now is 03:32 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.01258 seconds
  • Memory Usage 1,734KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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