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)
-   -   vBindex v2.1 (https://vborg.vbsupport.ru/showthread.php?t=41916)

Rodney 01-09-2003 06:32 PM

Hi I`m getting this error

PHP Code:

Warningdate() [function.date]: Unexpected error in D:\cancan\forum\admin\functions.php on line 1599 

I tried with vb 2.2.9 and now with 2.2.7 still the same error..

I?m running vbindex on my test board and i made a clean install ( no other hacks ) of vb when I got this error :(

I got the vbindex.php in the same dir as index.php so I skipped step 4 and 11

( i looked to page 30 before I posted this question )

todd.o.callen 01-09-2003 06:37 PM

I would like to use the usercp_forums template on the vBindex.php layout. I tried just adding it to the declarations:

Quote:

...

$templatesused.=',home_shoutbox,home_postshout, home_xxxlinks';
$templatesused=',usercp_forums, usercp_forumbit';

...

Then added the evaluate lines:

Quote:

eval("\$xxxlinks = \"".gettemplate('home_xxxlinks')."\";");
eval("\$myforums = \"".gettemplate('usercp_forums')."\";");

eval("\$left = \"".gettemplate('home_left')."\";");
eval("\$right = \"".gettemplate('home_right')."\";");
Then added it to the home template:

Quote:


<center><strong><font face="Arial" color="990000">My Forum Subscriptions</font></strong></center>
$myforums
<br><br>


But this wasn't enough. I get the usercp_forums layout, but no usercp_forumbit (s).

I assume that I have some pathing issues with the "external-to-vBindex" template, but that may not be all.

Hints? :cheeky:

NTLDR 01-09-2003 07:41 PM

You'll need to copy the code from usercp.php that creates the content that usercp_forumbit displays, plus you would need to eval usercp_forumbit too.

todd.o.callen 01-09-2003 07:44 PM

Quote:

Originally posted by NTLDR
You'll need to copy the code from usercp.php that creates the content that usercp_forumbit displays, plus you would need to eval usercp_forumbit too.
OK, I knew the 2nd evaluate was coming, but where does the usercp_forumbit code go? :confused:


My new evals are:
Quote:

eval("\$myforumbit = \"".gettemplate('usercp_forumbit')."\";");
eval("\$myforums = \"".gettemplate('usercp_forums')."\";");

NTLDR 01-09-2003 07:50 PM

Put it near the top, again around //posts info, thats the safe place to put added code ;)

todd.o.callen 01-09-2003 07:59 PM

Your are a beautiful man with trashy avatar.

Thanks once again! :rambo:

Rodney 01-09-2003 08:02 PM

NTLDR , any ideas about : Warning:_date()_[function.date]:_Unexpected_error_in_D:cancanforumadminfunctions. php_on_line_1599 ?

http://217.215.68.215/cancan/forum/vbindex.php

NTLDR 01-09-2003 08:06 PM

Whats on and arround your line 1599 in admin/functions.php ?

Rodney 01-09-2003 08:10 PM

PHP Code:

###################### Start show_nopermission #######################
function vbdate($format,$timestamp) {
  global 
$bbuserinfo,$timeoffset;

  return 
date($format,$timestamp+($bbuserinfo['timezoneoffset']-$timeoffset)*3600);

}

// ##################### Save birthdays into template ################### 

1595 to 1603

vbindex is installed on a clean board ... no other hacks and shoutbox is turned off in acp

NTLDR 01-09-2003 08:19 PM

I don't see why thats not working, it works fine with that code for me. Try replacing (in vbindex.php) vbdate( with either date( or gmdate( and see if that removes the error.


All times are GMT. The time now is 02:10 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.02094 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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