Let us know!
install xenforo

Are you getting any errors ? which step did you reach in the installation ?

Are you getting any errors ? which step did you reach in the installation ?
Necessity is the mother of all inventions!

hey i am having the same issue i start the install and do the DB stuff and thats fine. but then it gets to the part of me pasting the code. and i paste it in to my template PAGE_CONTAINER

and then test it on the install and it does not show up on my forum.

i have pasted it in a diffrent location. and i get a small text come up saying cant find the hardcode.php file.
but its the same code that the installation made up for me

This is all on Xenforo also.

thanks if you can help or if you can install it for me that would be great

hey i am having the same issue i start the install and do the DB stuff and thats fine. but then it gets to the part of me pasting the code. and i paste it in to my template PAGE_CONTAINER and then test it on the install and it does not show up on my forum. i have pasted it in a diffrent location. and i get a small text come up saying cant find the hardcode.php file. but its the same code that the installation made up for me This is all on Xenforo also. thanks if you can help or if you can install it for me that would be great

sure here is my code from the PAGE_CONTAINER

<!DOCTYPE html><xen:set var="$isResponsive" value="{xen:if '@enableResponsive AND !{$noResponsive}', 1, 0}" />

<html id="XenForo" lang="{$visitorLanguage.language_code}" dir="{$visitorLanguage.text_direction}" class="Public NoJs XenBase {xen:if {$visitor.user_id}, 'LoggedIn', 'LoggedOut'} {xen:if {$sidebar}, 'Sidebar', 'NoSidebar'} {xen:if @xb_boxed_layout, 'xbBoxedStyle'} {xen:if @xb_widen, 'xbWideStyle'} {xen:if @xb_leftSidebar, 'LeftSidebar', 'RightSidebar'} {xen:if $hasAutoDeferred, RunDeferred} {xen:if $isResponsive, Responsive, NoResponsive}" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<!--===========================FreiChat=======START=========================-->
<!-- For uninstalling ME , first remove/comment all FreiChat related code i.e below code
Then remove FreiChat tables frei_session & frei_chat if necessary
The best/recommended way is using the module for installation -->

<?php
$ses=null;

if(!function_exists("freichatx_get_hash"smile){
function freichatx_get_hash($ses){

if(is_file("/home/u298018824/public_html/freichat/hardcode.php"smile){

require "/home/u298018824/public_html/freichat/hardcode.php";

$temp_id = $ses . $uid;

return md5($temp_id);

}
else
{
echo "<script>alert('module freichatx says: hardcode.php file not
found!'smile;</script>";
}

return 0;
}
}
?>
<script type="text/javascript" language="javascipt" src="http://orclmedia.esy.es/freichat/client/main.php?id=<?php echo $ses;?>&xhash=<?php echo freichatx_get_hash($ses); ?>"></script>
<link rel="stylesheet" href="http://orclmedia.esy.es/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">
<!--===========================FreiChatX=======END=========================-->
<xen:hook name="page_container_head">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<xen:if is="{$isResponsive}">
<meta name="viewport" content="width=device-width, initial-scale=1" />
</xen:if>
<xen:if is="{$requestPaths.fullBasePath}">
<base href="{$requestPaths.fullBasePath}" />
<script><xen:comment>/ Chrome bug and for Google cache /</xen:comment>
var _b = document.getElementsByTagName('base'smile[0], _bH = "{xen:jsescape $requestPaths.fullBasePath}";
if (_b && _b.href != _bH) _b.href = _bH;
</script>
</xen:if>

<title><xen:if is="{$title}">{xen:raw $title} | {$xenOptions.boardTitle}<xen:else />{$xenOptions.boardTitle}</xen:if></title>


<noscript><style>.JsOnly, .jsOnly { display: none !important; }</style></noscript>
<link rel="stylesheet" href="css.php?css=xenforo,form,public&style={xen:urlencode $_styleId}&dir={$visitorLanguage.text_direction}&d={$visitorStyle.last_modified_date}" />
<!--XenForo_Require:CSS-->

<xen:require css="xb.css" />
<xen:if is="@xb_web_font">
@xb_web_font_link
</xen:if>
<xen:if is="@xb_fontAwesome">
<link rel="stylesheet" href="{$requestPaths.fullBasePath}@xb_fontAwesomeLink">
</xen:if>
<xen:if is="@xb_fontAwesome_useCDN">
@xb_fontAwesome_CDN
</xen:if>

{xen:helper ignoredCss, {$visitor.ignoredUsers}}

<xen:include template="google_analytics" />
<xen:include template="page_container_js_head" />
<xen:include template="xb_head" />

<link rel="apple-touch-icon" href="{xen:helper fullurl, @ogLogoPath, 1}" />
<link rel="alternate" type="application/rss+xml" title="{xen:phrase rss_feed_for_x, 'title={$xenOptions.boardTitle}'}" href="{xen:link forums/-/index.rss}" />
<xen:if is="{$pageDescription.content} AND !{$pageDescription.skipmeta} AND !{$head.description}"><meta name="description" content="{xen:string wordTrim, {xen:helper stripHtml, {xen:raw $pageDescription.content}}, 200}" /></xen:if>
<xen:if is="{$head}"><xen:foreach loop="$head" value="$headElement">{xen:raw $headElement}</xen:foreach></xen:if>
</xen:hook>
</head>

<body{xen:if {$bodyClasses}, ' class="{$bodyClasses}"'}>
<xen:hook name="body">
<xen:if is="@xb_offcanvas_menu">
<div class="xbOffCanvasContent xbOffCanvasMask"></div>
<xen:include template="xb_offcanvas_menu" />
<div class="xbOffCanvasContainer">
</xen:if>

<xen:if is="@xb_user_bar AND !@xb_user_panel_header">
<xen:if is="{$visitor.user_id}">
<xen:include template="moderator_bar" />
<xen:elseif is="!{$visitor.user_id} && !{$hideLoginBar}" />
<xen:include template="login_bar" />
</xen:if>
<xen:else />
<xen:if is="{$visitor.is_moderator} || {$visitor.is_admin}">
<xen:include template="moderator_bar" />
<xen:elseif is="!{$visitor.user_id} && !{$hideLoginBar}" />
<xen:include template="login_bar" />
</xen:if>
</xen:if>

<xen:if is="@xb_top_bar_enable"><xen:include template="xb_top_bar" /></xen:if>

<xen:if is="@xb_boxed_layout"><div class="xbBoxed"></xen:if>
<div id="headerMover">

<xen:if is="@xb_remove_headerproxy">
<header>
<xen:include template="header" />
<xen:edithint template="navigation" />
<xen:edithint template="search_bar" />
</header>
</xen:if>

<xen:if is="@xb_body_helper"><div class="xbBodyhelper"></div></xen:if>
<xen:if is="!@xb_remove_headerproxy"><div id="headerProxy"></div></xen:if>

<div id="content" class="{$contentTemplate}">
<div class="<xen:if is="@xb_widen">pageContent<xen:else />pageWidth</xen:if>">
<div class="<xen:if is="@xb_widen">pageWidth<xen:else />pageContent</xen:if>">
<xen:if is="@xb_content_helper"><div class="xbContenthelper"></div></xen:if>

<xen:include template="ad_top_content" />

<!-- main content area -->

<xen:if is="@xb_bcmoveout">
<div class="breadBoxTop {xen:if $topctrl, withTopCtrl}">
<xen:if is="{$topctrl} AND !@xb_calltoaction"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
<xen:include template="breadcrumb"><xen:set var="$microdata">1</xen:set></xen:include>
</div>
</xen:if>

<xen:hook name="page_container_content_top" />
<xen:if is="{$sidebar}">
<xen:if is="@xb_stickySidebar"><div class="xbContentWrapper"></xen:if>
<div class="mainContainer">
<div class="mainContent"></xen:if>

<xen:include template="ad_above_top_breadcrumb" />

<xen:hook name="page_container_breadcrumb_top">
<xen:if is="@xb_noBreadcrumb && {$contentTemplate} == 'forum_list'">
<xen:else />
<xen:if is="!@xb_bcmoveout">
<div class="breadBoxTop {xen:if $topctrl, withTopCtrl}">
<xen:if is="{$topctrl} AND !@xb_calltoaction"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
<xen:include template="breadcrumb"><xen:set var="$microdata">1</xen:set></xen:include>
</div>
</xen:if>
</xen:if>
</xen:hook>

<xen:include template="ad_below_top_breadcrumb" />

<!--[if lt IE 8]>
<p class="importantMessage">{xen:phrase you_are_using_out_of_date_browser_upgrade}</p>
<![endif]-->

<xen:hook name="page_container_notices">
<xen:include template="notices" />
</xen:hook>

<xen:hook name="page_container_content_title_bar">
<xen:if is="@xb_noH1 && {$contentTemplate} == 'forum_list'">
<xen:else />
<xen:if is="!{$noH1}">
<!-- h1 title, description -->
<div class="titleBar">
{xen:raw $beforeH1}
<h1><xen:if
is="{$h1}">{xen:raw $h1}<xen:elseif
is="{$title}" />{xen:raw $title}<xen:else
/>{$xenOptions.boardTitle}</xen:if>
<xen:if is="{$topctrl} AND @xb_calltoaction"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
</h1>

<xen:if is="{$pageDescription.content}"><p id="pageDescription" class="muted {$pageDescription.class}">{xen:raw $pageDescription.content}</p></xen:if>
</div>
<xen:else />
<xen:if is="{$topctrl} AND @xb_calltoaction"><div class="topCtrl xbTopCtrl">{xen:raw $topctrl}</div></xen:if>
</xen:if>
</xen:if>
</xen:hook>

<xen:include template="ad_above_content" />

<!-- main template -->
{xen:raw $contents}

<xen:include template="ad_below_content" />

<xen:if is="!{$visitor.user_id} && !{$hideLoginBar}">
<!-- login form, to be moved to the upper drop-down -->
<xen:include template="login_bar_form" />
</xen:if>

<xen:if is="@xb_bcbottomshift">
<xen:hook name="page_container_breadcrumb_bottom">
<xen:if is="@xb_noBreadcrumb && {$contentTemplate} == 'forum_list'">
<xen:else />
<div class="breadBoxBottom"><xen:include template="breadcrumb" /></div>
</xen:if>
</xen:hook>
</xen:if>

<xen:if is="{$sidebar}"></div>

</div>

<!-- sidebar -->
<aside>
<div class="sidebar">
<xen:hook name="page_container_sidebar">
<xen:include template="ad_sidebar_top" />
<xen:if is="!{$noVisitorPanel}"><xen:include template="sidebar_visitor_panel" /></xen:if>
{xen:raw $sidebar}
<xen:include template="ad_sidebar_bottom" />
</xen:hook>
</div>
</aside>

<xen:if is="@xb_stickySidebar"></div></xen:if>

</xen:if>

<xen:if is="!@xb_bcbottomshift">
<xen:hook name="page_container_breadcrumb_bottom">
<xen:if is="@xb_noBreadcrumb && {$contentTemplate} == 'forum_list'">
<xen:else />
<div class="breadBoxBottom"><xen:include template="breadcrumb" /></div>
</xen:if>
</xen:hook>
</xen:if>

<xen:if is="@xb_scroll_buttons OR @xb_scroll_down_on">
<xen:include template="xb_scroll_buttons" />
</xen:if>

<xen:include template="ad_below_bottom_breadcrumb" />
</div>
</div>
<xen:if is="@xb_welcome_bar AND !{$visitor.user_id}">
<xen:include template="xb_welcome_bar" />
</xen:if>
</div>

<xen:if is="!@xb_remove_headerproxy">
<header>
<xen:include template="header" />
<xen:edithint template="navigation" />
<xen:edithint template="search_bar" />
</header>
</xen:if>

</div>

<footer>
<xen:include template="footer" />
</footer>

<xen:if is="@xb_boxed_layout"></div></xen:if>

<xen:if is="@xb_offcanvas_menu">
</div>
</xen:if>

<xen:include template="page_container_js_body" />

<!--XenBase Current Version : @xb_parent_version -->
<!--Style Version : @xb_style_version -->

<xen:if is="{$isIndexPage} AND {$canSearch}">
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "{xen:jsescape {xen:link canonical:index}}",
"potentialAction": {
"@type": "SearchAction",
"target": "{xen:jsescape {xen:link canonical:search/search}}{xen:if $xenOptions.useFriendlyUrls, '?', '&'}keywords={search_keywords}",
"query-input": "required name=search_keywords"
}
}
</script>
</xen:if>

</xen:hook>

</body>
</html>

sure here is my code from the PAGE_CONTAINER &lt;!DOCTYPE html&gt;&lt;xen:set var=&quot;$isResponsive&quot; value=&quot;{xen:if &#039;@enableResponsive AND !{$noResponsive}&#039;, 1, 0}&quot; /&gt; &lt;html id=&quot;XenForo&quot; lang=&quot;{$visitorLanguage.language_code}&quot; dir=&quot;{$visitorLanguage.text_direction}&quot; class=&quot;Public NoJs XenBase {xen:if {$visitor.user_id}, &#039;LoggedIn&#039;, &#039;LoggedOut&#039;} {xen:if {$sidebar}, &#039;Sidebar&#039;, &#039;NoSidebar&#039;} {xen:if @xb_boxed_layout, &#039;xbBoxedStyle&#039;} {xen:if @xb_widen, &#039;xbWideStyle&#039;} {xen:if @xb_leftSidebar, &#039;LeftSidebar&#039;, &#039;RightSidebar&#039;} {xen:if $hasAutoDeferred, RunDeferred} {xen:if $isResponsive, Responsive, NoResponsive}&quot; xmlns:fb=&quot;http://www.facebook.com/2008/fbml&quot;&gt; &lt;head&gt; &lt;!--===========================FreiChat=======START=========================--&gt; &lt;!-- For uninstalling ME , first remove/comment all FreiChat related code i.e below code Then remove FreiChat tables frei_session &amp; frei_chat if necessary The best/recommended way is using the module for installation --&gt; &lt;?php $ses=null; if(!function_exists(&quot;freichatx_get_hash&quot;)){ function freichatx_get_hash($ses){ if(is_file(&quot;/home/u298018824/public_html/freichat/hardcode.php&quot;)){ require &quot;/home/u298018824/public_html/freichat/hardcode.php&quot;; $temp_id = $ses . $uid; return md5($temp_id); } else { echo &quot;&lt;script&gt;alert(&#039;module freichatx says: hardcode.php file not found!&#039;);&lt;/script&gt;&quot;; } return 0; } } ?&gt; &lt;script type=&quot;text/javascript&quot; language=&quot;javascipt&quot; src=&quot;http://orclmedia.esy.es/freichat/client/main.php?id=&lt;?php echo $ses;?&gt;&amp;xhash=&lt;?php echo freichatx_get_hash($ses); ?&gt;&quot;&gt;&lt;/script&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;http://orclmedia.esy.es/freichat/client/jquery/freichat_themes/freichatcss.php&quot; type=&quot;text/css&quot;&gt; &lt;!--===========================FreiChatX=======END=========================--&gt; &lt;xen:hook name=&quot;page_container_head&quot;&gt; &lt;meta charset=&quot;utf-8&quot; /&gt; &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=Edge,chrome=1&quot; /&gt; &lt;xen:if is=&quot;{$isResponsive}&quot;&gt; &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot; /&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;{$requestPaths.fullBasePath}&quot;&gt; &lt;base href=&quot;{$requestPaths.fullBasePath}&quot; /&gt; &lt;script&gt;&lt;xen:comment&gt;/* Chrome bug and for Google cache */&lt;/xen:comment&gt; var _b = document.getElementsByTagName(&#039;base&#039;)[0], _bH = &quot;{xen:jsescape $requestPaths.fullBasePath}&quot;; if (_b &amp;&amp; _b.href != _bH) _b.href = _bH; &lt;/script&gt; &lt;/xen:if&gt; &lt;title&gt;&lt;xen:if is=&quot;{$title}&quot;&gt;{xen:raw $title} | {$xenOptions.boardTitle}&lt;xen:else /&gt;{$xenOptions.boardTitle}&lt;/xen:if&gt;&lt;/title&gt; &lt;noscript&gt;&lt;style&gt;.JsOnly, .jsOnly { display: none !important; }&lt;/style&gt;&lt;/noscript&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;css.php?css=xenforo,form,public&amp;amp;style={xen:urlencode $_styleId}&amp;amp;dir={$visitorLanguage.text_direction}&amp;amp;d={$visitorStyle.last_modified_date}&quot; /&gt; &lt;!--XenForo_Require:CSS--&gt; &lt;xen:require css=&quot;xb.css&quot; /&gt; &lt;xen:if is=&quot;@xb_web_font&quot;&gt; @xb_web_font_link &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_fontAwesome&quot;&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;{$requestPaths.fullBasePath}@xb_fontAwesomeLink&quot;&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_fontAwesome_useCDN&quot;&gt; @xb_fontAwesome_CDN &lt;/xen:if&gt; {xen:helper ignoredCss, {$visitor.ignoredUsers}} &lt;xen:include template=&quot;google_analytics&quot; /&gt; &lt;xen:include template=&quot;page_container_js_head&quot; /&gt; &lt;xen:include template=&quot;xb_head&quot; /&gt; &lt;link rel=&quot;apple-touch-icon&quot; href=&quot;{xen:helper fullurl, @ogLogoPath, 1}&quot; /&gt; &lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;{xen:phrase rss_feed_for_x, &#039;title={$xenOptions.boardTitle}&#039;}&quot; href=&quot;{xen:link forums/-/index.rss}&quot; /&gt; &lt;xen:if is=&quot;{$pageDescription.content} AND !{$pageDescription.skipmeta} AND !{$head.description}&quot;&gt;&lt;meta name=&quot;description&quot; content=&quot;{xen:string wordTrim, {xen:helper stripHtml, {xen:raw $pageDescription.content}}, 200}&quot; /&gt;&lt;/xen:if&gt; &lt;xen:if is=&quot;{$head}&quot;&gt;&lt;xen:foreach loop=&quot;$head&quot; value=&quot;$headElement&quot;&gt;{xen:raw $headElement}&lt;/xen:foreach&gt;&lt;/xen:if&gt; &lt;/xen:hook&gt; &lt;/head&gt; &lt;body{xen:if {$bodyClasses}, &#039; class=&quot;{$bodyClasses}&quot;&#039;}&gt; &lt;xen:hook name=&quot;body&quot;&gt; &lt;xen:if is=&quot;@xb_offcanvas_menu&quot;&gt; &lt;div class=&quot;xbOffCanvasContent xbOffCanvasMask&quot;&gt;&lt;/div&gt; &lt;xen:include template=&quot;xb_offcanvas_menu&quot; /&gt; &lt;div class=&quot;xbOffCanvasContainer&quot;&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_user_bar AND !@xb_user_panel_header&quot;&gt; &lt;xen:if is=&quot;{$visitor.user_id}&quot;&gt; &lt;xen:include template=&quot;moderator_bar&quot; /&gt; &lt;xen:elseif is=&quot;!{$visitor.user_id} &amp;&amp; !{$hideLoginBar}&quot; /&gt; &lt;xen:include template=&quot;login_bar&quot; /&gt; &lt;/xen:if&gt; &lt;xen:else /&gt; &lt;xen:if is=&quot;{$visitor.is_moderator} || {$visitor.is_admin}&quot;&gt; &lt;xen:include template=&quot;moderator_bar&quot; /&gt; &lt;xen:elseif is=&quot;!{$visitor.user_id} &amp;&amp; !{$hideLoginBar}&quot; /&gt; &lt;xen:include template=&quot;login_bar&quot; /&gt; &lt;/xen:if&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_top_bar_enable&quot;&gt;&lt;xen:include template=&quot;xb_top_bar&quot; /&gt;&lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_boxed_layout&quot;&gt;&lt;div class=&quot;xbBoxed&quot;&gt;&lt;/xen:if&gt; &lt;div id=&quot;headerMover&quot;&gt; &lt;xen:if is=&quot;@xb_remove_headerproxy&quot;&gt; &lt;header&gt; &lt;xen:include template=&quot;header&quot; /&gt; &lt;xen:edithint template=&quot;navigation&quot; /&gt; &lt;xen:edithint template=&quot;search_bar&quot; /&gt; &lt;/header&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_body_helper&quot;&gt;&lt;div class=&quot;xbBodyhelper&quot;&gt;&lt;/div&gt;&lt;/xen:if&gt; &lt;xen:if is=&quot;!@xb_remove_headerproxy&quot;&gt;&lt;div id=&quot;headerProxy&quot;&gt;&lt;/div&gt;&lt;/xen:if&gt; &lt;div id=&quot;content&quot; class=&quot;{$contentTemplate}&quot;&gt; &lt;div class=&quot;&lt;xen:if is=&quot;@xb_widen&quot;&gt;pageContent&lt;xen:else /&gt;pageWidth&lt;/xen:if&gt;&quot;&gt; &lt;div class=&quot;&lt;xen:if is=&quot;@xb_widen&quot;&gt;pageWidth&lt;xen:else /&gt;pageContent&lt;/xen:if&gt;&quot;&gt; &lt;xen:if is=&quot;@xb_content_helper&quot;&gt;&lt;div class=&quot;xbContenthelper&quot;&gt;&lt;/div&gt;&lt;/xen:if&gt; &lt;xen:include template=&quot;ad_top_content&quot; /&gt; &lt;!-- main content area --&gt; &lt;xen:if is=&quot;@xb_bcmoveout&quot;&gt; &lt;div class=&quot;breadBoxTop {xen:if $topctrl, withTopCtrl}&quot;&gt; &lt;xen:if is=&quot;{$topctrl} AND !@xb_calltoaction&quot;&gt;&lt;div class=&quot;topCtrl&quot;&gt;{xen:raw $topctrl}&lt;/div&gt;&lt;/xen:if&gt; &lt;xen:include template=&quot;breadcrumb&quot;&gt;&lt;xen:set var=&quot;$microdata&quot;&gt;1&lt;/xen:set&gt;&lt;/xen:include&gt; &lt;/div&gt; &lt;/xen:if&gt; &lt;xen:hook name=&quot;page_container_content_top&quot; /&gt; &lt;xen:if is=&quot;{$sidebar}&quot;&gt; &lt;xen:if is=&quot;@xb_stickySidebar&quot;&gt;&lt;div class=&quot;xbContentWrapper&quot;&gt;&lt;/xen:if&gt; &lt;div class=&quot;mainContainer&quot;&gt; &lt;div class=&quot;mainContent&quot;&gt;&lt;/xen:if&gt; &lt;xen:include template=&quot;ad_above_top_breadcrumb&quot; /&gt; &lt;xen:hook name=&quot;page_container_breadcrumb_top&quot;&gt; &lt;xen:if is=&quot;@xb_noBreadcrumb &amp;&amp; {$contentTemplate} == &#039;forum_list&#039;&quot;&gt; &lt;xen:else /&gt; &lt;xen:if is=&quot;!@xb_bcmoveout&quot;&gt; &lt;div class=&quot;breadBoxTop {xen:if $topctrl, withTopCtrl}&quot;&gt; &lt;xen:if is=&quot;{$topctrl} AND !@xb_calltoaction&quot;&gt;&lt;div class=&quot;topCtrl&quot;&gt;{xen:raw $topctrl}&lt;/div&gt;&lt;/xen:if&gt; &lt;xen:include template=&quot;breadcrumb&quot;&gt;&lt;xen:set var=&quot;$microdata&quot;&gt;1&lt;/xen:set&gt;&lt;/xen:include&gt; &lt;/div&gt; &lt;/xen:if&gt; &lt;/xen:if&gt; &lt;/xen:hook&gt; &lt;xen:include template=&quot;ad_below_top_breadcrumb&quot; /&gt; &lt;!--[if lt IE 8]&gt; &lt;p class=&quot;importantMessage&quot;&gt;{xen:phrase you_are_using_out_of_date_browser_upgrade}&lt;/p&gt; &lt;![endif]--&gt; &lt;xen:hook name=&quot;page_container_notices&quot;&gt; &lt;xen:include template=&quot;notices&quot; /&gt; &lt;/xen:hook&gt; &lt;xen:hook name=&quot;page_container_content_title_bar&quot;&gt; &lt;xen:if is=&quot;@xb_noH1 &amp;&amp; {$contentTemplate} == &#039;forum_list&#039;&quot;&gt; &lt;xen:else /&gt; &lt;xen:if is=&quot;!{$noH1}&quot;&gt; &lt;!-- h1 title, description --&gt; &lt;div class=&quot;titleBar&quot;&gt; {xen:raw $beforeH1} &lt;h1&gt;&lt;xen:if is=&quot;{$h1}&quot;&gt;{xen:raw $h1}&lt;xen:elseif is=&quot;{$title}&quot; /&gt;{xen:raw $title}&lt;xen:else /&gt;{$xenOptions.boardTitle}&lt;/xen:if&gt; &lt;xen:if is=&quot;{$topctrl} AND @xb_calltoaction&quot;&gt;&lt;div class=&quot;topCtrl&quot;&gt;{xen:raw $topctrl}&lt;/div&gt;&lt;/xen:if&gt; &lt;/h1&gt; &lt;xen:if is=&quot;{$pageDescription.content}&quot;&gt;&lt;p id=&quot;pageDescription&quot; class=&quot;muted {$pageDescription.class}&quot;&gt;{xen:raw $pageDescription.content}&lt;/p&gt;&lt;/xen:if&gt; &lt;/div&gt; &lt;xen:else /&gt; &lt;xen:if is=&quot;{$topctrl} AND @xb_calltoaction&quot;&gt;&lt;div class=&quot;topCtrl xbTopCtrl&quot;&gt;{xen:raw $topctrl}&lt;/div&gt;&lt;/xen:if&gt; &lt;/xen:if&gt; &lt;/xen:if&gt; &lt;/xen:hook&gt; &lt;xen:include template=&quot;ad_above_content&quot; /&gt; &lt;!-- main template --&gt; {xen:raw $contents} &lt;xen:include template=&quot;ad_below_content&quot; /&gt; &lt;xen:if is=&quot;!{$visitor.user_id} &amp;&amp; !{$hideLoginBar}&quot;&gt; &lt;!-- login form, to be moved to the upper drop-down --&gt; &lt;xen:include template=&quot;login_bar_form&quot; /&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_bcbottomshift&quot;&gt; &lt;xen:hook name=&quot;page_container_breadcrumb_bottom&quot;&gt; &lt;xen:if is=&quot;@xb_noBreadcrumb &amp;&amp; {$contentTemplate} == &#039;forum_list&#039;&quot;&gt; &lt;xen:else /&gt; &lt;div class=&quot;breadBoxBottom&quot;&gt;&lt;xen:include template=&quot;breadcrumb&quot; /&gt;&lt;/div&gt; &lt;/xen:if&gt; &lt;/xen:hook&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;{$sidebar}&quot;&gt;&lt;/div&gt; &lt;/div&gt; &lt;!-- sidebar --&gt; &lt;aside&gt; &lt;div class=&quot;sidebar&quot;&gt; &lt;xen:hook name=&quot;page_container_sidebar&quot;&gt; &lt;xen:include template=&quot;ad_sidebar_top&quot; /&gt; &lt;xen:if is=&quot;!{$noVisitorPanel}&quot;&gt;&lt;xen:include template=&quot;sidebar_visitor_panel&quot; /&gt;&lt;/xen:if&gt; {xen:raw $sidebar} &lt;xen:include template=&quot;ad_sidebar_bottom&quot; /&gt; &lt;/xen:hook&gt; &lt;/div&gt; &lt;/aside&gt; &lt;xen:if is=&quot;@xb_stickySidebar&quot;&gt;&lt;/div&gt;&lt;/xen:if&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;!@xb_bcbottomshift&quot;&gt; &lt;xen:hook name=&quot;page_container_breadcrumb_bottom&quot;&gt; &lt;xen:if is=&quot;@xb_noBreadcrumb &amp;&amp; {$contentTemplate} == &#039;forum_list&#039;&quot;&gt; &lt;xen:else /&gt; &lt;div class=&quot;breadBoxBottom&quot;&gt;&lt;xen:include template=&quot;breadcrumb&quot; /&gt;&lt;/div&gt; &lt;/xen:if&gt; &lt;/xen:hook&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_scroll_buttons OR @xb_scroll_down_on&quot;&gt; &lt;xen:include template=&quot;xb_scroll_buttons&quot; /&gt; &lt;/xen:if&gt; &lt;xen:include template=&quot;ad_below_bottom_breadcrumb&quot; /&gt; &lt;/div&gt; &lt;/div&gt; &lt;xen:if is=&quot;@xb_welcome_bar AND !{$visitor.user_id}&quot;&gt; &lt;xen:include template=&quot;xb_welcome_bar&quot; /&gt; &lt;/xen:if&gt; &lt;/div&gt; &lt;xen:if is=&quot;!@xb_remove_headerproxy&quot;&gt; &lt;header&gt; &lt;xen:include template=&quot;header&quot; /&gt; &lt;xen:edithint template=&quot;navigation&quot; /&gt; &lt;xen:edithint template=&quot;search_bar&quot; /&gt; &lt;/header&gt; &lt;/xen:if&gt; &lt;/div&gt; &lt;footer&gt; &lt;xen:include template=&quot;footer&quot; /&gt; &lt;/footer&gt; &lt;xen:if is=&quot;@xb_boxed_layout&quot;&gt;&lt;/div&gt;&lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_offcanvas_menu&quot;&gt; &lt;/div&gt; &lt;/xen:if&gt; &lt;xen:include template=&quot;page_container_js_body&quot; /&gt; &lt;!--XenBase Current Version : @xb_parent_version --&gt; &lt;!--Style Version : @xb_style_version --&gt; &lt;xen:if is=&quot;{$isIndexPage} AND {$canSearch}&quot;&gt; &lt;script type=&quot;application/ld+json&quot;&gt; { &quot;@context&quot;: &quot;http://schema.org&quot;, &quot;@type&quot;: &quot;WebSite&quot;, &quot;url&quot;: &quot;{xen:jsescape {xen:link canonical:index}}&quot;, &quot;potentialAction&quot;: { &quot;@type&quot;: &quot;SearchAction&quot;, &quot;target&quot;: &quot;{xen:jsescape {xen:link canonical:search/search}}{xen:if $xenOptions.useFriendlyUrls, &#039;?&#039;, &#039;&amp;&#039;}keywords={search_keywords}&quot;, &quot;query-input&quot;: &quot;required name=search_keywords&quot; } } &lt;/script&gt; &lt;/xen:if&gt; &lt;/xen:hook&gt; &lt;/body&gt; &lt;/html&gt;
edited Nov 20 '16 at 8:50 am

and this is the error i get.

alert('module freichatx says: hardcode.php file not found!'smile;"; } return 0; } } ?>

and this is the error i get. alert(&#039;module freichatx says: hardcode.php file not found!&#039;);&quot;; } return 0; } } ?&gt;

Replace that freichat code from that page with:

<script type="text/javascript" language="javascipt" src="http://orclmedia.esy.es/freichat/client/main.php"></script>
<link rel="stylesheet" href="http://orclmedia.esy.es/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">

Now, open freichat/hardcode.php

Replace

$use_cookie=false;

with

$use_cookie=true;
Replace that freichat code from that page with: ``` &lt;script type=&quot;text/javascript&quot; language=&quot;javascipt&quot; src=&quot;http://orclmedia.esy.es/freichat/client/main.php&quot;&gt;&lt;/script&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;http://orclmedia.esy.es/freichat/client/jquery/freichat_themes/freichatcss.php&quot; type=&quot;text/css&quot;&gt; ``` Now, open freichat/hardcode.php Replace ``` $use_cookie=false; ``` with ``` $use_cookie=true; ```

okay i have tried it that way and it still does not show up. here is what PAGE_CONTAINER looks like now

<!DOCTYPE html><xen:set var="$isResponsive" value="{xen:if '@enableResponsive AND !{$noResponsive}', 1, 0}" />

<html id="XenForo" lang="{$visitorLanguage.language_code}" dir="{$visitorLanguage.text_direction}" class="Public NoJs XenBase {xen:if {$visitor.user_id}, 'LoggedIn', 'LoggedOut'} {xen:if {$sidebar}, 'Sidebar', 'NoSidebar'} {xen:if @xb_boxed_layout, 'xbBoxedStyle'} {xen:if @xb_widen, 'xbWideStyle'} {xen:if @xb_leftSidebar, 'LeftSidebar', 'RightSidebar'} {xen:if $hasAutoDeferred, RunDeferred} {xen:if $isResponsive, Responsive, NoResponsive}" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<script type="text/javascript" language="javascipt" src="http://orclmedia.esy.es/freichat/client/main.php"></script>
<link rel="stylesheet" href="http://orclmedia.esy.es/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">
<xen:hook name="page_container_head">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<xen:if is="{$isResponsive}">
<meta name="viewport" content="width=device-width, initial-scale=1" />
</xen:if>
<xen:if is="{$requestPaths.fullBasePath}">
<base href="{$requestPaths.fullBasePath}" />
<script><xen:comment>/ Chrome bug and for Google cache /</xen:comment>
var _b = document.getElementsByTagName('base'smile[0], _bH = "{xen:jsescape $requestPaths.fullBasePath}";
if (_b && _b.href != _bH) _b.href = _bH;
</script>
</xen:if>

<title><xen:if is="{$title}">{xen:raw $title} | {$xenOptions.boardTitle}<xen:else />{$xenOptions.boardTitle}</xen:if></title>


<noscript><style>.JsOnly, .jsOnly { display: none !important; }</style></noscript>
<link rel="stylesheet" href="css.php?css=xenforo,form,public&style={xen:urlencode $_styleId}&dir={$visitorLanguage.text_direction}&d={$visitorStyle.last_modified_date}" />
<!--XenForo_Require:CSS-->

<xen:require css="xb.css" />
<xen:if is="@xb_web_font">
@xb_web_font_link
</xen:if>
<xen:if is="@xb_fontAwesome">
<link rel="stylesheet" href="{$requestPaths.fullBasePath}@xb_fontAwesomeLink">
</xen:if>
<xen:if is="@xb_fontAwesome_useCDN">
@xb_fontAwesome_CDN
</xen:if>

{xen:helper ignoredCss, {$visitor.ignoredUsers}}

<xen:include template="google_analytics" />
<xen:include template="page_container_js_head" />
<xen:include template="xb_head" />

<link rel="apple-touch-icon" href="{xen:helper fullurl, @ogLogoPath, 1}" />
<link rel="alternate" type="application/rss+xml" title="{xen:phrase rss_feed_for_x, 'title={$xenOptions.boardTitle}'}" href="{xen:link forums/-/index.rss}" />
<xen:if is="{$pageDescription.content} AND !{$pageDescription.skipmeta} AND !{$head.description}"><meta name="description" content="{xen:string wordTrim, {xen:helper stripHtml, {xen:raw $pageDescription.content}}, 200}" /></xen:if>
<xen:if is="{$head}"><xen:foreach loop="$head" value="$headElement">{xen:raw $headElement}</xen:foreach></xen:if>
</xen:hook>
</head>

<body{xen:if {$bodyClasses}, ' class="{$bodyClasses}"'}>
<xen:hook name="body">
<xen:if is="@xb_offcanvas_menu">
<div class="xbOffCanvasContent xbOffCanvasMask"></div>
<xen:include template="xb_offcanvas_menu" />
<div class="xbOffCanvasContainer">
</xen:if>

<xen:if is="@xb_user_bar AND !@xb_user_panel_header">
<xen:if is="{$visitor.user_id}">
<xen:include template="moderator_bar" />
<xen:elseif is="!{$visitor.user_id} && !{$hideLoginBar}" />
<xen:include template="login_bar" />
</xen:if>
<xen:else />
<xen:if is="{$visitor.is_moderator} || {$visitor.is_admin}">
<xen:include template="moderator_bar" />
<xen:elseif is="!{$visitor.user_id} && !{$hideLoginBar}" />
<xen:include template="login_bar" />
</xen:if>
</xen:if>

<xen:if is="@xb_top_bar_enable"><xen:include template="xb_top_bar" /></xen:if>

<xen:if is="@xb_boxed_layout"><div class="xbBoxed"></xen:if>
<div id="headerMover">

<xen:if is="@xb_remove_headerproxy">
<header>
<xen:include template="header" />
<xen:edithint template="navigation" />
<xen:edithint template="search_bar" />
</header>
</xen:if>

<xen:if is="@xb_body_helper"><div class="xbBodyhelper"></div></xen:if>
<xen:if is="!@xb_remove_headerproxy"><div id="headerProxy"></div></xen:if>

<div id="content" class="{$contentTemplate}">
<div class="<xen:if is="@xb_widen">pageContent<xen:else />pageWidth</xen:if>">
<div class="<xen:if is="@xb_widen">pageWidth<xen:else />pageContent</xen:if>">
<xen:if is="@xb_content_helper"><div class="xbContenthelper"></div></xen:if>

<xen:include template="ad_top_content" />

<!-- main content area -->

<xen:if is="@xb_bcmoveout">
<div class="breadBoxTop {xen:if $topctrl, withTopCtrl}">
<xen:if is="{$topctrl} AND !@xb_calltoaction"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
<xen:include template="breadcrumb"><xen:set var="$microdata">1</xen:set></xen:include>
</div>
</xen:if>

<xen:hook name="page_container_content_top" />
<xen:if is="{$sidebar}">
<xen:if is="@xb_stickySidebar"><div class="xbContentWrapper"></xen:if>
<div class="mainContainer">
<div class="mainContent"></xen:if>

<xen:include template="ad_above_top_breadcrumb" />

<xen:hook name="page_container_breadcrumb_top">
<xen:if is="@xb_noBreadcrumb && {$contentTemplate} == 'forum_list'">
<xen:else />
<xen:if is="!@xb_bcmoveout">
<div class="breadBoxTop {xen:if $topctrl, withTopCtrl}">
<xen:if is="{$topctrl} AND !@xb_calltoaction"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
<xen:include template="breadcrumb"><xen:set var="$microdata">1</xen:set></xen:include>
</div>
</xen:if>
</xen:if>
</xen:hook>

<xen:include template="ad_below_top_breadcrumb" />

<!--[if lt IE 8]>
<p class="importantMessage">{xen:phrase you_are_using_out_of_date_browser_upgrade}</p>
<![endif]-->

<xen:hook name="page_container_notices">
<xen:include template="notices" />
</xen:hook>

<xen:hook name="page_container_content_title_bar">
<xen:if is="@xb_noH1 && {$contentTemplate} == 'forum_list'">
<xen:else />
<xen:if is="!{$noH1}">
<!-- h1 title, description -->
<div class="titleBar">
{xen:raw $beforeH1}
<h1><xen:if
is="{$h1}">{xen:raw $h1}<xen:elseif
is="{$title}" />{xen:raw $title}<xen:else
/>{$xenOptions.boardTitle}</xen:if>
<xen:if is="{$topctrl} AND @xb_calltoaction"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
</h1>

<xen:if is="{$pageDescription.content}"><p id="pageDescription" class="muted {$pageDescription.class}">{xen:raw $pageDescription.content}</p></xen:if>
</div>
<xen:else />
<xen:if is="{$topctrl} AND @xb_calltoaction"><div class="topCtrl xbTopCtrl">{xen:raw $topctrl}</div></xen:if>
</xen:if>
</xen:if>
</xen:hook>

<xen:include template="ad_above_content" />

<!-- main template -->
{xen:raw $contents}

<xen:include template="ad_below_content" />

<xen:if is="!{$visitor.user_id} && !{$hideLoginBar}">
<!-- login form, to be moved to the upper drop-down -->
<xen:include template="login_bar_form" />
</xen:if>

<xen:if is="@xb_bcbottomshift">
<xen:hook name="page_container_breadcrumb_bottom">
<xen:if is="@xb_noBreadcrumb && {$contentTemplate} == 'forum_list'">
<xen:else />
<div class="breadBoxBottom"><xen:include template="breadcrumb" /></div>
</xen:if>
</xen:hook>
</xen:if>

<xen:if is="{$sidebar}"></div>

</div>

<!-- sidebar -->
<aside>
<div class="sidebar">
<xen:hook name="page_container_sidebar">
<xen:include template="ad_sidebar_top" />
<xen:if is="!{$noVisitorPanel}"><xen:include template="sidebar_visitor_panel" /></xen:if>
{xen:raw $sidebar}
<xen:include template="ad_sidebar_bottom" />
</xen:hook>
</div>
</aside>

<xen:if is="@xb_stickySidebar"></div></xen:if>

</xen:if>

<xen:if is="!@xb_bcbottomshift">
<xen:hook name="page_container_breadcrumb_bottom">
<xen:if is="@xb_noBreadcrumb && {$contentTemplate} == 'forum_list'">
<xen:else />
<div class="breadBoxBottom"><xen:include template="breadcrumb" /></div>
</xen:if>
</xen:hook>
</xen:if>

<xen:if is="@xb_scroll_buttons OR @xb_scroll_down_on">
<xen:include template="xb_scroll_buttons" />
</xen:if>

<xen:include template="ad_below_bottom_breadcrumb" />
</div>
</div>
<xen:if is="@xb_welcome_bar AND !{$visitor.user_id}">
<xen:include template="xb_welcome_bar" />
</xen:if>
</div>

<xen:if is="!@xb_remove_headerproxy">
<header>
<xen:include template="header" />
<xen:edithint template="navigation" />
<xen:edithint template="search_bar" />
</header>
</xen:if>

</div>

<footer>
<xen:include template="footer" />
</footer>

<xen:if is="@xb_boxed_layout"></div></xen:if>

<xen:if is="@xb_offcanvas_menu">
</div>
</xen:if>

<xen:include template="page_container_js_body" />

<!--XenBase Current Version : @xb_parent_version -->
<!--Style Version : @xb_style_version -->

<xen:if is="{$isIndexPage} AND {$canSearch}">
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "{xen:jsescape {xen:link canonical:index}}",
"potentialAction": {
"@type": "SearchAction",
"target": "{xen:jsescape {xen:link canonical:search/search}}{xen:if $xenOptions.useFriendlyUrls, '?', '&'}keywords={search_keywords}",
"query-input": "required name=search_keywords"
}
}
</script>
</xen:if>

</xen:hook>

</body>
</html>

okay i have tried it that way and it still does not show up. here is what PAGE_CONTAINER looks like now &lt;!DOCTYPE html&gt;&lt;xen:set var=&quot;$isResponsive&quot; value=&quot;{xen:if &#039;@enableResponsive AND !{$noResponsive}&#039;, 1, 0}&quot; /&gt; &lt;html id=&quot;XenForo&quot; lang=&quot;{$visitorLanguage.language_code}&quot; dir=&quot;{$visitorLanguage.text_direction}&quot; class=&quot;Public NoJs XenBase {xen:if {$visitor.user_id}, &#039;LoggedIn&#039;, &#039;LoggedOut&#039;} {xen:if {$sidebar}, &#039;Sidebar&#039;, &#039;NoSidebar&#039;} {xen:if @xb_boxed_layout, &#039;xbBoxedStyle&#039;} {xen:if @xb_widen, &#039;xbWideStyle&#039;} {xen:if @xb_leftSidebar, &#039;LeftSidebar&#039;, &#039;RightSidebar&#039;} {xen:if $hasAutoDeferred, RunDeferred} {xen:if $isResponsive, Responsive, NoResponsive}&quot; xmlns:fb=&quot;http://www.facebook.com/2008/fbml&quot;&gt; &lt;head&gt; &lt;script type=&quot;text/javascript&quot; language=&quot;javascipt&quot; src=&quot;http://orclmedia.esy.es/freichat/client/main.php&quot;&gt;&lt;/script&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;http://orclmedia.esy.es/freichat/client/jquery/freichat_themes/freichatcss.php&quot; type=&quot;text/css&quot;&gt; &lt;xen:hook name=&quot;page_container_head&quot;&gt; &lt;meta charset=&quot;utf-8&quot; /&gt; &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=Edge,chrome=1&quot; /&gt; &lt;xen:if is=&quot;{$isResponsive}&quot;&gt; &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot; /&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;{$requestPaths.fullBasePath}&quot;&gt; &lt;base href=&quot;{$requestPaths.fullBasePath}&quot; /&gt; &lt;script&gt;&lt;xen:comment&gt;/* Chrome bug and for Google cache */&lt;/xen:comment&gt; var _b = document.getElementsByTagName(&#039;base&#039;)[0], _bH = &quot;{xen:jsescape $requestPaths.fullBasePath}&quot;; if (_b &amp;&amp; _b.href != _bH) _b.href = _bH; &lt;/script&gt; &lt;/xen:if&gt; &lt;title&gt;&lt;xen:if is=&quot;{$title}&quot;&gt;{xen:raw $title} | {$xenOptions.boardTitle}&lt;xen:else /&gt;{$xenOptions.boardTitle}&lt;/xen:if&gt;&lt;/title&gt; &lt;noscript&gt;&lt;style&gt;.JsOnly, .jsOnly { display: none !important; }&lt;/style&gt;&lt;/noscript&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;css.php?css=xenforo,form,public&amp;amp;style={xen:urlencode $_styleId}&amp;amp;dir={$visitorLanguage.text_direction}&amp;amp;d={$visitorStyle.last_modified_date}&quot; /&gt; &lt;!--XenForo_Require:CSS--&gt; &lt;xen:require css=&quot;xb.css&quot; /&gt; &lt;xen:if is=&quot;@xb_web_font&quot;&gt; @xb_web_font_link &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_fontAwesome&quot;&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;{$requestPaths.fullBasePath}@xb_fontAwesomeLink&quot;&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_fontAwesome_useCDN&quot;&gt; @xb_fontAwesome_CDN &lt;/xen:if&gt; {xen:helper ignoredCss, {$visitor.ignoredUsers}} &lt;xen:include template=&quot;google_analytics&quot; /&gt; &lt;xen:include template=&quot;page_container_js_head&quot; /&gt; &lt;xen:include template=&quot;xb_head&quot; /&gt; &lt;link rel=&quot;apple-touch-icon&quot; href=&quot;{xen:helper fullurl, @ogLogoPath, 1}&quot; /&gt; &lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;{xen:phrase rss_feed_for_x, &#039;title={$xenOptions.boardTitle}&#039;}&quot; href=&quot;{xen:link forums/-/index.rss}&quot; /&gt; &lt;xen:if is=&quot;{$pageDescription.content} AND !{$pageDescription.skipmeta} AND !{$head.description}&quot;&gt;&lt;meta name=&quot;description&quot; content=&quot;{xen:string wordTrim, {xen:helper stripHtml, {xen:raw $pageDescription.content}}, 200}&quot; /&gt;&lt;/xen:if&gt; &lt;xen:if is=&quot;{$head}&quot;&gt;&lt;xen:foreach loop=&quot;$head&quot; value=&quot;$headElement&quot;&gt;{xen:raw $headElement}&lt;/xen:foreach&gt;&lt;/xen:if&gt; &lt;/xen:hook&gt; &lt;/head&gt; &lt;body{xen:if {$bodyClasses}, &#039; class=&quot;{$bodyClasses}&quot;&#039;}&gt; &lt;xen:hook name=&quot;body&quot;&gt; &lt;xen:if is=&quot;@xb_offcanvas_menu&quot;&gt; &lt;div class=&quot;xbOffCanvasContent xbOffCanvasMask&quot;&gt;&lt;/div&gt; &lt;xen:include template=&quot;xb_offcanvas_menu&quot; /&gt; &lt;div class=&quot;xbOffCanvasContainer&quot;&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_user_bar AND !@xb_user_panel_header&quot;&gt; &lt;xen:if is=&quot;{$visitor.user_id}&quot;&gt; &lt;xen:include template=&quot;moderator_bar&quot; /&gt; &lt;xen:elseif is=&quot;!{$visitor.user_id} &amp;&amp; !{$hideLoginBar}&quot; /&gt; &lt;xen:include template=&quot;login_bar&quot; /&gt; &lt;/xen:if&gt; &lt;xen:else /&gt; &lt;xen:if is=&quot;{$visitor.is_moderator} || {$visitor.is_admin}&quot;&gt; &lt;xen:include template=&quot;moderator_bar&quot; /&gt; &lt;xen:elseif is=&quot;!{$visitor.user_id} &amp;&amp; !{$hideLoginBar}&quot; /&gt; &lt;xen:include template=&quot;login_bar&quot; /&gt; &lt;/xen:if&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_top_bar_enable&quot;&gt;&lt;xen:include template=&quot;xb_top_bar&quot; /&gt;&lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_boxed_layout&quot;&gt;&lt;div class=&quot;xbBoxed&quot;&gt;&lt;/xen:if&gt; &lt;div id=&quot;headerMover&quot;&gt; &lt;xen:if is=&quot;@xb_remove_headerproxy&quot;&gt; &lt;header&gt; &lt;xen:include template=&quot;header&quot; /&gt; &lt;xen:edithint template=&quot;navigation&quot; /&gt; &lt;xen:edithint template=&quot;search_bar&quot; /&gt; &lt;/header&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_body_helper&quot;&gt;&lt;div class=&quot;xbBodyhelper&quot;&gt;&lt;/div&gt;&lt;/xen:if&gt; &lt;xen:if is=&quot;!@xb_remove_headerproxy&quot;&gt;&lt;div id=&quot;headerProxy&quot;&gt;&lt;/div&gt;&lt;/xen:if&gt; &lt;div id=&quot;content&quot; class=&quot;{$contentTemplate}&quot;&gt; &lt;div class=&quot;&lt;xen:if is=&quot;@xb_widen&quot;&gt;pageContent&lt;xen:else /&gt;pageWidth&lt;/xen:if&gt;&quot;&gt; &lt;div class=&quot;&lt;xen:if is=&quot;@xb_widen&quot;&gt;pageWidth&lt;xen:else /&gt;pageContent&lt;/xen:if&gt;&quot;&gt; &lt;xen:if is=&quot;@xb_content_helper&quot;&gt;&lt;div class=&quot;xbContenthelper&quot;&gt;&lt;/div&gt;&lt;/xen:if&gt; &lt;xen:include template=&quot;ad_top_content&quot; /&gt; &lt;!-- main content area --&gt; &lt;xen:if is=&quot;@xb_bcmoveout&quot;&gt; &lt;div class=&quot;breadBoxTop {xen:if $topctrl, withTopCtrl}&quot;&gt; &lt;xen:if is=&quot;{$topctrl} AND !@xb_calltoaction&quot;&gt;&lt;div class=&quot;topCtrl&quot;&gt;{xen:raw $topctrl}&lt;/div&gt;&lt;/xen:if&gt; &lt;xen:include template=&quot;breadcrumb&quot;&gt;&lt;xen:set var=&quot;$microdata&quot;&gt;1&lt;/xen:set&gt;&lt;/xen:include&gt; &lt;/div&gt; &lt;/xen:if&gt; &lt;xen:hook name=&quot;page_container_content_top&quot; /&gt; &lt;xen:if is=&quot;{$sidebar}&quot;&gt; &lt;xen:if is=&quot;@xb_stickySidebar&quot;&gt;&lt;div class=&quot;xbContentWrapper&quot;&gt;&lt;/xen:if&gt; &lt;div class=&quot;mainContainer&quot;&gt; &lt;div class=&quot;mainContent&quot;&gt;&lt;/xen:if&gt; &lt;xen:include template=&quot;ad_above_top_breadcrumb&quot; /&gt; &lt;xen:hook name=&quot;page_container_breadcrumb_top&quot;&gt; &lt;xen:if is=&quot;@xb_noBreadcrumb &amp;&amp; {$contentTemplate} == &#039;forum_list&#039;&quot;&gt; &lt;xen:else /&gt; &lt;xen:if is=&quot;!@xb_bcmoveout&quot;&gt; &lt;div class=&quot;breadBoxTop {xen:if $topctrl, withTopCtrl}&quot;&gt; &lt;xen:if is=&quot;{$topctrl} AND !@xb_calltoaction&quot;&gt;&lt;div class=&quot;topCtrl&quot;&gt;{xen:raw $topctrl}&lt;/div&gt;&lt;/xen:if&gt; &lt;xen:include template=&quot;breadcrumb&quot;&gt;&lt;xen:set var=&quot;$microdata&quot;&gt;1&lt;/xen:set&gt;&lt;/xen:include&gt; &lt;/div&gt; &lt;/xen:if&gt; &lt;/xen:if&gt; &lt;/xen:hook&gt; &lt;xen:include template=&quot;ad_below_top_breadcrumb&quot; /&gt; &lt;!--[if lt IE 8]&gt; &lt;p class=&quot;importantMessage&quot;&gt;{xen:phrase you_are_using_out_of_date_browser_upgrade}&lt;/p&gt; &lt;![endif]--&gt; &lt;xen:hook name=&quot;page_container_notices&quot;&gt; &lt;xen:include template=&quot;notices&quot; /&gt; &lt;/xen:hook&gt; &lt;xen:hook name=&quot;page_container_content_title_bar&quot;&gt; &lt;xen:if is=&quot;@xb_noH1 &amp;&amp; {$contentTemplate} == &#039;forum_list&#039;&quot;&gt; &lt;xen:else /&gt; &lt;xen:if is=&quot;!{$noH1}&quot;&gt; &lt;!-- h1 title, description --&gt; &lt;div class=&quot;titleBar&quot;&gt; {xen:raw $beforeH1} &lt;h1&gt;&lt;xen:if is=&quot;{$h1}&quot;&gt;{xen:raw $h1}&lt;xen:elseif is=&quot;{$title}&quot; /&gt;{xen:raw $title}&lt;xen:else /&gt;{$xenOptions.boardTitle}&lt;/xen:if&gt; &lt;xen:if is=&quot;{$topctrl} AND @xb_calltoaction&quot;&gt;&lt;div class=&quot;topCtrl&quot;&gt;{xen:raw $topctrl}&lt;/div&gt;&lt;/xen:if&gt; &lt;/h1&gt; &lt;xen:if is=&quot;{$pageDescription.content}&quot;&gt;&lt;p id=&quot;pageDescription&quot; class=&quot;muted {$pageDescription.class}&quot;&gt;{xen:raw $pageDescription.content}&lt;/p&gt;&lt;/xen:if&gt; &lt;/div&gt; &lt;xen:else /&gt; &lt;xen:if is=&quot;{$topctrl} AND @xb_calltoaction&quot;&gt;&lt;div class=&quot;topCtrl xbTopCtrl&quot;&gt;{xen:raw $topctrl}&lt;/div&gt;&lt;/xen:if&gt; &lt;/xen:if&gt; &lt;/xen:if&gt; &lt;/xen:hook&gt; &lt;xen:include template=&quot;ad_above_content&quot; /&gt; &lt;!-- main template --&gt; {xen:raw $contents} &lt;xen:include template=&quot;ad_below_content&quot; /&gt; &lt;xen:if is=&quot;!{$visitor.user_id} &amp;&amp; !{$hideLoginBar}&quot;&gt; &lt;!-- login form, to be moved to the upper drop-down --&gt; &lt;xen:include template=&quot;login_bar_form&quot; /&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_bcbottomshift&quot;&gt; &lt;xen:hook name=&quot;page_container_breadcrumb_bottom&quot;&gt; &lt;xen:if is=&quot;@xb_noBreadcrumb &amp;&amp; {$contentTemplate} == &#039;forum_list&#039;&quot;&gt; &lt;xen:else /&gt; &lt;div class=&quot;breadBoxBottom&quot;&gt;&lt;xen:include template=&quot;breadcrumb&quot; /&gt;&lt;/div&gt; &lt;/xen:if&gt; &lt;/xen:hook&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;{$sidebar}&quot;&gt;&lt;/div&gt; &lt;/div&gt; &lt;!-- sidebar --&gt; &lt;aside&gt; &lt;div class=&quot;sidebar&quot;&gt; &lt;xen:hook name=&quot;page_container_sidebar&quot;&gt; &lt;xen:include template=&quot;ad_sidebar_top&quot; /&gt; &lt;xen:if is=&quot;!{$noVisitorPanel}&quot;&gt;&lt;xen:include template=&quot;sidebar_visitor_panel&quot; /&gt;&lt;/xen:if&gt; {xen:raw $sidebar} &lt;xen:include template=&quot;ad_sidebar_bottom&quot; /&gt; &lt;/xen:hook&gt; &lt;/div&gt; &lt;/aside&gt; &lt;xen:if is=&quot;@xb_stickySidebar&quot;&gt;&lt;/div&gt;&lt;/xen:if&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;!@xb_bcbottomshift&quot;&gt; &lt;xen:hook name=&quot;page_container_breadcrumb_bottom&quot;&gt; &lt;xen:if is=&quot;@xb_noBreadcrumb &amp;&amp; {$contentTemplate} == &#039;forum_list&#039;&quot;&gt; &lt;xen:else /&gt; &lt;div class=&quot;breadBoxBottom&quot;&gt;&lt;xen:include template=&quot;breadcrumb&quot; /&gt;&lt;/div&gt; &lt;/xen:if&gt; &lt;/xen:hook&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_scroll_buttons OR @xb_scroll_down_on&quot;&gt; &lt;xen:include template=&quot;xb_scroll_buttons&quot; /&gt; &lt;/xen:if&gt; &lt;xen:include template=&quot;ad_below_bottom_breadcrumb&quot; /&gt; &lt;/div&gt; &lt;/div&gt; &lt;xen:if is=&quot;@xb_welcome_bar AND !{$visitor.user_id}&quot;&gt; &lt;xen:include template=&quot;xb_welcome_bar&quot; /&gt; &lt;/xen:if&gt; &lt;/div&gt; &lt;xen:if is=&quot;!@xb_remove_headerproxy&quot;&gt; &lt;header&gt; &lt;xen:include template=&quot;header&quot; /&gt; &lt;xen:edithint template=&quot;navigation&quot; /&gt; &lt;xen:edithint template=&quot;search_bar&quot; /&gt; &lt;/header&gt; &lt;/xen:if&gt; &lt;/div&gt; &lt;footer&gt; &lt;xen:include template=&quot;footer&quot; /&gt; &lt;/footer&gt; &lt;xen:if is=&quot;@xb_boxed_layout&quot;&gt;&lt;/div&gt;&lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_offcanvas_menu&quot;&gt; &lt;/div&gt; &lt;/xen:if&gt; &lt;xen:include template=&quot;page_container_js_body&quot; /&gt; &lt;!--XenBase Current Version : @xb_parent_version --&gt; &lt;!--Style Version : @xb_style_version --&gt; &lt;xen:if is=&quot;{$isIndexPage} AND {$canSearch}&quot;&gt; &lt;script type=&quot;application/ld+json&quot;&gt; { &quot;@context&quot;: &quot;http://schema.org&quot;, &quot;@type&quot;: &quot;WebSite&quot;, &quot;url&quot;: &quot;{xen:jsescape {xen:link canonical:index}}&quot;, &quot;potentialAction&quot;: { &quot;@type&quot;: &quot;SearchAction&quot;, &quot;target&quot;: &quot;{xen:jsescape {xen:link canonical:search/search}}{xen:if $xenOptions.useFriendlyUrls, &#039;?&#039;, &#039;&amp;&#039;}keywords={search_keywords}&quot;, &quot;query-input&quot;: &quot;required name=search_keywords&quot; } } &lt;/script&gt; &lt;/xen:if&gt; &lt;/xen:hook&gt; &lt;/body&gt; &lt;/html&gt;

But you don't get

alert('module freichatx says: hardcode.php file not found!'smile;"; } return 0; } } ?>

error right ?

Now, for the next step, we have to pass the userid and xhash to freichat

Replace the line in code in PAGE_CONTAINER:

<script type="text/javascript" language="javascipt" src="http://orclmedia.esy.es/freichat/client/main.php"></script>

with

<script type="text/javascript" language="javascipt" src="http://orclmedia.esy.es/freichat/client/main.php?id={$visitor.user_id}"></script>

Then, open freichat/client/main.php

Around line 25, add following line:

$_GET['xhash'] = md5($_GET['id'] . $uid);

If you have followed these steps correctly, you should be able to see freichat now.

But you don&#039;t get ``` alert(&#039;module freichatx says: hardcode.php file not found!&#039;smile;&quot;; } return 0; } } ?&gt; ``` error right ? Now, for the next step, we have to pass the userid and xhash to freichat Replace the line in code in PAGE_CONTAINER: ``` &lt;script type=&quot;text/javascript&quot; language=&quot;javascipt&quot; src=&quot;http://orclmedia.esy.es/freichat/client/main.php&quot;&gt;&lt;/script&gt; ``` with ``` &lt;script type=&quot;text/javascript&quot; language=&quot;javascipt&quot; src=&quot;http://orclmedia.esy.es/freichat/client/main.php?id={$visitor.user_id}&quot;&gt;&lt;/script&gt; ``` Then, open freichat/client/main.php Around line 25, add following line: ``` $_GET[&#039;xhash&#039;] = md5($_GET[&#039;id&#039;] . $uid); ``` If you have followed these steps correctly, you should be able to see freichat now.

okay ive changed that is page_container

now this is what my main.php looks likes


<?php
session_start();
//hi, this is not php , its javascript !
header("content-type:application/x-javascript");
if (!isset($_GET['mobile'])) {
    $mobile = 0;
} else {
    $mobile = (int) $_GET['mobile'];
}
//we need you db connection & settings
require_once '../arg.php';
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
//error_reporting(-1);
$img_req = '';
//COMM_15_DAY_NOTIFY_1
$zlib = false;
$no_get = !isset($_GET['id']) || !isset($_GET['xhash']);
//header("Content-type: text/javascript");
if ($use_cookie == 'false') {
    $use_cookie = false;
} else {
    $use_cookie = $use_cookie;
}
if ($use_cookie) {$_GET['xhash'] = md5($_GET['id'] . $uid);
//authentication is done via cookie
//so _GET global wont be set
} else {
//_GET must be set
    if ($no_get)
        exit;
}
if ($no_get && $use_cookie) {
    $_SESSION[$uid . 'xhash'] = $session_id = null;
} else {
    $session_id = strip_tags($_GET['id']);
    $_SESSION[$uid . 'xhash'] = $_GET['xhash'];
}
if (!isset($_SESSION[$uid . 'xhash']) || ($_SESSION[$uid . 'xhash'] != $_GET['xhash'])) {
    $_SESSION[$uid . 'is_cached'] = false;
}
//-----------------------------------------------------------------------------
class FCC extends FreiChat {

    public $banned = false;
    public $session_id;

    public function __construct() {
        parent::__construct();
        $this->init_vars();
    }

    public function FCC_init() {
        require_once '../server/drivers/' . $this->driver . '.php';
        $this->freichat_debug("main.php  loaded");


        if (!isset($_SESSION[$this->uid . 'rtl'])) {
            $_SESSION[$this->uid . 'rtl'] = false;
        }

        if (!isset($_SESSION[$this->uid . 'freistatus'])) {
            $_SESSION[$this->uid . 'freistatus'] = 1;
        }

        if (!isset($_SESSION[$this->uid . 'custom_mesg'])) {
            $_SESSION[$this->uid . 'custom_mesg'] = $this->frei_trans['default_status'];
        }

        if (!isset($_SESSION[$this->uid . 'in_room'])) {
            $_SESSION[$this->uid . 'in_room'] = -1;
        }

        if (isset($_SESSION[$this->uid . 'ses_id']) == false) {
            global $session_id;
            $parameters = array(
                "id" => $session_id,
                "custom_mesg" => false,
                "first" => false
            );


            if (!isset($_SESSION[$this->uid . 'in_room'])) {
                $_SESSION[$this->uid . 'in_room'] = -1;
            }
            $sessions = new $this->driver($this->db);
            $sessions->uid = $this->uid;
            $sessions->permanent_name = $this->permanent_name;
            $sessions->permanent_id = $this->permanent_id;
            $sessions->online_time = $this->online_time;
            $sessions->online_time2 = $this->online_time2;
            $sessions->time_string = $this->time_string;
            $sessions->show_name = $this->show_name;
            $sessions->usr_list_wanted = false;
            $sessions->db_prefix = $this->db_prefix;
            $sessions->displayname = $this->displayname;
            $sessions->frei_trans = $this->frei_trans;
            $sessions->debug = $this->debug;
            $sessions->update_usr_info = true;
            $sessions->url = $this->url;
            $sessions->driver = $this->driver;
            $sessions->to_freichat_path = $this->to_freichat_path;
            $sessions->options = $parameters;
            $sessions->row_username = $this->row_username;
            $sessions->row_userid = $this->row_userid;
            $sessions->usertable = $this->usertable;
            $sessions->ug_ids = $this->ug_ids;
            $sessions->use_cookie = $this->use_cookie;
            $sessions->pdo_driver = $this->pdo_driver;

            $sessions->load_driver();
            return $sessions->get_id();

            // print_r($_SESSION);
        }
    }

    public function check_user_agent($type = NULL) {
        $user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);
        if ($type == 'bot') {
            // matches popular bots
            if (preg_match("/googlebot|adsbot|yahooseeker|yahoobot|msnbot|watchmouse|pingdom\.com|feedfetcher-google/", $user_agent)) {
                return true;
                // watchmouse|pingdom\.com are "uptime services"
            }
        } else if ($type == 'browser') {
            // matches core browser types
            if (preg_match("/mozilla\/|opera\//", $user_agent)) {
                return true;
            }
        } else if ($type == 'mobile') {
            // matches popular mobile devices that have small screens and/or touch inputs
            // mobile devices have regional trends; some of these will have varying popularity in Europe, Asia, and America
            // detailed demographics are unknown, and South America, the Pacific Islands, and Africa trends might not be represented, here
            if (preg_match("/phone|iphone|itouch|ipod|symbian|android|htc_|htc-|palmos|blackberry|opera mini|iemobile|windows ce|nokia|fennec|hiptop|kindle|mot |mot-|webos\/|samsung|sonyericsson|^sie-|nintendo/", $user_agent)) {
                // these are the most common
                return true;
            } else if (preg_match("/mobile|pda;|avantgo|eudoraweb|minimo|netfront|brew|teleca|lg;|lge |wap;| wap /", $user_agent)) {
                // these are less common, and might not be worth checking
                return true;
            }
        }
        return false;
    }

}

$cvs = new FCC;
$cvs->session_id = $cvs->FCC_init();

$cvs->get_js_config();

$is_mobile = $cvs->check_user_agent('mobile');


//exit(print_r($cvs));
//print_r($_SESSION);
if ($cvs->BOOT == "no") {

    //Do not load freichat
    exit("freichat is disabled");
}


if ($cvs->exit_for_guests == "yes" && $_SESSION[$uid . 'is_guest'] == 1) {
    //dievar_dump($_SESSION);
    //Do not load freichat
    exit("guests are not allowed");
}


$smileys = str_replace("'", "\'", json_encode($cvs->get_smileys()));

if ($cvs->GZIP_handler == 'ON') {
    $zlib = true;
    if (!ob_start("ob_gzhandler"))
    {
        ob_start();
    }        
}



$_SESSION[$uid . 'is_cached'] = true;

if ($cvs->banned == true)
    exit("you are banned");

//var_dump($construct);

if (isset($_SESSION)) {
    $username = $_SESSION[$cvs->uid . 'usr_name'];
    $id = $_SESSION[$cvs->uid . 'usr_ses_id'];
} else {
    $cvs->freichat_debug("Session Not Yet Created in client side");
}
$frei_trans[] = Array();


//require '../client/jquery/freichat_themes/defarg.php';
require '../client/themes/' . $cvs->freichat_theme . '/argument.php';
$frei_trans = $cvs->frei_trans;

$url = str_replace('client/main.php', '', $cvs->url);


if (isset($_SERVER['HTTP_REFERER'])) {
    $referer_url = $_SERVER['HTTP_REFERER'];
} else {
    $referer_url = $url;
}


if (strpos($referer_url, 'www.') == TRUE) {
    $url = str_replace('http://', 'http://www.', $url);
    $url = str_replace('https://', 'https://www.', $url);
} else {

    $url = str_replace('http://www.', 'http://', $url);
    $url = str_replace('https://www.', 'https://', $url);
}

if (strpos($url, 'www.www.') == TRUE) {
    $url = str_replace('http://www.www.', 'http://www.', $url);
    $url = str_replace('https://www.www.', 'https://www.', $url);
}

$pfromname = str_replace("'", "\'", $_SESSION[$uid . "usr_name"]);

$custom_mesg = "";


if (isset($_SESSION[$uid . "custom_mesg"])) {
    if ($_SESSION[$uid . "custom_mesg"] != "" && $_SESSION[$uid . "custom_mesg"] != "i am null" && $_SESSION[$uid . "custom_mesg"] != null) {
        $custom_mesg = $_SESSION[$uid . "custom_mesg"];
    }
} else {
    $custom_mesg = 'I am available';
}

$ACL = $cvs->get_acl();

$show_chatroom_plugin = 'enabled';

if ($cvs->show_chatroom_plugin == 'enabled') {
    if (($_SESSION[$uid . 'is_guest'] == 0 && $ACL['CHATROOM']['user'] == 'noallow') || ($_SESSION[$uid . 'is_guest'] == 1 && $ACL['CHATROOM']['guest'] == 'noallow')) { //is a user
        $show_chatroom_plugin = 'disabled';
    }
} else {
    $show_chatroom_plugin = 'disabled';
}

require_once 'jsdef.js';
require_once 'jquery/js/jquery.1.8.3.js';
require_once 'jquery/js/jquery.jscrollpane.min.js';


//for website
if ($is_mobile && $mobile != 1 && $cvs->show_mobilechat_plugin == 'enabled') {
    require 'mobile.js'; //can be used for alerts
} else {

    /*
     * Includes 
     *  Effects : Clip , Explode.
     *  Widgets : Draggable
     */
    require_once 'jquery/js/jquery-ui-frontend.js';
    require_once 'jquery/js/combined.min.js'; //include SM 2_.2.97a + slick + dragx
    $_SESSION[$cvs->uid . 'FreiChatX_init'] = true;
    require_once 'plugins.js';
    if ($cvs->show_videochat_plugin == 'enabled') {
        //require '../administrator/admin_files/theme_maker/lib/js/md5.js';
        require_once 'plugins/videochat/videochat.js';
        require_once 'plugins/groupchat/groupchat.js';
        require_once 'plugins/groupchat/tag-it.min.js';
        require_once 'plugins/groupchat/jquery.tooltipster.min.js';        
    }

    if($cvs->show_chatroom_plugin == 'enabled') {

        require '../administrator/admin_files/theme_maker/lib/colorpicker/js/colorpicker.min.js';
    }




    require_once 'freichat.js';
}

//for mobile page
if ($mobile == 1) {
    require_once 'plugins/mobile/chat/mobilechat.js';
}



if ($cvs->GZIP_handler == 'ON') {
    if ($zlib == true) {
        ob_end_flush();
    }
}
$_SESSION[$cvs->uid . 'main_loaded'] = true;
okay ive changed that is page_container now this is what my main.php looks likes ``` &lt;?php session_start(); //hi, this is not php , its javascript ! header(&quot;content-type:application/x-javascript&quot;); if (!isset($_GET[&#039;mobile&#039;])) { $mobile = 0; } else { $mobile = (int) $_GET[&#039;mobile&#039;]; } //we need you db connection &amp; settings require_once &#039;../arg.php&#039;; header(&quot;Cache-Control: no-cache, must-revalidate&quot;); // HTTP/1.1 header(&quot;Expires: Sat, 26 Jul 1997 05:00:00 GMT&quot;); // Date in the past //error_reporting(-1); $img_req = &#039;&#039;; //COMM_15_DAY_NOTIFY_1 $zlib = false; $no_get = !isset($_GET[&#039;id&#039;]) || !isset($_GET[&#039;xhash&#039;]); //header(&quot;Content-type: text/javascript&quot;); if ($use_cookie == &#039;false&#039;) { $use_cookie = false; } else { $use_cookie = $use_cookie; } if ($use_cookie) {$_GET[&#039;xhash&#039;] = md5($_GET[&#039;id&#039;] . $uid); //authentication is done via cookie //so _GET global wont be set } else { //_GET must be set if ($no_get) exit; } if ($no_get &amp;&amp; $use_cookie) { $_SESSION[$uid . &#039;xhash&#039;] = $session_id = null; } else { $session_id = strip_tags($_GET[&#039;id&#039;]); $_SESSION[$uid . &#039;xhash&#039;] = $_GET[&#039;xhash&#039;]; } if (!isset($_SESSION[$uid . &#039;xhash&#039;]) || ($_SESSION[$uid . &#039;xhash&#039;] != $_GET[&#039;xhash&#039;])) { $_SESSION[$uid . &#039;is_cached&#039;] = false; } //----------------------------------------------------------------------------- class FCC extends FreiChat { public $banned = false; public $session_id; public function __construct() { parent::__construct(); $this-&gt;init_vars(); } public function FCC_init() { require_once &#039;../server/drivers/&#039; . $this-&gt;driver . &#039;.php&#039;; $this-&gt;freichat_debug(&quot;main.php loaded&quot;); if (!isset($_SESSION[$this-&gt;uid . &#039;rtl&#039;])) { $_SESSION[$this-&gt;uid . &#039;rtl&#039;] = false; } if (!isset($_SESSION[$this-&gt;uid . &#039;freistatus&#039;])) { $_SESSION[$this-&gt;uid . &#039;freistatus&#039;] = 1; } if (!isset($_SESSION[$this-&gt;uid . &#039;custom_mesg&#039;])) { $_SESSION[$this-&gt;uid . &#039;custom_mesg&#039;] = $this-&gt;frei_trans[&#039;default_status&#039;]; } if (!isset($_SESSION[$this-&gt;uid . &#039;in_room&#039;])) { $_SESSION[$this-&gt;uid . &#039;in_room&#039;] = -1; } if (isset($_SESSION[$this-&gt;uid . &#039;ses_id&#039;]) == false) { global $session_id; $parameters = array( &quot;id&quot; =&gt; $session_id, &quot;custom_mesg&quot; =&gt; false, &quot;first&quot; =&gt; false ); if (!isset($_SESSION[$this-&gt;uid . &#039;in_room&#039;])) { $_SESSION[$this-&gt;uid . &#039;in_room&#039;] = -1; } $sessions = new $this-&gt;driver($this-&gt;db); $sessions-&gt;uid = $this-&gt;uid; $sessions-&gt;permanent_name = $this-&gt;permanent_name; $sessions-&gt;permanent_id = $this-&gt;permanent_id; $sessions-&gt;online_time = $this-&gt;online_time; $sessions-&gt;online_time2 = $this-&gt;online_time2; $sessions-&gt;time_string = $this-&gt;time_string; $sessions-&gt;show_name = $this-&gt;show_name; $sessions-&gt;usr_list_wanted = false; $sessions-&gt;db_prefix = $this-&gt;db_prefix; $sessions-&gt;displayname = $this-&gt;displayname; $sessions-&gt;frei_trans = $this-&gt;frei_trans; $sessions-&gt;debug = $this-&gt;debug; $sessions-&gt;update_usr_info = true; $sessions-&gt;url = $this-&gt;url; $sessions-&gt;driver = $this-&gt;driver; $sessions-&gt;to_freichat_path = $this-&gt;to_freichat_path; $sessions-&gt;options = $parameters; $sessions-&gt;row_username = $this-&gt;row_username; $sessions-&gt;row_userid = $this-&gt;row_userid; $sessions-&gt;usertable = $this-&gt;usertable; $sessions-&gt;ug_ids = $this-&gt;ug_ids; $sessions-&gt;use_cookie = $this-&gt;use_cookie; $sessions-&gt;pdo_driver = $this-&gt;pdo_driver; $sessions-&gt;load_driver(); return $sessions-&gt;get_id(); // print_r($_SESSION); } } public function check_user_agent($type = NULL) { $user_agent = strtolower($_SERVER[&#039;HTTP_USER_AGENT&#039;]); if ($type == &#039;bot&#039;) { // matches popular bots if (preg_match(&quot;/googlebot|adsbot|yahooseeker|yahoobot|msnbot|watchmouse|pingdom\.com|feedfetcher-google/&quot;, $user_agent)) { return true; // watchmouse|pingdom\.com are &quot;uptime services&quot; } } else if ($type == &#039;browser&#039;) { // matches core browser types if (preg_match(&quot;/mozilla\/|opera\//&quot;, $user_agent)) { return true; } } else if ($type == &#039;mobile&#039;) { // matches popular mobile devices that have small screens and/or touch inputs // mobile devices have regional trends; some of these will have varying popularity in Europe, Asia, and America // detailed demographics are unknown, and South America, the Pacific Islands, and Africa trends might not be represented, here if (preg_match(&quot;/phone|iphone|itouch|ipod|symbian|android|htc_|htc-|palmos|blackberry|opera mini|iemobile|windows ce|nokia|fennec|hiptop|kindle|mot |mot-|webos\/|samsung|sonyericsson|^sie-|nintendo/&quot;, $user_agent)) { // these are the most common return true; } else if (preg_match(&quot;/mobile|pda;|avantgo|eudoraweb|minimo|netfront|brew|teleca|lg;|lge |wap;| wap /&quot;, $user_agent)) { // these are less common, and might not be worth checking return true; } } return false; } } $cvs = new FCC; $cvs-&gt;session_id = $cvs-&gt;FCC_init(); $cvs-&gt;get_js_config(); $is_mobile = $cvs-&gt;check_user_agent(&#039;mobile&#039;); //exit(print_r($cvs)); //print_r($_SESSION); if ($cvs-&gt;BOOT == &quot;no&quot;) { //Do not load freichat exit(&quot;freichat is disabled&quot;); } if ($cvs-&gt;exit_for_guests == &quot;yes&quot; &amp;&amp; $_SESSION[$uid . &#039;is_guest&#039;] == 1) { //dievar_dump($_SESSION); //Do not load freichat exit(&quot;guests are not allowed&quot;); } $smileys = str_replace(&quot;&#039;&quot;, &quot;\&#039;&quot;, json_encode($cvs-&gt;get_smileys())); if ($cvs-&gt;GZIP_handler == &#039;ON&#039;) { $zlib = true; if (!ob_start(&quot;ob_gzhandler&quot;)) { ob_start(); } } $_SESSION[$uid . &#039;is_cached&#039;] = true; if ($cvs-&gt;banned == true) exit(&quot;you are banned&quot;); //var_dump($construct); if (isset($_SESSION)) { $username = $_SESSION[$cvs-&gt;uid . &#039;usr_name&#039;]; $id = $_SESSION[$cvs-&gt;uid . &#039;usr_ses_id&#039;]; } else { $cvs-&gt;freichat_debug(&quot;Session Not Yet Created in client side&quot;); } $frei_trans[] = Array(); //require &#039;../client/jquery/freichat_themes/defarg.php&#039;; require &#039;../client/themes/&#039; . $cvs-&gt;freichat_theme . &#039;/argument.php&#039;; $frei_trans = $cvs-&gt;frei_trans; $url = str_replace(&#039;client/main.php&#039;, &#039;&#039;, $cvs-&gt;url); if (isset($_SERVER[&#039;HTTP_REFERER&#039;])) { $referer_url = $_SERVER[&#039;HTTP_REFERER&#039;]; } else { $referer_url = $url; } if (strpos($referer_url, &#039;www.&#039;) == TRUE) { $url = str_replace(&#039;http://&#039;, &#039;http://www.&#039;, $url); $url = str_replace(&#039;https://&#039;, &#039;https://www.&#039;, $url); } else { $url = str_replace(&#039;http://www.&#039;, &#039;http://&#039;, $url); $url = str_replace(&#039;https://www.&#039;, &#039;https://&#039;, $url); } if (strpos($url, &#039;www.www.&#039;) == TRUE) { $url = str_replace(&#039;http://www.www.&#039;, &#039;http://www.&#039;, $url); $url = str_replace(&#039;https://www.www.&#039;, &#039;https://www.&#039;, $url); } $pfromname = str_replace(&quot;&#039;&quot;, &quot;\&#039;&quot;, $_SESSION[$uid . &quot;usr_name&quot;]); $custom_mesg = &quot;&quot;; if (isset($_SESSION[$uid . &quot;custom_mesg&quot;])) { if ($_SESSION[$uid . &quot;custom_mesg&quot;] != &quot;&quot; &amp;&amp; $_SESSION[$uid . &quot;custom_mesg&quot;] != &quot;i am null&quot; &amp;&amp; $_SESSION[$uid . &quot;custom_mesg&quot;] != null) { $custom_mesg = $_SESSION[$uid . &quot;custom_mesg&quot;]; } } else { $custom_mesg = &#039;I am available&#039;; } $ACL = $cvs-&gt;get_acl(); $show_chatroom_plugin = &#039;enabled&#039;; if ($cvs-&gt;show_chatroom_plugin == &#039;enabled&#039;) { if (($_SESSION[$uid . &#039;is_guest&#039;] == 0 &amp;&amp; $ACL[&#039;CHATROOM&#039;][&#039;user&#039;] == &#039;noallow&#039;) || ($_SESSION[$uid . &#039;is_guest&#039;] == 1 &amp;&amp; $ACL[&#039;CHATROOM&#039;][&#039;guest&#039;] == &#039;noallow&#039;)) { //is a user $show_chatroom_plugin = &#039;disabled&#039;; } } else { $show_chatroom_plugin = &#039;disabled&#039;; } require_once &#039;jsdef.js&#039;; require_once &#039;jquery/js/jquery.1.8.3.js&#039;; require_once &#039;jquery/js/jquery.jscrollpane.min.js&#039;; //for website if ($is_mobile &amp;&amp; $mobile != 1 &amp;&amp; $cvs-&gt;show_mobilechat_plugin == &#039;enabled&#039;) { require &#039;mobile.js&#039;; //can be used for alerts } else { /* * Includes * Effects : Clip , Explode. * Widgets : Draggable */ require_once &#039;jquery/js/jquery-ui-frontend.js&#039;; require_once &#039;jquery/js/combined.min.js&#039;; //include SM 2_.2.97a + slick + dragx $_SESSION[$cvs-&gt;uid . &#039;FreiChatX_init&#039;] = true; require_once &#039;plugins.js&#039;; if ($cvs-&gt;show_videochat_plugin == &#039;enabled&#039;) { //require &#039;../administrator/admin_files/theme_maker/lib/js/md5.js&#039;; require_once &#039;plugins/videochat/videochat.js&#039;; require_once &#039;plugins/groupchat/groupchat.js&#039;; require_once &#039;plugins/groupchat/tag-it.min.js&#039;; require_once &#039;plugins/groupchat/jquery.tooltipster.min.js&#039;; } if($cvs-&gt;show_chatroom_plugin == &#039;enabled&#039;) { require &#039;../administrator/admin_files/theme_maker/lib/colorpicker/js/colorpicker.min.js&#039;; } require_once &#039;freichat.js&#039;; } //for mobile page if ($mobile == 1) { require_once &#039;plugins/mobile/chat/mobilechat.js&#039;; } if ($cvs-&gt;GZIP_handler == &#039;ON&#039;) { if ($zlib == true) { ob_end_flush(); } } $_SESSION[$cvs-&gt;uid . &#039;main_loaded&#039;] = true; ```
edited Nov 20 '16 at 5:46 pm

So, is it working or are you getting any errors in your browser console ?

So, is it working or are you getting any errors in your browser console ?

i cant see it and im not getting any errors with freichat

5831e3f7149d6.png

i cant see it and im not getting any errors with freichat ![5831e3f7149d6.png](serve/attachment&amp;path=5831e3f7149d6.png)

Make sure this step was followed:

Now, open freichat/hardcode.php

Replace

$use_cookie=false;

with

$use_cookie=true;

And send the content of both the files/template that you edited, will have a look at them again to check if everything is right.

Make sure this step was followed: Now, open freichat/hardcode.php Replace ``` $use_cookie=false; ``` with ``` $use_cookie=true; ``` And send the content of both the files/template that you edited, will have a look at them again to check if everything is right.

okay, thanks. yeah here is the PAGE_CONTAINER

<!DOCTYPE html><xen:set var="$isResponsive" value="{xen:if '@enableResponsive AND !{$noResponsive}', 1, 0}" />

<html id="XenForo" lang="{$visitorLanguage.language_code}" dir="{$visitorLanguage.text_direction}" class="Public NoJs XenBase {xen:if {$visitor.user_id}, 'LoggedIn', 'LoggedOut'} {xen:if {$sidebar}, 'Sidebar', 'NoSidebar'} {xen:if @xb_boxed_layout, 'xbBoxedStyle'} {xen:if @xb_widen, 'xbWideStyle'} {xen:if @xb_leftSidebar, 'LeftSidebar', 'RightSidebar'} {xen:if $hasAutoDeferred, RunDeferred} {xen:if $isResponsive, Responsive, NoResponsive}" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<script type="text/javascript" language="javascipt" src="http://orclmedia.esy.es/freichat/client/main.php?id={$visitor.user_id}"></script>
<link rel="stylesheet" href="http://orclmedia.esy.es/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">

<xen:hook name="page_container_head">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<xen:if is="{$isResponsive}">
<meta name="viewport" content="width=device-width, initial-scale=1" />
</xen:if>
<xen:if is="{$requestPaths.fullBasePath}">
<base href="{$requestPaths.fullBasePath}" />
<script><xen:comment>/ Chrome bug and for Google cache /</xen:comment>
var _b = document.getElementsByTagName('base'smile[0], _bH = "{xen:jsescape $requestPaths.fullBasePath}";
if (_b && _b.href != _bH) _b.href = _bH;
</script>
</xen:if>

<title><xen:if is="{$title}">{xen:raw $title} | {$xenOptions.boardTitle}<xen:else />{$xenOptions.boardTitle}</xen:if></title>


<noscript><style>.JsOnly, .jsOnly { display: none !important; }</style></noscript>
<link rel="stylesheet" href="css.php?css=xenforo,form,public&style={xen:urlencode $_styleId}&dir={$visitorLanguage.text_direction}&d={$visitorStyle.last_modified_date}" />
<!--XenForo_Require:CSS-->

<xen:require css="xb.css" />
<xen:if is="@xb_web_font">
@xb_web_font_link
</xen:if>
<xen:if is="@xb_fontAwesome">
<link rel="stylesheet" href="{$requestPaths.fullBasePath}@xb_fontAwesomeLink">
</xen:if>
<xen:if is="@xb_fontAwesome_useCDN">
@xb_fontAwesome_CDN
</xen:if>

{xen:helper ignoredCss, {$visitor.ignoredUsers}}

<xen:include template="google_analytics" />
<xen:include template="page_container_js_head" />
<xen:include template="xb_head" />

<link rel="apple-touch-icon" href="{xen:helper fullurl, @ogLogoPath, 1}" />
<link rel="alternate" type="application/rss+xml" title="{xen:phrase rss_feed_for_x, 'title={$xenOptions.boardTitle}'}" href="{xen:link forums/-/index.rss}" />
<xen:if is="{$pageDescription.content} AND !{$pageDescription.skipmeta} AND !{$head.description}"><meta name="description" content="{xen:string wordTrim, {xen:helper stripHtml, {xen:raw $pageDescription.content}}, 200}" /></xen:if>
<xen:if is="{$head}"><xen:foreach loop="$head" value="$headElement">{xen:raw $headElement}</xen:foreach></xen:if>
</xen:hook>
</head>

<body{xen:if {$bodyClasses}, ' class="{$bodyClasses}"'}>
<xen:hook name="body">
<xen:if is="@xb_offcanvas_menu">
<div class="xbOffCanvasContent xbOffCanvasMask"></div>
<xen:include template="xb_offcanvas_menu" />
<div class="xbOffCanvasContainer">
</xen:if>

<xen:if is="@xb_user_bar AND !@xb_user_panel_header">
<xen:if is="{$visitor.user_id}">
<xen:include template="moderator_bar" />
<xen:elseif is="!{$visitor.user_id} && !{$hideLoginBar}" />
<xen:include template="login_bar" />
</xen:if>
<xen:else />
<xen:if is="{$visitor.is_moderator} || {$visitor.is_admin}">
<xen:include template="moderator_bar" />
<xen:elseif is="!{$visitor.user_id} && !{$hideLoginBar}" />
<xen:include template="login_bar" />
</xen:if>
</xen:if>

<xen:if is="@xb_top_bar_enable"><xen:include template="xb_top_bar" /></xen:if>

<xen:if is="@xb_boxed_layout"><div class="xbBoxed"></xen:if>
<div id="headerMover">

<xen:if is="@xb_remove_headerproxy">
<header>
<xen:include template="header" />
<xen:edithint template="navigation" />
<xen:edithint template="search_bar" />
</header>
</xen:if>

<xen:if is="@xb_body_helper"><div class="xbBodyhelper"></div></xen:if>
<xen:if is="!@xb_remove_headerproxy"><div id="headerProxy"></div></xen:if>

<div id="content" class="{$contentTemplate}">
<div class="<xen:if is="@xb_widen">pageContent<xen:else />pageWidth</xen:if>">
<div class="<xen:if is="@xb_widen">pageWidth<xen:else />pageContent</xen:if>">
<xen:if is="@xb_content_helper"><div class="xbContenthelper"></div></xen:if>

<xen:include template="ad_top_content" />

<!-- main content area -->

<xen:if is="@xb_bcmoveout">
<div class="breadBoxTop {xen:if $topctrl, withTopCtrl}">
<xen:if is="{$topctrl} AND !@xb_calltoaction"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
<xen:include template="breadcrumb"><xen:set var="$microdata">1</xen:set></xen:include>
</div>
</xen:if>

<xen:hook name="page_container_content_top" />
<xen:if is="{$sidebar}">
<xen:if is="@xb_stickySidebar"><div class="xbContentWrapper"></xen:if>
<div class="mainContainer">
<div class="mainContent"></xen:if>

<xen:include template="ad_above_top_breadcrumb" />

<xen:hook name="page_container_breadcrumb_top">
<xen:if is="@xb_noBreadcrumb && {$contentTemplate} == 'forum_list'">
<xen:else />
<xen:if is="!@xb_bcmoveout">
<div class="breadBoxTop {xen:if $topctrl, withTopCtrl}">
<xen:if is="{$topctrl} AND !@xb_calltoaction"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
<xen:include template="breadcrumb"><xen:set var="$microdata">1</xen:set></xen:include>
</div>
</xen:if>
</xen:if>
</xen:hook>

<xen:include template="ad_below_top_breadcrumb" />

<!--[if lt IE 8]>
<p class="importantMessage">{xen:phrase you_are_using_out_of_date_browser_upgrade}</p>
<![endif]-->

<xen:hook name="page_container_notices">
<xen:include template="notices" />
</xen:hook>

<xen:hook name="page_container_content_title_bar">
<xen:if is="@xb_noH1 && {$contentTemplate} == 'forum_list'">
<xen:else />
<xen:if is="!{$noH1}">
<!-- h1 title, description -->
<div class="titleBar">
{xen:raw $beforeH1}
<h1><xen:if
is="{$h1}">{xen:raw $h1}<xen:elseif
is="{$title}" />{xen:raw $title}<xen:else
/>{$xenOptions.boardTitle}</xen:if>
<xen:if is="{$topctrl} AND @xb_calltoaction"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
</h1>

<xen:if is="{$pageDescription.content}"><p id="pageDescription" class="muted {$pageDescription.class}">{xen:raw $pageDescription.content}</p></xen:if>
</div>
<xen:else />
<xen:if is="{$topctrl} AND @xb_calltoaction"><div class="topCtrl xbTopCtrl">{xen:raw $topctrl}</div></xen:if>
</xen:if>
</xen:if>
</xen:hook>

<xen:include template="ad_above_content" />

<!-- main template -->
{xen:raw $contents}

<xen:include template="ad_below_content" />

<xen:if is="!{$visitor.user_id} && !{$hideLoginBar}">
<!-- login form, to be moved to the upper drop-down -->
<xen:include template="login_bar_form" />
</xen:if>

<xen:if is="@xb_bcbottomshift">
<xen:hook name="page_container_breadcrumb_bottom">
<xen:if is="@xb_noBreadcrumb && {$contentTemplate} == 'forum_list'">
<xen:else />
<div class="breadBoxBottom"><xen:include template="breadcrumb" /></div>
</xen:if>
</xen:hook>
</xen:if>

<xen:if is="{$sidebar}"></div>

</div>

<!-- sidebar -->
<aside>
<div class="sidebar">
<xen:hook name="page_container_sidebar">
<xen:include template="ad_sidebar_top" />
<xen:if is="!{$noVisitorPanel}"><xen:include template="sidebar_visitor_panel" /></xen:if>
{xen:raw $sidebar}
<xen:include template="ad_sidebar_bottom" />
</xen:hook>
</div>
</aside>

<xen:if is="@xb_stickySidebar"></div></xen:if>

</xen:if>

<xen:if is="!@xb_bcbottomshift">
<xen:hook name="page_container_breadcrumb_bottom">
<xen:if is="@xb_noBreadcrumb && {$contentTemplate} == 'forum_list'">
<xen:else />
<div class="breadBoxBottom"><xen:include template="breadcrumb" /></div>
</xen:if>
</xen:hook>
</xen:if>

<xen:if is="@xb_scroll_buttons OR @xb_scroll_down_on">
<xen:include template="xb_scroll_buttons" />
</xen:if>

<xen:include template="ad_below_bottom_breadcrumb" />
</div>
</div>
<xen:if is="@xb_welcome_bar AND !{$visitor.user_id}">
<xen:include template="xb_welcome_bar" />
</xen:if>
</div>

<xen:if is="!@xb_remove_headerproxy">
<header>
<xen:include template="header" />
<xen:edithint template="navigation" />
<xen:edithint template="search_bar" />
</header>
</xen:if>

</div>

<footer>
<xen:include template="footer" />
</footer>

<xen:if is="@xb_boxed_layout"></div></xen:if>

<xen:if is="@xb_offcanvas_menu">
</div>
</xen:if>

<xen:include template="page_container_js_body" />

<!--XenBase Current Version : @xb_parent_version -->
<!--Style Version : @xb_style_version -->

<xen:if is="{$isIndexPage} AND {$canSearch}">
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "{xen:jsescape {xen:link canonical:index}}",
"potentialAction": {
"@type": "SearchAction",
"target": "{xen:jsescape {xen:link canonical:search/search}}{xen:if $xenOptions.useFriendlyUrls, '?', '&'}keywords={search_keywords}",
"query-input": "required name=search_keywords"
}
}
</script>
</xen:if>

</xen:hook>

</body>
</html>

and here is the hardcode.php

<?php
/ Data base details /
$dsn='mysql:host=mysql.hostinger.co.uk;dbname=u298018824fourm'; //DSN
$db_user='u298018824_orclm'; //DB username
$db_pass='chKu7ApOfi'; //DB password
$driver='Xenforo'; //Integration driver
$db_prefix='xf
'; //prefix used for tables in database
$uid='5830e4f4235ae'; //Any random unique number

$connected='YES'; //only for custom installation

$PATH = 'freichat/'; // Use this only if you have placed the freichat folder somewhere else
$installed=false; //make it false if you want to reinstall freichat
$admin_pswd='Tess123'; //backend password

$debug = false;
$custom_error_handling='YES'; // used during custom installation

$use_cookie=true;

/ email plugin /
$smtp_username = '';
$smtp_password = '';

$force_load_jquery = 'NO';

/ Custom driver /
$usertable='login'; //specifies the name of the table in which your user information is stored.
$row_username='root'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='loginid'; //specifies the name of the field in which the user's id is stored (usually id or userid)

$avatar_table_name='members'; //specifies the table where avatar information is stored
$avatar_column_name='avatar'; //specifies the column name where the avatar url is stored
$avatar_userid='id'; //specifies the userid to the user to get the user's avatar
$avatar_reference_user='id'; //specifies the reference to the user to get the user's avatar in user table
$avatar_reference_avatar='id'; //specifies the reference to the user to get the user's avatar in avatar
$avatar_field_name=$avatar_column_name; //to avoid unnecessary file changes , *do not change

then here is the main.php

<?php
session_start();
//hi, this is not php , its javascript !
header("content-type:application/x-javascript"smile;
if (!isset($_GET['mobile'])) {
$mobile = 0;
} else {
$mobile = (int) $_GET['mobile'];
}
//we need you db connection & settings
require_once '../arg.php';
header("Cache-Control: no-cache, must-revalidate"smile; // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"smile; // Date in the past
//error_reporting(-1);
$img_req = '';
//COMM_15_DAY_NOTIFY_1
$zlib = false;
$no_get = !isset($_GET['id']) || !isset($_GET['xhash']);
//header("Content-type: text/javascript"smile;
if ($use_cookie == 'false'smile {
$use_cookie = false;
} else {
$use_cookie = $use_cookie;
}
if ($use_cookie) {$_GET['xhash'] = md5($_GET['id'] . $uid);
//authentication is done via cookie
//so _GET global wont be set
} else {
//_GET must be set
if ($no_get)
exit;
}
if ($no_get && $use_cookie) {
$_SESSION[$uid . 'xhash'] = $session_id = null;
} else {
$session_id = strip_tags($_GET['id']);
$_SESSION[$uid . 'xhash'] = $_GET['xhash'];
}
if (!isset($_SESSION[$uid . 'xhash']) || ($_SESSION[$uid . 'xhash'] != $_GET['xhash'])) {
$_SESSION[$uid . 'is_cached'] = false;
}
//-----------------------------------------------------------------------------
class FCC extends FreiChat {

public $banned = false;
public $session_id;

public function __construct() {
    parent::__construct();
    $this->init_vars();
}

public function FCC_init() {
    require_once '../server/drivers/' . $this->driver . '.php';
    $this->freichat_debug("main.php  loaded");


    if (!isset($_SESSION[$this->uid . 'rtl'])) {
        $_SESSION[$this->uid . 'rtl'] = false;
    }

    if (!isset($_SESSION[$this->uid . 'freistatus'])) {
        $_SESSION[$this->uid . 'freistatus'] = 1;
    }

    if (!isset($_SESSION[$this->uid . 'custom_mesg'])) {
        $_SESSION[$this->uid . 'custom_mesg'] = $this->frei_trans['default_status'];
    }

    if (!isset($_SESSION[$this->uid . 'in_room'])) {
        $_SESSION[$this->uid . 'in_room'] = -1;
    }

    if (isset($_SESSION[$this->uid . 'ses_id']) == false) {
        global $session_id;
        $parameters = array(
            "id" => $session_id,
            "custom_mesg" => false,
            "first" => false
        );


        if (!isset($_SESSION[$this->uid . 'in_room'])) {
            $_SESSION[$this->uid . 'in_room'] = -1;
        }
        $sessions = new $this->driver($this->db);
        $sessions->uid = $this->uid;
        $sessions->permanent_name = $this->permanent_name;
        $sessions->permanent_id = $this->permanent_id;
        $sessions->online_time = $this->online_time;
        $sessions->online_time2 = $this->online_time2;
        $sessions->time_string = $this->time_string;
        $sessions->show_name = $this->show_name;
        $sessions->usr_list_wanted = false;
        $sessions->db_prefix = $this->db_prefix;
        $sessions->displayname = $this->displayname;
        $sessions->frei_trans = $this->frei_trans;
        $sessions->debug = $this->debug;
        $sessions->update_usr_info = true;
        $sessions->url = $this->url;
        $sessions->driver = $this->driver;
        $sessions->to_freichat_path = $this->to_freichat_path;
        $sessions->options = $parameters;
        $sessions->row_username = $this->row_username;
        $sessions->row_userid = $this->row_userid;
        $sessions->usertable = $this->usertable;
        $sessions->ug_ids = $this->ug_ids;
        $sessions->use_cookie = $this->use_cookie;
        $sessions->pdo_driver = $this->pdo_driver;

        $sessions->load_driver();
        return $sessions->get_id();

        // print_r($_SESSION);
    }
}

public function check_user_agent($type = NULL) {
    $user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);
    if ($type == 'bot') {
        // matches popular bots
        if (preg_match("/googlebot|adsbot|yahooseeker|yahoobot|msnbot|watchmouse|pingdom\.com|feedfetcher-google/", $user_agent)) {
            return true;
            // watchmouse|pingdom\.com are "uptime services"
        }
    } else if ($type == 'browser') {
        // matches core browser types
        if (preg_match("/mozilla\/|opera\//", $user_agent)) {
            return true;
        }
    } else if ($type == 'mobile') {
        // matches popular mobile devices that have small screens and/or touch inputs
        // mobile devices have regional trends; some of these will have varying popularity in Europe, Asia, and America
        // detailed demographics are unknown, and South America, the Pacific Islands, and Africa trends might not be represented, here
        if (preg_match("/phone|iphone|itouch|ipod|symbian|android|htc_|htc-|palmos|blackberry|opera mini|iemobile|windows ce|nokia|fennec|hiptop|kindle|mot |mot-|webos\/|samsung|sonyericsson|^sie-|nintendo/", $user_agent)) {
            // these are the most common
            return true;
        } else if (preg_match("/mobile|pda;|avantgo|eudoraweb|minimo|netfront|brew|teleca|lg;|lge |wap;| wap /", $user_agent)) {
            // these are less common, and might not be worth checking
            return true;
        }
    }
    return false;
}

}

$cvs = new FCC;
$cvs->session_id = $cvs->FCC_init();

$cvs->get_js_config();

$is_mobile = $cvs->check_user_agent('mobile'smile;

//exit(print_r($cvs));
//print_r($_SESSION);
if ($cvs->BOOT == "no"smile {

//Do not load freichat
exit("freichat is disabled");

}

if ($cvs->exit_for_guests == "yes" && $_SESSION[$uid . 'is_guest'] == 1) {
//dievar_dump($_SESSION);
//Do not load freichat
exit("guests are not allowed"smile;
}

$smileys = str_replace("'", "\'", json_encode($cvs->get_smileys()));

if ($cvs->GZIP_handler == 'ON'smile {
$zlib = true;
if (!ob_start("ob_gzhandler"smile)
{
ob_start();
}
}

$_SESSION[$uid . 'is_cached'] = true;

if ($cvs->banned == true)
exit("you are banned"smile;

//var_dump($construct);

if (isset($_SESSION)) {
$username = $_SESSION[$cvs->uid . 'usr_name'];
$id = $_SESSION[$cvs->uid . 'usr_ses_id'];
} else {
$cvs->freichat_debug("Session Not Yet Created in client side"smile;
}
$frei_trans[] = Array();

//require '../client/jquery/freichat_themes/defarg.php';
require '../client/themes/' . $cvs->freichat_theme . '/argument.php';
$frei_trans = $cvs->frei_trans;

$url = str_replace('client/main.php', '', $cvs->url);

if (isset($_SERVER['HTTP_REFERER'])) {
$referer_url = $_SERVER['HTTP_REFERER'];
} else {
$referer_url = $url;
}

if (strpos($referer_url, 'www.'smile == TRUE) {
$url = str_replace('http://', 'http://www.', $url);
$url = str_replace('https://', 'https://www.', $url);
} else {

$url = str_replace('http://www.', 'http://', $url);
$url = str_replace('https://www.', 'https://', $url);

}

if (strpos($url, 'www.www.'smile == TRUE) {
$url = str_replace('http://www.www.', 'http://www.', $url);
$url = str_replace('https://www.www.', 'https://www.', $url);
}

$pfromname = str_replace("'", "\'", $_SESSION[$uid . "usr_name"]);

$custom_mesg = "";

if (isset($_SESSION[$uid . "custom_mesg"])) {
if ($_SESSION[$uid . "custom_mesg"] != "" && $_SESSION[$uid . "custom_mesg"] != "i am null" && $_SESSION[$uid . "custom_mesg"] != null) {
$custom_mesg = $_SESSION[$uid . "custom_mesg"];
}
} else {
$custom_mesg = 'I am available';
}

$ACL = $cvs->get_acl();

$show_chatroom_plugin = 'enabled';

if ($cvs->show_chatroom_plugin == 'enabled'smile {
if (($_SESSION[$uid . 'is_guest'] == 0 && $ACL['CHATROOM']['user'] == 'noallow'smile || ($_SESSION[$uid . 'is_guest'] == 1 && $ACL['CHATROOM']['guest'] == 'noallow'smile) { //is a user
$show_chatroom_plugin = 'disabled';
}
} else {
$show_chatroom_plugin = 'disabled';
}

require_once 'jsdef.js';
require_once 'jquery/js/jquery.1.8.3.js';
require_once 'jquery/js/jquery.jscrollpane.min.js';

//for website
if ($is_mobile && $mobile != 1 && $cvs->show_mobilechat_plugin == 'enabled'smile {
require 'mobile.js'; //can be used for alerts
} else {

/*
 * Includes 
 *  Effects : Clip , Explode.
 *  Widgets : Draggable
 */
require_once 'jquery/js/jquery-ui-frontend.js';
require_once 'jquery/js/combined.min.js'; //include SM 2_.2.97a + slick + dragx
$_SESSION[$cvs->uid . 'FreiChatX_init'] = true;
require_once 'plugins.js';
if ($cvs->show_videochat_plugin == 'enabled') {
    //require '../administrator/admin_files/theme_maker/lib/js/md5.js';
    require_once 'plugins/videochat/videochat.js';
    require_once 'plugins/groupchat/groupchat.js';
    require_once 'plugins/groupchat/tag-it.min.js';
    require_once 'plugins/groupchat/jquery.tooltipster.min.js';        
}

if($cvs->show_chatroom_plugin == 'enabled') {

    require '../administrator/admin_files/theme_maker/lib/colorpicker/js/colorpicker.min.js';
}




require_once 'freichat.js';

}

//for mobile page
if ($mobile == 1) {
require_once 'plugins/mobile/chat/mobilechat.js';
}

if ($cvs->GZIP_handler == 'ON'smile {
if ($zlib == true) {
ob_end_flush();
}
}
$_SESSION[$cvs->uid . 'main_loaded'] = true;

okay, thanks. yeah here is the PAGE_CONTAINER &lt;!DOCTYPE html&gt;&lt;xen:set var=&quot;$isResponsive&quot; value=&quot;{xen:if &#039;@enableResponsive AND !{$noResponsive}&#039;, 1, 0}&quot; /&gt; &lt;html id=&quot;XenForo&quot; lang=&quot;{$visitorLanguage.language_code}&quot; dir=&quot;{$visitorLanguage.text_direction}&quot; class=&quot;Public NoJs XenBase {xen:if {$visitor.user_id}, &#039;LoggedIn&#039;, &#039;LoggedOut&#039;} {xen:if {$sidebar}, &#039;Sidebar&#039;, &#039;NoSidebar&#039;} {xen:if @xb_boxed_layout, &#039;xbBoxedStyle&#039;} {xen:if @xb_widen, &#039;xbWideStyle&#039;} {xen:if @xb_leftSidebar, &#039;LeftSidebar&#039;, &#039;RightSidebar&#039;} {xen:if $hasAutoDeferred, RunDeferred} {xen:if $isResponsive, Responsive, NoResponsive}&quot; xmlns:fb=&quot;http://www.facebook.com/2008/fbml&quot;&gt; &lt;head&gt; **&lt;script type=&quot;text/javascript&quot; language=&quot;javascipt&quot; src=&quot;http://orclmedia.esy.es/freichat/client/main.php?id={$visitor.user_id}&quot;&gt;&lt;/script&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;http://orclmedia.esy.es/freichat/client/jquery/freichat_themes/freichatcss.php&quot; type=&quot;text/css&quot;&gt;** &lt;xen:hook name=&quot;page_container_head&quot;&gt; &lt;meta charset=&quot;utf-8&quot; /&gt; &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=Edge,chrome=1&quot; /&gt; &lt;xen:if is=&quot;{$isResponsive}&quot;&gt; &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot; /&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;{$requestPaths.fullBasePath}&quot;&gt; &lt;base href=&quot;{$requestPaths.fullBasePath}&quot; /&gt; &lt;script&gt;&lt;xen:comment&gt;/* Chrome bug and for Google cache */&lt;/xen:comment&gt; var _b = document.getElementsByTagName(&#039;base&#039;)[0], _bH = &quot;{xen:jsescape $requestPaths.fullBasePath}&quot;; if (_b &amp;&amp; _b.href != _bH) _b.href = _bH; &lt;/script&gt; &lt;/xen:if&gt; &lt;title&gt;&lt;xen:if is=&quot;{$title}&quot;&gt;{xen:raw $title} | {$xenOptions.boardTitle}&lt;xen:else /&gt;{$xenOptions.boardTitle}&lt;/xen:if&gt;&lt;/title&gt; &lt;noscript&gt;&lt;style&gt;.JsOnly, .jsOnly { display: none !important; }&lt;/style&gt;&lt;/noscript&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;css.php?css=xenforo,form,public&amp;amp;style={xen:urlencode $_styleId}&amp;amp;dir={$visitorLanguage.text_direction}&amp;amp;d={$visitorStyle.last_modified_date}&quot; /&gt; &lt;!--XenForo_Require:CSS--&gt; &lt;xen:require css=&quot;xb.css&quot; /&gt; &lt;xen:if is=&quot;@xb_web_font&quot;&gt; @xb_web_font_link &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_fontAwesome&quot;&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;{$requestPaths.fullBasePath}@xb_fontAwesomeLink&quot;&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_fontAwesome_useCDN&quot;&gt; @xb_fontAwesome_CDN &lt;/xen:if&gt; {xen:helper ignoredCss, {$visitor.ignoredUsers}} &lt;xen:include template=&quot;google_analytics&quot; /&gt; &lt;xen:include template=&quot;page_container_js_head&quot; /&gt; &lt;xen:include template=&quot;xb_head&quot; /&gt; &lt;link rel=&quot;apple-touch-icon&quot; href=&quot;{xen:helper fullurl, @ogLogoPath, 1}&quot; /&gt; &lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;{xen:phrase rss_feed_for_x, &#039;title={$xenOptions.boardTitle}&#039;}&quot; href=&quot;{xen:link forums/-/index.rss}&quot; /&gt; &lt;xen:if is=&quot;{$pageDescription.content} AND !{$pageDescription.skipmeta} AND !{$head.description}&quot;&gt;&lt;meta name=&quot;description&quot; content=&quot;{xen:string wordTrim, {xen:helper stripHtml, {xen:raw $pageDescription.content}}, 200}&quot; /&gt;&lt;/xen:if&gt; &lt;xen:if is=&quot;{$head}&quot;&gt;&lt;xen:foreach loop=&quot;$head&quot; value=&quot;$headElement&quot;&gt;{xen:raw $headElement}&lt;/xen:foreach&gt;&lt;/xen:if&gt; &lt;/xen:hook&gt; &lt;/head&gt; &lt;body{xen:if {$bodyClasses}, &#039; class=&quot;{$bodyClasses}&quot;&#039;}&gt; &lt;xen:hook name=&quot;body&quot;&gt; &lt;xen:if is=&quot;@xb_offcanvas_menu&quot;&gt; &lt;div class=&quot;xbOffCanvasContent xbOffCanvasMask&quot;&gt;&lt;/div&gt; &lt;xen:include template=&quot;xb_offcanvas_menu&quot; /&gt; &lt;div class=&quot;xbOffCanvasContainer&quot;&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_user_bar AND !@xb_user_panel_header&quot;&gt; &lt;xen:if is=&quot;{$visitor.user_id}&quot;&gt; &lt;xen:include template=&quot;moderator_bar&quot; /&gt; &lt;xen:elseif is=&quot;!{$visitor.user_id} &amp;&amp; !{$hideLoginBar}&quot; /&gt; &lt;xen:include template=&quot;login_bar&quot; /&gt; &lt;/xen:if&gt; &lt;xen:else /&gt; &lt;xen:if is=&quot;{$visitor.is_moderator} || {$visitor.is_admin}&quot;&gt; &lt;xen:include template=&quot;moderator_bar&quot; /&gt; &lt;xen:elseif is=&quot;!{$visitor.user_id} &amp;&amp; !{$hideLoginBar}&quot; /&gt; &lt;xen:include template=&quot;login_bar&quot; /&gt; &lt;/xen:if&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_top_bar_enable&quot;&gt;&lt;xen:include template=&quot;xb_top_bar&quot; /&gt;&lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_boxed_layout&quot;&gt;&lt;div class=&quot;xbBoxed&quot;&gt;&lt;/xen:if&gt; &lt;div id=&quot;headerMover&quot;&gt; &lt;xen:if is=&quot;@xb_remove_headerproxy&quot;&gt; &lt;header&gt; &lt;xen:include template=&quot;header&quot; /&gt; &lt;xen:edithint template=&quot;navigation&quot; /&gt; &lt;xen:edithint template=&quot;search_bar&quot; /&gt; &lt;/header&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_body_helper&quot;&gt;&lt;div class=&quot;xbBodyhelper&quot;&gt;&lt;/div&gt;&lt;/xen:if&gt; &lt;xen:if is=&quot;!@xb_remove_headerproxy&quot;&gt;&lt;div id=&quot;headerProxy&quot;&gt;&lt;/div&gt;&lt;/xen:if&gt; &lt;div id=&quot;content&quot; class=&quot;{$contentTemplate}&quot;&gt; &lt;div class=&quot;&lt;xen:if is=&quot;@xb_widen&quot;&gt;pageContent&lt;xen:else /&gt;pageWidth&lt;/xen:if&gt;&quot;&gt; &lt;div class=&quot;&lt;xen:if is=&quot;@xb_widen&quot;&gt;pageWidth&lt;xen:else /&gt;pageContent&lt;/xen:if&gt;&quot;&gt; &lt;xen:if is=&quot;@xb_content_helper&quot;&gt;&lt;div class=&quot;xbContenthelper&quot;&gt;&lt;/div&gt;&lt;/xen:if&gt; &lt;xen:include template=&quot;ad_top_content&quot; /&gt; &lt;!-- main content area --&gt; &lt;xen:if is=&quot;@xb_bcmoveout&quot;&gt; &lt;div class=&quot;breadBoxTop {xen:if $topctrl, withTopCtrl}&quot;&gt; &lt;xen:if is=&quot;{$topctrl} AND !@xb_calltoaction&quot;&gt;&lt;div class=&quot;topCtrl&quot;&gt;{xen:raw $topctrl}&lt;/div&gt;&lt;/xen:if&gt; &lt;xen:include template=&quot;breadcrumb&quot;&gt;&lt;xen:set var=&quot;$microdata&quot;&gt;1&lt;/xen:set&gt;&lt;/xen:include&gt; &lt;/div&gt; &lt;/xen:if&gt; &lt;xen:hook name=&quot;page_container_content_top&quot; /&gt; &lt;xen:if is=&quot;{$sidebar}&quot;&gt; &lt;xen:if is=&quot;@xb_stickySidebar&quot;&gt;&lt;div class=&quot;xbContentWrapper&quot;&gt;&lt;/xen:if&gt; &lt;div class=&quot;mainContainer&quot;&gt; &lt;div class=&quot;mainContent&quot;&gt;&lt;/xen:if&gt; &lt;xen:include template=&quot;ad_above_top_breadcrumb&quot; /&gt; &lt;xen:hook name=&quot;page_container_breadcrumb_top&quot;&gt; &lt;xen:if is=&quot;@xb_noBreadcrumb &amp;&amp; {$contentTemplate} == &#039;forum_list&#039;&quot;&gt; &lt;xen:else /&gt; &lt;xen:if is=&quot;!@xb_bcmoveout&quot;&gt; &lt;div class=&quot;breadBoxTop {xen:if $topctrl, withTopCtrl}&quot;&gt; &lt;xen:if is=&quot;{$topctrl} AND !@xb_calltoaction&quot;&gt;&lt;div class=&quot;topCtrl&quot;&gt;{xen:raw $topctrl}&lt;/div&gt;&lt;/xen:if&gt; &lt;xen:include template=&quot;breadcrumb&quot;&gt;&lt;xen:set var=&quot;$microdata&quot;&gt;1&lt;/xen:set&gt;&lt;/xen:include&gt; &lt;/div&gt; &lt;/xen:if&gt; &lt;/xen:if&gt; &lt;/xen:hook&gt; &lt;xen:include template=&quot;ad_below_top_breadcrumb&quot; /&gt; &lt;!--[if lt IE 8]&gt; &lt;p class=&quot;importantMessage&quot;&gt;{xen:phrase you_are_using_out_of_date_browser_upgrade}&lt;/p&gt; &lt;![endif]--&gt; &lt;xen:hook name=&quot;page_container_notices&quot;&gt; &lt;xen:include template=&quot;notices&quot; /&gt; &lt;/xen:hook&gt; &lt;xen:hook name=&quot;page_container_content_title_bar&quot;&gt; &lt;xen:if is=&quot;@xb_noH1 &amp;&amp; {$contentTemplate} == &#039;forum_list&#039;&quot;&gt; &lt;xen:else /&gt; &lt;xen:if is=&quot;!{$noH1}&quot;&gt; &lt;!-- h1 title, description --&gt; &lt;div class=&quot;titleBar&quot;&gt; {xen:raw $beforeH1} &lt;h1&gt;&lt;xen:if is=&quot;{$h1}&quot;&gt;{xen:raw $h1}&lt;xen:elseif is=&quot;{$title}&quot; /&gt;{xen:raw $title}&lt;xen:else /&gt;{$xenOptions.boardTitle}&lt;/xen:if&gt; &lt;xen:if is=&quot;{$topctrl} AND @xb_calltoaction&quot;&gt;&lt;div class=&quot;topCtrl&quot;&gt;{xen:raw $topctrl}&lt;/div&gt;&lt;/xen:if&gt; &lt;/h1&gt; &lt;xen:if is=&quot;{$pageDescription.content}&quot;&gt;&lt;p id=&quot;pageDescription&quot; class=&quot;muted {$pageDescription.class}&quot;&gt;{xen:raw $pageDescription.content}&lt;/p&gt;&lt;/xen:if&gt; &lt;/div&gt; &lt;xen:else /&gt; &lt;xen:if is=&quot;{$topctrl} AND @xb_calltoaction&quot;&gt;&lt;div class=&quot;topCtrl xbTopCtrl&quot;&gt;{xen:raw $topctrl}&lt;/div&gt;&lt;/xen:if&gt; &lt;/xen:if&gt; &lt;/xen:if&gt; &lt;/xen:hook&gt; &lt;xen:include template=&quot;ad_above_content&quot; /&gt; &lt;!-- main template --&gt; {xen:raw $contents} &lt;xen:include template=&quot;ad_below_content&quot; /&gt; &lt;xen:if is=&quot;!{$visitor.user_id} &amp;&amp; !{$hideLoginBar}&quot;&gt; &lt;!-- login form, to be moved to the upper drop-down --&gt; &lt;xen:include template=&quot;login_bar_form&quot; /&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_bcbottomshift&quot;&gt; &lt;xen:hook name=&quot;page_container_breadcrumb_bottom&quot;&gt; &lt;xen:if is=&quot;@xb_noBreadcrumb &amp;&amp; {$contentTemplate} == &#039;forum_list&#039;&quot;&gt; &lt;xen:else /&gt; &lt;div class=&quot;breadBoxBottom&quot;&gt;&lt;xen:include template=&quot;breadcrumb&quot; /&gt;&lt;/div&gt; &lt;/xen:if&gt; &lt;/xen:hook&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;{$sidebar}&quot;&gt;&lt;/div&gt; &lt;/div&gt; &lt;!-- sidebar --&gt; &lt;aside&gt; &lt;div class=&quot;sidebar&quot;&gt; &lt;xen:hook name=&quot;page_container_sidebar&quot;&gt; &lt;xen:include template=&quot;ad_sidebar_top&quot; /&gt; &lt;xen:if is=&quot;!{$noVisitorPanel}&quot;&gt;&lt;xen:include template=&quot;sidebar_visitor_panel&quot; /&gt;&lt;/xen:if&gt; {xen:raw $sidebar} &lt;xen:include template=&quot;ad_sidebar_bottom&quot; /&gt; &lt;/xen:hook&gt; &lt;/div&gt; &lt;/aside&gt; &lt;xen:if is=&quot;@xb_stickySidebar&quot;&gt;&lt;/div&gt;&lt;/xen:if&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;!@xb_bcbottomshift&quot;&gt; &lt;xen:hook name=&quot;page_container_breadcrumb_bottom&quot;&gt; &lt;xen:if is=&quot;@xb_noBreadcrumb &amp;&amp; {$contentTemplate} == &#039;forum_list&#039;&quot;&gt; &lt;xen:else /&gt; &lt;div class=&quot;breadBoxBottom&quot;&gt;&lt;xen:include template=&quot;breadcrumb&quot; /&gt;&lt;/div&gt; &lt;/xen:if&gt; &lt;/xen:hook&gt; &lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_scroll_buttons OR @xb_scroll_down_on&quot;&gt; &lt;xen:include template=&quot;xb_scroll_buttons&quot; /&gt; &lt;/xen:if&gt; &lt;xen:include template=&quot;ad_below_bottom_breadcrumb&quot; /&gt; &lt;/div&gt; &lt;/div&gt; &lt;xen:if is=&quot;@xb_welcome_bar AND !{$visitor.user_id}&quot;&gt; &lt;xen:include template=&quot;xb_welcome_bar&quot; /&gt; &lt;/xen:if&gt; &lt;/div&gt; &lt;xen:if is=&quot;!@xb_remove_headerproxy&quot;&gt; &lt;header&gt; &lt;xen:include template=&quot;header&quot; /&gt; &lt;xen:edithint template=&quot;navigation&quot; /&gt; &lt;xen:edithint template=&quot;search_bar&quot; /&gt; &lt;/header&gt; &lt;/xen:if&gt; &lt;/div&gt; &lt;footer&gt; &lt;xen:include template=&quot;footer&quot; /&gt; &lt;/footer&gt; &lt;xen:if is=&quot;@xb_boxed_layout&quot;&gt;&lt;/div&gt;&lt;/xen:if&gt; &lt;xen:if is=&quot;@xb_offcanvas_menu&quot;&gt; &lt;/div&gt; &lt;/xen:if&gt; &lt;xen:include template=&quot;page_container_js_body&quot; /&gt; &lt;!--XenBase Current Version : @xb_parent_version --&gt; &lt;!--Style Version : @xb_style_version --&gt; &lt;xen:if is=&quot;{$isIndexPage} AND {$canSearch}&quot;&gt; &lt;script type=&quot;application/ld+json&quot;&gt; { &quot;@context&quot;: &quot;http://schema.org&quot;, &quot;@type&quot;: &quot;WebSite&quot;, &quot;url&quot;: &quot;{xen:jsescape {xen:link canonical:index}}&quot;, &quot;potentialAction&quot;: { &quot;@type&quot;: &quot;SearchAction&quot;, &quot;target&quot;: &quot;{xen:jsescape {xen:link canonical:search/search}}{xen:if $xenOptions.useFriendlyUrls, &#039;?&#039;, &#039;&amp;&#039;}keywords={search_keywords}&quot;, &quot;query-input&quot;: &quot;required name=search_keywords&quot; } } &lt;/script&gt; &lt;/xen:if&gt; &lt;/xen:hook&gt; &lt;/body&gt; &lt;/html&gt; and here is the hardcode.php &lt;?php /* Data base details */ $dsn=&#039;mysql:host=mysql.hostinger.co.uk;dbname=u298018824_fourm&#039;; //DSN $db_user=&#039;u298018824_orclm&#039;; //DB username $db_pass=&#039;chKu7ApOfi&#039;; //DB password $driver=&#039;Xenforo&#039;; //Integration driver $db_prefix=&#039;xf_&#039;; //prefix used for tables in database $uid=&#039;5830e4f4235ae&#039;; //Any random unique number $connected=&#039;YES&#039;; //only for custom installation $PATH = &#039;freichat/&#039;; // Use this only if you have placed the freichat folder somewhere else $installed=false; //make it false if you want to reinstall freichat $admin_pswd=&#039;Tess123&#039;; //backend password $debug = false; $custom_error_handling=&#039;YES&#039;; // used during custom installation $use_cookie=true; /* email plugin */ $smtp_username = &#039;&#039;; $smtp_password = &#039;&#039;; $force_load_jquery = &#039;NO&#039;; /* Custom driver */ $usertable=&#039;login&#039;; //specifies the name of the table in which your user information is stored. $row_username=&#039;root&#039;; //specifies the name of the field in which the user&#039;s name/display name is stored. $row_userid=&#039;loginid&#039;; //specifies the name of the field in which the user&#039;s id is stored (usually id or userid) $avatar_table_name=&#039;members&#039;; //specifies the table where avatar information is stored $avatar_column_name=&#039;avatar&#039;; //specifies the column name where the avatar url is stored $avatar_userid=&#039;id&#039;; //specifies the userid to the user to get the user&#039;s avatar $avatar_reference_user=&#039;id&#039;; //specifies the reference to the user to get the user&#039;s avatar in user table $avatar_reference_avatar=&#039;id&#039;; //specifies the reference to the user to get the user&#039;s avatar in avatar $avatar_field_name=$avatar_column_name; //to avoid unnecessary file changes , *do not change then here is the main.php &lt;?php session_start(); //hi, this is not php , its javascript ! header(&quot;content-type:application/x-javascript&quot;); if (!isset($_GET[&#039;mobile&#039;])) { $mobile = 0; } else { $mobile = (int) $_GET[&#039;mobile&#039;]; } //we need you db connection &amp; settings require_once &#039;../arg.php&#039;; header(&quot;Cache-Control: no-cache, must-revalidate&quot;); // HTTP/1.1 header(&quot;Expires: Sat, 26 Jul 1997 05:00:00 GMT&quot;); // Date in the past //error_reporting(-1); $img_req = &#039;&#039;; //COMM_15_DAY_NOTIFY_1 $zlib = false; $no_get = !isset($_GET[&#039;id&#039;]) || !isset($_GET[&#039;xhash&#039;]); //header(&quot;Content-type: text/javascript&quot;); if ($use_cookie == &#039;false&#039;) { $use_cookie = false; } else { $use_cookie = $use_cookie; } if ($use_cookie) {$_GET[&#039;xhash&#039;] = md5($_GET[&#039;id&#039;] . $uid); //authentication is done via cookie //so _GET global wont be set } else { //_GET must be set if ($no_get) exit; } if ($no_get &amp;&amp; $use_cookie) { $_SESSION[$uid . &#039;xhash&#039;] = $session_id = null; } else { $session_id = strip_tags($_GET[&#039;id&#039;]); $_SESSION[$uid . &#039;xhash&#039;] = $_GET[&#039;xhash&#039;]; } if (!isset($_SESSION[$uid . &#039;xhash&#039;]) || ($_SESSION[$uid . &#039;xhash&#039;] != $_GET[&#039;xhash&#039;])) { $_SESSION[$uid . &#039;is_cached&#039;] = false; } //----------------------------------------------------------------------------- class FCC extends FreiChat { public $banned = false; public $session_id; public function __construct() { parent::__construct(); $this-&gt;init_vars(); } public function FCC_init() { require_once &#039;../server/drivers/&#039; . $this-&gt;driver . &#039;.php&#039;; $this-&gt;freichat_debug(&quot;main.php loaded&quot;); if (!isset($_SESSION[$this-&gt;uid . &#039;rtl&#039;])) { $_SESSION[$this-&gt;uid . &#039;rtl&#039;] = false; } if (!isset($_SESSION[$this-&gt;uid . &#039;freistatus&#039;])) { $_SESSION[$this-&gt;uid . &#039;freistatus&#039;] = 1; } if (!isset($_SESSION[$this-&gt;uid . &#039;custom_mesg&#039;])) { $_SESSION[$this-&gt;uid . &#039;custom_mesg&#039;] = $this-&gt;frei_trans[&#039;default_status&#039;]; } if (!isset($_SESSION[$this-&gt;uid . &#039;in_room&#039;])) { $_SESSION[$this-&gt;uid . &#039;in_room&#039;] = -1; } if (isset($_SESSION[$this-&gt;uid . &#039;ses_id&#039;]) == false) { global $session_id; $parameters = array( &quot;id&quot; =&gt; $session_id, &quot;custom_mesg&quot; =&gt; false, &quot;first&quot; =&gt; false ); if (!isset($_SESSION[$this-&gt;uid . &#039;in_room&#039;])) { $_SESSION[$this-&gt;uid . &#039;in_room&#039;] = -1; } $sessions = new $this-&gt;driver($this-&gt;db); $sessions-&gt;uid = $this-&gt;uid; $sessions-&gt;permanent_name = $this-&gt;permanent_name; $sessions-&gt;permanent_id = $this-&gt;permanent_id; $sessions-&gt;online_time = $this-&gt;online_time; $sessions-&gt;online_time2 = $this-&gt;online_time2; $sessions-&gt;time_string = $this-&gt;time_string; $sessions-&gt;show_name = $this-&gt;show_name; $sessions-&gt;usr_list_wanted = false; $sessions-&gt;db_prefix = $this-&gt;db_prefix; $sessions-&gt;displayname = $this-&gt;displayname; $sessions-&gt;frei_trans = $this-&gt;frei_trans; $sessions-&gt;debug = $this-&gt;debug; $sessions-&gt;update_usr_info = true; $sessions-&gt;url = $this-&gt;url; $sessions-&gt;driver = $this-&gt;driver; $sessions-&gt;to_freichat_path = $this-&gt;to_freichat_path; $sessions-&gt;options = $parameters; $sessions-&gt;row_username = $this-&gt;row_username; $sessions-&gt;row_userid = $this-&gt;row_userid; $sessions-&gt;usertable = $this-&gt;usertable; $sessions-&gt;ug_ids = $this-&gt;ug_ids; $sessions-&gt;use_cookie = $this-&gt;use_cookie; $sessions-&gt;pdo_driver = $this-&gt;pdo_driver; $sessions-&gt;load_driver(); return $sessions-&gt;get_id(); // print_r($_SESSION); } } public function check_user_agent($type = NULL) { $user_agent = strtolower($_SERVER[&#039;HTTP_USER_AGENT&#039;]); if ($type == &#039;bot&#039;) { // matches popular bots if (preg_match(&quot;/googlebot|adsbot|yahooseeker|yahoobot|msnbot|watchmouse|pingdom\.com|feedfetcher-google/&quot;, $user_agent)) { return true; // watchmouse|pingdom\.com are &quot;uptime services&quot; } } else if ($type == &#039;browser&#039;) { // matches core browser types if (preg_match(&quot;/mozilla\/|opera\//&quot;, $user_agent)) { return true; } } else if ($type == &#039;mobile&#039;) { // matches popular mobile devices that have small screens and/or touch inputs // mobile devices have regional trends; some of these will have varying popularity in Europe, Asia, and America // detailed demographics are unknown, and South America, the Pacific Islands, and Africa trends might not be represented, here if (preg_match(&quot;/phone|iphone|itouch|ipod|symbian|android|htc_|htc-|palmos|blackberry|opera mini|iemobile|windows ce|nokia|fennec|hiptop|kindle|mot |mot-|webos\/|samsung|sonyericsson|^sie-|nintendo/&quot;, $user_agent)) { // these are the most common return true; } else if (preg_match(&quot;/mobile|pda;|avantgo|eudoraweb|minimo|netfront|brew|teleca|lg;|lge |wap;| wap /&quot;, $user_agent)) { // these are less common, and might not be worth checking return true; } } return false; } } $cvs = new FCC; $cvs-&gt;session_id = $cvs-&gt;FCC_init(); $cvs-&gt;get_js_config(); $is_mobile = $cvs-&gt;check_user_agent(&#039;mobile&#039;); //exit(print_r($cvs)); //print_r($_SESSION); if ($cvs-&gt;BOOT == &quot;no&quot;) { //Do not load freichat exit(&quot;freichat is disabled&quot;); } if ($cvs-&gt;exit_for_guests == &quot;yes&quot; &amp;&amp; $_SESSION[$uid . &#039;is_guest&#039;] == 1) { //dievar_dump($_SESSION); //Do not load freichat exit(&quot;guests are not allowed&quot;); } $smileys = str_replace(&quot;&#039;&quot;, &quot;\&#039;&quot;, json_encode($cvs-&gt;get_smileys())); if ($cvs-&gt;GZIP_handler == &#039;ON&#039;) { $zlib = true; if (!ob_start(&quot;ob_gzhandler&quot;)) { ob_start(); } } $_SESSION[$uid . &#039;is_cached&#039;] = true; if ($cvs-&gt;banned == true) exit(&quot;you are banned&quot;); //var_dump($construct); if (isset($_SESSION)) { $username = $_SESSION[$cvs-&gt;uid . &#039;usr_name&#039;]; $id = $_SESSION[$cvs-&gt;uid . &#039;usr_ses_id&#039;]; } else { $cvs-&gt;freichat_debug(&quot;Session Not Yet Created in client side&quot;); } $frei_trans[] = Array(); //require &#039;../client/jquery/freichat_themes/defarg.php&#039;; require &#039;../client/themes/&#039; . $cvs-&gt;freichat_theme . &#039;/argument.php&#039;; $frei_trans = $cvs-&gt;frei_trans; $url = str_replace(&#039;client/main.php&#039;, &#039;&#039;, $cvs-&gt;url); if (isset($_SERVER[&#039;HTTP_REFERER&#039;])) { $referer_url = $_SERVER[&#039;HTTP_REFERER&#039;]; } else { $referer_url = $url; } if (strpos($referer_url, &#039;www.&#039;) == TRUE) { $url = str_replace(&#039;http://&#039;, &#039;http://www.&#039;, $url); $url = str_replace(&#039;https://&#039;, &#039;https://www.&#039;, $url); } else { $url = str_replace(&#039;http://www.&#039;, &#039;http://&#039;, $url); $url = str_replace(&#039;https://www.&#039;, &#039;https://&#039;, $url); } if (strpos($url, &#039;www.www.&#039;) == TRUE) { $url = str_replace(&#039;http://www.www.&#039;, &#039;http://www.&#039;, $url); $url = str_replace(&#039;https://www.www.&#039;, &#039;https://www.&#039;, $url); } $pfromname = str_replace(&quot;&#039;&quot;, &quot;\&#039;&quot;, $_SESSION[$uid . &quot;usr_name&quot;]); $custom_mesg = &quot;&quot;; if (isset($_SESSION[$uid . &quot;custom_mesg&quot;])) { if ($_SESSION[$uid . &quot;custom_mesg&quot;] != &quot;&quot; &amp;&amp; $_SESSION[$uid . &quot;custom_mesg&quot;] != &quot;i am null&quot; &amp;&amp; $_SESSION[$uid . &quot;custom_mesg&quot;] != null) { $custom_mesg = $_SESSION[$uid . &quot;custom_mesg&quot;]; } } else { $custom_mesg = &#039;I am available&#039;; } $ACL = $cvs-&gt;get_acl(); $show_chatroom_plugin = &#039;enabled&#039;; if ($cvs-&gt;show_chatroom_plugin == &#039;enabled&#039;) { if (($_SESSION[$uid . &#039;is_guest&#039;] == 0 &amp;&amp; $ACL[&#039;CHATROOM&#039;][&#039;user&#039;] == &#039;noallow&#039;) || ($_SESSION[$uid . &#039;is_guest&#039;] == 1 &amp;&amp; $ACL[&#039;CHATROOM&#039;][&#039;guest&#039;] == &#039;noallow&#039;)) { //is a user $show_chatroom_plugin = &#039;disabled&#039;; } } else { $show_chatroom_plugin = &#039;disabled&#039;; } require_once &#039;jsdef.js&#039;; require_once &#039;jquery/js/jquery.1.8.3.js&#039;; require_once &#039;jquery/js/jquery.jscrollpane.min.js&#039;; //for website if ($is_mobile &amp;&amp; $mobile != 1 &amp;&amp; $cvs-&gt;show_mobilechat_plugin == &#039;enabled&#039;) { require &#039;mobile.js&#039;; //can be used for alerts } else { /* * Includes * Effects : Clip , Explode. * Widgets : Draggable */ require_once &#039;jquery/js/jquery-ui-frontend.js&#039;; require_once &#039;jquery/js/combined.min.js&#039;; //include SM 2_.2.97a + slick + dragx $_SESSION[$cvs-&gt;uid . &#039;FreiChatX_init&#039;] = true; require_once &#039;plugins.js&#039;; if ($cvs-&gt;show_videochat_plugin == &#039;enabled&#039;) { //require &#039;../administrator/admin_files/theme_maker/lib/js/md5.js&#039;; require_once &#039;plugins/videochat/videochat.js&#039;; require_once &#039;plugins/groupchat/groupchat.js&#039;; require_once &#039;plugins/groupchat/tag-it.min.js&#039;; require_once &#039;plugins/groupchat/jquery.tooltipster.min.js&#039;; } if($cvs-&gt;show_chatroom_plugin == &#039;enabled&#039;) { require &#039;../administrator/admin_files/theme_maker/lib/colorpicker/js/colorpicker.min.js&#039;; } require_once &#039;freichat.js&#039;; } //for mobile page if ($mobile == 1) { require_once &#039;plugins/mobile/chat/mobilechat.js&#039;; } if ($cvs-&gt;GZIP_handler == &#039;ON&#039;) { if ($zlib == true) { ob_end_flush(); } } $_SESSION[$cvs-&gt;uid . &#039;main_loaded&#039;] = true;

okay, thanks. yeah here is the PAGE_CONTAINER

>
>
>


   <xen:comment>/* Chrome bug and for Google cache */</xen:comment>
       var _b = document.getElementsByTagName('base')[0], _bH = "{xen:jsescape $requestPaths.fullBasePath}";
       if (_b && _b.href != _bH) _b.href = _bH;

<xen:if is="{$title}">{xen:raw $title} | {$xenOptions.boardTitle}<xen:else ></xen:else>{$xenOptions.boardTitle}</xen:if>

<style>.JsOnly, .jsOnly { display: none !important; }</style>





   @xb_web_font_link





   @xb_fontAwesome_CDN

{xen:helper ignoredCss, {$visitor.ignoredUsers}}

{xen:raw $headElement}

>
>
>
>
>
>
>

>

>

>
>

>
>

>

>

pageContentpageWidth">
pageWidthpageContent">

       {xen:raw $topctrl}
       1
















                       {xen:raw $topctrl}
                       1



















                           {xen:raw $beforeH1}
                                                               is="{$h1}">{xen:raw $h1}                                    is="{$title}" />{xen:raw $title}                                    />{$xenOptions.boardTitle}
                               {xen:raw $topctrl}


                           {xen:raw $pageDescription.content}


                   {xen:raw $topctrl}







                   {xen:raw $contents}



























                   {xen:raw $sidebar}

>
>

>

>

>

>
>
>

>

>
>

>
>

{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "{xen:jsescape {xen:link canonical:index}}",
"potentialAction": {
"@type": "SearchAction",
"target": "{xen:jsescape {xen:link canonical:search/search}}{xen:if $xenOptions.useFriendlyUrls, '?', '&'}keywords={search_keywords}",
"query-input": "required name=search_keywords"
}
}

>

>
>

and here is the hardcode.php

/ Data base details /
$dsn='mysql:host=mysql.hostinger.co.uk;dbname=u298018824fourm'; //DSN
$db_user='u298018824_orclm'; //DB username
$db_pass='chKu7ApOfi'; //DB password
$driver='Xenforo'; //Integration driver
$db_prefix='xf
'; //prefix used for tables in database
$uid='5830e4f4235ae'; //Any random unique number

$connected='YES'; //only for custom installation

$PATH = 'freichat/'; // Use this only if you have placed the freichat folder somewhere else
$installed=false; //make it false if you want to reinstall freichat
$admin_pswd='Tess123'; //backend password

$debug = false;
$custom_error_handling='YES'; // used during custom installation

$use_cookie=true;

/ email plugin /
$smtp_username = '';
$smtp_password = '';

$force_load_jquery = 'NO';

/ Custom driver /
$usertable='login'; //specifies the name of the table in which your user information is stored.
$row_username='root'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='loginid'; //specifies the name of the field in which the user's id is stored (usually id or userid)

$avatar_table_name='members'; //specifies the table where avatar information is stored
$avatar_column_name='avatar'; //specifies the column name where the avatar url is stored
$avatar_userid='id'; //specifies the userid to the user to get the user's avatar
$avatar_reference_user='id'; //specifies the reference to the user to get the user's avatar in user table
$avatar_reference_avatar='id'; //specifies the reference to the user to get the user's avatar in avatar
$avatar_field_name=$avatar_column_name; //to avoid unnecessary file changes , *do not change

then here is the main.php

session_start();
//hi, this is not php , its javascript !
header("content-type:application/x-javascript"smile;
if (!isset($_GET['mobile'])) {
$mobile = 0;
} else {
$mobile = (int) $_GET['mobile'];
}
//we need you db connection & settings
require_once '../arg.php';
header("Cache-Control: no-cache, must-revalidate"smile; // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"smile; // Date in the past
//error_reporting(-1);
$img_req = '';
//COMM_15_DAY_NOTIFY_1
$zlib = false;
$no_get = !isset($_GET['id']) || !isset($_GET['xhash']);
//header("Content-type: text/javascript"smile;
if ($use_cookie == 'false'smile {
$use_cookie = false;
} else {
$use_cookie = $use_cookie;
}
if ($use_cookie) {$_GET['xhash'] = md5($_GET['id'] . $uid);
//authentication is done via cookie
//so _GET global wont be set
} else {
//_GET must be set
if ($no_get)
exit;
}
if ($no_get && $use_cookie) {
$_SESSION[$uid . 'xhash'] = $session_id = null;
} else {
$session_id = strip_tags($_GET['id']);
$_SESSION[$uid . 'xhash'] = $_GET['xhash'];
}
if (!isset($_SESSION[$uid . 'xhash']) || ($_SESSION[$uid . 'xhash'] != $_GET['xhash'])) {
$_SESSION[$uid . 'is_cached'] = false;
}
//-----------------------------------------------------------------------------
class FCC extends FreiChat {

public $banned = false;
public $session_id;

public function construct() {
parent::
construct();
$this->init_vars();
}

public function FCC_init() {
require_once '../server/drivers/' . $this->driver . '.php';
$this->freichat_debug("main.php loaded"smile;

   if (!isset($_SESSION[$this->uid . 'rtl'])) {
       $_SESSION[$this->uid . 'rtl'] = false;
   }

   if (!isset($_SESSION[$this->uid . 'freistatus'])) {
       $_SESSION[$this->uid . 'freistatus'] = 1;
   }

   if (!isset($_SESSION[$this->uid . 'custom_mesg'])) {
       $_SESSION[$this->uid . 'custom_mesg'] = $this->frei_trans['default_status'];
   }

   if (!isset($_SESSION[$this->uid . 'in_room'])) {
       $_SESSION[$this->uid . 'in_room'] = -1;
   }

   if (isset($_SESSION[$this->uid . 'ses_id']) == false) {
       global $session_id;
       $parameters = array(
           "id" => $session_id,
           "custom_mesg" => false,
           "first" => false
       );


       if (!isset($_SESSION[$this->uid . 'in_room'])) {
           $_SESSION[$this->uid . 'in_room'] = -1;
       }
       $sessions = new $this->driver($this->db);
       $sessions->uid = $this->uid;
       $sessions->permanent_name = $this->permanent_name;
       $sessions->permanent_id = $this->permanent_id;
       $sessions->online_time = $this->online_time;
       $sessions->online_time2 = $this->online_time2;
       $sessions->time_string = $this->time_string;
       $sessions->show_name = $this->show_name;
       $sessions->usr_list_wanted = false;
       $sessions->db_prefix = $this->db_prefix;
       $sessions->displayname = $this->displayname;
       $sessions->frei_trans = $this->frei_trans;
       $sessions->debug = $this->debug;
       $sessions->update_usr_info = true;
       $sessions->url = $this->url;
       $sessions->driver = $this->driver;
       $sessions->to_freichat_path = $this->to_freichat_path;
       $sessions->options = $parameters;
       $sessions->row_username = $this->row_username;
       $sessions->row_userid = $this->row_userid;
       $sessions->usertable = $this->usertable;
       $sessions->ug_ids = $this->ug_ids;
       $sessions->use_cookie = $this->use_cookie;
       $sessions->pdo_driver = $this->pdo_driver;

       $sessions->load_driver();
       return $sessions->get_id();

       // print_r($_SESSION);
   }

}

public function checkuser_agent($type = NULL) {
$user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);
if ($type == 'bot'smile {
// matches popular bots
if (preg_match("/googlebot|adsbot|yahooseeker|yahoobot|msnbot|watchmouse|pingdom.com|feedfetcher-google/", $user_agent)) {
return true;
// watchmouse|pingdom.com are "uptime services"
}
} else if ($type == 'browser'smile {
// matches core browser types
if (preg_match("/mozilla\/|opera\//", $user_agent)) {
return true;
}
} else if ($type == 'mobile'smile {
// matches popular mobile devices that have small screens and/or touch inputs
// mobile devices have regional trends; some of these will have varying popularity in Europe, Asia, and America
// detailed demographics are unknown, and South America, the Pacific Islands, and Africa trends might not be represented, here
if (preg_match("/phone|iphone|itouch|ipod|symbian|android|htc
|htc-|palmos|blackberry|opera mini|iemobile|windows ce|nokia|fennec|hiptop|kindle|mot |mot-|webos\/|samsung|sonyericsson|^sie-|nintendo/", $user_agent)) {
// these are the most common
return true;
} else if (preg_match("/mobile|pda;|avantgo|eudoraweb|minimo|netfront|brew|teleca|lg;|lge |wap;| wap /", $user_agent)) {
// these are less common, and might not be worth checking
return true;
}
}
return false;
}

}

$cvs = new FCC;
$cvs->session_id = $cvs->FCC_init();

$cvs->get_js_config();

$is_mobile = $cvs->check_user_agent('mobile'smile;

//exit(print_r($cvs));
//print_r($_SESSION);
if ($cvs->BOOT == "no"smile {

//Do not load freichat
exit("freichat is disabled"smile;
}

if ($cvs->exit_for_guests == "yes" && $_SESSION[$uid . 'is_guest'] == 1) {
//dievar_dump($_SESSION);
//Do not load freichat
exit("guests are not allowed"smile;
}

$smileys = str_replace("'", "\'", json_encode($cvs->get_smileys()));

if ($cvs->GZIP_handler == 'ON'smile {
$zlib = true;
if (!ob_start("ob_gzhandler"smile)
{
ob_start();
}
}

$_SESSION[$uid . 'is_cached'] = true;

if ($cvs->banned == true)
exit("you are banned"smile;

//var_dump($construct);

if (isset($_SESSION)) {
$username = $_SESSION[$cvs->uid . 'usr_name'];
$id = $_SESSION[$cvs->uid . 'usr_ses_id'];
} else {
$cvs->freichat_debug("Session Not Yet Created in client side"smile;
}
$frei_trans[] = Array();

//require '../client/jquery/freichat_themes/defarg.php';
require '../client/themes/' . $cvs->freichat_theme . '/argument.php';
$frei_trans = $cvs->frei_trans;

$url = str_replace('client/main.php', '', $cvs->url);

if (isset($_SERVER['HTTP_REFERER'])) {
$referer_url = $_SERVER['HTTP_REFERER'];
} else {
$referer_url = $url;
}

if (strpos($referer_url, 'www.'smile == TRUE) {
$url = str_replace('http://', 'http://www.', $url);
$url = str_replace('https://', 'https://www.', $url);
} else {

$url = str_replace('http://www.', 'http://', $url);
$url = str_replace('https://www.', 'https://', $url);
}

if (strpos($url, 'www.www.'smile == TRUE) {
$url = str_replace('http://www.www.', 'http://www.', $url);
$url = str_replace('https://www.www.', 'https://www.', $url);
}

$pfromname = str_replace("'", "\'", $_SESSION[$uid . "usr_name"]);

$custom_mesg = "";

if (isset($_SESSION[$uid . "custom_mesg"])) {
if ($_SESSION[$uid . "custom_mesg"] != "" && $_SESSION[$uid . "custom_mesg"] != "i am null" && $_SESSION[$uid . "custom_mesg"] != null) {
$custom_mesg = $_SESSION[$uid . "custom_mesg"];
}
} else {
$custom_mesg = 'I am available';
}

$ACL = $cvs->get_acl();

$show_chatroom_plugin = 'enabled';

if ($cvs->show_chatroom_plugin == 'enabled'smile {
if (($_SESSION[$uid . 'is_guest'] == 0 && $ACL['CHATROOM']['user'] == 'noallow'smile || ($_SESSION[$uid . 'is_guest'] == 1 && $ACL['CHATROOM']['guest'] == 'noallow'smile) { //is a user
$show_chatroom_plugin = 'disabled';
}
} else {
$show_chatroom_plugin = 'disabled';
}

require_once 'jsdef.js';
require_once 'jquery/js/jquery.1.8.3.js';
require_once 'jquery/js/jquery.jscrollpane.min.js';

//for website
if ($is_mobile && $mobile != 1 && $cvs->show_mobilechat_plugin == 'enabled'smile {
require 'mobile.js'; //can be used for alerts
} else {

/*

* Includes 
*  Effects : Clip , Explode.
*  Widgets : Draggable
*/

requireonce 'jquery/js/jquery-ui-frontend.js';
require_once 'jquery/js/combined.min.js'; //include SM 2
.2.97a + slick + dragx
$_SESSION[$cvs->uid . 'FreiChatX_init'] = true;
require_once 'plugins.js';
if ($cvs->show_videochat_plugin == 'enabled'smile {
//require '../administrator/admin_files/theme_maker/lib/js/md5.js';
require_once 'plugins/videochat/videochat.js';
require_once 'plugins/groupchat/groupchat.js';
require_once 'plugins/groupchat/tag-it.min.js';
require_once 'plugins/groupchat/jquery.tooltipster.min.js';
}

if($cvs->show_chatroom_plugin == 'enabled'smile {

   require '../administrator/admin_files/theme_maker/lib/colorpicker/js/colorpicker.min.js';

}

require_once 'freichat.js';
}

//for mobile page
if ($mobile == 1) {
require_once 'plugins/mobile/chat/mobilechat.js';
}

if ($cvs->GZIP_handler == 'ON'smile {
if ($zlib == true) {
ob_end_flush();
}
}
$_SESSION[$cvs->uid . 'main_loaded'] = true;

thanks,

&gt;okay, thanks. yeah here is the PAGE_CONTAINER &gt; &gt; &gt; &gt;** &gt;** &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &lt;xen:comment&gt;/* Chrome bug and for Google cache */&lt;/xen:comment&gt; &gt; var _b = document.getElementsByTagName(&#039;base&#039;)[0], _bH = &quot;{xen:jsescape $requestPaths.fullBasePath}&quot;; &gt; if (_b &amp;&amp; _b.href != _bH) _b.href = _bH; &gt; &gt; &gt; &lt;xen:if is=&quot;{$title}&quot;&gt;{xen:raw $title} | {$xenOptions.boardTitle}&lt;xen:else &gt;&lt;/xen:else&gt;{$xenOptions.boardTitle}&lt;/xen:if&gt; &gt; &lt;style&gt;.JsOnly, .jsOnly { display: none !important; }&lt;/style&gt; &gt; &gt; &gt; &gt; &gt; @xb_web_font_link &gt; &gt; &gt; &gt; &gt; &gt; @xb_fontAwesome_CDN &gt; &gt; {xen:helper ignoredCss, {$visitor.ignoredUsers}} &gt; &gt; &gt; &gt; &gt; &gt; &gt; {xen:raw $headElement} &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; pageContentpageWidth&quot;&gt; &gt; pageWidthpageContent&quot;&gt; &gt; &gt; &gt; &gt; &gt; &gt; {xen:raw $topctrl} &gt; 1 &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; {xen:raw $topctrl} &gt; 1 &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; {xen:raw $beforeH1} &gt; is=&quot;{$h1}&quot;&gt;{xen:raw $h1} is=&quot;{$title}&quot; /&gt;{xen:raw $title} /&gt;{$xenOptions.boardTitle} &gt; {xen:raw $topctrl} &gt; &gt; {xen:raw $pageDescription.content} &gt; &gt; &gt; {xen:raw $topctrl} &gt; &gt; &gt; &gt; &gt; &gt; {xen:raw $contents} &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; {xen:raw $sidebar} &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;{ &gt; &quot;@context&quot;: &quot;http://schema.org&quot;, &gt; &quot;@type&quot;: &quot;WebSite&quot;, &gt; &quot;url&quot;: &quot;{xen:jsescape {xen:link canonical:index}}&quot;, &gt; &quot;potentialAction&quot;: { &gt; &quot;@type&quot;: &quot;SearchAction&quot;, &gt; &quot;target&quot;: &quot;{xen:jsescape {xen:link canonical:search/search}}{xen:if $xenOptions.useFriendlyUrls, &#039;?&#039;, &#039;&amp;&#039;}keywords={search_keywords}&quot;, &gt; &quot;query-input&quot;: &quot;required name=search_keywords&quot; &gt; } &gt;} &gt; &gt; &gt; &gt; &gt; &gt;and here is the hardcode.php &gt;/* Data base details */ &gt;$dsn=&#039;mysql:host=mysql.hostinger.co.uk;dbname=u298018824_fourm&#039;; //DSN &gt;$db_user=&#039;u298018824_orclm&#039;; //DB username &gt;$db_pass=&#039;chKu7ApOfi&#039;; //DB password &gt;$driver=&#039;Xenforo&#039;; //Integration driver &gt;$db_prefix=&#039;xf_&#039;; //prefix used for tables in database &gt;$uid=&#039;5830e4f4235ae&#039;; //Any random unique number &gt;$connected=&#039;YES&#039;; //only for custom installation &gt;$PATH = &#039;freichat/&#039;; // Use this only if you have placed the freichat folder somewhere else &gt;$installed=false; //make it false if you want to reinstall freichat &gt;$admin_pswd=&#039;Tess123&#039;; //backend password &gt;$debug = false; &gt;$custom_error_handling=&#039;YES&#039;; // used during custom installation &gt;$use_cookie=true; &gt;/* email plugin */ &gt;$smtp_username = &#039;&#039;; &gt;$smtp_password = &#039;&#039;; &gt;$force_load_jquery = &#039;NO&#039;; &gt;/* Custom driver */ &gt;$usertable=&#039;login&#039;; //specifies the name of the table in which your user information is stored. &gt;$row_username=&#039;root&#039;; //specifies the name of the field in which the user&#039;s name/display name is stored. &gt;$row_userid=&#039;loginid&#039;; //specifies the name of the field in which the user&#039;s id is stored (usually id or userid) &gt;$avatar_table_name=&#039;members&#039;; //specifies the table where avatar information is stored &gt;$avatar_column_name=&#039;avatar&#039;; //specifies the column name where the avatar url is stored &gt;$avatar_userid=&#039;id&#039;; //specifies the userid to the user to get the user&#039;s avatar &gt;$avatar_reference_user=&#039;id&#039;; //specifies the reference to the user to get the user&#039;s avatar in user table &gt;$avatar_reference_avatar=&#039;id&#039;; //specifies the reference to the user to get the user&#039;s avatar in avatar &gt;$avatar_field_name=$avatar_column_name; //to avoid unnecessary file changes , *do not change &gt;then here is the main.php &gt;session_start(); &gt;//hi, this is not php , its javascript ! &gt;header(&quot;content-type:application/x-javascript&quot;); &gt;if (!isset($_GET[&#039;mobile&#039;])) { &gt; $mobile = 0; &gt;} else { &gt; $mobile = (int) $_GET[&#039;mobile&#039;]; &gt;} &gt;//we need you db connection &amp; settings &gt;require_once &#039;../arg.php&#039;; &gt;header(&quot;Cache-Control: no-cache, must-revalidate&quot;); // HTTP/1.1 &gt;header(&quot;Expires: Sat, 26 Jul 1997 05:00:00 GMT&quot;); // Date in the past &gt;//error_reporting(-1); &gt;$img_req = &#039;&#039;; &gt;//COMM_15_DAY_NOTIFY_1 &gt;$zlib = false; &gt;$no_get = !isset($_GET[&#039;id&#039;]) || !isset($_GET[&#039;xhash&#039;]); &gt;//header(&quot;Content-type: text/javascript&quot;); &gt;if ($use_cookie == &#039;false&#039;) { &gt; $use_cookie = false; &gt;} else { &gt; $use_cookie = $use_cookie; &gt;} &gt;if ($use_cookie) {$_GET[&#039;xhash&#039;] = md5($_GET[&#039;id&#039;] . $uid); &gt;//authentication is done via cookie &gt;//so _GET global wont be set &gt;} else { &gt;//_GET must be set &gt; if ($no_get) &gt; exit; &gt;} &gt;if ($no_get &amp;&amp; $use_cookie) { &gt; $_SESSION[$uid . &#039;xhash&#039;] = $session_id = null; &gt;} else { &gt; $session_id = strip_tags($_GET[&#039;id&#039;]); &gt; $_SESSION[$uid . &#039;xhash&#039;] = $_GET[&#039;xhash&#039;]; &gt;} &gt;if (!isset($_SESSION[$uid . &#039;xhash&#039;]) || ($_SESSION[$uid . &#039;xhash&#039;] != $_GET[&#039;xhash&#039;])) { &gt; $_SESSION[$uid . &#039;is_cached&#039;] = false; &gt;} &gt;//----------------------------------------------------------------------------- &gt;class FCC extends FreiChat { &gt; public $banned = false; &gt; public $session_id; &gt; public function __construct() { &gt; parent::__construct(); &gt; $this-&gt;init_vars(); &gt; } &gt; public function FCC_init() { &gt; require_once &#039;../server/drivers/&#039; . $this-&gt;driver . &#039;.php&#039;; &gt; $this-&gt;freichat_debug(&quot;main.php loaded&quot;); &gt; if (!isset($_SESSION[$this-&gt;uid . &#039;rtl&#039;])) { &gt; $_SESSION[$this-&gt;uid . &#039;rtl&#039;] = false; &gt; } &gt; if (!isset($_SESSION[$this-&gt;uid . &#039;freistatus&#039;])) { &gt; $_SESSION[$this-&gt;uid . &#039;freistatus&#039;] = 1; &gt; } &gt; if (!isset($_SESSION[$this-&gt;uid . &#039;custom_mesg&#039;])) { &gt; $_SESSION[$this-&gt;uid . &#039;custom_mesg&#039;] = $this-&gt;frei_trans[&#039;default_status&#039;]; &gt; } &gt; if (!isset($_SESSION[$this-&gt;uid . &#039;in_room&#039;])) { &gt; $_SESSION[$this-&gt;uid . &#039;in_room&#039;] = -1; &gt; } &gt; if (isset($_SESSION[$this-&gt;uid . &#039;ses_id&#039;]) == false) { &gt; global $session_id; &gt; $parameters = array( &gt; &quot;id&quot; =&gt; $session_id, &gt; &quot;custom_mesg&quot; =&gt; false, &gt; &quot;first&quot; =&gt; false &gt; ); &gt; if (!isset($_SESSION[$this-&gt;uid . &#039;in_room&#039;])) { &gt; $_SESSION[$this-&gt;uid . &#039;in_room&#039;] = -1; &gt; } &gt; $sessions = new $this-&gt;driver($this-&gt;db); &gt; $sessions-&gt;uid = $this-&gt;uid; &gt; $sessions-&gt;permanent_name = $this-&gt;permanent_name; &gt; $sessions-&gt;permanent_id = $this-&gt;permanent_id; &gt; $sessions-&gt;online_time = $this-&gt;online_time; &gt; $sessions-&gt;online_time2 = $this-&gt;online_time2; &gt; $sessions-&gt;time_string = $this-&gt;time_string; &gt; $sessions-&gt;show_name = $this-&gt;show_name; &gt; $sessions-&gt;usr_list_wanted = false; &gt; $sessions-&gt;db_prefix = $this-&gt;db_prefix; &gt; $sessions-&gt;displayname = $this-&gt;displayname; &gt; $sessions-&gt;frei_trans = $this-&gt;frei_trans; &gt; $sessions-&gt;debug = $this-&gt;debug; &gt; $sessions-&gt;update_usr_info = true; &gt; $sessions-&gt;url = $this-&gt;url; &gt; $sessions-&gt;driver = $this-&gt;driver; &gt; $sessions-&gt;to_freichat_path = $this-&gt;to_freichat_path; &gt; $sessions-&gt;options = $parameters; &gt; $sessions-&gt;row_username = $this-&gt;row_username; &gt; $sessions-&gt;row_userid = $this-&gt;row_userid; &gt; $sessions-&gt;usertable = $this-&gt;usertable; &gt; $sessions-&gt;ug_ids = $this-&gt;ug_ids; &gt; $sessions-&gt;use_cookie = $this-&gt;use_cookie; &gt; $sessions-&gt;pdo_driver = $this-&gt;pdo_driver; &gt; $sessions-&gt;load_driver(); &gt; return $sessions-&gt;get_id(); &gt; // print_r($_SESSION); &gt; } &gt; } &gt; public function check_user_agent($type = NULL) { &gt; $user_agent = strtolower($_SERVER[&#039;HTTP_USER_AGENT&#039;]); &gt; if ($type == &#039;bot&#039;) { &gt; // matches popular bots &gt; if (preg_match(&quot;/googlebot|adsbot|yahooseeker|yahoobot|msnbot|watchmouse|pingdom\.com|feedfetcher-google/&quot;, $user_agent)) { &gt; return true; &gt; // watchmouse|pingdom\.com are &quot;uptime services&quot; &gt; } &gt; } else if ($type == &#039;browser&#039;) { &gt; // matches core browser types &gt; if (preg_match(&quot;/mozilla\/|opera\//&quot;, $user_agent)) { &gt; return true; &gt; } &gt; } else if ($type == &#039;mobile&#039;) { &gt; // matches popular mobile devices that have small screens and/or touch inputs &gt; // mobile devices have regional trends; some of these will have varying popularity in Europe, Asia, and America &gt; // detailed demographics are unknown, and South America, the Pacific Islands, and Africa trends might not be represented, here &gt; if (preg_match(&quot;/phone|iphone|itouch|ipod|symbian|android|htc_|htc-|palmos|blackberry|opera mini|iemobile|windows ce|nokia|fennec|hiptop|kindle|mot |mot-|webos\/|samsung|sonyericsson|^sie-|nintendo/&quot;, $user_agent)) { &gt; // these are the most common &gt; return true; &gt; } else if (preg_match(&quot;/mobile|pda;|avantgo|eudoraweb|minimo|netfront|brew|teleca|lg;|lge |wap;| wap /&quot;, $user_agent)) { &gt; // these are less common, and might not be worth checking &gt; return true; &gt; } &gt; } &gt; return false; &gt; } &gt;} &gt;$cvs = new FCC; &gt;$cvs-&gt;session_id = $cvs-&gt;FCC_init(); &gt;$cvs-&gt;get_js_config(); &gt;$is_mobile = $cvs-&gt;check_user_agent(&#039;mobile&#039;); &gt;//exit(print_r($cvs)); &gt;//print_r($_SESSION); &gt;if ($cvs-&gt;BOOT == &quot;no&quot;) { &gt; //Do not load freichat &gt; exit(&quot;freichat is disabled&quot;); &gt;} &gt;if ($cvs-&gt;exit_for_guests == &quot;yes&quot; &amp;&amp; $_SESSION[$uid . &#039;is_guest&#039;] == 1) { &gt; //dievar_dump($_SESSION); &gt; //Do not load freichat &gt; exit(&quot;guests are not allowed&quot;); &gt;} &gt;$smileys = str_replace(&quot;&#039;&quot;, &quot;\&#039;&quot;, json_encode($cvs-&gt;get_smileys())); &gt;if ($cvs-&gt;GZIP_handler == &#039;ON&#039;) { &gt; $zlib = true; &gt; if (!ob_start(&quot;ob_gzhandler&quot;)) &gt; { &gt; ob_start(); &gt; } &gt;} &gt;$_SESSION[$uid . &#039;is_cached&#039;] = true; &gt;if ($cvs-&gt;banned == true) &gt; exit(&quot;you are banned&quot;); &gt;//var_dump($construct); &gt;if (isset($_SESSION)) { &gt; $username = $_SESSION[$cvs-&gt;uid . &#039;usr_name&#039;]; &gt; $id = $_SESSION[$cvs-&gt;uid . &#039;usr_ses_id&#039;]; &gt;} else { &gt; $cvs-&gt;freichat_debug(&quot;Session Not Yet Created in client side&quot;); &gt;} &gt;$frei_trans[] = Array(); &gt;//require &#039;../client/jquery/freichat_themes/defarg.php&#039;; &gt;require &#039;../client/themes/&#039; . $cvs-&gt;freichat_theme . &#039;/argument.php&#039;; &gt;$frei_trans = $cvs-&gt;frei_trans; &gt;$url = str_replace(&#039;client/main.php&#039;, &#039;&#039;, $cvs-&gt;url); &gt;if (isset($_SERVER[&#039;HTTP_REFERER&#039;])) { &gt; $referer_url = $_SERVER[&#039;HTTP_REFERER&#039;]; &gt;} else { &gt; $referer_url = $url; &gt;} &gt;if (strpos($referer_url, &#039;www.&#039;) == TRUE) { &gt; $url = str_replace(&#039;http://&#039;, &#039;http://www.&#039;, $url); &gt; $url = str_replace(&#039;https://&#039;, &#039;https://www.&#039;, $url); &gt;} else { &gt; $url = str_replace(&#039;http://www.&#039;, &#039;http://&#039;, $url); &gt; $url = str_replace(&#039;https://www.&#039;, &#039;https://&#039;, $url); &gt;} &gt;if (strpos($url, &#039;www.www.&#039;) == TRUE) { &gt; $url = str_replace(&#039;http://www.www.&#039;, &#039;http://www.&#039;, $url); &gt; $url = str_replace(&#039;https://www.www.&#039;, &#039;https://www.&#039;, $url); &gt;} &gt;$pfromname = str_replace(&quot;&#039;&quot;, &quot;\&#039;&quot;, $_SESSION[$uid . &quot;usr_name&quot;]); &gt;$custom_mesg = &quot;&quot;; &gt;if (isset($_SESSION[$uid . &quot;custom_mesg&quot;])) { &gt; if ($_SESSION[$uid . &quot;custom_mesg&quot;] != &quot;&quot; &amp;&amp; $_SESSION[$uid . &quot;custom_mesg&quot;] != &quot;i am null&quot; &amp;&amp; $_SESSION[$uid . &quot;custom_mesg&quot;] != null) { &gt; $custom_mesg = $_SESSION[$uid . &quot;custom_mesg&quot;]; &gt; } &gt;} else { &gt; $custom_mesg = &#039;I am available&#039;; &gt;} &gt;$ACL = $cvs-&gt;get_acl(); &gt;$show_chatroom_plugin = &#039;enabled&#039;; &gt;if ($cvs-&gt;show_chatroom_plugin == &#039;enabled&#039;) { &gt; if (($_SESSION[$uid . &#039;is_guest&#039;] == 0 &amp;&amp; $ACL[&#039;CHATROOM&#039;][&#039;user&#039;] == &#039;noallow&#039;) || ($_SESSION[$uid . &#039;is_guest&#039;] == 1 &amp;&amp; $ACL[&#039;CHATROOM&#039;][&#039;guest&#039;] == &#039;noallow&#039;)) { //is a user &gt; $show_chatroom_plugin = &#039;disabled&#039;; &gt; } &gt;} else { &gt; $show_chatroom_plugin = &#039;disabled&#039;; &gt;} &gt;require_once &#039;jsdef.js&#039;; &gt;require_once &#039;jquery/js/jquery.1.8.3.js&#039;; &gt;require_once &#039;jquery/js/jquery.jscrollpane.min.js&#039;; &gt;//for website &gt;if ($is_mobile &amp;&amp; $mobile != 1 &amp;&amp; $cvs-&gt;show_mobilechat_plugin == &#039;enabled&#039;) { &gt; require &#039;mobile.js&#039;; //can be used for alerts &gt;} else { &gt; /* &gt; * Includes &gt; * Effects : Clip , Explode. &gt; * Widgets : Draggable &gt; */ &gt; require_once &#039;jquery/js/jquery-ui-frontend.js&#039;; &gt; require_once &#039;jquery/js/combined.min.js&#039;; //include SM 2_.2.97a + slick + dragx &gt; $_SESSION[$cvs-&gt;uid . &#039;FreiChatX_init&#039;] = true; &gt; require_once &#039;plugins.js&#039;; &gt; if ($cvs-&gt;show_videochat_plugin == &#039;enabled&#039;) { &gt; //require &#039;../administrator/admin_files/theme_maker/lib/js/md5.js&#039;; &gt; require_once &#039;plugins/videochat/videochat.js&#039;; &gt; require_once &#039;plugins/groupchat/groupchat.js&#039;; &gt; require_once &#039;plugins/groupchat/tag-it.min.js&#039;; &gt; require_once &#039;plugins/groupchat/jquery.tooltipster.min.js&#039;; &gt; } &gt; if($cvs-&gt;show_chatroom_plugin == &#039;enabled&#039;) { &gt; require &#039;../administrator/admin_files/theme_maker/lib/colorpicker/js/colorpicker.min.js&#039;; &gt; } &gt; require_once &#039;freichat.js&#039;; &gt;} &gt;//for mobile page &gt;if ($mobile == 1) { &gt; require_once &#039;plugins/mobile/chat/mobilechat.js&#039;; &gt;} &gt;if ($cvs-&gt;GZIP_handler == &#039;ON&#039;) { &gt; if ($zlib == true) { &gt; ob_end_flush(); &gt; } &gt;} &gt;$_SESSION[$cvs-&gt;uid . &#039;main_loaded&#039;] = true; thanks,

Hi,

Sorry, but the code is not formatted properly, can you instead send those files via email ?
admin[@]codologic.com ?

Next time, make sure to start and end with three backticks(```) for inserting code

Hi, Sorry, but the code is not formatted properly, can you instead send those files via email ? admin[@]codologic.com ? Next time, make sure to start and end with three backticks(```) for inserting code
764
16
3
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft