![]() |
Rainbow Username
Hi,
Can anyone tell me why this won't work? It's for creating rainbow usernames but for some reason it doesn't work. Code:
if( strpos( $user['musername'], 'rainbow: true;' ) !== false ) Code:
<strong style="color: #FFBC58; rainbow: true;"> Code:
</strong> |
You have to split the string up into an array. Here's what I got working:
Code:
function rainbow($str) |
What hook location did you use? Could you post a screenshot of it?
For some reason, it turns quite a lot of my text a yellow colour but no rainbow effect. |
I found that the code you posted in post #1 works using hook fetch_musername, but you're just missing a closing '}' at the end.
|
Quote:
Edit: Got it working. You can close this thread. |
All times are GMT. The time now is 08:44 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|