Google+

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rezolvat chat.php
#1
Buna.Va deranjez cu o intrebare daca poate sa ma ajute cineva.Ce trebuie sa inlocuiesc sau care este calea pentru a putea pune acest chat?Imi tot da $forumdir is invalid!
<?php
/**
* Website: http://vbirc.com
* EzIRC originally for vBulletin by Billy Ewing (toonySNN)
* EzIRC name used with permission.
* You are free to modify this file, but please do not remove this copyright notice.
* This chat.php script uses code from this thread; http://community.mybb.com/thread-72204.html
* Without the Open Source MyBB community, this mod would probably not be here.
*/

$forumdir = "/ "; // change this if you want the script to work outside your forums..

//end editing


define("IN_MYBB", 1);

if(substr($_SERVER['SCRIPT_NAME'],0,1) == "/")
{
define('THIS_SCRIPT', substr($_SERVER['SCRIPT_NAME'],1));
}
else
{
define('THIS_SCRIPT', $_SERVER['SCRIPT_NAME']);
}
$current_dir = getcwd();

//change working directory to allow board includes to work
$forumdirslash = $forumdir."/";
$change_dir = "./";

if(!@chdir($forumdir) && !empty($forumdir))
{
if(@is_dir($forumdir))
{
$change_dir = $forumdir;
}
else
{
die("\$forumdir is invalid!");
}
}

//include board files
require_once $change_dir."/global.php";
require_once MYBB_ROOT."inc/functions.php";
require_once MYBB_ROOT."inc/functions_post.php";
require_once MYBB_ROOT."inc/functions_user.php";
require_once MYBB_ROOT."inc/class_parser.php";
// output the page.
if($mybb->user['uid'])
{
eval("\$chat = \"".$templates->get("ezirc_chat")."\";");
output_page($chat);
}
else
{
$error = "Sorry, you need to be logged in to access EzIRC.";
eval("\$chat = \"".$templates->get("error")."\";");
output_page($chat);
}
//change directory back to current where script is
@chdir($current_dir);
#2
Salut, care este forumul tau in primul rand ? Iar in al 2-lea, ce plugin vrei sa folosesti ? Ai urmarit pasi pe care ti spune la Itegration ?
Keep walking !   http://www.mybb.ro
#3
(04-14-2011, 09:36 PM)Radu Wrote: Salut, care este forumul tau in primul rand ? Iar in al 2-lea, ce plugin vrei sa folosesti ? Ai urmarit pasi pe care ti spune la Itegration ?
http://vbirc.com/mybb da aici am luat chatul,l am incarcat cu FILEZILLA .
Sint sigur ca le am pus toate la locul lor in afara de buton care l am scos ca nu ajungeam nicaieri.dar se poate ajunge si asa http://diaspora.placut.com/chat.php

Edit chat.php with the correct forumpath .aici nu stiu cum sa editez
#4
O intrebare: Ai creat fisieru php cerut in codexul de instalare ? Acel $forumdir is invalid! Nu am habar de ce ti-l da, dar scoate pluginul si daca nu reusesti incearca sa introduci un alt shoutbox.
Keep walking !   http://www.mybb.ro
#5
(04-15-2011, 05:26 PM)Radu Wrote: O intrebare: Ai creat fisieru php cerut in codexul de instalare ? Acel $forumdir is invalid! Nu am habar de ce ti-l da, dar scoate pluginul si daca nu reusesti incearca sa introduci un alt shoutbox.
Mersi o sa incerc altceva



Forum Jump:


Users browsing this thread: 1 Guest(s)