Toon posts:

Arrowchat integratie

Pagina: 1
Acties:
  • 209 views

Vraag


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
Fijn dat ik een site heb gevonden waar ik hulp kan krijgen bij het integreren van een script naar mijn website.

Ik wil graag "arrowchat" op mijn website laten functioneren. Arrowchat is een script net als Facebook chat wat je rechtsonder ook hebt op Facebook.

Installeren is mij gelukt maar het integreren is niet gelukt omdat het een eigen gemaakt php website is. Dus ik moet het zelf aanpassen zie hieronder:
<?php
session_start();

/*
|| #################################################################### ||
|| # ArrowChat # ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2010-2012 ArrowSuites LLC. All Rights Reserved. # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- ARROWCHAT IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.arrowchat.com | http://www.arrowchat.com/license/ # ||
|| #################################################################### ||
*/

// UNCOMMENT THE SESSION START IF YOU ARE USING SESSIONS TO GET THE USER ID
// session_start();

/**
* This function returns the user ID of the logged in user on your site. Technical support will not
* help you with this for stand-alone installations. You must purchase the professional installation
* if you are having trouble.
*
* Suggestion: Check out the other integration files in the functions/integrations directory for
* many examples of how this can be done. The easiest way is to get the user ID through a cookie.
*
* @return the user ID of the logged in user or NULL if not logged in
*/
function get_user_id()
{
$userid = NULL;

if (isset($_SESSION['UID']) )
{
$userid = $_SESSION['UID'];
}

return $userid;
}
Dit is van mijn website Function_user.php :
<?php
defined('_VALID') or die('Restricted Access!');
require_once ($config['BASE_DIR']. '/include/function_thumbs.php');

function getUserQuery()
{
$options = array('username' => NULL, 'module' => NULL, 'query' => NULL);
if ( isset($_SESSION['uid']) && isset($_SESSION['username']) ) {
if ( $_SESSION['uid'] != '' && $_SESSION['username'] != '' ) {
$options['username'] = $_SESSION['username'];
}
}

$request = ( isset($_SERVER['REQUEST_URI']) ) ? $_SERVER['REQUEST_URI'] : NULL;
$request = ( isset($_SERVER['QUERY_STRING']) ) ? str_replace('?' .$_SERVER['QUERY_STRING'], '', $request) : $request;
$query = explode('/', $request);
foreach ( $query as $key => $value ) {
if ( $value == 'user' ) {
$query = array_slice($query, $key+1);
}
}

if ( isset($query['0']) && $query['0'] != '' ) {
$module = $query['0'];
$modules_allowed = array(
'edit' => 1,
'avatar' => 1,
'prefs' => 1,
'blocks' => 1,
'delete' => 1
);

if ( isset($modules_allowed[$module]) ) {
$options['module'] = $module;
} else {
$options['username'] = $module;
$options['query'] = array_slice($query, 1);
}
}
return $options;
}
Als er iemand is die het kan doen wil ik er zelfs best voor betalen.

Vriendelijke groet,

Alle reacties


Acties:
  • 0 Henk 'm!

  • NMe
  • Registratie: Februari 2004
  • Laatst online: 09-09 13:58

NMe

Quia Ego Sic Dico.

Verwijderd schreef op zondag 13 augustus 2017 @ 02:33:
Fijn dat ik een site heb gevonden waar ik hulp kan krijgen bij het integreren van een script naar mijn website.
Helpen doen we graag maar...
Als er iemand is die het kan doen wil ik er zelfs best voor betalen.
...klusjes voor je uitvoeren niet. Zie Kan iemand even..?

Daarnaast kun je voor support op producten van derden beter praten met de maker dan met mensen op een forum.

Als je er met de support van de maker niet uit komt of als je toch zelf aan de slag wil gaan dan kun je gerust een nieuw topic openen, maar dan wel met een andere insteek.

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.


Dit topic is gesloten.