![]() |
I want use date() in Plugin
hi
I Want Replases function date() With jdate() but i insert new plugin and i give error Code:
Fatal error: Cannot redeclare date() in D:\xampp\htdocs\vbulletin\global.php(29) : eval()'d code on line 6 hook = global_start Code:
function date($format, $timestamp = TIMENOW, $doyestoday = false, $locale = true, $adjust = true, $gmdate = false, $userinfo = '') |
In php you can't replace a function by providing another implementation. You'll have to find another way to do whatever you're trying to do.
|
Plz Help
|
Well, I think most if not all displayed dates in vb use the function vbdate() in includes/functions.php, so maybe you could edit that function and change it to use your date function.
|
I know this way.
I want to bring a total change in XML for a beginner users need not have to change the functions.php files! --------------- Added [DATE]1339135309[/DATE] at [TIME]1339135309[/TIME] --------------- Please help Give me a way to offer a product I do not need to change the original files --------------- Added [DATE]1339144872[/DATE] at [TIME]1339144872[/TIME] --------------- Please help Give me a way to offer a product I do not need to change the original files |
Please help
Give me a way to offer a product I do not need to change the original files |
Sorry, but I really don't think it's possible to replace all date calls in one place without editing the code. Another option would be to find every place that a date is displayed (or at least some important places that you are specifically interested in) and see if you can find hooks that allow you to modify them.
|
for this
https://vborg.vbsupport.ru/showthread.php?t=284179 Please submit ideas and comments and other way |
All times are GMT. The time now is 12:01 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|