collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 467
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: Shoutbox Text Box Size  (Read 20995 times)

0 Members and 1 Guest are viewing this topic.

Offline newtoallthis

  • Jr. Member
  • **
  • Posts: 94
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Shoutbox Text Box Size
« Reply #20 on: August 05, 2011, 02:58:08 PM »
Thanks for that. I have spent a lot of time looking at the CSS of the shoutbox in Firebug. No joy yet but I'll persevere.
SMF 2.0 Gold
SP 2.3.3

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Shoutbox Text Box Size
« Reply #21 on: August 08, 2011, 09:18:45 AM »
Then you have seen that the shoutbox input is
Code: [Select]
<input name="new_shout" class="shoutbox_input sp_float_left input_text" id="new_shout_1" type="text" />and that the css for .shoutbox_input is in portal.css, and that you can change the height for .shoutbox_intput to whatever you want?
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline newtoallthis

  • Jr. Member
  • **
  • Posts: 94
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Shoutbox Text Box Size
« Reply #22 on: August 10, 2011, 10:12:11 AM »
I have previously changed the text box height (and so have you if you read the earlier part of the thread). Problem is, the input remains as 'text' rather than 'textarea' and text can still only be added in one line.

I'm hoping to get the shout box text input box to behave (but of a smaller size) in the same way as the textarea into which I am typing this reply, the code I see being:-

Code: [Select]
<textarea style="width: 100%; height: 175px;" tabindex="2" onchange="storeCaret(this);" onkeyup="storeCaret(this);" onclick="storeCaret(this);" onselect="storeCaret(this);" cols="60" rows="12" id="message" name="message" class="editor"></textarea>
Where is the code to be found that you quoted in your last post?

SMF 2.0 Gold
SP 2.3.3

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Shoutbox Text Box Size
« Reply #23 on: August 10, 2011, 04:44:00 PM »
For
Code: [Select]
<div class="shoutbox_input smalltext">Look in PortalShoutbox.template.php.
On a test forum, test out using a textarea, to see if it works well for you.
If so, you can certainly use CSS to restyle it any way you want.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

AussieBill

  • Guest
Re: Shoutbox Text Box Size
« Reply #24 on: August 10, 2011, 08:06:59 PM »
Sorry, but I don't understand why the edit I posted here is not working for you, newtoallthis. It's working just fine on my site in a variety of browsers (FF5, IE8, Chrome & Opera). I'm thinking it could be a cache problem? Have you tried emptying the file cache in Admin->Maintenance->Routine? Perhaps you could try disabling and then re-enabling the ShoutBox and ShoutBox block? Have you tried re-uploading PortalShoutbox.template.php in case there was a problem with your FTP client? Sometimes, the browser cache has to be cleared several times before a change will show.

Has anyone else tried this edit? If so, did it work?

Anyway, to clarify things, here is the important part of the edit. The part that make the one-line text field into a multi-line text 'box':
Find:
Code: [Select]
<input type="text" name="new_shout" id="new_shout_', $shoutbox['id'], '" class="shoutbox_input sp_float_left input_text"', $context['browser']['is_ie'] ? ' onkeypress="if (sp_catch_enter(event)) { sp_submit_shout(' . $shoutbox['id'] . ', \'' . $context['session_var'] . '\', \'' . $context['session_id'] . '\'); return false; }"' : '', ' />Replace With:
Code: [Select]
<textarea class="smalltext" name="new_shout" id="new_shout_', $shoutbox['id'], '" style="width: 96%; height: 60px;"', $context['browser']['is_ie'] ? ' onkeypress="if (sp_catch_enter(event)) { sp_submit_shout(' . $shoutbox['id'] . ', \'' . $context['session_var'] . '\', \'' . $context['session_id'] . '\'); return false; }"' : '', ' /></textarea>The rest is just 'styling' to center the text box and put the button underneath. Compare those two bits of code and you can see how I did it. It's quite simple really!

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Shoutbox Text Box Size
« Reply #25 on: August 11, 2011, 09:28:18 AM »
Actually, even preserving
Code: [Select]
class="shoutbox_input in the textarea could be useful -- then it could be styled using CSS this way.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline newtoallthis

  • Jr. Member
  • **
  • Posts: 94
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Shoutbox Text Box Size
« Reply #26 on: August 11, 2011, 05:16:46 PM »
I'll try that again, thanks. A larger text box would be an improvement, but it's a user stretchable 'textarea' that I ultimately want to achieve.

In fact, it seems a logical improvement to SP. It can be easily set at any size by users.
SMF 2.0 Gold
SP 2.3.3

AussieBill

  • Guest
Re: Shoutbox Text Box Size
« Reply #27 on: August 11, 2011, 06:29:27 PM »
but it's a user stretchable 'textarea' that I ultimately want to achieve.
I just had a look with the browsers available to me. The textarea is stretchable (by dragging the 'handle' at bottom right with the mouse) in Firefox and Chrome, but not IE and Opera.

Offline newtoallthis

  • Jr. Member
  • **
  • Posts: 94
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Shoutbox Text Box Size
« Reply #28 on: August 12, 2011, 06:51:26 AM »
Thanks for persevering.

Tried the edit again on my test forum. (Original files should be OK. Uploaded from PC through cPanel with no problems.)

Edit didn't work.

I emptied the file cache several times both before and after the edit.

Disabled and re-enabled the shoutbox several times.

Created a new shoutbox.

Tried viewing in FF5, IE8 & Chome.

No change at all to existing or new shoutbox default appearance and/or functionality.
SMF 2.0 Gold
SP 2.3.3

AussieBill

  • Guest
Re: Shoutbox Text Box Size
« Reply #29 on: August 12, 2011, 06:06:56 PM »
Can you attach your PortalShoutbox.template.php file please?

Offline newtoallthis

  • Jr. Member
  • **
  • Posts: 94
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Shoutbox Text Box Size
« Reply #30 on: August 13, 2011, 06:33:14 PM »
Can you attach your PortalShoutbox.template.php file please?

I really do very much appreciate your perseverance.

PortalShoutbox.template.php attached.
SMF 2.0 Gold
SP 2.3.3

AussieBill

  • Guest
Re: Shoutbox Text Box Size
« Reply #31 on: August 14, 2011, 08:23:57 PM »
Strange... your file does not have the modified code in it. If that is the file you actually used it would explain why nothing changed! :0

Anyway, try the attached file, which is your file with my 'modification' (lines 159-164) included. Your file is now exactly the same as mine, so it should work!  8)

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Shoutbox Text Box Size
« Reply #32 on: August 15, 2011, 07:29:02 AM »
newtoallthis -- have you been able to replace the textbox with a textarea?
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline newtoallthis

  • Jr. Member
  • **
  • Posts: 94
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Shoutbox Text Box Size
« Reply #33 on: August 15, 2011, 05:49:27 PM »
The file I uploaded didn't contain the amendment because I'd removed it when it didn't work. I just wanted you to see that it was as it should be (i.e. not corrupted).

I've tried the new file on my test forum. I've emptied the file cache several times, refreshed the page, disabled and re-enabled the shout box and cannot see any change at all.

I'm on SMF 2.0 Gold and you seem to be running SMF 2 RC 3. Could that be an issue?? Also, the file permission for the old and new files are both 0644.
SMF 2.0 Gold
SP 2.3.3

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Shoutbox Text Box Size
« Reply #34 on: August 15, 2011, 07:10:32 PM »
Once you start using the new file, you'll see that you've got a textarea for shoutbox entry.
Then, you can start fiddling with it using CSS.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline newtoallthis

  • Jr. Member
  • **
  • Posts: 94
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Shoutbox Text Box Size
« Reply #35 on: August 16, 2011, 06:14:34 AM »
I've still got the amended PortalShoutbox.template.php file active and it does not make any difference to the appearance or functionality of the text input box on my test forum. No 'handle' is evident which can be grabbed and stretched.

If I understand AussieBill correctly, just that one edit to PortalBlocks.template.php will cause the desired change to occur without the need to tweak further in portal.css.
« Last Edit: August 18, 2011, 05:22:17 PM by newtoallthis »
SMF 2.0 Gold
SP 2.3.3

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Shoutbox Text Box Size
« Reply #36 on: August 16, 2011, 08:50:50 AM »
Some browsers provide you a "handle" to resize the textarea. Safari does.  IE does not.
You can use CSS to set the size of the textarea to be 2 lines high, if you like.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline newtoallthis

  • Jr. Member
  • **
  • Posts: 94
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Shoutbox Text Box Size
« Reply #37 on: August 16, 2011, 07:11:11 PM »
FF5 as it was, and now FF6, does support the rendering of a 'handle'.

FF is my default browser and no matter how I try, I cannot see a handle to the base of the SP shoutbox.

Thanks for your perseverance, chaps and chappeses, but the 'problem' remains open.
SMF 2.0 Gold
SP 2.3.3

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Shoutbox Text Box Size
« Reply #38 on: August 18, 2011, 07:15:12 AM »
What happens if you take out the explicit "width" or "height" parameters for the textarea? Does the handle return then?
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline newtoallthis

  • Jr. Member
  • **
  • Posts: 94
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Shoutbox Text Box Size
« Reply #39 on: August 18, 2011, 05:30:15 PM »
No it doesn't.

And, when I change the height from 60 px to 120 px, that makes no difference either.

It's almost as though the code content of Portal.Shoutbox.template.php has no bearing whatsoever on how the shoutbox behaves!
SMF 2.0 Gold
SP 2.3.3