News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SMF Post Prefix

Started by Diego Andrés, May 11, 2015, 10:37:35 PM

Previous topic - Next topic

DeadMan...

Quote from: Diego Andrés on March 18, 2023, 08:13:47 PMI'm not having any issues on my test forum. I also have a similar theme/setup on ST and it works fine there as well.
Perhaps some other mod is giving you this issue?

List of mods:

1   BBC You   2.2.1
2   Remove "Last Edit" 1.2
3   Ghostly Smileys   1.0
4   More Spiders 1.3.1
5   Quick New Topic Button   1.3
6   Unapproved Attachments, Posts and Topics in Mod   1.0.1
7   TinyPortal 2.3.0
8   Quick Spoiler 1.5.1
9   SMF Post Prefix   4.1.0
10   HtmlButton 1.0

EDIT: On blank test forum, shows in info center, but not recent posts page.
I tell it how I see it... Don't like it? Hit Alt+F4!

Diego Andrés

Quote from: DeadMan... on March 18, 2023, 08:28:05 PMbut not recent posts page.
This... might be a typo in the settings. The mod displays prefixes in the unread posts, not recent posts.

SMF Tricks - Free & Premium Responsive Themes for SMF.

DeadMan...

Quote from: Diego Andrés on March 18, 2023, 08:36:21 PMThis... might be a typo in the settings. The mod displays prefixes in the unread posts, not recent posts.

Yep, think you nailed that one:
QuoteDisplay prefixes in recent posts

Think it may be TinyPortal messing up the rest?
I tell it how I see it... Don't like it? Hit Alt+F4!

Diego Andrés

Quote from: DeadMan... on March 18, 2023, 08:44:31 PMThink it may be TinyPortal messing up the rest?
Don't think so, but also depends, what exactly are you looking at?

I definitely need to fix the texts on the settings, and the descriptions as well...
Additionally, there's a chance I could add recent posts action in the future, we'll see.

SMF Tricks - Free & Premium Responsive Themes for SMF.

DeadMan...

@Diego Andrés
Installed TP on test forum, and now prefix doesn't show up on board index and info center.

Without TinyPortal:

You cannot view this attachment.

With TinyPortal:

You cannot view this attachment.
I tell it how I see it... Don't like it? Hit Alt+F4!

Diego Andrés

They are cached (2 minutes) on those areas, you should check if that's the case by clearing the forum cache.
Other than that, I wouldn't know what issue you might be having, can't replicate so far.

SMF Tricks - Free & Premium Responsive Themes for SMF.

DeadMan...

Quote from: Diego Andrés on March 18, 2023, 10:24:30 PMOther than that, I wouldn't know what issue you might be having, can't replicate so far.

Have you tried a test site and installing TP with this mod?
I tell it how I see it... Don't like it? Hit Alt+F4!

Diego Andrés

Not a default installation, I might have different TP settings on the current setup...

SMF Tricks - Free & Premium Responsive Themes for SMF.

DeadMan...

@Diego Andrés  Found it!
TP all right.
In order to see the prefix, got to disable the TP frontpage, and have it go directly to board index.
Wonder if there's some issue with the ?action=forum that the prefix mod does not like?
I tell it how I see it... Don't like it? Hit Alt+F4!

Diego Andrés

It does seem to have an issue with TP.

I wouldn't know about TP at all and don't want to guess about it.
@@rjen might be able to help us.

This mod uses integrate_mark_read_button for those areas.

SMF Tricks - Free & Premium Responsive Themes for SMF.

DeadMan...

@Diego Andrés
I asked over in the TinyPortal support topic and got this reply:

Quote from: tinoest on March 19, 2023, 10:28:11 AMOk, it's a issue with the other mod not TinyPortal.

Just found the line causing the problem. Please ask the other Mod Author to check the boardHooks function.
I tell it how I see it... Don't like it? Hit Alt+F4!

Diego Andrés

I'll make some changes soon.
It's not really a problem with either of the mods, just unexpected things.

SMF Tricks - Free & Premium Responsive Themes for SMF.

DeadMan...

Funny, that's what I was saying all along,
Quote from: Diego Andrés on March 19, 2023, 05:22:24 PMjust unexpected things
I tell it how I see it... Don't like it? Hit Alt+F4!

Diego Andrés

4.2.0 - 19 March 2023
  • New Feature Pre-select filtered prefixes when posting a new topic in boards.
  • New Feature Added prefixes to recent posts page/action.
  • Bug Fix Fixed issues with help texts in the settings.
  • Improvement Prevented unexpected behavior with actions.
  • Improvement Improved phrasing and description of settings.


SMF Tricks - Free & Premium Responsive Themes for SMF.

DeadMan...

I tell it how I see it... Don't like it? Hit Alt+F4!

Darknico

Hi!
Thanks for the mod!

In attachment, the Italian translation  8)
Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


DeadMan...

@Diego Andrés

I have a modified recent topics block, using TinyPortal.
I'd like to see if you could help me get it so the prefix shows on it.
Would like it to be to the left of the title.
Here's the code I have:

global $scripturl, $context, $modSettings, $settings, $txt;
$context['TPortal']['recentboxnum'] = '25';

if(isset($modSettings['recycle_board']))
$bb = $modSettings['recycle_board'];

$what = ssi_recentTopics($context['TPortal']['recentboxnum'], NULL, NULL, 'array');
$counter=1;
$cmax = count($what);

echo '
<div style="width: 100%; overflow: auto; height: 30ex;">';
$member_ids = array();
foreach($what as $wi => $w)
{
$member_ids[] = $w['poster']['id'];
}

if(!empty($member_ids))
$avatars = progetAvatars($member_ids);
else
$avatars = array();


foreach($what as $w)
{
echo '<span class="tpavatar"><a href="' . $scripturl. '?action=profile;u=' . $w['poster']['id'] . '">' , empty($avatars[$w['poster']['id']]) ? '<img src="' . $settings['tp_images_url'] . '/TPguest.png" alt="" />' : $avatars[$w['poster']['id']] , '</a></span>
<div class="smalltext"><a href="'.$w['href'].'">' . $w['subject'] . '</a></div>
<div class="smalltext">', $txt['by'], ' <b>', $w['poster']['link'], '</b></div>
<div class="smalltext">';
if(!$w['new'])
{
if (!TP_SMF21)
echo '<a href="'.$w['href'].'"><img src="'.$settings['images_url'].'/'.$context['user']['language'].'/new.gif" alt="new" /></a> ';
else
echo '<a href="'.$w['href'].'" id="newicon" class="new_posts" >' . $txt['new'] . '</a> ';
}
echo '['.$w['time'].']
</div>';

if($counter != $cmax)
echo '<hr />';
$counter++;
}
echo '
</div>';
I tell it how I see it... Don't like it? Hit Alt+F4!

Diego Andrés

Would need to edit the query in SSI to add the column

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

In Admin → Topic Prefixes, how difficult would it be to have the sort order changed to the name column by default instead of the modify column?
DO NOT pm me for support!

DeadMan...

Quote from: Diego Andrés on April 03, 2023, 02:22:42 AMWould need to edit the query in SSI to add the column

Not quite sure how to do that.
I'm still not familiar with the SSI.
I tell it how I see it... Don't like it? Hit Alt+F4!

Advertisement: