Page Index Toggle Pages: 1 ... 40 41 [42]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Community Project -- Shoutbox Mod 2.3.1 RC3 (Read 152667 times)
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: Community Project -- Shoutbox Mod 2.3.1 RC3
Reply #615 - Mar 23rd, 2009 at 3:44pm
Print Post  
In ShoutDisplay search for:

Code
Select All
($shout_time, $shout_displayname, $shout_username, $shout_message) = split(/[\|]/, $shoutline); 



and add after:

Code
Select All
if($shout_username eq $username) {
$online = qq~<img src="$defaultimagesdir/green1.gif" title="Online">~;
} else {$online = qq~<img src="$defaultimagesdir/red1.gif" title="Offline">~;} 



serach for:

Code
Select All
<td class="$class" style="font-size: 10px;"><div style="float:left;padding-right:3px;padding-left:3px;">$timestamp<b>&nbsp;$online $shout_displayname:</b></div><div style="float:right;padding-right:3px;padding-left:3px;">$delete_link</div><br />$shout_message</td> 



and add the highlighted.

Notice, that the parts above exists double!

Works only as member, if you logged in. For Guests the indicator displayed red. Hope, it run's perfect if many user logged in.

  

Greeting ThM
Back to top
 
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: Community Project -- Shoutbox Mod 2.3.1 RC3
Reply #616 - Mar 23rd, 2009 at 4:10pm
Print Post  
guests don't have access to my board so that will not be a problem . Thanks
  
Back to top
 
IP Logged
 
Unilat
Full Member
***
Offline



Posts: 164
Location: Making Stuff
Joined: Jun 26th, 2008
Gender: Male
Re: Community Project -- Shoutbox Mod 2.3.1 RC3
Reply #617 - Mar 23rd, 2009 at 7:37pm
Print Post  
ThM, all that code above does is tell whether you are online, and only you. It compares each shout username looped through to the current $username variable which is who is currently logged in. That means only you will display as online, which is evident because you are viewing the page and you know that you are online  Tongue

What you want is something similar to the quicklinks sub routine which has an if statement for online/offline display, just steal that because I know it works, I wrote it  Cheesy
  
Back to top
WWWAIM  
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: Community Project -- Shoutbox Mod 2.3.1 RC3
Reply #618 - Mar 23rd, 2009 at 8:20pm
Print Post  
Unilat wrote on Mar 23rd, 2009 at 7:37pm:
all that code above does is tell whether you are online, and only you.


Yes,  i've also noticed that ... sorry that it doesn't run as it should.
It was the attempt to understand the code .. unfortunately not successful.
I'm sure it works as you say and i try it again.
  

Greeting ThM
Back to top
 
IP Logged
 
batchman
Global Moderator
*****
Offline


What's up?!

Posts: 1280
Location: Orlando
Joined: Apr 28th, 2002
Gender: Male
Re: Community Project -- Shoutbox Mod 2.3.1 RC3
Reply #619 - Mar 24th, 2009 at 4:06pm
Print Post  
You may have access to my site again very shortly. I have finally managed to reach the owner of my host. He thinks the problem was probably caused by Mod Security (hopefully you know more about this than I do, but it is something in perl, itself, not YaBB), and is trying to deactivate it for my account, so we can continue any further work there.

Possibly, just knowing that is where the problem is coming from, might make it a little easier to solve.

Also, don't forget to adjust the two lines is Subs.pl, just to be safe, while working on my server.
  

Improving my forum, one mod at a time!


Now up and running again, with an accurate link.


Back to top
WWW  
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: Community Project -- Shoutbox Mod 2.3.1 RC3
Reply #620 - Mar 24th, 2009 at 4:24pm
Print Post  
@batchman Unilat has been making progress on my site.  We've fixed some bugs with some changes still needed but it works much better.

As far as your service provider blaming the banning on perl, I'm not sure that is the case.  He must have some other program doing the banning.  I have never run into addresses being banned by perl in the 10 years that I have been running linux servers.
  
Back to top
 
IP Logged
 
batchman
Global Moderator
*****
Offline


What's up?!

Posts: 1280
Location: Orlando
Joined: Apr 28th, 2002
Gender: Male
Re: Community Project -- Shoutbox Mod 2.3.1 RC3
Reply #621 - Mar 24th, 2009 at 8:11pm
Print Post  
Well, there is already code in YaBB (commented out, but the Codex has information on removing the '#'s so it is no longer commented out) specifically to deal with this issue, so it is a known thing.

I can't guarantee if Mod Security is perl, or something else, but it is certainly a known quantity, so to speak.
  

Improving my forum, one mod at a time!


Now up and running again, with an accurate link.


Back to top
WWW  
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: Community Project -- Shoutbox Mod 2.3.1 RC3
Reply #622 - Mar 24th, 2009 at 10:22pm
Print Post  
ok thanks I dint know it way a known issue. Weird that I've never encountered this anywhere else but your site Smiley
  
Back to top
 
IP Logged
 
batchman
Global Moderator
*****
Offline


What's up?!

Posts: 1280
Location: Orlando
Joined: Apr 28th, 2002
Gender: Male
Re: Community Project -- Shoutbox Mod 2.3.1 RC3
Reply #623 - Mar 25th, 2009 at 3:43am
Print Post  
Well, I am told Mod Security should be off for the time being, and that bans should have been removed.

Please let me know if you all still have any need for the forum, and verify you can get there again.
  

Improving my forum, one mod at a time!


Now up and running again, with an accurate link.


Back to top
WWW  
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: Community Project -- Shoutbox Mod 2.3.1 RC3
Reply #624 - Mar 25th, 2009 at 10:33am
Print Post  
I have access but the shoutbox on your site is refreshing out of control. I disconnected right away as to not get banned.  You can't see it constantly refreshing in the browser because it happens behind the scene but I can see it in the firebug addon in firefox. I had like 20 get commands in about 15 seconds.  just tried again and until it is fixed nobody should go to your site.
  
Back to top
 
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: Community Project -- Shoutbox Mod 2.3.1 RC3
Reply #625 - Apr 14th, 2009 at 10:31pm
Print Post  
Did someone from the Community Project a problem if i relaese the last version of the Shoutbox Mod with my additions (RC 5.4.1) for YaBB 2. 4?
  

Greeting ThM
Back to top
 
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: Community Project -- Shoutbox Mod 2.3.1 RC3
Reply #626 - Apr 14th, 2009 at 10:36pm
Print Post  
I have no problems. Did you get your online/offline stuff working?
  
Back to top
 
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: Community Project -- Shoutbox Mod 2.3.1 RC3
Reply #627 - Apr 14th, 2009 at 10:44pm
Print Post  
D0T-C0M wrote on Apr 14th, 2009 at 10:36pm:
I have no problems. 

thx  Wink

I'll wait on the other ...

D0T-C0M wrote on Apr 14th, 2009 at 10:36pm:
Did you get your online/offline stuff working?


No...  Cry
I've removed the code pieces.... Maybe i tried it later again ...
  

Greeting ThM
Back to top
 
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: Community Project -- Shoutbox Mod 2.3.1 RC3
Reply #628 - Apr 15th, 2009 at 12:37am
Print Post  
I've taken a bit of a break from coding for a little while. Nice weather is starting and I'm away from the computer more.  I will help as I can, Plus I just bought a couple trail bikes.  01 XR650L for me and a 2007 XT225 for the wife.

  
Back to top
 
IP Logged
 
batchman
Global Moderator
*****
Offline


What's up?!

Posts: 1280
Location: Orlando
Joined: Apr 28th, 2002
Gender: Male
Re: Community Project -- Shoutbox Mod 2.3.1 RC3
Reply #629 - Apr 15th, 2009 at 3:04pm
Print Post  
I'm always glad to see more updates.
  

Improving my forum, one mod at a time!


Now up and running again, with an accurate link.


Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 ... 40 41 [42] 
Send TopicPrint