Special title and Username bbcode conflict

Testing other extensions.
User avatar
Sniper_E
Site Founder
Posts: 183
Joined: Sat Mar 24, 2018 10:52 pm
Location: Shreveport Louisiana

Special title and Username bbcode conflict

Post by Sniper_E » Sat Jun 23, 2018 10:10 pm

[user]tester[/user]
ImageNo is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar
Sniper_E
Site Founder
Posts: 183
Joined: Sat Mar 24, 2018 10:52 pm
Location: Shreveport Louisiana

Re: Special title and Username bbcode conflict

Post by Sniper_E » Sat Jun 23, 2018 10:57 pm

A conflict test from https://www.dmzx-web.net/viewtopic.php? ... =90#p20654

I see this when both extensions are enabled and I mention a user with bbcode.

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/zukero/userbbcode/event/main_listener.php on line 87: DOMDocument::loadXML(): Extra content at the end of the document in Entity, line: 1
When Special title is disabled I can use Username bbcode.

I can mention [user]The Guv[/user]
I can mention [user]clight77[/user]

Code: Select all

I can mention [user]The Guv[/user]
I can mention [user]clight77[/user]
And it works well with anipmnotify extension also.
Username bbcode can not grab the special title codes/addition with it's process.
ImageNo is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar
Sniper_E
Site Founder
Posts: 183
Joined: Sat Mar 24, 2018 10:52 pm
Location: Shreveport Louisiana

Re: Special title and Username bbcode conflict

Post by Sniper_E » Sun Jun 24, 2018 1:26 am

I can mention [user]tester[/user]
Can I mention [user]Sniper_E[/user] - yep, but no notification
ImageNo is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar
Sniper_E
Site Founder
Posts: 183
Joined: Sat Mar 24, 2018 10:52 pm
Location: Shreveport Louisiana

Re: Special title and Username bbcode conflict

Post by Sniper_E » Sun Jun 24, 2018 1:35 am

I can mention [user]The Guv[/user] again.
I can mention [user]clight77[/user] again.
I can mention [user]Lopoto[/user].

Did you guys get the notification from this post?
ImageNo is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar
Sniper_E
Site Founder
Posts: 183
Joined: Sat Mar 24, 2018 10:52 pm
Location: Shreveport Louisiana

Re: Special title and Username bbcode conflict

Post by Sniper_E » Sun Jun 24, 2018 1:37 am

I'll try to mention [user]tester[/user] again.
ImageNo is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar
Sniper_E
Site Founder
Posts: 183
Joined: Sat Mar 24, 2018 10:52 pm
Location: Shreveport Louisiana

Re: Special title and Username bbcode conflict

Post by Sniper_E » Sun Jun 24, 2018 2:01 am

I edited the zukero/userbbcode/event/main_listener.php (line 85)

Code: Select all

				$userbbcode = $this->user_loader->get_username($userid, 'SIMPLE', false, false, true);
I changed 'FULL' to 'SIMPLE' in that line and the conflict is gone.

Now special title can be enabled and the user bbcode will work.
I can now mention [user]The Guv[/user] and [user]clight77[/user] and [user]Lopoto[/user] again and have my special title.
ImageNo is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar
Lopoto
Moderator
Posts: 18
Joined: Wed Apr 11, 2018 2:45 pm
Location: Ontario

Re: Special title and Username bbcode conflict

Post by Lopoto » Mon Jun 25, 2018 10:04 am

No i can not mention :coffee:

User avatar
Sniper_E
Site Founder
Posts: 183
Joined: Sat Mar 24, 2018 10:52 pm
Location: Shreveport Louisiana

Re: Special title and Username bbcode conflict

Post by Sniper_E » Mon Jun 25, 2018 1:20 pm

Type in the user bbcode with my name in it. I know, it needs a bbcode button.

Code: Select all

[user]Sniper_E[/user]
ImageNo is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar
puchahawa
Moderator
Posts: 28
Joined: Mon Mar 26, 2018 2:43 pm
Location: Oregon

Re: Special title and Username bbcode conflict

Post by puchahawa » Tue Jun 26, 2018 3:57 pm

testing [user]Sniper_E[/user] :lol:

User avatar
Lopoto
Moderator
Posts: 18
Joined: Wed Apr 11, 2018 2:45 pm
Location: Ontario

Re: Special title and Username bbcode conflict

Post by Lopoto » Tue Jun 26, 2018 6:50 pm

test [user]Sniper_E[/user] :oops:

Post Reply