|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
My first mod, ported to 6.3 Here we go: Name: Chat Mod Description: Lets you chat with jIRC. It has full CP support, it's 100% wordletized, it automatically gets the nick of the user/GuestXXXXX (5 random digits) if it's a guest, replaces smilies with real smilies, shows how many people are currently chatting and even invites people to the chatroom (by Recent Visitors, thanks to Olson). Demo: http://www.lkworld.com Link: ZIP File or MultiHack File Requirements: UBBâ„¢ 6.3.0 Beta Release 1.0 , Mod Wordlets , jPilot License (unless you want to see an "unregistered" line after every line) Number of downloads: [img]https://ubbdev.com/lk/num.php?s=chat.zip,chat.mhp[/img] Special thanks to: Ryan Olson for Invitation Script, Brett (raiyan) for JavaScript idea, dj_rava for the Admin Command Buttons idea and Troy for MultiHack, hosting and supporting me all the way  . Screenshots: Forum Summary , Chat Window , CP
|
|
|
|
Joined: Dec 2000
Posts: 371
Member
|
Member
Joined: Dec 2000
Posts: 371 |
Great work LK, installed and working! But the invite is not working, it gives errors. I checked the readme again but all was put in the right place.
It has something to do with templatenumber(s) ???
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Fixed 
|
|
|
|
Joined: May 2001
Posts: 186
Member
|
Member
Joined: May 2001
Posts: 186 |
Can't find this in my ultimatebb.cgi:
Find: =====
} elsif ($in{ubb} =~ m/^(pntf|pntf_js|pntf_admin|preview_post)$/) { $templatefile = $template_match{summary_page};
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Ignore that part, I forgot to upload the ZIP without it
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
ZIP/MHK files updated - I forgot about a Wordlet - "FieldNameSignoff" - please add it Modified files: ubb_chat and vars_wordlets_mods
|
|
|
|
Joined: May 2001
Posts: 186
Member
|
Member
Joined: May 2001
Posts: 186 |
Error:
LoadStyleTemplate no longer takes a number.
(Backtrace: : ubb_lib.cgi:1830 -> sub main::Tracer)
(Backtrace: : ubb_chat.cgi:15 -> sub main::LoadStyleTemplate)
(Backtrace: : ultimatebb.cgi:526 -> sub main::chat)
|
|
|
|
Joined: May 2001
Posts: 186
Member
|
Member
Joined: May 2001
Posts: 186 |
Call me an idiot. I forgot to upload the 3 cgi-and-pl-files in chat.zip :rolleyes:
|
|
|
|
Joined: May 2001
Posts: 186
Member
|
Member
Joined: May 2001
Posts: 186 |
Just one question: in this new version, the chat reloads continuesly - isn't that to much serverload?
|
|
|
|
Joined: Jun 2001
Posts: 297
Member
|
Member
Joined: Jun 2001
Posts: 297 |
|
|
|
|
Joined: May 2001
Posts: 186
Member
|
Member
Joined: May 2001
Posts: 186 |
*ahem* Forget that too. I wasn't at 100% yesterday. Had to run the config in CP once... It loads cont., if you don't give any time for how often the userlist refreshes :rolleyes: Just ignore all my text in here 
|
|
|
|
Joined: Jan 2001
Posts: 38
Member
|
Member
Joined: Jan 2001
Posts: 38 |
Where it says to look for this... quote: sub OpenFileAsVar { push (@openedfiles, $_[0]); local (*FILE); local ($str);
if (-e "$_[0]") { my $handle = $filehandle->open('file', 'readonly', $_[0]); $str = $handle->readfile(); $filehandle->close($handle); } else { &CheckCachedFile($_[0]); } chomp($str);
It is actually:
quote: push (@openedfiles, $_[0]); local (*FILE); local ($str);
if (&FileExists($_[0])) { my $handle = $filehandle->open('file', 'readonly', $_[0]); $str = $handle->readfile(); $filehandle->close($handle); } else { &CheckCachedFile($_[0]); } chomp($str);
The part that is different:
In your code you have
quote: if (-e "$_[0]") {
In the ubb 6.3X file it is:
quote: if (&FileExists($_[0])) {
At least it was that way for me.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Yup, sorry, thanks 
|
|
|
|
Joined: Jan 2001
Posts: 38
Member
|
Member
Joined: Jan 2001
Posts: 38 |
Your welcome!!! I'm glad I could put my 1 cent in and help out a little. 
|
|
|
|
Joined: Nov 2001
Posts: 745
Admin Emeritus
|
Admin Emeritus
Joined: Nov 2001
Posts: 745 |
LK, I haven't looked at the code in a while. Is it possible to shorten the random digits for guests to like 3 or 4? I know a place where they would never get over 999 Guests using Guest### (actually the chatserver would probably crash)
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
5 digits == world standard.
But:
$nick = "Guest$digit[rand(10)]$digit[rand(10)]$digit[rand(10)]$digit[rand(10)]$digit[rand(10)]";
Delete the last two $digit[]
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Fixed a problem: most admin commandbuttons didn't work. Please upload the new ubb_chat.cgi 
|
|
|
|
Joined: Sep 2001
Posts: 57
Member
|
Member
Joined: Sep 2001
Posts: 57 |
I have a probelm, i see the little logo chat and no the text for connect to the chat : My URL
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Reinstall Mod Wordlets - www.qasic.net and rehack vars_wordlets_mods.cgi part of chat mod.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
ZIP/MHK files updated - added HTML feature to CP.
Please re-upload cp_vars_chat.pl, ubb_chat.cgi and rehack cp_lib.cgi.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Fixed a bug in the counter - please re-upload ubb_chat.cgi 
|
|
|
|
Joined: Sep 2001
Posts: 57
Member
|
Member
Joined: Sep 2001
Posts: 57 |
Now i have this message when i run my forum :
Software error: Execution of /home/sites/site1/users/jano/web/cgi/ubbcgi/ultimatebb.cgi aborted due to compilation errors. For help, please send mail to the webmaster (admin), giving this error message and the time and date of the error.
What can i do ?
Thanks.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
It doesn't really help, rehack everything  If it still doesn't work, please leave your ICQ/AIM/MSN/Yaho! ID
|
|
|
|
Joined: Sep 2001
Posts: 57
Member
|
Member
Joined: Sep 2001
Posts: 57 |
I send you PM for ICQ.
If i re-hack ultimatebb.cgi i have the same problem, in manual mode or with multihack. I use 6.3 beta 2.
Thanks.
|
|
|
|
Joined: May 2002
Posts: 28
Junior Member
|
Junior Member
Joined: May 2002
Posts: 28 |
I tried it on 6.3 Beta 2... no luck. Any major changes to get it to work here. Love to have this one on my board. Thx
|
|
|
|
Joined: Feb 2001
Posts: 78
Member
|
Member
Joined: Feb 2001
Posts: 78 |
Using multihack I also get
Software error: Execution of /home/sites/site4/web/cgi/cgi-bin/ultimatebb.cgi aborted due to compilation errors. For help, please send mail to the webmaster (admin), giving this error message and the time and date of the error.
Ive rehacked it 3 different times. Ive tryed it live on the web and incase I did permissions wrong or something strange, I also hacked it on my PC local board and still same error.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Blame Qasic Open ultimatebb.cgi. Find: wordlet_mods Replace with: wordlets_mods Open vars_wordlets_mods.cgi. Try to find: wordlet_mods Replace with: wordlets_mods If even 1 of them is there, it should work after fixing it. If not, do you have AIM/ICQ/MSN?
|
|
|
|
Joined: Feb 2001
Posts: 78
Member
|
Member
Joined: Feb 2001
Posts: 78 |
Yup, the spelling error was the problem. Works now, Thanks!
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Fixed a minor bug in ubb_chat.cgi, please re-upload from the updated ZIP/MHP.
|
|
|
|
Joined: Oct 2000
Posts: 51
Member
|
Member
Joined: Oct 2000
Posts: 51 |
hi i'm getting htat complication error too and i checked if the spelling was correct and they are
any help would be nice thnx in a advanced
|
|
|
|
Joined: Apr 2001
Posts: 20
Junior Member
|
Junior Member
Joined: Apr 2001
Posts: 20 |
|
|
|
|
Joined: Feb 2002
Posts: 2,286
Veteran
|
Veteran
Joined: Feb 2002
Posts: 2,286 |
Hi LK,
Mod works great, now that I figured out the spelling error for wordlets_mod etc. Mind you the chat message in category view is showing up twice, and twice in the CP as well - weird, will have to edit those out.
Question - how does the invite work, as although no errors happen, no invite is ever received. Is there anything else I need to add.
Ian
Fans Focus - Focusing on Fans of Sport (Okay - mainly football (the British variety at the moment - but expanding all the time....)
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
1) so you hacked it twice 2) it should work, try to rehack public_common.pl?
|
|
|
|
Joined: Feb 2002
Posts: 2,286
Veteran
|
Veteran
Joined: Feb 2002
Posts: 2,286 |
a) probably correct b) public_common.pl fine - just the one line added - but still no joy Re-checked each file, just in case Ian
Fans Focus - Focusing on Fans of Sport (Okay - mainly football (the British variety at the moment - but expanding all the time....)
|
|
|
|
Joined: May 2002
Posts: 28
Junior Member
|
Junior Member
Joined: May 2002
Posts: 28 |
Invite feature doesn't work on my board either. Sometimes you get a delayed invite message and other times it doesn't work at all. 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Canvey, I visited your site and can say for sure that you didn't hack JCTemplates/public_common.pl correctly Eagle, I need a demo user/pass for eaglecrew.com.
|
|
|
|
Joined: May 2002
Posts: 28
Junior Member
|
Junior Member
Joined: May 2002
Posts: 28 |
LK sent the login nfo to your dkldkl2@ email address. Thanks! 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Okay, the problem is in ultimatebb.php - doesn't chop. Try the following and tell me if it works before I update the ZIP: Open ultimatebb.cgi. Find: 
|
|
|
|
Joined: May 2002
Posts: 28
Junior Member
|
Junior Member
Joined: May 2002
Posts: 28 |
I think you meant to say Open ultimate.php not ultimate.cgi? Edited the php file and still doesn't seem to work right and now I show up twice in the chatroom? 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Worked when I tried  (notice: it only works in forum summary, forum page, topic page, faq, ubbcode page)
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|