Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 4 1 2 3 4
#151155 04/13/2002 7:48 AM
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
My first mod, ported to 6.3 laugh

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 smile .

Screenshots: Forum Summary , Chat Window , CP

Sponsored Links
Joined: Dec 2000
Posts: 371
Member
Member
Offline
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
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Fixed smile

Joined: May 2001
Posts: 186
Member
Member
Offline
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
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Ignore that part, I forgot to upload the ZIP without it

Sponsored Links
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
ZIP/MHK files updated - I forgot about a Wordlet - "FieldNameSignoff" - please add it smile

Modified files: ubb_chat and vars_wordlets_mods

Joined: May 2001
Posts: 186
Member
Member
Offline
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
Offline
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
Offline
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
Offline
Joined: Jun 2001
Posts: 297
The page or the applet?

Sponsored Links
Joined: May 2001
Posts: 186
Member
Member
Offline
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 wink

Joined: Jan 2001
Posts: 38
Member
Member
Offline
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
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Yup, sorry, thanks smile

Joined: Jan 2001
Posts: 38
Member
Member
Offline
Joined: Jan 2001
Posts: 38
Your welcome!!!

I'm glad I could put my 1 cent in and help out a little.

laugh

Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
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
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
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
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Fixed a problem: most admin commandbuttons didn't work. Please upload the new ubb_chat.cgi smile

Joined: Sep 2001
Posts: 57
Member
Member
Offline
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
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
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
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
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
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Fixed a bug in the counter - please re-upload ubb_chat.cgi smile

Joined: Sep 2001
Posts: 57
Member
Member
Offline
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
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
It doesn't really help, rehack everything wink If it still doesn't work, please leave your ICQ/AIM/MSN/Yaho! ID

Joined: Sep 2001
Posts: 57
Member
Member
Offline
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
Offline
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. laugh

Thx

Joined: Feb 2001
Posts: 78
Member
Member
Offline
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
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Blame Qasic tipsy

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
Offline
Joined: Feb 2001
Posts: 78
Yup, the spelling error was the problem. Works now, Thanks!

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
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
Offline
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
Offline
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 wink at the moment - but expanding all the time....)
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
1) so you hacked it twice tipsy

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 smile

b) public_common.pl fine - just the one line added - but still no joy frown

Re-checked each file, just in case frown

Ian


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: May 2002
Posts: 28
Junior Member
Junior Member
Offline
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. frown

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
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 tipsy

Eagle, I need a demo user/pass for eaglecrew.com.

Joined: May 2002
Posts: 28
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 28
LK sent the login nfo to your dkldkl2@ email address.

Thanks! laugh

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
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:
Code
[/code]Add below:[code]
smile

Joined: May 2002
Posts: 28
Junior Member
Junior Member
Offline
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? confused

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Worked when I tried smile (notice: it only works in forum summary, forum page, topic page, faq, ubbcode page)

Page 1 of 4 1 2 3 4

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)