Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Marcus Forsberg on March 19, 2009, 11:19:26 AM

Title: Highlight Reader Name (NOW FOR RC3)
Post by: Marcus Forsberg on March 19, 2009, 11:19:26 AM
Highlight Reader Name v1.1.1
----------------------------------------------------------------------------------------------------------------------------------------------------
Author: Nas (http://www.simplemachines.org/community/index.php?action=profile;u=143954)      Versions: 2.0 RC3     Available since: March 17 '09     Latest version: 1.1.1 (Mars 16 '10)

Introduction
This mod highlights the name of the person reading a post, if their name is mentioned. To change the way names are highlighted, there is a setting in the administration panel.
Title: Re: Mark Reader Name
Post by: shadow82x on March 19, 2009, 03:24:03 PM
Cool mod.  8)
Title: Re: Mark Reader Name
Post by: randommaker on March 19, 2009, 05:28:13 PM
Hey I found a spelling mistake
you said "whit" instead of "with"!
Title: Re: Mark Reader Name
Post by: hhy89 on March 19, 2009, 09:29:16 PM
thanx Nas ;D

turkish
// Mark Reader Name by Nas
$txt['namemarking'] = 'Geliştirilmiş Aynı Ad <div class="smalltext">Okuyucunun adını icerisine alan html veya bbc kodu kullanarak gelistirebilirsin. isimleri goruntuleyebilmek icin {name} kodunu kullanın.</div>';
Title: Re: Mark Reader Name
Post by: Marcus Forsberg on March 20, 2009, 01:53:11 AM
Thanks guys.
Ah I always misspell "with". Thanks. :P

And thanks for the turkish translation.
Title: Re: Mark Reader Name
Post by: hhy89 on March 20, 2009, 04:17:40 AM
no problem bro  :P
Title: Re: Mark Reader Name
Post by: Aleksi "Lex" Kilpinen on March 20, 2009, 05:06:28 AM
This should pretty much match the text used in english :)

Code (Modifications.finnish.php) Select

// Mark Reader Name by Nas
$txt['namemarking'] = 'Korosta Lukijan Nimi <div class="smalltext">Määrittelee kuinka lukijan nimi korostetaan viesteissä. Voit käyttää HTML- ja/tai BBC-koodeja. {name} näyttää lukijan nimen.</div>';


;)
Title: Re: Mark Reader Name
Post by: C4G-TK on March 21, 2009, 05:51:23 PM
I was wondering if this mod overrides BB codes from the actual post?

If the poster makes the post and it has your name in RED, but you have the mod to make the name appear GREEN, which will it show when you read it?
Title: Re: Mark Reader Name
Post by: Marcus Forsberg on March 21, 2009, 05:52:52 PM
I have no idea, C4G-TK! It's worth to test that one. :P
Title: Re: Mark Reader Name
Post by: C4G-TK on March 21, 2009, 05:58:58 PM
After looking at the settings in your example for the BOLD and GREEN, I thought to myself... hmmm.. what if it already had a color, was underlined, or had other bb codes being used.

(I haven't installed this yet or I would tell you what happens.  I am just now creating my next forum, so I have no members other than my one admin account anyway.  If you don't test it, I'll let you know when I make another member profile and install the mod.)
Title: Re: Mark Reader Name
Post by: Marcus Forsberg on March 21, 2009, 06:01:11 PM
If it's bolded in the post and the marking set by admin is italic, it will be both italic and bold. (Like this[/i]). But if its red in the post and green in the makring I dont know.
Title: Re: Mark Reader Name
Post by: Galedon on March 24, 2009, 08:25:01 AM
ok - i found a bug:

Quote doesn´t work:

Zitat von: Galedon link=topic=6873.msg65583#msg65583 date=1237472115



^^

Title: Re: Mark Reader Name
Post by: DeviDarkL on March 24, 2009, 05:20:03 PM
Great mod ;)

Here is Portuguese_PT translation:
</file>
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Mark Reader Name by Nas
$txt['namemarking'] = 'Marcar Nome do Membro que está a ler <div class="smalltext">Como é que o nome do leitor vai ser marcado nos posts? Em HTML e/ou em formato BBC. Usar {name} para mostrar o nome do leitor.</div>';

]]></add>
</operation>
</file>
Title: Re: Mark Reader Name
Post by: Marcus Forsberg on April 13, 2009, 06:36:41 AM
Sorry for the delay.

Thanks, Galedon, looking in to it.

And thanks for translation, DeviDarkL!
Title: Re: Mark Reader Name
Post by: magarto on April 27, 2009, 04:40:31 PM
Yes, quote does not work.
Title: Re: Mark Reader Name
Post by: Twenty6 on May 01, 2009, 09:09:14 AM
yes how do we solve that problem
whitout the quote it is working but if you use quot than you get this:
Admin link=topic=2.msg2#msg2 date=1241180018
Title: Re: Mark Reader Name
Post by: Özgür on May 07, 2009, 12:09:38 AM
Nas,
Are you think add topic title support for {name}?
Title: Re: Mark Reader Name
Post by: C4G-TK on June 14, 2009, 07:10:58 PM
This mod is breaking links for the [img] tags.  For information on what is happening, please read this thread:

http://www.simplemachines.org/community/index.php?topic=316989.msg2109907#msg2109907


In short, if someone posts a link from somewhere like photobucket and has the same name/user account as the forum account, it inserts the GLOW and COLOR attributes into the link and breaks the URL.

I had a handful of people on my forum complaining that they could not see the images that they were linking, but could see images posted by other people.  After reviewing the page source of my account vs. their account, I noticed that this is what it was doing.  It is explained in full detail in my reply #12 in the above thread.


BTW- using RC1-1 on default!
Title: Re: Mark Reader Name
Post by: Marcus Forsberg on June 15, 2009, 04:10:15 AM
Thanks for letting me know, C4G-TK.
I'll try to figure out a good way to make sure it doesn't break quotes, images, links and similar.

@[Daydreamer], will do when I find a fix for the above bug. :)
Title: Re: Mark Reader Name
Post by: Marcus Forsberg on August 29, 2009, 02:54:13 AM
Changelog
1.1.0.1 | August 29 2009
* Now supports SMF 2.0 RC1.2
Title: Re: Mark Reader Name
Post by: saosangmo on October 22, 2009, 08:36:17 AM
thank for your very nice mod, hope you fix this issue soon!

Quote from: Galedon on March 24, 2009, 08:25:01 AM
ok - i found a bug:

Quote doesn´t work:

Zitat von: Galedon link=topic=6873.msg65583#msg65583 date=1237472115



^^


Title: Re: Mark Reader Name
Post by: Marcus Forsberg on November 14, 2009, 05:22:01 AM
Changelog
1.1.0.2 | November 14 2009
* Now supports SMF 2.0 RC2
Title: Re: Mark Reader Name
Post by: saosangmo on November 14, 2009, 12:39:22 PM
hi Nas,
have you fixed bug with name in title of quote?
Title: Re: Mark Reader Name
Post by: Marcus Forsberg on November 14, 2009, 01:17:59 PM
No, I'm afraid not. I haven't figured out any good work around yet.
Title: Re: Mark Reader Name
Post by: Eclipse16V on February 26, 2010, 03:58:25 AM
Quote from: Galedon on March 24, 2009, 08:25:01 AM
ok - i found a bug:

Quote doesn´t work:

Zitat von: Galedon link=topic=6873.msg65583#msg65583 date=1237472115



^^

Any news?
I like this Mod
Please fix the bug.

Thanks
Title: Re: Mark Reader Name
Post by: Eclipse16V on March 15, 2010, 02:19:30 AM
Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks
Title: Re: Mark Reader Name
Post by: Marcus Forsberg on March 16, 2010, 11:37:33 AM
Confirmed to be working on RC3. It didn't even take any edits.
I have however edited the files a bit to change the name of the mod. Instead of 'Mark Reader name' it's now 'Highlight Reader Name' which sounds better.

Edit: The bug with quote tags remains, however. I will be looking into it after the release of SimpleDesk.
Title: Re: Highlight Reader Name (NOW FOR RC3)
Post by: Eclipse16V on September 07, 2010, 04:36:52 AM
Quote from: Eclipse16V on February 26, 2010, 03:58:25 AM
Quote from: Galedon on March 24, 2009, 08:25:01 AM
ok - i found a bug:

Quote doesn´t work:

Zitat von: Galedon link=topic=6873.msg65583#msg65583 date=1237472115



^^

Any news?
I like this Mod
Please fix the bug.

Thanks

Any News?
Please
Title: Re: Highlight Reader Name (NOW FOR RC3)
Post by: LHW on September 13, 2010, 02:29:37 PM
Nas: There seems to be a slight issue with the /me tag.  I have my highlight set to this:

[b][color=green]{name}[/color][/b]

If I type in:

QuoteLHW is testing something...

It'll return:

QuoteLHW is testing something...

However, if I type in:

/me is testing something...

It'll return:

Quote* [b LHW[/b]]is testing something...

EDIT: Also, it doesn't appear to work on the ?action=recent page at all.
Title: Re: Highlight Reader Name (NOW FOR RC3)
Post by: Thamar on November 29, 2010, 01:02:04 PM
Found a small bug in your mod, actually one of my users did by accident.
If you post a link/img that contains your username, the mod also highlights the username in the url...
Title: Re: Highlight Reader Name (NOW FOR RC3)
Post by: mabley on October 21, 2011, 01:07:39 AM
This mod said there is a place in the admin panel to select some options.  Where now?
Title: Re: Highlight Reader Name (NOW FOR RC3)
Post by: danielwmoore on December 22, 2011, 10:49:45 AM
Installed it for 2.0.1.  It installed without errors, but there is no place in the admin panel to set the options.  A little help here?

Also, I believe if you're going to get rid of the bugs that cause link and quote problems, the replacement needs to be done when the message is parsed for BBC, not just "replace all in message" as it is doing now. 

I'll subscribe to this topic to see if cσσкιє мσηѕтєя gets it fixed.  In the mean time, I'll just wait it out.  I've got too many other pans in the fire to do it myself.

I'll uninstall.  Can't handle the bugs, and certainly can't handle there not being a place in admin to set options when installing on 2.0.1.  This mod needs updating,
Title: Re: Highlight Reader Name (NOW FOR RC3)
Post by: performer189 on January 08, 2012, 06:03:59 PM
this need to be setup or what ? i don;t know to use it :)