![]() |
need help completing this code in functions.php
xenon helped me a while back (thank you!) to add a line that would allow users to edit thier username and usertitle color IF they met a certain postcount minimum
PHP Code:
im trying to add another criteria where users can add glow to thier name using the same code. ive tried it several ways, and this is how i thought would make it work, but it just gives me a parse error PHP Code:
|
Code:
if ($post['posts'] > 10) { |
thanks, that code works
BUT it makes every user's name glow red, who has the required number of posts i need it so the name doesnt glow if no color is specified in the profile field. also, it only works if a hex color is entered. thanks |
Quote:
[high]* Velocd shrieks in horror [/high] Actually it doesn't really matter, and I guess for members who know nothing about HTML that would be easier.. Use this code to make it so that if no color is inputted, the thing doesn't glow. PHP Code:
If you want it to work with color names, just put this right below the IF statement, inside: PHP Code:
Hope any of this helps ;) |
worked great, thanks!
it added a blank line beneath the name and above the usertitle, tho but otherwise, looks good |
Check this part out:
PHP Code:
Try replacing the <table> and </table> with a <td> and </td> tag, then with some tweaking around you should be able to remove the space maybe.. |
that worked great
this is the code i use for all three items: username color, usertitle color, and username glow color i think it gets confused when setting the username colors and glow colors, cause the names only seem to glow red no matter what hex code it entered PHP Code:
|
All times are GMT. The time now is 06:31 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:
|