1 (edited by pokemon_jojo 2016-09-16 13:32)

Topic: OLD TOPIC TO DELETE

OLD TOPIC TO DELETE

2

Re: OLD TOPIC TO DELETE

I have installed the chatbox, but it dosent work..
When i send a message it says "Sending..." and nothing happens...
So do you have any idea of what to do now?

Re: OLD TOPIC TO DELETE

wooww.. awsome.. smile i haven't test it but i think this should be nice

4 (edited by pokemon_jojo 2005-07-20 23:39)

Re: OLD TOPIC TO DELETE

ha ha, it's just this fuc... IE ^^. FireFox was ok for me ^^.

I have made the correction for IE. Just download again the "new" source. And replace all the files. (But don't execute install_mod.php again)

Sorry for this desagreement wink

5

Re: OLD TOPIC TO DELETE

Can you please give a link to a working example?  I'd like to check out the functionality before I attempt an install.

Thanks

6 (edited by faax 2005-07-21 14:37)

Re: OLD TOPIC TO DELETE

you can see http://www.maglaj.net/forum/chatbox.php ...

it's just me...

7

Re: OLD TOPIC TO DELETE

How can I do to integrate the chatbox inside an iframe in all the forums pages ??? It would be better to have access on the whole forum instead of a single page, which prevents from surf on the forum.

8 (edited by pokemon_jojo 2005-07-21 18:30)

Re: OLD TOPIC TO DELETE

@faax : Can you post me your traduction, for this mod and PBB Gallery 2.0 mod please for i can add them to the other language.

thx

@Rod : Maybe in the future version ^^ (But before i need to finish PBB Gallery wink)

9 (edited by snoogly 2005-07-25 02:13)

Re: OLD TOPIC TO DELETE

Whoops, I get this error when trying to launch the ChatBox:

Fatal error: Cannot redeclare preparse_bbcode() (previously declared in /home/***/public_html/brain/talk/include/parser.php:41) in /home/***/public_html/brain/talk/include/parser.php on line 41

(*** is censored info!)

If someone could tell me how to resolve this, i will be very happy!

Re: OLD TOPIC TO DELETE

Help! Can anyone help?? (see message above)

11

Re: OLD TOPIC TO DELETE

there is language

for gallery

<?php

// Language definitions used in gallery.php
$lang_gallery = array(

'Page_title'                =>  'Galerija fotografija',
'Gallery'                =>  'Galerija',
'Pictures'                =>  'Slike',
'Last post'                =>  'Zadnja slika',
'Empty gallery'            =>    'Galerija je prazna.',

'Post img'    =>    'Dodaj novu sliku',
'Index'    =>    'Po?etak galerije',
'Picture'                =>  'Pogledaj',
'Views'                =>  'Pregledano',
'Date post'                =>  'Datum postavljanja',
'Write message legend'    =>    'Dodajte Va? naslov, opis, i po?alji prijatelju',
'Title'    =>    'Naslov',
'Message'    =>    'Poruka',
'E-mail'    =>    'E-mail',
'Submit'    =>    'Potvrdi',
'Post img redirect'    =>    'Va?a slika je uspje?no postavljena. Preusmjeravam …',
'Announcement'    =>    'Annonce',
'Announcement_text'    =>    'The form below enables you to send an image in the gallery of the site. The image must be with format GIF or JPG, with a maximum size of <MAX_SIZE>. Do not forget to add a title and a small description of the image.<br /><br />The team of the site reserves the right to remove your image without notice. All images against the terms of use of the site will be removed. Any abuse will be immediately sanctioned.',

'Modo link'    =>    'Podesi slike',
'Modo Select'    =>    'Ozna?i',
'Modo Del'    =>    'Obri?i',
'Modo Move'    =>    'Pomjeri',
'Modo No select'    =>    'Morate ozna?iti sliku.',
'Modo Move legend'    =>    'Ozna?ite mjesto za pomjeranje',
'Modo Del legend'    =>    'Potvrdite brisanje',
'Modo Del confirm'    =>    'Da li ste sigurni da ?elite obrisati slike?',
'Modo Move to'    =>    'Pomjeri u',
'Modo Move redirect'    =>    'Slike pomjerene. Preusmjeravam …',
'Modo Del redirect'    =>    'Slike obrisane. Preusmjeravam …',

'Error Annonce'            =>    'Gre?ka :',
'Error No subject'            =>    'Niste upisali naslov.',
'Error Too long subject'        =>    'Naslov nemo?e biti du?i od 70 znakova.',
'Error No message'            =>    'Morate upisati poruku.',
'Error Too long message'        =>    'POruka nemo?e biti du?a od 70 znakova.',
'Error Too large ini'                =>    'Fajl je prevelik.  The server refuses its remote loading.',
'Error Too large'                =>    'The size of the file exceeds the authorized maximum.',
'Error Partial upload'                =>    'Partially downloaded file.',
'Error No file'                =>    'You did not select a file to be downloaded.',
'Error No tmp directory'                =>    'PHP could not safeguard the file sent in a temporary repertory.',
'Error Move failed'                =>    'The server could not record the downloaded file. Contact the administrator',
'Error Unknown failure'                =>    'Nepoznata gre?ka.',
'Error No Img View'                =>    'Nema slike.',

'Error FTP connect'                =>    'Connection FTP failed. Start again later !',
'Error FTP upload_picture'                =>    'Image FTP loading failed. Start again later !',
'Error FTP upload_thumbs'                =>    'Image miniature FTP loading failed. Start again later !',

);

and for chatbox

<?php

// Language definitions used in chatbox.php
$lang_chatbox = array(

'Page_title'        =>    'Porukice',
'Chatbox'                =>    'Porukice',
'Posts'         =>    'Upisane porukice',
'Sending'                =>    'Slanje u toku...',

'No Read Permission'                =>    'Samo registrovani-prijavljeni ?lanovi mogu ?itati.',
'No Post Permission'                =>    'Samo registrovani-prijavljeni ?lanovi mogu pisati.',
'No Message'                =>    'Bez poruka.',

'Message'         =>    'Poruka',
'Btn Send'                =>    'Po?alji',
'Btn Refresh'            =>    'Osvje?i',

'Error No message'                =>    'Morate upisati poruku.',
'Error Too long message'  =>    'Va?a poruka je prevelika.',

);

There need charset windows-1250

it's just me...

Re: OLD TOPIC TO DELETE

Sorry faax, I just don't get it.

13 (edited by faax 2005-07-26 10:24)

Re: OLD TOPIC TO DELETE

snoogly wrote:

Sorry faax, I just don't get it.

wink this above is translate jojo's mod's on Bosnian language.

snoogly you need to check what is on line 41 in parser.php ...
Do u have read a readme.txt file about modification ?

it's just me...

Re: OLD TOPIC TO DELETE

Thanks for getting back to me. I followed all the instructions for the mod, and everything went smoothly until i tried to launch the chat box.

Line 4 of parser.php is:

 

function preparse_bbcode($text, &$errors, $is_signature = false)

Somehow I think something has gone wrong...

15

Re: OLD TOPIC TO DELETE

Dunno man, the problem is bbcode ... Ask pokemon_jojo for help ... You have unique error neutral

it's just me...

16

Re: OLD TOPIC TO DELETE

Works for me , but it should have a easy delete voices on chat.

17 (edited by Shinrai 2006-01-30 04:10)

Re: OLD TOPIC TO DELETE

I added some simple code to the end, after the last <?php tag:

<?php

header( 'refresh: 15; url=http://yourdomain.com/chatbox.php' );
?>

Some of my users wanted it to refresh automatically (lazy bums). wink

18 (edited by gleb 2006-01-30 11:30)

Re: OLD TOPIC TO DELETE

Do anyone have this problem with chatbox?

Let´s say you write a message (this message) "Hi, my name is Thomas and you?" You hit the send button and "woala" the line "Hi, my name is Thomas and you?" is included in the chat...so far so good. Okey let´s say you want to update the chatwindow now...you could do this in three diffrent ways...first is to hit the update button below the chat window and it works great no problems...but when you hit the refresh button in your browser or F5 there´s a message that the site "contains data that will be posted again"...this means that the line "Hi, my name is Thomas and you?" is going to be added everytime you hit refresh in your browser...shouldn´t there be some kind of "clearer" of this messeage field when you send the data? Hopefully you understand what I mean wink

19

Re: OLD TOPIC TO DELETE

is it possible to refresh the page with AJAX, when there is an update ... ?!

like this :
http://www.devarticles.com/c/a/XML/Buil … -Database/

20

Re: OLD TOPIC TO DELETE

Gooom wrote:

is it possible to refresh the page with AJAX, when there is an update ... ?!

like this :
http://www.devarticles.com/c/a/XML/Buil … -Database/

I'm working on it smile

Currently, I've implemented Ajax for posting (testing it at the moment for problems, as this is the first Ajax project I've done), and I'll probably have a nice refresh function there as well when I'm done. I don't have a public demo up yet though.

21 (edited by CodeXP 2006-03-15 13:20)

Re: OLD TOPIC TO DELETE

Ok, I've posted the first live test version of an Ajax version of this great mod (referring to the original script of course) smile

So far, there's ajax being used for both the send & refresh button. To be able to post, either create a test account for yourself (no verification needed), or use this account:

Username: test
Password: testuser

Feel free to spam, as that's kinda the point of a demo tongue

URL: http://www.thesecondscreen.com/chatbox.php

EDIT: Just added functions to delete messages from the chatbox,  both with & without Ajax wink

Re: OLD TOPIC TO DELETE

CodeXP wrote:

Ok, I've posted the first live test version of an Ajax version of this great mod smile

You trully are a great one!!!

Cant wait for release smile smile smile

23

Re: OLD TOPIC TO DELETE

+1

this is great !!! smile
the refresh can be automatic ?! (with a timer for exemple that it check the database with a little sql like the last date... big_smile)

Re: OLD TOPIC TO DELETE

@codexp
Did you change lots of the code?

The only reason I ask... is because I have bodged a Shoutbox out of this chatbox mod and would be great to add your ajax aspect to it. wink

25 (edited by CodeXP 2006-03-15 13:46)

Re: OLD TOPIC TO DELETE

@Gooom: Yes, that wouldn't be that hard, but you wouldn't want to set the time to low, as it *does* actually run a SQL query. Setting it to something like 10-15 seconds would be fine though smile

@StevenBullen: There is some changed code, but nothing that would be hard to replicate throughout your already modified version. smile

EDIT:

By the way, here's how the delete links are placed currently (IP's censored):
http://img162.imageshack.us/img162/9610/chatboxbeforedelete3hg.th.jpg

And here we're deleting a message, using ajax:
http://img162.imageshack.us/img162/9853/chatboxdeleting6ug.th.jpg

Simple & effective. I'm starting to like this ajax thing for certain features, even though this is my first time using it I had a difficult time getting started, as I didn't want to use any of those "use-for-everything" libraries, but now I see that the basics is not really all that hard smile).