Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-02-2007, 02:51 PM
Elk Elk is offline
Sr Marketing Strategist
Elk's Avatar
Join Date: Nov 2005
Location: Deerland
Posts: 3,829
Elk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant future
Send a message via ICQ to Elk Send a message via AIM to Elk Send a message via MSN to Elk Send a message via Yahoo to Elk
[Request] Viewcount

Id like a view count for my dlist page written in HTML if possible...
but i heard its only possible in php :S

thats the pic :S

it should say "x views" in arial

__________________
iEra IGN: *Elk (Darkshire)
iCla. IGN: *Elk (Darkshire)
iZone IGN: *Elk (Darkshire)





Last edited by Elk; 06-02-2007 at 03:04 PM..
Reply With Quote
  #2  
Old 06-02-2007, 02:54 PM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
Sure. Christmas is just around the corner too!
Reply With Quote
  #3  
Old 06-02-2007, 03:06 PM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
PHP Code:
See Below 
I haven't tested it... I haven't tried it... And it's in PHP. If it isn't what you want, then that's that.

Last edited by Novo; 06-02-2007 at 03:41 PM.. Reason: Not working...
Reply With Quote
  #4  
Old 06-02-2007, 03:14 PM
Elk Elk is offline
Sr Marketing Strategist
Elk's Avatar
Join Date: Nov 2005
Location: Deerland
Posts: 3,829
Elk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant future
Send a message via ICQ to Elk Send a message via AIM to Elk Send a message via MSN to Elk Send a message via Yahoo to Elk
there are no images in it :o also the images are png only as far as i can read
__________________
iEra IGN: *Elk (Darkshire)
iCla. IGN: *Elk (Darkshire)
iZone IGN: *Elk (Darkshire)




Reply With Quote
  #5  
Old 06-02-2007, 03:17 PM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
Quote:
Originally Posted by Elk View Post
there are no images in it :o also the images are png only as far as i can read
Umm... Just name your image "image.jpeg".

PHP Code:
<?php
$filename 
"./counter";
$image imagecreatefromjpeg"./image.jpeg" );
$offset = array(x=> 25,=> 50);

$count file_get_contents$filename );
file_put_contents$filename, ($count 1) );

$textcolor imagecolorallocate$image000); // Black
imagestring$image5$offset['x'], $offset['y'], $count,  $textcolor );
header("Content-type: image/png");
imagepng$image );

?>
I didn't check for font's themselves... But this should do. ( It works too. )

Last edited by Novo; 06-02-2007 at 03:42 PM.. Reason: JPEG Format
Reply With Quote
  #6  
Old 06-02-2007, 04:04 PM
Elk Elk is offline
Sr Marketing Strategist
Elk's Avatar
Join Date: Nov 2005
Location: Deerland
Posts: 3,829
Elk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant futureElk has a brilliant future
Send a message via ICQ to Elk Send a message via AIM to Elk Send a message via MSN to Elk Send a message via Yahoo to Elk
ty
__________________
iEra IGN: *Elk (Darkshire)
iCla. IGN: *Elk (Darkshire)
iZone IGN: *Elk (Darkshire)




Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:47 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.