Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 03-31-2005, 11:00 AM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
<?php

chdir
('forums');
require_once(
'global.php');

// more codes

include_once('includes/functions_bbcodeparse.php');

?>
Reply With Quote
  #12  
Old 03-31-2005, 03:57 PM
EH-Jay's Avatar
EH-Jay EH-Jay is offline
 
Join Date: Oct 2004
Location: Canada
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I threw it in but it still not working =/

Eww now I'm getting this:

Code:
Warning: main(./includes/init.php): failed to open stream: No such file or directory in /home/elite/public_html/forums/global.php on line 18

Fatal error: main(): Failed opening required './includes/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/elite/public_html/forums/global.php on line 18
Here's an updated link:

www.elitehosting.ca/file.php
Reply With Quote
  #13  
Old 03-31-2005, 06:17 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then you didn't do like tnguy3n suggested.
Quote:
Originally Posted by EH-Jay
I threw it in but it still not working =/

Eww now I'm getting this:

Code:
Warning: main(./includes/init.php): failed to open stream: No such file or directory in /home/elite/public_html/forums/global.php on line 18
 
Fatal error: main(): Failed opening required './includes/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/elite/public_html/forums/global.php on line 18
Here's an updated link:

www.elitehosting.ca/file.php
Reply With Quote
  #14  
Old 03-31-2005, 06:26 PM
EH-Jay's Avatar
EH-Jay EH-Jay is offline
 
Join Date: Oct 2004
Location: Canada
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
	include("forums/includes/config.php");
	include_once("forums/includes/functions_bbcodeparse.php");
	require_once("forums/global.php");
What did I not do... I put what he told me in there and it did nothing.

Ok I modified it a little more and got to this:

Code:
Unable to add cookies, header already sent.
File: /home/elite/public_html/index2.php
Line: 8
And I didn't forget the "chdir('forums');"
Reply With Quote
  #15  
Old 03-31-2005, 06:55 PM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when you call global.php file, it already contains function to connect to database, and other info stored in datastore.
instead of writing your code as:
PHP Code:
<?php
    
include("forums/includes/config.php");
    include(
"forums/includes/functions_bbcodeparse.php");
    @
mysql_pconnect($servername$dbusername$dbpassword);
    
mysql_select_db("$dbname")or die(mysql_error())
you can use:
PHP Code:
<?php

chdir
('forums'); // or full path /home/account/public_html/forum
require_once('global.php');

// more codes

include_once('includes/functions_bbcodeparse.php');

?>
hope that clear it up.
Reply With Quote
  #16  
Old 03-31-2005, 07:05 PM
EH-Jay's Avatar
EH-Jay EH-Jay is offline
 
Join Date: Oct 2004
Location: Canada
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<?php

chdir('forums'); // or full path /home/account/public_html/forum 
require_once('global.php'); 

// more codes 

include_once('includes/functions_bbcodeparse.php');
Ok I removed what you told me to, and still same cookies error
Reply With Quote
  #17  
Old 03-31-2005, 07:11 PM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EH-Jay
Code:
<?php

chdir('forums'); // or full path /home/account/public_html/forum 
require_once('global.php'); 

// more codes 

include_once('includes/functions_bbcodeparse.php');
Ok I removed what you told me to, and still same cookies error
I don't know what you got in your file, maybe you call some un-defined functions.

try this test file. open it and replace vb3 with your forum dir.
Reply With Quote
  #18  
Old 03-31-2005, 07:14 PM
EH-Jay's Avatar
EH-Jay EH-Jay is offline
 
Join Date: Oct 2004
Location: Canada
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works... http://www.elitehosting.biz/test.php

What now?

http://www.elitehosting.biz/index2.php Ok the BB code is still not working. That was the whole point of me asking
Reply With Quote
  #19  
Old 03-31-2005, 08:01 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well last time you said you did what he suggested, but posted coding showing that you didn't. Do a chdir to your forum directory, then use require_once for ./global.php and ./includes/functions_bbcodeparse.php
Reply With Quote
  #20  
Old 03-31-2005, 10:03 PM
EH-Jay's Avatar
EH-Jay EH-Jay is offline
 
Join Date: Oct 2004
Location: Canada
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't mean to do that. But anyway I have all the coding in for what he told me to put, and still no bb code working as you can see in that link I sent you. Any help for it now that we got everything else fixed?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:15 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.04122 seconds
  • Memory Usage 2,268KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_code
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete