| Question about my custom title. |
|
Forum Index - SMW Central - Site Questions & Bugs - Question about my custom title. |
|
Pages: 1  |
|
|
|
| Posted on 2011-12-31 02:11:50 PM |
Link | Quote |
|
|
Let's say I had some PHP that allowed me to make a portion of text dynamic, would I be allowed to use it in my custom title? So that every time the page was loaded a random selection of text based on what I've inputted as the variables would show.
|
|
| Posted on 2011-12-31 05:09:13 PM |
Link | Quote |
|
Unless Kieran seriously fucked something up beyond belief, there should be no way for anyone to inject PHP code into the site. As such, your PHP code would simply show up in plaintext.
I also assume that image tags and stuff like that are filtered from the title, meaning you can't make it show a dynamic picture either.
|
|
| Posted on 2011-12-31 05:40:33 PM |
Link | Quote |
|
Originally posted by SmallhackerI also assume that image tags and stuff like that are filtered from the title, meaning you can't make it show a dynamic picture either.
Ladida and Leod disagree with you (I'm sure there are others, I just don't know who they are).
|
| Last edited on 2011-12-31 06:07:21 PM by HuFlungDu. |
|
| Posted on 2011-12-31 05:51:44 PM |
Link | Quote |
|
Originally posted by HuFlungDuOriginally posted by SmallhackerI also assume that image tags and stuff like that are filtered from the title, meaning you can't make it show a dynamic picture either.
Ladida and Leod disagree with you (I'm sure there are others, I just don't know who they are).
He's talking about a dynamic image in one's custom title, not as their avatar.
Edit: Also, you linked Ladida's profile twice.
|
| Last edited on 2011-12-31 05:52:17 PM by NMI. |
|
| Posted on 2011-12-31 06:08:58 PM |
Link | Quote |
|
Originally posted by TMIOriginally posted by HuFlungDuOriginally posted by SmallhackerI also assume that image tags and stuff like that are filtered from the title, meaning you can't make it show a dynamic picture either.
Ladida and Leod disagree with you (I'm sure there are others, I just don't know who they are).
He's talking about a dynamic image in one's custom title, not as their avatar.
Ah, I see. Withdrawn.
|
|
| Posted on 2011-12-31 06:41:41 PM |
Link | Quote |
|
|
You may be able to abuse the CSS content property? I have not really tried it, but in theory it could work.
|
|
| Posted on 2012-01-01 04:28:52 PM |
Link | Quote |
|
|
PHP File <?php header("Content-type: text/css");
$array = array(
'String 1',
'String 2',
[etc...]
'String 8'
);
$pick = $array[mt_rand(0, count($array) - 1)];
?>
.classname:after {
content: "<?=$pick?>";
}
Case in point.
It works in posts/signatures, so there's no reason for it not to work in a title as far as I know.
I'm pretty sure mVSs knew about it working though (I did this for losoall in the past, he put it into his sig), so the original question still is left unanswered.
I'd think it'd be okay, though, I don't really see anything about it that could be abused or potentially harmful.
|
|
|
Pages: 1  |
|
|
|
|
Forum Index - SMW Central - Site Questions & Bugs - Question about my custom title. |