Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 12-04-2004, 06:09 AM
GraphicW GraphicW is offline
 
Join Date: Oct 2001
Location: Charleston, WV
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I never could get it to work with echo. I am now trying to use fwrite and I am VERY close now. Only problem is that I get the following error:

Warning: fwrite(): supplied argument is not a valid stream resource in /home/cavyseek/public_html/forums/test.php on line 60

Warning: fclose(): supplied argument is not a valid stream resource in /home/cavyseek/public_html/forums/test.php on line 63

Here is the got that is in use:
PHP Code:
<?php
$fp 
fopen("default.xml","r+");

if(!
$fp) {
   print 
"error! The file could not be opened";
   exit;
}

require_once(
'./global.php');

$line1='<?xml version="1.0" encoding="ISO-8859-1"?>';
$line2='<parameters>';

$line3='<!-- Connection Related -->';
$line4='<param name="NickName" value="Cavy Compendium Chat User" />';
$line5='<param name="RealName" value="GojIRC User Cavy Compendium Chat" />';
$line6='<param name="ServerPort" value="6667" />';
$line7='<param name="UserName" value="$bbuserinfo[username]" />';
$line8='<param name="HostName" value="jpilot" />';
$line9='<param name="SocksAddress" value="" />';
$line10='<param name="LicenseKey" 

value="v3:cavycompendium.com:8245569950230102224294323703820230025522606270733084936176424795322000355489466596964134808

984183857372050536885065353580205103173037798985484442049424084">'
;
$line11='<!-- GUI Sates Control -->';
$line12='<param name="DirectStart" value="true" />';
$line13='<param name="DisplayConfigChannel" value="false" />';
$line14='<param name="DisplayConfigRealName" value="false" />';
$line15='<param name="DisplayConfigPort" value="false" />';
$line16='<param name="DisplayConfigMisc" value="false" />';
$line17='<param name="DisplayConfigSocks" value="false" />';
$line18='<param name="DisplayColorControl" value="true" />';
$line19='<param name="DisplayAbout" value="false" />';
$line20='<param name="RefreshColorCode" value="true" />';
$line21='<param name="AllowURL" value="true" />';
$line22='<param name="AllowShowURL" value="true" />';
$line23='<param name="AllowHyperLink" value="true" />';
$line24='<param name="isLimitedServers" value="true" />';
$line25='<param name="isLimitedChannels" value="true" />';
$line26='<param name="UseModeIcons" value="true" />';
$line27='<param name="UserPrefixCommand" value="aohv" />';
$line28='<param name="UserPrefixSymbol" value="!@%+" />';
$line29='<param name="ScreenBufferPageSize" value="3" />';
$line30-'<param name="LogoGifName" value="IRClogo.gif" />';
$line31='<param name="LogoWidth" value="77" />';
$line32='<param name="LogoHeight" value="145" />';
$line33='<param name="URLWindowName" value="popShow" />';
$line34='<param name="PWindowHeight" value="200" />';
$line35='<param name="PWindowWidth" value="400" />';
$line36='<!-- Miscelaneous -->';
$line37='<param name="WelcomeMessage" value="Welcome to the Cavy Compendium Chat!" />';
$line38='<param name="AliasList" value="/m=/msg,/t=/topic,/n=/nick" />';
$line39='<param name="AcceptCommands" value="true" />';
$line40='<!-- 2.8 -->';
$line41='<param name="UseImageButton" value="true" />';
$line42='<param name="UserMenuList" value="Send File=/dccsend $bbuserinfo[username],Private Message=/msg 

$bbuserinfo[username],Ignore=/ignore $bbuserinfo[username],Whois=/whois $bbuserinfo[username],See User 

Profile=/showprofile $bbuserinfo[username]" />'
;
$line43='<param name="AllowAddressDisplay" value="false" />';
$line44='<param name="AllowDCCTransfer" value="true" />';
$line45='<param name="CopyMethod" value="JVM" />';

$line46='</parameters>';

fwrite($fp$line1);


fclose($fp);

?>
I really did not want to dwelve this deep into PHP because I really don't have the time. I can't find anyone to hire this project out to in a timely fashion, so I don't have much choice in the matter.
Reply With Quote
 


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 05: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.13400 seconds
  • Memory Usage 2,797KB
  • Queries Executed 12 (?)
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
  • (6)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (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)showthread_list
  • (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_threadedmode.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_threaded
  • showthread_threaded_construct_link
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete