The BoardMod Project
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum
BoardMod Support Forum
[ Home | Help | Search | Login | Register ]  

19.05.13 at 19:33:56, Welcome, Guest. Please Login or Register

Choose Language:
Pages: 1 ... 4 5 6 7 
Shoutbox 5.5 for YaBB 2.4 (Read 41557 times)
Derek Barnstorm
Hacker God
*****
Offline

Warwickshire, United Kingdom
Posts: 1112



Reply #75 - 06.03.10 at 17:59:31  
Hi DOT-COM,

D0T-C0M wrote on 06.03.10 at 12:50:00:
In forums with "Auto-link URLs? " disabled, if a user copies the url and pastes to his browser does the link with a linebreaked URL still work? With "Auto-link URLs? " enabled does the link work?

Just tested this and when 'Auto-link URLs?' is disabled the link doesn't wrap anyway - this is how it's handled when making normal posts. To test, make a post with a URL with more than 80 characters - when enabled it cuts off as it should, but when disabled you get the full URL. But, yes, when enabled the link does work.

D0T-C0M wrote on 06.03.10 at 12:50:00:
I can live with a manual setting for linebreak but I suggest it would be easier for the average user if you just set the linebreak variable to whatever the admin determines the width of the shoutbox to be?

For example,  If the user chooses 400 for the shoutbox width than make the line break at
$linewrap= $shout_width - (width of the vertical scrollbar if used + width of margins).

It's a nice thought, but I personally think it's best to do it the way that ThM already has - reason being is that 400px isn't as wide as 400 characters (also depending on the character and font size) - if that makes sense...
« Last Edit: 06.03.10 at 22:23:41 by Derek Barnstorm »  
IP Logged
 
D0T-C0M
Hacker God
*****
Offline

Tracadie, New Brunswick, Canada
Posts: 806



Reply #76 - 09.03.10 at 12:21:22  
Derek Barnstorm wrote on 06.03.10 at 17:59:31:
It's a nice thought, but I personally think it's best to do it the way that ThM already has - reason being is that 400px isn't as wide as 400 characters (also depending on the character and font size) - if that makes sense...


I guess I can live with the the manual setting on this.  Anyways regardless I just wanted a way to break long lines of text/url that contain no spaces.

Derek Barnstorm wrote on 06.03.10 at 17:59:31:
Just tested this and when 'Auto-link URLs?' is disabled the link doesn't wrap anyway - this is how it's handled when making normal posts.


This is the problem I am having. I have this setting turn to disabled. So you are saying even with this new linebreak code it still won't wrap in this case?
 
IP Logged
 
ThM
Hacker God
*****
Offline

Germany, Nds., Niedersachsen, Germany
Posts: 585



Reply #77 - 09.03.10 at 16:14:13  
I don't know if i understand all, but when i disabled this option:

Quote:
Auto-link URLs?


and post a link in the shoutbox window i have a linebreak.

Edited:
A new version with some small changes and a linebreak setting is comming soon.


« Last Edit: 09.03.10 at 16:29:27 by ThM »  
IP Logged
 

lb.PNG (8 KB | 105 )
lb.PNG

Greeting ThM
Derek Barnstorm
Hacker God
*****
Offline

Warwickshire, United Kingdom
Posts: 1112



Reply #78 - 09.03.10 at 17:42:03  
I'm pretty sure that's just wrapping itself to the width of the ShoutBox though, and not through the actual line wrap feature.

Test it with a ridiculously long URL like this that has nowhere to naturally break...

http://thisisaridiculouslylongurlthatshouldruinthelayoutoftheshoutbox.com
 
IP Logged
 
Derek Barnstorm
Hacker God
*****
Offline

Warwickshire, United Kingdom
Posts: 1112



Reply #79 - 09.03.10 at 22:10:39  
Sorry DOT-COM, I've only just noticed your post...

D0T-C0M wrote on 09.03.10 at 12:21:22:
Derek Barnstorm wrote on 06.03.10 at 17:59:31:
Just tested this and when 'Auto-link URLs?' is disabled the link doesn't wrap anyway - this is how it's handled when making normal posts.


This is the problem I am having. I have this setting turn to disabled. So you are saying even with this new linebreak code it still won't wrap in this case?

Yes, that seems to be the case. There was already a line wrap/break for URLs built into the ShoutBox, but it didn't work because the variable was named wrong. That worked by splitting the URL with spaces like this:

Code:
http://thisisa ridiculouslylo ngurlthatshoul druinthelayout oftheshoutbox.com 


And that did work when 'Auto-link URLs?' was disabled, but I think the way that ThM is doing it now looks and works much better apart from that one problem.

There has got to be a simple fix for it, but I'm not too sure of the best way right now...

Edited:
If you do want to see how the old line wrap worked...

Find this in ShoutDisplay.pl:

Code:
sub my_wrap3 {
$shout_message =~ s~(<.*>)*(\S{0,14})(\S{0,14})?(\S{0,14})?(\S{0,14})?(\S*)?(<.*>)*~$1$2 $3 $4 $5 $6$7~gi;
$shout_message =~ s~(<.*>)?(\S{0,14})(\S{0,14})?(\S{0,14})?(\S{0,14})?(\S*)(<\/\S*>)~$1$2 $3 $4 $5 $6$7~gi;
$shout_message =~ s~\s+~ ~gi;
}

And replace with this:

Code:
sub my_wrap3 {
$message =~ s~(<.*>)*(\S{0,14})(\S{0,14})?(\S{0,14})?(\S{0,14})?(\S*)?(<.*>)*~$1$2 $3 $4 $5 $6$7~gi;
$message =~ s~(<.*>)?(\S{0,14})(\S{0,14})?(\S{0,14})?(\S{0,14})?(\S*)(<\/\S*>)~$1$2 $3 $4 $5 $6$7~gi;
$message =~ s~\s+~ ~gi;
}

Just in case you're interested.




« Last Edit: 09.03.10 at 22:54:36 by Derek Barnstorm »  
IP Logged
 
D0T-C0M
Hacker God
*****
Offline

Tracadie, New Brunswick, Canada
Posts: 806



Reply #80 - 09.03.10 at 23:38:12  
ThM wrote on 09.03.10 at 16:14:13:
I don't know if i understand all, but when i disabled this option:

Code:

Auto-link URLs?



and post a link in the shoutbox window i have a linebreak.


ThM the link you posted had a hyphen (-) and naturally it broke the line there.  Try an ebay link or something link that.
 
IP Logged
 
kigiin
Hacker Wannabe
**
Offline

Posts: 71



Reply #81 - 05.02.11 at 07:19:11  
Will this mod work on v2.5ae ? If not, is someone working on upgrading it?
 
IP Logged
 
ThM
Hacker God
*****
Offline

Germany, Nds., Niedersachsen, Germany
Posts: 585



Reply #82 - 05.02.11 at 14:11:29  
kigiin wrote on 05.02.11 at 07:19:11:
Will this mod work on v2.5ae  


Yes, but I plan to upgrade.

I don't like the actually shoutbox display position in the info-center. I am of the opinion that the area of the Info Center is too crowded because many other mods also use this position. I think it's better to place the Shoutbox to the top of the forum like in my board. Maybe I put two templates available for installation. But it takes a little longer.
 
IP Logged
 

Greeting ThM
kigiin
Hacker Wannabe
**
Offline

Posts: 71



Reply #83 - 05.02.11 at 20:33:46  
Thanks ThM
I saw your link and that really looks like a good solution ... I could use something like that! Any idea how long before that mod is available?
I'm still constructing my board and this is one mod I need.
I would appreciate a heads-up on a possible time frame.
In the mean time I'll be chomping at my bit.
Smiley
 
IP Logged
 
ThM
Hacker God
*****
Offline

Germany, Nds., Niedersachsen, Germany
Posts: 585



Reply #84 - 06.02.11 at 10:38:11  
kigiin wrote on 05.02.11 at 20:33:46:
Any idea how long before that mod is available?  


Hmm, don't know. Maybe at the end from the month. Currently I try a few things.  Wink
 
IP Logged
 

Greeting ThM
kigiin
Hacker Wannabe
**
Offline

Posts: 71



Reply #85 - 06.02.11 at 16:37:12  
ThM
Sounds great. I'll definitely keep my eye on here in anxious anticipation of the upgrade. I for one will appreciate the hard work you're putting into it.
Rockon my friend  Smiley
 
IP Logged
 
kigiin
Hacker Wannabe
**
Offline

Posts: 71



Reply #86 - 16.02.11 at 07:56:11  
I installed the mod and it works great on v2,5.
Only problem I have found is that the members name (in white) is difficult to see with the light background.
Is there a way to change the font color of the member so it will be better seen ... or maybe the Shout container line colors?
I certainly would appreciate any help in this matter.
Thanks.
 
IP Logged
 
Johan73
Bloody Novice
*
Offline

Posts: 1



Reply #87 - 25.04.11 at 18:24:22  
Bug report

I installed the mod last week on my forum (version 2.4) with a self-made Dutch language file and it works like a charm. Thanks! My members can now chat mindlessly without having to use the forum.  Smiley

Today however, the shoutbox got broken after a joker member posted three messages in a row with just a few words and a lot of final stops (according to him to to use up his 500 characters).  Roll Eyes

The message went something like: "I don't...........................................................................
.................................know".

After he posted three of those messages in a row, the shoutbox went down (just a gray window, no error message) and could only be restored by deleting those three messages in the admin.

Just wanted to inform you about this. Maybe you can implement a fix for this kind of excessive nonsense posts so that they won't get posted or at least don't crash the shoutbox?
 
IP Logged
 
Sara Myrphy
Bloody Novice
*
Offline

Posts: 1



Reply #88 - 11.07.11 at 10:21:48  
If you are upgrading from YaBB 2.1 or later, you will install a completely new version of YaBB 2.3.1 Forum Software forum and then import all your old forum's data.


and


Go to the Install section of this Quick Guide and follow all steps up to and including "Step 4 - Setting Up". Stop after you has done point 5 (which has you run the Setup program on the new forum).
 
IP Logged
 
MasterKarman
Hacker Wannabe
**
Offline

Karmanville, British Columbia, Canada
Posts: 90



Reply #89 - 15.02.13 at 21:00:19  
I'm having a strange problem and any thoughts or ideas would be greatly appreciated.

- I've been using the shoutbox since YaBB2.4, installed and working with no problems.
- Installed to YaBB2.5AE with boardmod (just a couple of tweaks to get it to work) uploads and works just fine.
- Installed to YaBB2.5.2 with boardmod (again just a couple of tweaks to get it to work) uploads and it throws a 500 internal error.

I double, triple, quadruple checked all the file permissions.
Uninstalled, reinstalled, rechecked file permissions, etc.
I even went as far as to change all of the YaBB2.5.2 file permissions to match the YaBB2.5AE file permissions and it still throws the 500 error.

I know it's not my host because I have a YaBB2.5AE installed on it using the shoutbox. What could be causing this?

Frusterated Karman
 
IP Logged
 

...
Pages: 1 ... 4 5 6 7 
© 2000-2012 by - All rights reserved.

Project website hosting proudly sponsored and provided by UK2 Hosting
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum