Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 4 1 2 3 4
Joined: Sep 2002
Posts: 26
Junior Member
Junior Member
Offline
Joined: Sep 2002
Posts: 26
Can Anyone Answer my question...

PLEASE.

Sponsored Links
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
public_forum_summary.pl, where chat mod modifies... Replace size="1" with size="$vars_style{TextSize}". then make yourself a big icon for chat.gif. tipsy

Joined: Sep 2002
Posts: 26
Junior Member
Junior Member
Offline
Joined: Sep 2002
Posts: 26
My Forum Summary does not let members know how many are in the chat room. I've seent his feature on several sites... Am I missing something. Currently it just has the CHAT ICON and no text on the right of it.

Please help.

Thanks!

Joined: Sep 2002
Posts: 26
Junior Member
Junior Member
Offline
Joined: Sep 2002
Posts: 26
Oh and I see a new verion as well. If I have a working version of 1.1

What do i need to do to upgrade? Thanks in advance.

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
1. Make sure you uploaded "chat.cgi" to cgi-bin folder, and CHMODded it to 755.

2.
Quote
quote:
Originally posted by LK:
Okay, I removed that thingy. Please re-download chat mod, re-upload chat.cgi and rehack public_common.pl.

Sponsored Links
Joined: Sep 2002
Posts: 26
Junior Member
Junior Member
Offline
Joined: Sep 2002
Posts: 26
Who was this in response to LK?

Please help...

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
1 was your first post, 2 was your second (I listed the files you have to upgrade there tipsy )

Joined: Sep 2002
Posts: 26
Junior Member
Junior Member
Offline
Joined: Sep 2002
Posts: 26
The Chat works fine... And I've uploaded the new files, but I still don't have any text mentioning how many users are currently in the Chat Room.

Chat.cgi is in my cgi-bin directory and chmod correctly. Cache has been cleared... What else am I missing?

Joined: Sep 2002
Posts: 26
Junior Member
Junior Member
Offline
Joined: Sep 2002
Posts: 26
When I type in this url:

http://www.filambasketball.com/cgi-bin/chat.cgi?f=summary

A download button comes up... If that helps.

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Are you sure you have Mod Wordlets, and added Chat Mod wordlets for it?

Sponsored Links
Joined: Sep 2002
Posts: 26
Junior Member
Junior Member
Offline
Joined: Sep 2002
Posts: 26
Just made sure... Yes. Cleared cache... Still nothing.

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Well, I'm sure you did it incorrectly wink

Joined: Sep 2002
Posts: 26
Junior Member
Junior Member
Offline
Joined: Sep 2002
Posts: 26
I'm gonna try to re-hack again... Everything else seems to work, it's just the summary of who's online that is not showing?!?! I know it must be something real simple. Should I just redo everything?

I'm sure you're right... I am missing something. Just thought I could skip the entire rehack... frown

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Probably vars_wordlets_mods instructions of chat mod, or ultimatebb.cgi instructions of wordlet mods... If you still can't fix it, please gimme a user/pass for your board tipsy

Joined: Sep 2002
Posts: 26
Junior Member
Junior Member
Offline
Joined: Sep 2002
Posts: 26
Just sent you user/pass

Joined: Sep 2002
Posts: 26
Junior Member
Junior Member
Offline
Joined: Sep 2002
Posts: 26
still not working... frown

Joined: Sep 2002
Posts: 26
Junior Member
Junior Member
Offline
Joined: Sep 2002
Posts: 26
Hey LK,

Still trying to figure out why the chat summary is not displaying on my forum summary page.

Any other ideas?

Joined: Mar 2000
Posts: 63
Member
Member
Offline
Joined: Mar 2000
Posts: 63
Hi, does anyone know if this chat mod will work with version 6.3.1.1 of UBB?

Ta much.

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Please try it before asking wink

Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
LK, I am running your chat mod on my 6.1.0.4 system. I noticed that your new version includes a drop down for sounds. Could you tell me where and what code to place so I can do the same?

Thanx

Joined: Mar 2001
Posts: 37
Member
Member
Offline
Joined: Mar 2001
Posts: 37
Quote
quote:
Originally posted by FilAm Basketball:
Hey LK,

Still trying to figure out why the chat summary is not displaying on my forum summary page.

Any other ideas?
If you get it working can you tell me as i am having the same problem and when i try going to ultimatebb.cgi?ubb=chat it tells me:

You are attempting to reach a page that does not exist.

» Please use your browser's back button to return.

Any ideas?

SSJ

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
about ?ubb=chat - rehack ultimatebb.cgi

about forum summary - I need your URL.

QuickSI:
Code
	if ($vars_chat{Sound}) {
local(*DIR);
opendir(DIR, "$vars_config{NonCGIPath}") || die "can't opendir NonCGI dir: $!";
my @sounds = grep { /sound_.*?.au/ } readdir(DIR);
closedir DIR;

$ImportantButtons .= qq~<td align="center">n<form id="sound">n<select id="sounds" onchange="if(sound.sounds.options[sound.sounds.selectedIndex].value != '') { jchat.processJInput('/s '+sound.sounds.options[sound.sounds.selectedIndex].value) }">n<option value="" selected="selected">$vars_wordlets_mods{chat_sounds}</option>n<option value="">------------</option>n~;

my $upname; my $regname;

foreach(@sounds) {
$_ =~ m/sound_(.*?).au/;
$upname = $regname = $1;
$upname =~ s/$upname/u$upname/;
$ImportantButtons .= "<option value="$regname">$upname</option>n";
}

$ImportantButtons .= "</select>n</td>";
}

Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
LK, thanx! But what file does this go into and after/before what?

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
ubb_chat.cgi, it goes after
Code
		$ImportantButtons .= qq~<td align="left">n<font face="$vars_style{FontFace}" size="$vars_style{TextSize}"><a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=newinvite" target="_blank"><img src="chat_envelope.gif" alt="$vars_wordlets_mods{chat_send_invitation}" border="0" /> $vars_wordlets_mods{chat_send_invitation}</a></font>n</td>n~;
}
and if you don't have it, put it after $ImportantButtons = line.

Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
Ok tried to place it after one of those lines and nothing appeared. Here is the section I was using:

Code
		$Graemlins .= qq~
</td></tr>
$TBB
</td></tr></table>


~;
}

$ImportantButtons = qq~<table width="$vars_chat{Width}" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td width="100%">~;
if ($vars_chat{Invite}) {
$ImportantButtons .= qq~<font face="$vars_style{FontFace}" size="$vars_style{TextSize}"><a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=newinvite" target="_blank"><img src="chat_envelope.gif" alt="$vars_wordlets_mods{chat_send_invitation}" border="0" /> $vars_wordlets_mods{chat_send_invitation}</a></font></td>~;
}

if ($vars_chat{Sound}) {
local(*DIR);
opendir(DIR, "$vars_config{NonCGIPath}") &#0124;&#0124; die "can't opendir NonCGI dir: $!";
my @sounds = grep { /sound_.*?.au/ } readdir(DIR);
closedir DIR;

$ImportantButtons .= qq~<td align="center">n<form id="sound">n<select id="sounds" onchange="if(sound.sounds.options[sound.sounds.selectedIndex].value != '') { jchat.processJInput('/s '+sound.sounds.options[sound.sounds.selectedIndex].value) }">n<option value="" selected="selected">$vars_wordlets_mods{chat_sounds}</option>n<option value="">------------</option>n~;

my $upname; my $regname;

foreach(@sounds) {
$_ =~ m/sound_(.*?).au/;
$upname = $regname = $1;
$upname =~ s/$upname/u$upname/;
$ImportantButtons .= "<option value="$regname">$upname</option>n";
}

$ImportantButtons .= "</select>n</td>";
}
Here is the link if you need it:
http://www.hostboard.com/cgi-bin/ultimatebb.cgi?ubb=chat

...

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Because you should remove the if ($vars_chat{Sound}) { thing (and the "}" at the end) tipsy

Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
Hey now for someone who know zero perl I am getting by pretty well wink

But isn't that part of the code you just told me to add?

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
It's part of the code that handles sounds, I didn't tell you to add it wink

Joined: Mar 2001
Posts: 37
Member
Member
Offline
Joined: Mar 2001
Posts: 37
I've rehacked ultimatebb.cgi and still the same.

The owner doesnt want me giving out the forum address - Soz.

Anymore ideas?

SSJ

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Forum summary - rehack vars_wordlets_mods.cgi, then rehack ultimatebb.cgi steps from MOD WORDLETS instructions @ www.qasic.net

?ubb=chat - rehack ultimatebb.cgi (chat mod, not wordlets) again wink the step with if ($ubb eq 'chat') {

Joined: Mar 2001
Posts: 37
Member
Member
Offline
Joined: Mar 2001
Posts: 37
Got the forum summary working but i re and rehacked the ?ubb=chat part and i still get the same. is there anything else?

SSJ

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Nothing else, do it AGAIN tipsy It _has_ to be it.

Joined: Mar 2001
Posts: 37
Member
Member
Offline
Joined: Mar 2001
Posts: 37
Quote
code:
Code
 if ($ubb eq 'chat') {
&RequireCode("$vars_config{CGIPath}/ubb_chat.cgi");
&chat;
exit(0);
}

if ($vars_chat{Invite}) {
if ($ubb eq 'newinvite') {
&RequireCode("$vars_config{CGIPath}/ubb_chat.cgi");
&invite_form("$vars_wordlets_mods{invite_message}");
exit(0);
}

if ($ubb eq 'invite') {
&GetOrPost("POST");
&RequireCode("$vars_config{CGIPath}/ubb_chat.cgi");
&invite;
exit(0);
}
}

That is what i'm adding in ulitmatebb.cgi right?

code:
[qb]
Code
 # forum summary
if ($ubb eq '') {
&RequireCode("$vars_config{CGIPath}/ubb_forum_summary.cgi");
&forum_summary;
exit(0);
[/qb]
Under that?

SSJ

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Quote
quote:
Originally posted by SuperSaiyan-Jin:
That is what i'm adding in ulitmatebb.cgi right?

code:
[qb]
Code
 # forum summary
if ($ubb eq '') {
&RequireCode("$vars_config{CGIPath}/ubb_forum_summary.cgi");
&forum_summary;
exit(0);
[/qb]
Under that?

SSJ
You forgot the "}" after "exit(0);"

Joined: Mar 2001
Posts: 37
Member
Member
Offline
Joined: Mar 2001
Posts: 37
Nevermind. One to many }'s

Thanks for your help LK

SSJ

*EDIT*

Its working now THANK YOU!!!!

*EDIT*

Joined: Mar 2002
Posts: 18
Junior Member
Junior Member
Offline
Joined: Mar 2002
Posts: 18
Question: Does the chat run off your server or IRC's server?

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
The IRC's server.

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Thanks to http://www.vwcorrado.de , we have a TCL version for the eggdrop: it shows the exact details about chat visitors. untested.

TCL file: https://www.ubbdev.com/ubb/upload/00004463/userlist.zip

Instructions:
Code
What I did to chat.cgi was:

if ($in{f} eq 'topic') {

my @file = &OpenFileAsArray("$vars_config{MembersPath}/chat.cgi");
my $chat_topic = $file[0];

my $chat_user = $file[1];
my $chat_counter = $chat_user =~ tr/,/,/s;
$chat_counter++;

$chat_topic =~ s/</</g;
$chat_topic =~ s/>/>/g;
$chat_topic =~ s/"/"/g;

if (length($chat_topic) > 55) {
$chat_topic = substr($chat_topic,0,54);
$chat_topic .= "[...]";
}

$ChatHTML .= "Aktuelle Besucher: $chat_counter</b> - Thema: '$chat_topic'";
$ChatHTML =~ s/"/\"/isg;
print "Content-type:
text/javascriptnndocument.write("$ChatHTML");"; exit(0);

}

if ($in{f} eq 'summary') {

my @file = &OpenFileAsArray("$vars_config{MembersPath}/chat.cgi");

my $chat_topic = $file[0];
my $chat_user = $file[1];
my $chat_counter = $chat_user =~ tr/,/,/s;
$chat_counter++;

my $ChatHTML;

$ChatHTML .= "$chat_user";
$ChatHTML =~ s/"/\"/isg;
print "Content-type:
text/javascriptnndocument.write("$ChatHTML");"; exit(0);

}
That is instead of everything between if ($in{f} eq 'summary') { and }.

Joined: Mar 2001
Posts: 65
Member
Member
Offline
Joined: Mar 2001
Posts: 65
Additionaly, you should put a
Quote
code:
Code
<script type="text/javascript" src="$vars_config{CGIURL}/chat.cgi?f=topic"></script> 

in public_forum_summary.html where you would like to display the topic. I did it just right after $vars_wordlets_mods{chat}

I put this code after

$Top .= $pntf_locations[1];

code:
[qb]
Code
	$Top .= qq~

<tr bgcolor="$vars_style{CategoryStripColor}">
<td colspan="8">
<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=chat"><font size="1" face="$vars_style{FontFace}" color="$vars_style{CategoryStripTextColor}"><b>$vars_wordlets_mods{chat} - <script type="text/javascript" src="$vars_config{CGIURL}/chat.cgi?f=topic"></script></font></a>
</td>
</tr>
<tr>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="center"><img src="$vars_config{NonCGIURL}/chat.gif" border="0" alt="" /></td>
<td colspan="6" bgcolor="$vars_style{AltColumnColor2}">
<font size="1" face="$vars_style{FontFace}">
<script type="text/javascript" src="$vars_config{CGIURL}/chat.cgi?f=summary"></script>
</font></td></tr>

~;
[/qb]
and deleted the other chat-display-stuff in "sub PageBottom {"

Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Yes, thanks, I forgot about it smile

BTW, the code I posted above has "Thema", "Aktualle Besucher"... It's "Topic" and "Actual Guests"/"Actual Users", it's suggested to translate it to English tipsy

Page 3 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)