Banner
Views: 240,517,169
Time: 2013-06-19 04:16:27 AM
11 users online: Alcaro, Fireblast124, Ginyu AL, Medic, MolSno, omegazeroINFI, Pokeymeister80, o ShadowPhoenix, Silver Scarlet, o Tahixham, telinc1 - Guests: 24 - Bots: 27Users: 23,082 (1,327 active)
Latest: JuanK Paniagua
Tip: Check out the Current Contests & Events forum to participate in any hacking contests that may be going on.
Question about my custom title.
Forum Index - SMW Central - Site Questions & Bugs - Question about my custom title.
Pages: « 1 »
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.
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.
Originally posted by Smallhacker
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.

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.
Originally posted by HuFlungDu
Originally posted by Smallhacker
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.

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.
Originally posted by TMI
Originally posted by HuFlungDu
Originally posted by Smallhacker
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.

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.
You may be able to abuse the CSS content property? I have not really tried it, but in theory it could work.
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.

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2013 - SMW Central
Legal Information - Link To Us


Total queries: 27

Menu