[user]USER_NAME[/user] BBCode Mod

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Get Involved
Locked
Wulfric
Registered User
Posts: 26
Joined: Fri Nov 13, 2009 8:09 am

[user]USER_NAME[/user] BBCode Mod

Post by Wulfric »

Hi,

I wanted a mod that will perhaps make changes to bbcode parser and add a new bbcode

Code: Select all

[user]USER_NAME[/user]
That will display the Coloured Link to profile of that user (by fetching user id and user colour from the username)
Perhaps also possibility of

Code: Select all

[user]USER_ID[/user]
Also, May be similar options to that of get_username_string()
To display coloured links to either userprofile, or just coloured name without link, or mailto link (forum PM) so on.

If Anyone takes up this and makes the mod, it'll be greatly appreciated.

Note, that I do NOT want only link. I know how to make BBCODE to put the data that we already have with some fixed string. Main problem is fetching the usercolour, (which will depend on group) from the user table.
Thanks,
Wulfric
Last edited by Wulfric on Tue May 03, 2011 1:45 pm, edited 1 time in total.
Wulfric
Registered User
Posts: 26
Joined: Fri Nov 13, 2009 8:09 am

Re: [user]USER_NAME[/user] BBCode Mod

Post by Wulfric »

*Bump*
Wulfric
Registered User
Posts: 26
Joined: Fri Nov 13, 2009 8:09 am

Re: [user]USER_NAME[/user] BBCode Mod

Post by Wulfric »

Anyone?
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [user]USER_NAME[/user] BBCode Mod

Post by 4_seven »

Current Mods | Mod Base | php(BB) programming | No help via PM
Wulfric
Registered User
Posts: 26
Joined: Fri Nov 13, 2009 8:09 am

Re: [user]USER_NAME[/user] BBCode Mod

Post by Wulfric »

I didn't exactly mean that if you read.
I want to fetch colour data from users table. Turning something into a link when you already have all parts of link, isn't something too hard.
So, thanks, but that's not what I am looking for.
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [user]USER_NAME[/user] BBCode Mod

Post by 4_seven »

Wulfric wrote:I wanted a mod that .. add a new bbcode

Code: Select all

[user]USER_NAME[/user]
That will display the .. Link to profile of that user
can you read? fine, thats what you wrote and i searched for you in my freetime, so speak out exactly what you want (may with a screenshot). than another waste no time for you ;)
Current Mods | Mod Base | php(BB) programming | No help via PM
Wulfric
Registered User
Posts: 26
Joined: Fri Nov 13, 2009 8:09 am

Re: [user]USER_NAME[/user] BBCode Mod

Post by Wulfric »

I assume the word coloured is clear enough.
But fine, I'll edit the first post better
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [user]USER_NAME[/user] BBCode Mod

Post by 4_seven »

the coloration is luxury, but the username is the hardest thing , so much more important.
color can come later.

another question, bcs. it was not clear:
- the "colourised username" [bbcode] should show the poster name or the post viewer name or any user you wrote in this bbcode?
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [user]USER_NAME[/user] BBCode Mod

Post by 4_seven »

Current Mods | Mod Base | php(BB) programming | No help via PM
benbejay
Registered User
Posts: 166
Joined: Sun Dec 26, 2010 6:28 am

Re: [user]USER_NAME[/user] BBCode Mod

Post by benbejay »

Or for simplicity you could do this: (Doesn't Show Colour)

BBCode

Code: Select all

[userid={NUMBER}]{SIMPLETEXT}[/userid]
HTML Replacement

Code: Select all

<a href="http://yourboardurl/memberlist.php?mode=viewprofile&u={NUMBER}">{SIMPLETEXT}</a>
Helpline

Code: Select all

User Id: [userid=User ID#]User Name[/userid]
Usage
In the HTML Replacement, find yourboardurl and replace it with the URL of your board, less the http:// or https:// and the www. For example: phpbb.com/community

Quickly Tested. This is really simple, unlike 4_seven's. :)
phpBB.com Translator. Currently maintaining the en-AU (Australian English) Language Pack.
My MODs [DEV] Quick Mod Tools Buttons | [DEV] Show User Post Count on Index
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [user]USER_NAME[/user] BBCode Mod

Post by 4_seven »

The Link i have already set before
Result
Wulfric wrote:I didn't exactly mean that if you read.
I want to fetch colour data from users table. Turning something into a link when you already have all parts of link, isn't something too hard.
So, thanks, but that's not what I am looking for.
Resume (for me):
This [Snippet] is much comfortable with a one-click-insert, have only 2 little edits and 1 BBCode..
Current Mods | Mod Base | php(BB) programming | No help via PM
lolosb
Registered User
Posts: 33
Joined: Sun Sep 26, 2010 3:28 pm
Location: Luxembourg
Contact:

Re: [user]USER_NAME[/user] BBCode Mod

Post by lolosb »

Hi,

I wrote a mod that adds this bbcode with an acp page and settings:
BBcode User Back Link
It is in development, I work on the final version (1.0.0)!

Have a nice weegend! :)
Thank you, Lozik from LOLOSB©
___________
Sorry for my very bad English, I just started to learn English.
If you don't understand what I say, please don't hesitate to ask me. ;)
Locked

Return to “[3.0.x] MOD Requests”