Thread: Major Additions - [ITech] vBExternal Lite
View Single Post
  #38  
Old 06-01-2007, 07:37 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thinking about buying pro version, just hope there will be a discount for people who have rpg and shoutbox and for it to be a bargain ^^

however, im having problems using it right now.

this is the error that is coming up on my homepage which im trying to put the users online on.

Code:
Parse error: syntax error, unexpected '<' in /home/*******/public_html/right.php on line 176
on line 176 i have this
<?php
output_UsersOnline();
?>


I have included

<?php
chdir('./forums');
require_once('./vBExternal.php');
?>

at the top of the php file as well.

Any ideas what is wrong?



Edit again: i removed the users online, and checked to see if the code at the top was working, it was not,
I changed the code at the top of the page to:
Code:
<?php
require_once('http://www.gamerzneeds.net/forums/vBExternal.php');
?>
, now that works.

then put the code back in for online users to show up, and get this error

Code:
Fatal error: Call to undefined function: output_usersonline() in /home/******/public_html/right.php on line 174
line 174 is: output_UsersOnline();

Any ideas whats wrong?



Edit again:

decided to keep trying to modify it, to see if i could get it working, and came up with a different error this time

Code:
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/***********/public_html/right.php on line 2

Warning: main(./vBExternal.php) [function.main]: failed to open stream: No such file or directory in /home/*****/public_html/right.php on line 3

Fatal error: main() [function.require]: Failed opening required './vBExternal.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*******/public_html/right.php on line 3
I changed the code at the top of the page to:
Code:
<?php
chdir('http://www.gamerzneeds.net/forums');
require_once('./vBExternal.php');
?>
Edit again:
Changed the top to:
Code:
<?php
chdir('forums/');
require_once('vBExternal.php');
chdir('../');
?>
and im now getting this error:
Code:
There was an error while processing vBExternal:
System was unable to find the template 'vBExternal/users_online.html'
I edited vbexternal.php and changed where the template is found to:
$template = "http://www.gamerzneeds.net/forums/vBExternal/{$template}";

I then get this error:
Code:
There was an error while processing vBExternal:
System was unable to find the template 'http://www.gamerzneeds.net/forums/vBExternal/users_online.html'
I then go to http://www.gamerzneeds.net/forums/vB...rs_online.html to check it is a page, and it is, so whats wrong, it should be able to find it.

I have tried everything i can think of, will have to put back my old code, until you can help me solve this.

Thanks.




Final Edit:

I finally had the idea to do this and change the code to:

Code:
<?php
chdir('./forums');
output_UsersOnline();
chdir('../');
?>
and now everything works.

I just now need to work out how to display it, so it looks nicer, more integrated into my homepage, and more like a vbulletin way of displaying it, if anyone could help, id like to display it in my footer here www.gamerzneeds.net

I would also like to have the links vbseo links otherwise i will have duplicate content.

Thanks.
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01367 seconds
  • Memory Usage 1,783KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete