News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Help to develop: pop-up of list users.

Started by Polakín, October 26, 2005, 10:12:49 AM

Previous topic - Next topic

Polakín


Hello!

I don't speak very well english, sorry if you does not understand very much.

I am developing a pop-up for smf forum, which has as intention prove to be a list of the users online, and be able to send messages of an easy way. Very seemed to icq, msn or yahoo messenger.

I am developing orientated to ajax, and need to generate a file XML to be able to show the information in the pop-up.

The XML has the following structure:


hola!

yo no hablo muy bien inglés, perdón si no se entiende mucho.

estoy desarrollando un pop-up para smf forum, que tiene como proposito mostrar una lista de los usuarios en línea, y poder enviarles mensajes de manera fácil. muy parecido a icq, msn o yahoo messenger.

estoy desarrollando orientado a ajax, y necesito generar un archivo XML para poder mostrar los datos en el pop-up.

el XML tiene la siguiente estructura:



<?xml version="1.0" encoding="UTF-8"?>
<infosbb>
<autoriza>
<conectado>1</conectado>
</autoriza>
<personal>
<username>polakin</username>
<realname>Polakín</realname>
<usercode>2</usercode>
</personal>
<mensajes>
<nuevos>0</nuevos>
<total>7</total>
</mensajes>
<enlinea>
<visitantes>2</visitantes>
<conectados>5</conectados>
<ocultos>1</ocultos>
<total>7</total>
</enlinea>
<listausuarios>
<usuario>
<useron>1</useron>
<username>polakin</username>
<realname>Polakín</realname>
<usercode>2</usercode>
<userdo>Probando el danka</userdo>
<usermsj>0</usermsj>
</usuario>
<usuario>
<useron>1</useron>
<username>carolayla</username>
<realname>Carolayla</realname>
<usercode>3</usercode>
<userdo>No se sabe</userdo>
<usermsj>0</usermsj>
</usuario>
<usuario>
<useron>1</useron>
<username>cyrano</username>
<realname>Cyrano</realname>
<usercode>4</usercode>
<userdo>Quien sabe que hace</userdo>
<usermsj>0</usermsj>
</usuario>
<usuario>
<useron>1</useron>
<username>magic</username>
<realname>Mago</realname>
<usercode>5</usercode>
<userdo>Ni idea</userdo>
<usermsj>0</usermsj>
</usuario>
</listausuarios>
</infosbb>



I need to be able generate like this XML.

i need to know the functions and code of smf forum that I must use.

¿can someone help me to accelerate the development of this? PLEASEEEEEE!!!

It would be cool that were indicating me exactly the functions that I must call.



A description of the XML

<autoriza>
<conectado>1</conectado>
</autoriza>


<conectado>1</conectado>
can be 1 or 0. this indicates if the user is connected or not.

<personal>
<username>polakin</username>
<realname>Polakín</realname>
<usercode>2</usercode>
</personal>

here indicates the personal data of the user. username, realname (to show) and the usercode.

<mensajes>
<nuevos>0</nuevos>
<total>7</total>
</mensajes>


here the messages of the user. <nuevos> indicate the numbre of the new messages and <total> indicate the total of messages.

<enlinea>
<visitantes>2</visitantes>
<conectados>5</conectados>
<ocultos>1</ocultos>
<total>7</total>
</enlinea>


the information of the numbres the users online.
<visitantes> guest
<conectados> users registered
<ocultos> users hidden
<total> total of the users online.

<listausuarios>
<usuario>
<useron>1</useron>
<username>polakin</username>
<realname>Polakín</realname>
<usercode>2</usercode>
<userdo>Probando el danka</userdo>
<usermsj>0</usermsj>
</usuario>
                ...
                ...
                ...


this tag or node, presents the list of the users online.
<usuario> is for every user online (only users on visibility)

<useron> 0 or 1. indicate if the user is online.
<username> username of the user
<realname> realname (to show) the user
<usercode> user code (id) of the user
<userdo> text of the action of the "who is online?"
<usermsj> numbers of the messages new, that this user is send to the user pop-p



Well, that is all  :D :P :-[ :-*

my idea for the future, is do this a MOD for everyone! always with the help of you.

THANKS!!!!



Polakín


Ok.

i will use the SSI.php :D

When i finish with this, i'll tell you.

i need others things ;)


Polakín


This topic continues in this forum.

http://www.simplemachines.org/community/index.php?topic=55668.0

--------------

The XML that I generated is the following one
hxxp:www.sbb.cl/f/danka_hope.php [nonactive]


Advertisement: