Demo

Probiere ClanSphere aus und teste daran herum. Demo


Antworten: 4
Seite [1]
falk88


Beginner




Beiträge: 3
# Thema - 15.10.2012 um 13:15 Uhr
Hello, i'm a new user and i'm appy for clansphere. Is there any programmer that can help me?
I'm trying to install arrowchat or similar put i can't retrive users online. the example code of arrow chat is that:

function get_user_id()
{
$userid = NULL;

if (!empty($_SESSION['userid']))
{
$userid = $_SESSION['userid'];
}

return $userid;
}


or that for cookie

function get_user_id()
{
$userid = NULL;

if (!empty($_COOKIE['userid']))
{
$userid = $_COOKIE['userid'];
}

return $userid;
}

or that for cookies with hash

function get_user_id()
{
$userid = NULL;

if (!empty($_COOKIE['hash']))
{
$result = $db->execute("
SELECT user_id
FROM " . TABLE_PREFIX . "session
WHERE hash = '" . $db->escape_string($_COOKIE['hash']) . "'
");

if ($row = $db->fetch_array($result))
{
$userid = $row['user_id'];
}
}

return $userid;
}


How can i get it working?
plaese help me!!
Inaktiv
Fr33z3m4n ClanSphere Team


Medal of Honor




Herkunft: Hamm
Beiträge: 11094
# Antwort: 1 - 15.10.2012 um 14:35 Uhr
look at my mailanswer:

 
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
1. / 2. / ... 
 function get_user_id()
{
$userid NULL;

if (!empty(
$_SESSION['users_id']))
{
$userid $_SESSION['users_id'];
}

return 
$userid;
}


------------------
mfg
Patrick "Fr33z3m4n" Jaskulski

Antoine de Saint-Exupéry: Wenn Du ein Schiff bauen willst, so trommle nicht Männer zusammen, um Holz zu beschaffen, Aufgaben zu verteilen, sondern lehre die Männer die Sehnsucht nach dem endlosen weiten Meer.

Inaktiv
|
falk88
Thread-Ersteller


Beginner




Beiträge: 3
# Antwort: 2 - 15.10.2012 um 15:13 Uhr
it doesn't work for me, i have tried your code but the chat tell me to register for use it, i have tried with cookie but the same.

Tanks for the suppor, cs is the best!


Inaktiv
|
falk88
Thread-Ersteller


Beginner




Beiträge: 3
# Antwort: 3 - 18.10.2012 um 19:50 Uhr
up


Inaktiv
|
Deaktiviert

Supporter
Supporter



Beiträge: 1287
# Antwort: 4 - 19.10.2012 um 02:13 Uhr
The problem is that none knows this chat system or either it's integration, I would maybe suggest you to contact the creator.


Inaktiv
|
Antworten: 4
Seite [1]


Sie müssen sich registrieren, um zu antworten.