F
Floris
Guest
Excellent work Alex and Eric, I am glad a silly prank in my signature for a trophy listing has resulted in .xml by Kier and code by the community and dynamic signatures for everybody
Excellent work Alex and Eric, I am glad a silly prank in my signature for a trophy listing has resulted in .xml by Kier and code by the community and dynamic signatures for everybody
wow, that looks fantastic - one little thing though - shoudn't the XenForo logo bit be XF ? I think there was some thread somewhere where someone clarified this <- don't you just love specifics (need more coffee)Are you using image tiles or are you drawing everything with GD? This is what I'm going to create with GD in a bit, but I have to do something else right now so it might not be done for a while.
I'm now actually showing an error as an image instead of empty values. don't think there's any way of me getting around privacy settings though
I actually have a working mockup for that design, but I'm not going to release it until Erik lets me, for obvious reasons
// ### Available options: ###
// type name default description
// ----------------------------------------------------------------------------------------------------
// int userID The ID number of the user
//
// {red, blue, yellow, color blue The color of the background element and text
// green, purple, orange,
// gray}
//
// {posts, trophies, likes} elements all 3 Pick elements to show in the badge. You may mix and match, at least one (1) is required
//
// bool showName true If true, will show the Username and a dotted line seperator to the right
//
// bool showXF true If true, will show the small "xF" logo piece to the left of the username
if(SERVERSIDE_CACHING) {
if(file_exists(IMGDIR . 'xml/' . $userid . '.xml')) {
// an image has been generated before for this user
$userxml = simplexml_load_file(IMGDIR . 'xml/' . $userid . '.xml');
if($membername == (string)$userxml->username and $posts == (string)$userxml->message_count and $likes == (string)$userxml->total_likes and $trophies == (string)$userxml->trophy_points and $_SERVER['REQUEST_URI'] == (string)$userxml->query_string) {
// nothing has changed, we can use the old image
if(file_exists(IMGDIR . 'generated_images/' . $userid . '.png')) {
// let's make sure the image we are going to include actually exists
header('Content-type: image/png');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
// everything looks good, include image and exit. :)
include(IMGDIR . 'generated_images/' . $userid . '.png');
exit;
} // image missing, need to regenerate
} // data is different, need to regenerate
} // no XML file, first image generated for user
} // server-side caching disabled
congrats, you have officially shat on my script
my attempt at copying your style looked like this:
Dude! Just... dude. Lol. Very nice =)
Ok, I wont be a douche and not explain my theory on why mine doesnt work.
I think my privacy settings are blocking it.
Ok, I wont be a douche and not explain my theory on why mine doesnt work.
I think my privacy settings are blocking it.
looking at yours we seem to have done it in a similar way. need to start working on arabic characters on something crazy now :|
I do have the end of the text happily going into the cap though I'll leave you to think of a cleaner way to achieve that, mine is a bit dirty
Ceri May (or anyone else), if you want to take the code and upload it and get it running, go right ahead. Just be aware that there are probably going to be at least a few bug fixes tomorrow that you would have to 'patch in.'
We use essential cookies to make this site work, and optional cookies to enhance your experience.