News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Random PHP Quote coloring with {author} tag

Started by kalium, September 05, 2017, 11:35:59 PM

Previous topic - Next topic

kalium

Hi,
i need to color my quotes if {author}(./scripts/Subs.php on line ~1663) tag contains some word, but i can't use the {author} tag like in this code

strpos(strtolower('{author}'), " someword") == 0
It only seems to work in the HTML defined in the $tag['quote'] array.
Hope i explained good enough and someone good help me with this. : )

Thanks and greetings!

kalium

Hi,
so i've chosen the dirty way and added the {author} on my div class, so it's a  bit more work on css side but it's working.

If someone has an better solution, please let me know. :)

Thanks!

Best Regards...

Advertisement: