Jump to content

Live images/Stats


b1011

Recommended Posts

If it is "live" pictures, then you probably need to look into JavaScript or Ajax. I am assuming these numbers update on that page without being refreshed as soon as the stats update? If so, then you need JavaScript. Or maybe there a code for you to use on the website where these numbers are coming from?

 

Maybe I just have no idea what you are talking about....haha

Link to comment
https://forums.phpfreaks.com/topic/50300-live-imagesstats/#findComment-246919
Share on other sites

or you could try this:

http://www.phpmix.org/how_to_create_a_dynamic_signature

 

It may be a bit different to what you want, but it'll do a similar job. Just put whatever code you want in the 'text' thingy and away you go.

$image_text = array(
    array(
        'x'     => 8,
        'y'     => 6,
        'color' => array(50, 100, 180),
        'font'  => 9,
        'text'  => $anythinghere
    ),

 

I have created this using SMF stats and whatnot in variables:

 

signature.php?user=71&c=4&g=1

 

in the url you can set variables like userid, colour of the background and style etc with some simple code (e.g. http://www.com/sig.png?user=71&colour=green etc

The Username, number of posts, and user is [not] online thing is all done with php.

Link to comment
https://forums.phpfreaks.com/topic/50300-live-imagesstats/#findComment-247180
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.