Main Menu
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 log in.

Who's Online

  • Dot Guests: 991
  • Dot Hidden: 0
  • Dot Users: 1
  • Dot Users Online:

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]


Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Shoutbox warning message not visible in reverse order

Started by Jorge_CS_, April 30, 2011, 02:37:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jorge_CS_

Hi all,

I use shoutbox in reverse order because is easier to understand for any user, it works just like msn.

But in this mode the warning message is not visible because it stays up and i need to scroll to see it.

Is there a way to put it always visible or something?

Many thanks!!

grafitus

These operations will allow to reverse the warning too.

./Themes/default/PortalShoutbox.template.php
Code (Find and Remove) Select
if (!empty($shoutbox['warning']))
echo '
<li class="shoutbox_warning smalltext">', $shoutbox['warning'], '</li>';


Code (Find) Select
echo '
</ul>
</div>';

Code (Replace) Select
if (!empty($shoutbox['warning']))
echo '
<li class="shoutbox_warning smalltext">', $shoutbox['warning'], '</li>';

echo '
</ul>
</div>';


./Themes/default/portal.js
Code (Find and Remove) Select
if (warning != 0)
new_body += '<li class="shoutbox_warning smalltext">' + warning + '</li>';


Code (Find) Select
setInnerHTML(document.getElementById('shouts_' + shoutbox_id), new_body);
Code (Replace) Select
if (warning != 0)
new_body += '<li class="shoutbox_warning smalltext">' + warning + '</li>';

setInnerHTML(document.getElementById('shouts_' + shoutbox_id), new_body);

my modsI don't reply support PMs. Please use support forums.


grafitus

my modsI don't reply support PMs. Please use support forums.