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: 323
  • 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]

NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

Author Topic: Shoutbox Text Box Size  (Read 20994 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 #40 on: August 18, 2011, 05:32:18 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.

Have you tried the code tweak on this or any other site? Have you actually seen it work in the way it was intended??
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 #41 on: August 22, 2011, 08:35:55 AM »
This is very odd. So you have changed
Code: (find) [Select]
if ($context['can_shout'])
  echo '
   <div class="shoutbox_input smalltext">
    <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; }"' : '', ' />
to
Code: (replace) [Select]
if ($context['can_shout'])
  echo '
   <div class="shoutbox_input smalltext">
    <textarea 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; }"' : '', ' ></textarea>

but you don't see any difference? What do you see when you look at the HTML for that div (class=shoutbox_input)? Do you see any change?
If you are doing a page load and seeing no change at all, can you tell me
1) After you edit the file, which Theme are you putting it in?
2) Which theme are you using?
3) Is there a PortalShoutbox.template.php file in any other theme's directory?
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 #42 on: August 23, 2011, 04:29:25 AM »
The two snippets of HTML associated with the shoutbox text input boxes (main forum as compared to the edited test forum) as viewed by Firebug show virtually no differences.

Main Forum:

Code: [Select]
<div class="shoutbox_input smalltext">
<input id="new_shout_1" class="shoutbox_input sp_float_left input_text" type="text" name="new_shout">
<input class="sp_float_right button_submit" type="submit" onclick="sp_submit_shout(1, 'ac3319f80850', 'e2394537a8873536fb570dcf6bbee6c9'); return false;" value="Shout!" name="submit_shout">
</div>

Test Forum:

Code: [Select]
<div class="shoutbox_input smalltext">
<input id="new_shout_1" class="shoutbox_input sp_float_left input_text" type="text" name="new_shout">
<input class="sp_float_right button_submit" type="submit" onclick="sp_submit_shout(1, 'cf43d127bcc8', 'ac420cfc1bcb4f648a2c86814faf0e7a'); return false;" value="Shout!" name="submit_shout">
</div>

I have not 'put the file in a theme'. I've edited and saved the PortalShoutbox.template.php file for the test forum only.

The theme used on both main and test forums is Default Theme- Curve.

I don't think that there is another PortalShoutbox.template.php anywhere else on the server since when I search for this file only the two instances are shown....main forum and test forum.
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 #43 on: August 23, 2011, 07:57:40 AM »
It looks like you have not put that file up where your instance of smf will be forced to use it.
That file, PortalShoutbox.template.php, should go in the folder for your default theme.
So if your forum is installed in /smf/, that file will be /smf/Themes/default/PortalShoutbox.template.php
Can you verify that the file in /smf/Themes/default/PortalShoutbox.template.php has the changed code for the shoutbox?
 
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 #44 on: August 23, 2011, 10:56:38 AM »
It looks like you have not put that file up where your instance of smf will be forced to use it.
That file, PortalShoutbox.template.php, should go in the folder for your default theme.
So if your forum is installed in /smf/, that file will be /smf/Themes/default/PortalShoutbox.template.php
Can you verify that the file in /smf/Themes/default/PortalShoutbox.template.php has the changed code for the shoutbox?

There are only two instances of the file on the server. The code has been added to this one:-

/public_html/smf_test/Themes/default/PortalShoutbox.template.php (an unedited version remains in the same folder but has been renamed).

There has been no change to the appearance or functionality of the Test Forum shoutbox.

The code I used is identical to AussieBill's:-

Code: [Select]
if ($context['can_shout'])
echo '
<div class="shoutbox_input sp_center">
<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>
<br /><input type="submit" name="submit_shout" value="', $txt['sp_shoutbox_button'], '" onclick="sp_submit_shout(', $shoutbox['id'], ', \'', $context['session_var'], '\', \'', $context['session_id'], '\'); return false;" />
</div>';

Neither my code nor AussieBill's code are the same as the the code you listed:-

Code: [Select]
if ($context['can_shout'])
  echo '
   <div class="shoutbox_input smalltext">
    <textarea 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; }"' : '', ' ></textarea>


Can you please confirm whether I should be using AussieBill's code or yours??
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 #45 on: August 24, 2011, 07:47:43 AM »
For now, let's say it doesn't matter which one you use.
We are just looking for evidence that it is getting used at all.  If your code echos "<textarea", there is no reason for that to be rendered as "<input". So I am going to go out on a limb and conclude that the code you are showing me is not being run at all.
When I make a change to this part of the code (actually, I just added style="background-color: red;" to the input), I see the change as soon as I put it in the Themes/default folder.  This should work for you, too.
 
1) Are you certain you are looking at /smf_test/index.php when you see this behavior
2) Are you certain that you have put the changed file into the folder /smf_test/Themes/default/PortalShoutbox.template.php
Please take a copy of that file from your server, copy it down to a new location on your PC, and attach the file.
Thanks.
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 #46 on: August 24, 2011, 02:40:52 PM »
The code I used to edit the file was that supplied by AussieBill.

The Shoutbox I've been testing is to be found at at xxxxxxxxx.com/smf_test/index.php?action=forum.

The enclosed amended PortalShoutbox.template.php was downloaded from xxxxxxxxx.com/public_html/smf_test/Themes/default.

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 #47 on: August 25, 2011, 08:14:32 AM »
And yet, it seems that your changes are not getting loaded.

Go to index.php?action=admin;area=theme;sa=edit;th=1
This is also accessible from
Administration Center » Themes and Layout » Modify Themes » Browse the templates and files in this theme.

Click on PortalShoutbox.template.php

Search for name="new_shout". Is it there, in function template_shoutbox_embed?

If so --- does your forum use caching?


 
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 #48 on: August 25, 2011, 08:53:12 AM »
The code I found by following your procedure is ('beginning at line 87') identical in my Main and Test forums, i.e. as per a clean install of SimplePortal. AussieBill's edit cannot be seen when looking in Administration Center » Themes and Layout » Modify Themes » Browse the templates and files in this theme when I search name="new_shout".

My forums do use caching (level 1 [recommended]).
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 #49 on: August 25, 2011, 10:52:46 AM »
That's your problem, then.
You are telling me that you have never put the edited file in Themes/default/PortalShoutbox.template.php
I understand from your previous posts that you have copied this file up to SOME place on the server, and even copied it back down again. But if you had successfully copied it into this directory, the changes would be there when you went looking for them.
You have two options:
1) Copy the file into the proper directory
2) Make your desired edit in place, using the editor you have just observed.
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 #50 on: August 25, 2011, 03:40:07 PM »
Thanks to the perseverance of AussieBill and AngelinaBelle, I have now got the textarea to show.

I chose my username carefully to pre-warn others not to make any positive assumptions about my level of experience and expertise. I'd entered the new code into the PortalShoutbox.template.php on the server rather than adding it through my site's theme editor.  :-[

One further question. When I edited the theme on my Test Forum, it resulted in the new textarea being visible on both Test and Main forums. I was expecting to have to repeat the procedure on the main forum. Is this normal?
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 #51 on: August 29, 2011, 09:59:41 AM »
This is not normal.
1) Putting PortalShoutbox.template.php in the correct theme's directory should work.
2) Editing the theme's files in the theme editor should work also

3) Editing one forum's files should not affect another forum's files.

Unless the forums are somehow sharing template files. It had never occurred to me to try this.  But it can be done.
 
Please check the following:
For your 'real' forum
* The path to your real forum
   (see setting at ?action=admin;area=serversettings;sa=database)
* The path to the Theme Directory on your 'real' forum
    (see list at ?action=admin;area=theme;sa=list)
* URL to above directory: (for this theme)
* URL to images directory: (for this theme)

For your 'test' forum
* The path to your test forum
* The path to the Theme Directory on your test forum
* URL to above directory: (for this theme)
* URL to images directory: (for this theme)

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 #52 on: August 29, 2011, 12:44:03 PM »
This is not normal.
1) Putting PortalShoutbox.template.php in the correct theme's directory should work.
2) Editing the theme's files in the theme editor should work also

3) Editing one forum's files should not affect another forum's files.

Unless the forums are somehow sharing template files. It had never occurred to me to try this.  But it can be done.
 
Please check the following:
For your 'real' forum
* The path to your real forum
   (see setting at ?action=admin;area=serversettings;sa=database)
* The path to the Theme Directory on your 'real' forum
    (see list at ?action=admin;area=theme;sa=list)
* URL to above directory: (for this theme)
* URL to images directory: (for this theme)

For your 'test' forum
* The path to your test forum
* The path to the Theme Directory on your test forum
* URL to above directory: (for this theme)
* URL to images directory: (for this theme)

Both forums return the following:-

Theme directory (templates):
    /home/xxxx/public_html/forum/Themes/default
URL to above directory:
    http://www.xxxx.com/forum/Themes/default
URL to images directory:
    http://www.xxxx/forum/Themes/default/images

Yet, in Admin>Config>Server Settings>Database Paths

Forum URL
SMF Directory
Sources Directory
Cache Directory

...are all reading OK, the separate forum URL's being displayed.

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 #53 on: August 29, 2011, 02:27:33 PM »
This is not a SimplePortal problem.
It is not even a problem with SMF.
Everything is working exactly as it should work :)

I think this happened because you created your test forum as a copy of the "real" one, including the database. And this includes the location of the directory for the default theme.  Stop me if I'm wrong.

I think you want a separate themes directory for your test forum, so you can test changes to theme files.

While viewing your test forum:
At the bottom of the page  action=admin;area=theme;sa=list
You will see an area to Reset Theme URLs and Directories.

Fill in the Base path and Base URL text boxes. Make sure they both point to (for example) /testforum/, not /forum/.  Hit the "Attempt to reset all themes" button.

Now, your test forum should be using its own themes, not the ones in your real forum.

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 #54 on: August 30, 2011, 03:12:36 AM »
Thank you for the reassurance.

I will Reset Theme URLs and Directories as you have suggested.
SMF 2.0 Gold
SP 2.3.3

Offline newtoallthis

  • Jr. Member
  • **
  • Posts: 94
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Shoutbox Text Box Size
« Reply #55 on: August 30, 2011, 03:27:48 AM »
The databases for main and test forums are different. I can backup the main and restore to the test without a problem. The test forum database remains unchanged until I do this.

In Admin (test forum), the correct paths are already in the 'Reset Theme URLs and Directories' text boxes.

However, displayed under 'SMF Default Theme - Curve (2.0)' (same page), it's showing a path to the main forum. Having in mind my comment about the separate databases, is it still your recommendation to 'Reset Theme URLs and Directories'?
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 #56 on: August 30, 2011, 07:48:09 AM »
Never a bad idea to check all your settings after "cloning" a forum like that.
I think that resetting all the theme directories will be fine.  You will see no discernable affect on the ones that are already correct. You will see a good change on the default directory, which is the one you care about.
Any time you back up the main forum and restore it to the test forum, you will have to do this, because the information about where to find the Themes folders is stored in the database.
Good luck!
« Last Edit: August 30, 2011, 07:53:10 AM by AngelinaBelle »
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 #57 on: August 30, 2011, 05:02:08 PM »
Thanks so much, AngelinaBelle.  :)

You iz a star! All sorted now.

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 #58 on: August 31, 2011, 12:20:37 PM »
That was exciting, wasn't it.  I hope you won't mind that I've marked this one solved for you.
 
Thanks!
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?