News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

TinyPortal

Started by lurkalot, February 12, 2005, 04:43:00 AM

Previous topic - Next topic

tinoest

Quote from: @rjen on October 14, 2022, 08:09:13 AMDon't know. If I can change the tp functionality I will need to look into that...

You need to look at this line https://github.com/Tinyportal/TinyPortal/blob/7aba4662d7f2ef97e88be8b8e206ff1a902b289d/Themes/default/scripts/tinyportal/TPShout.js#L75

jQuery doesn't have a scrollBottom to my knowledge so you will need one of these targetting the div

https://stackoverflow.com/questions/4655273/jquery-window-scrolltop-but-no-window-scrollbottom


tinoest

Quote from: tinoest on October 14, 2022, 08:31:28 AM
Quote from: @rjen on October 14, 2022, 08:09:13 AMDon't know. If I can change the tp functionality I will need to look into that...

You need to look at this line https://github.com/Tinyportal/TinyPortal/blob/7aba4662d7f2ef97e88be8b8e206ff1a902b289d/Themes/default/scripts/tinyportal/TPShout.js#L75

jQuery doesn't have a scrollBottom to my knowledge so you will need one of these targetting the div

https://stackoverflow.com/questions/4655273/jquery-window-scrolltop-but-no-window-scrollbottom


As I can't edit my post. This works

$(".tp_shoutframe.tp_shoutframe_" + shoutboxId).parent().scrollTop($(document).height());

jsx

@tinoest

Thanks for your help, it works! :)

What do you think, is it possible to make it so that after refreshing the forum still the scroll bar will be at the bottom of the shoutbox on the latest entry?



I noticed such bugs:

When I want to bold the text, the tag does not work properly.

The same thing happens when I want to set the color.


tinoest

Quote from: jsx on October 15, 2022, 05:32:01 AM@tinoest

Thanks for your help, it works! :)

What do you think, is it possible to make it so that after refreshing the forum still the scroll bar will be at the bottom of the shoutbox on the latest entry?



If you put the js I put above in a windows onLoad event it should scroll to the bottom on page refresh.

jsx

Quote from: tinoest on October 14, 2022, 04:01:34 PMAs I can't edit my post. This works

You mean the code you provided?

@rjen

Quote from: jsx on October 15, 2022, 05:32:01 AMI noticed such bugs:

When I want to bold the text, the tag does not work properly.

The same thing happens when I want to set the color.


That's just how it works: you first need to select what you want and THEN type the text
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

jsx

Okay. I didn't know to choose bold first and then enter text. It is different in SMF, first can type the text and make it bold. When a user puts a longer text in the shoutbox, but somewhere in the middle of this text he wants to bold certain words then he will not be able to do it, because the tag will not mark these words. I think bold, color etc should work like SMF. This is only my opinion.


Steve

It works that way in all shoutboxes if I'm not mistaken. I know for sure in Shoutbox Pro you can't bold certain words in a line of text. It's all or nothing.
DO NOT pm me for support!

jsx

I understand, if, for example, the bold text in the shoutbox must work like this then ok.

@@rjen What do you think about it?

Quote from: jsx on October 15, 2022, 05:32:01 AMWhat do you think, is it possible to make it so that after refreshing the forum still the scroll bar will be at the bottom of the shoutbox on the latest entry?


@rjen

I made some changes to the shoutbox in line with the previous questions, but due to internal limitations I have run out of options to further allow for parameters in the shoutbox block.

Switching shout direction is not something I will do...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

jsx

Quote from: @rjen on October 18, 2022, 10:44:34 AMI made some changes to the shoutbox in line with the previous questions, but due to internal limitations I have run out of options to further allow for parameters in the shoutbox block.

I understand, it is nice to hear that some changes have been made.

Quote from: @rjen on October 18, 2022, 10:44:34 AMSwitching shout direction is not something I will do...

You mean it?



jsx

I managed to make it so that after refreshing the forum, the scroll bar is still at the bottom of the shoutbox. 8)

This code should be added on line 345 in /Sources/TPShout.php

echo '
        <script type="text/javascript"><!-- // --><![CDATA[
        $( document ).ready(function() {
            $(".tp_shoutframe.tp_shoutframe_' . $shoutbox_id . '").parent().scrollTop($(document).height());
        });
        // ]]></script>';

However, I think it would be better done in the form of a hook.

jsx

There is a History function in the main shoutbox window and after entering History cannot see all entries. So I have a question why is the limit set here? However, after entering the Shoutbox administration, I can see all entries.

@rjen

Not sure if there is a reason for the limit . Has been there forever
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

jsx

I understand. Is it possible to change this limitation? It would be good to have access to the whole History of shoutbox entries after clicking on this function, without the need to enter the shoutbox management.

@rjen

Anything is possible, it is hard coded though so you will need to change the source file.

And since that page does not have any pagination it will look quite awkward.

I wonder why you think this is required: shouts are typically not meant to be permanent and disappear quite quickly from view.
For regular users a history of 50 shouts is typically more then enough
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

jsx

I understand. Thanks for the clarification. I noticed that the full history doesn't display as pages here, only in the TPshout settings, and wanted to know why that is. :)

jsx

Looking forward to the release of SMF 2.1.3 and TinyPortal 2.2.3, I decided to download TP 2.2.3 straight from Github.

Quote from: jsx on October 13, 2022, 05:54:17 AM1. Adding the ability to set newer entries to be displayed at the bottom. Currently, the new entry is displayed at the top.

However, I understand that this feature has not been permanently implemented. It's a pity! I understand that code has been provided to do this change myself and ok.

Quote from: jsx on October 13, 2022, 05:54:17 AM2. Adding the function "Enable display avatars", I mean to display, for example, a round avatar of a user next to his entry. Avatars of users beautify the shoutbox window. Currently it is so empty.

Thank you for implementing user avatar display. But it doesn't display very well:



I think the avatar should display fully.

Quote from: jsx on October 13, 2022, 05:54:17 AM5. Adding a function (icon) to go to shoutbox settings, there next to the history icon.

Thanks for adding this feature, but notice that the icon is jagged.



Quote from: jsx on October 13, 2022, 05:54:17 AM7. Adding the ability to enter a date like on the forum:

%d %B %Y, %H:%M

Thank you for implementing this time format.

Quote from: jsx on October 13, 2022, 05:54:17 AM8. Change the date display in this layout so that the date is displayed before these buttons:


Thanks for improving this layout.

The current difference between choosing this layout and this layout is only changing the date display, bold nicks don't work.


@rjen

2.2.3 beta is by no means finished...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Advertisement: