Re: OLD TOPIC TO DELETE

Very nice...

AJAX is such a nice touch.
When do you think you will release? wink

27

Re: OLD TOPIC TO DELETE

Hehe, I'm not quite sure... I mean, it does work now, but I'd like to optimize & tweak a little more first. My best guess would be later today or tomorrow smile

Re: OLD TOPIC TO DELETE

Oh that sounds good to me.

I cant sort my site out until the end of the weekend, so any day soon would be great for me. Cheers

Re: OLD TOPIC TO DELETE

Hi i have download it but it not work with punbb 2.1.11 sick sick!!!!! when the new release????
Bye thanksss

30 (edited by CodeXP 2006-03-15 22:00)

Re: OLD TOPIC TO DELETE

Ok, I think my ajax modification if the chatbox is working well enough for a release now smile

As I've previously mentioned, here are the most important functions I've added:
* AJAX for posting & refreshing chatbox.
* Added a delete function for moderators and admins. This is also handled using AJAX.
+++

[Download here]
[Demo]

Installation:
Just unzip the archive directly into your PunBB directory, overwriting the following files if they exist:

   <root>chatbox.php
   <root>include/js/ajax_chat.js

Please note that you need the the original version of Pokemon_JOJO's chatbox installed first.

Enjoy smile

EDIT: A small update, as I forgot a minor details. I've already updated the archive, but if you've downloaded before this edit, either re-download, or simply open up chatbox.php & change line 252 from:

    global $db, $lang_chatbox, $pun_config, $pun_user;

to

    global $db, $lang_chatbox, $pun_config, $pun_user, $lang_common;

31

Re: OLD TOPIC TO DELETE

thank you !! it works perfectly  cool

great code

Re: OLD TOPIC TO DELETE

MMM not work!!! it
when i launch install_mod.php i see this msg You are running a version of PunBB (1.2.11) that this mod does not support. This mod supports PunBB versions: 1.2, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6

Re: OLD TOPIC TO DELETE

fantasma wrote:

MMM not work!!! it
when i launch install_mod.php i see this msg You are running a version of PunBB (1.2.11) that this mod does not support. This mod supports PunBB versions: 1.2, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6

http://punbb.org/forums/viewtopic.php?id=10518

Looking for a certain modification for your forum? Please take a look here before posting.

Re: OLD TOPIC TO DELETE

@CodeXP

Thanks...
Will play with this at the weekend... smile

35

Re: OLD TOPIC TO DELETE

Great job CodeXP and thank you so much!

Using Ajax is such a great idea for this mod wink

36

Re: OLD TOPIC TO DELETE

@codexp
for the list_chatbox_msg & handleResponse functions, it well be cool to add only the new messages  ... smile

37

Re: OLD TOPIC TO DELETE

Gooom wrote:

@codexp
for the list_chatbox_msg & handleResponse functions, it well be cool to add only the new messages  ... smile

I don't think I quite understand what you mean?

Re: OLD TOPIC TO DELETE

This is a guess....
But I think he means instead of refreshing the whole page of chat just to refresh the new chat messages. Which I doubt would be possible.....

39

Re: OLD TOPIC TO DELETE

StevenBullen wrote:

This is a guess....
But I think he means instead of refreshing the whole page of chat just to refresh the new chat messages. Which I doubt would be possible.....

Would not be possible the way the chatbox works now. I guess you could do some XML parsing, but that would require a total rewrite of the way the chatbox outputs data... Also, it would add some new SQL queries to the code, so it wouldn't really be worth it. You might save a few bytes of bandwidth on each update, but then again, you would also add more strain on the server so I don't really see the point.

40

Re: OLD TOPIC TO DELETE

- hmm for exemple with javascript we can save the date or id of the latest message and send it to server with refreshBox function.
- in list_chatbox_msg (php), adding "where date>jsdate" in the query.
- in handleResponse (js), doing document.getElementById("scrollbox").innerHTML += response;

but you are right ! it is complicated for finally nothing tongue
the idea comme from http://www.phpfreechat.net ^^


(sorry for my poor english big_smile)

Re: OLD TOPIC TO DELETE

Always good to put in suggestions though... So fair play to you... smile

As for the english... mine is worse... and I am english. lol

Re: OLD TOPIC TO DELETE

CodeXP wrote:

Ok, I think my ajax modification if the chatbox is working well enough for a release now smile

As I've previously mentioned, here are the most important functions I've added:
* AJAX for posting & refreshing chatbox.
* Added a delete function for moderators and admins. This is also handled using AJAX.
+++

[Download here]
[Demo]

This is not accessible at the moment. Where else can this be downloaded? Thank you.

43

Re: OLD TOPIC TO DELETE

qubertman wrote:
CodeXP wrote:

Ok, I think my ajax modification if the chatbox is working well enough for a release now smile

As I've previously mentioned, here are the most important functions I've added:
* AJAX for posting & refreshing chatbox.
* Added a delete function for moderators and admins. This is also handled using AJAX.
+++

[Download here]
[Demo]

This is not accessible at the moment. Where else can this be downloaded? Thank you.

My server is down (permanentely?), but I still have the file smile

Re: OLD TOPIC TO DELETE

Hi, great work so far.  I was wondering if there was a way to have the chatbox work on the main page instead of it being on a separate page.

45

Re: OLD TOPIC TO DELETE

hi,

this mod is great but i'm interesting to make a shoutbox in order to place it on all the page of my website. and i want to desactivate big image.

Any idea ?

Greg Serveur : www.gregserveur.com

46

Re: OLD TOPIC TO DELETE

Hey is there a easy way to move this chat to main page, make it more low and put it under the announcement ?

47 (edited by neofutur 2006-05-21 17:17)

Re: OLD TOPIC TO DELETE

CodeXP, if you need free hosting for your files or websites just ask me, i can give you a http://codexp.ww7.be within 30 mins wink


(  you links dont work ;( http://www.freefileupload.net/file.php? … x_ajax.zip

48 (edited by neofutur 2006-05-22 16:57)

Re: OLD TOPIC TO DELETE

ok after 200 tries I could download it.

I've put it on http://ww7.be/neofutur/tools/punbb/
and named it PBB_ChatBox_1.1ajax.tar.gz

it works very well on http://valombre.ww7.be and http://s2.travian.ww7.be

good work you too ( and special thanks for your ajax tricks codeXP )

PS: CodeXP contact me for a free codexp.ww7.be, your contributions needs hosting )

Re: OLD TOPIC TO DELETE

I 'm integrating the chatbox with javascript added.

I dont understand the rights code :
       if ($pun_user['g_id'] > PUN_MOD)

and why is there no group control ?

50 (edited by neofutur 2006-05-23 11:28)

Re: OLD TOPIC TO DELETE

i made a fast patch to have _minimum_ group control for guests cho cant read board to work.

see it at http://ww7.be/neofutur/tools/punbb/diff … ghts.patch

but its only a beginning, more needs to be done on group rights control

this is nearly a security problem nop ?