Thread Rating:
  • 3 Vote(s) - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Twitter-style [@name]
#1
Plugin Name: Twitter-like [@name]
Plugin Description: [@name] will return link to names profile.
Compatibility: 1.4.x
Version: 1.2
License: You may edit, but do not redistribute without permission

Installation: Upload the PHP file to your ./inc/plugins folder and activate it!

Download: Download!

Demo: Demo


Changelog/News:
  • V1 Released, made in about 15-20 minutes.
  • V1.1 Released, now shows with username styles as suggested by alex clone here.
  • V1.2 Released, now uses build_profile_link to, well, you guessed it, build profile links. Suggested by labrocca here.

To do:

Nothing, how can I improve this? I'm considering adding something to send a PM to a user telling them they've been mentioned. But that might not happen.

To use:


Stick a simple little [@user] in your post and it'll replace it. Partial usernames work too!
Jessie S. Wrote:7:34 PM - Jessie S.: I woke up this morning and there was some random guy in the trunk of my car
First plugin: UInfo 2.5
Reply
#2
Very nice Big Grin, I like it.

I got something you can do to improve it:

Make it show the colour ranks color? Ex. Your name on your forum is red so @Lee would be @Lee $Msg
Reply
#3
(2010-03-15, 01:02 AM)alex clone Wrote: Very nice Big Grin, I like it.

I got something you can do to improve it:

Make it show the colour ranks color? Ex. Your name on your forum is red so @Lee would be @Lee $Msg

I think that'll be easy.
Jessie S. Wrote:7:34 PM - Jessie S.: I woke up this morning and there was some random guy in the trunk of my car
First plugin: UInfo 2.5
Reply
#4
Very nice. Good job.
Reply
#5
Can you make it so the brackets aren't neccesary? If a regular user sees it they'll assume it's just @username and not [@username]
Reply
#6
I could but there are other issues..
So now it uses username styles. Now, I'd love to do it so you could just do @UserName but what if someone says something like .. "[email protected][email protected][email protected][email protected][email protected]!" or posts an email address.
Jessie S. Wrote:7:34 PM - Jessie S.: I woke up this morning and there was some random guy in the trunk of my car
First plugin: UInfo 2.5
Reply
#7
I am so not feeling the love.
Jessie S. Wrote:7:34 PM - Jessie S.: I woke up this morning and there was some random guy in the trunk of my car
First plugin: UInfo 2.5
Reply
#8
Kudos..I actually like this.

TIP: Use the built in MyBB function build_profile_link(). It's going to be much better.
Reply
#9
(2010-03-18, 12:41 AM)labrocca Wrote: Kudos..I actually like this.

TIP: Use the built in MyBB function build_profile_link(). It's going to be much better.

Ah, good god, I've gotta start looking where those functions are used, rather than where they're defined .. My head STILL hurts. Bleh.
Well, that was rather easy.
Jessie S. Wrote:7:34 PM - Jessie S.: I woke up this morning and there was some random guy in the trunk of my car
First plugin: UInfo 2.5
Reply
#10
Lines like this are written poorly.

$query2[$y] = $db->query("SELECT * FROM {$config['database']['table_prefix']}users WHERE username LIKE '%".$uinfo2[1][$y]."%' LIMIT 1");

Do this:

$query2[$y] = $db->simple_select("users", "username", "username LIKE '%".$uinfo2[1][$y]."%',array('limit' => 1));

That should work.

Really you shouldn't use LIKE imho. Basically if username doesn't exist then just display the regular code. A couple more things could be fine tuned on this plugin.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)