TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 18, 2024, 01:29:16 PM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,189
  • Total Topics: 21,220
  • Online today: 112
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 45
  • Total: 45

[Discussion] Recent topics table with hover over previews.

Started by alhaudhie, September 14, 2009, 04:58:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alhaudhie

how can exclude one or more topic/board from showing?

alhaudhie

How can we change / limit topic character like 50 characters and then the other chracter of topic show ...

Freddy

Could you give an example, I am not sure I fully understand you.  Do you mean the text that appears in the hover over block ?

If you do then that MOD has a setting for that - so check the settings.  If you want to do more than that you need to speak to the MOD maker.

Freddy

I re-read your message and I think I get what you mean.  You mean you want to limit the length of the preview ?

So for example like this :

QuoteLorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla auctor luctus diam. Nulla viverra odio imperdiet enim auctor non bibendum dui gravida. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. In vehicula dictum libero eget accumsan...

With dots at the end ?

You can do that by changing the setting for that MOD in admin to however long you want the preview to be.

If you want to add '...' to the end of each one you could try this :

In the block code find :

// Generate the popup.
$popup = NiceTooltip($topic['preview'], $topic['subject']);


Change to :

// Generate the popup.
$popup = NiceTooltip($topic['preview'] . '...', $topic['subject']);


That should do it.

alhaudhie

i not mean the posting text.. but the topic exactly.. when the user make very long topic character.. i want to limit it to / like 50 character and then show ...

Freddy

Can you show me a screen shot of what you want ?  Do you mean the subject ?

IchBin

I think what you're looking to do is this:
$popup = NiceTooltip(substr($topic['preview'], 0, 50), $topic['subject']);

Freddy

Yeah you could do that, but I was trying to explain that you can easily set the character limit in the actual mod in the admin area.... which will do the same thing lol


alhaudhie

Quote from: IchBinâ„¢ on March 16, 2010, 05:52:20 PM
I think what you're looking to do is this:
$popup = NiceTooltip(substr($topic['preview'], 0, 50), $topic['subject']);
I mean for the topic title...

;)

IchBin

$popup = NiceTooltip($topic['preview'], substr($topic['subject'], 0, 50));