Jump to content


Zippyho signature generator - sources


  • This topic is locked This topic is locked
99 replies to this topic

zerogio #81 Posted 08 December 2011 - 02:19 PM

    Corporal

  • Beta Tester
  • 14819 battles
  • 107
  • Member since:
    01-20-2011

View PostSkaceKachna, on 01 December 2011 - 09:15 PM, said:

2Esris: Thanks, I fixed some of them, but I don't have much time lately...

2zerogio: Well, It's not about requirements, all you need is PHP with GD and CURL, problem is that only basic signature generator already generated 300GB traffic / month (when I was hosting it ...) and adding another feature won't help it. And as I mentioned, I don't have much time lately (new job)...

thanks, i will try again with a new hosting

aMbUsHoFzEuS #82 Posted 13 December 2011 - 08:34 PM

    Private

  • Player
  • 6362 battles
  • 11
  • Member since:
    11-26-2011
say profile not exist.anyone can help me? :(

aMbUsHoFzEuS #83 Posted 13 December 2011 - 09:00 PM

    Private

  • Player
  • 6362 battles
  • 11
  • Member since:
    11-26-2011
thx man it works now :Smile-playing: :Smile_honoring:

Nisis85 #84 Posted 16 December 2011 - 01:59 AM

    Private

  • Player
  • 5641 battles
  • 6
  • [ITAD] ITAD
  • Member since:
    04-05-2011
Hey man, the source for multi-user version is offline, can you re-up plz? Thanks

Edit: Server problem... now it's ok ;;)

Esris #85 Posted 23 December 2011 - 08:23 PM

    Private

  • Player
  • 11964 battles
  • 20
  • [P-H-D] P-H-D
  • Member since:
    06-22-2011
Hello SkaceKachna!

I downloaded your new sig gen (single user version), and I've found some wrong code again :) So, I would help your work again:
  • The eu and us (maybe ru) server url is wrong, the correct url is:
    "http://worldoftanks....c/accounts/$id/"
    in signature.php at line 167
  • 2 label is outdated on the profile pages (in signature.php at line 240 and 242), these: Games Played and Spotted (the new labels is: Battles Participated and Detected)
  • The script fetches wrongly the tanks tier number (in signature.php at line 316), because you forgot to clean up an anchor. My solution is for this problem to add a new line after the tier fetch:
    	  $tier = get_part($str,'<span class="level">','</span>');
    	  $tier = trim(get_part($tier,'">','</'));

And another thing: if I were you, I would place a writing permission check. I forgot to give permission for writing the file, and it took 10 minutes to solve why it didn't save my settings. :blink: So my improve is at line 198 in wot_settings.php:
			<?php if (is_writable('wot_settings.dat')) : ?>
			<tr><td colspan='2' align='center'><input type='submit' name='ok' value='Save settings'></td></tr>
			<?php else : ?>
		<tr><td colspan='2' align='center' style="color:red;font-weight:bold;">Your wot_settings.dat file is not writable!</td></tr>
			<?php endif; ?>
I expect you to place this improvement in the next version of the sig gen. :Smile_great:

I hope this will help for you again. ;)

modtools #86 Posted 30 December 2011 - 01:39 PM

    Private

  • Player
  • 29909 battles
  • 10
  • Member since:
    03-19-2011
Hey guys

i have one question.
How could you get the Data (like number of battles) out of the world of tanks page to the signature.
I m trying to make a Ranking for our Clanwebsite but only with my members on it.
Only problem of me is to get the damn information out of the statistics on wargamings server.

I will be very proud if someone could help me.


Other thing:
The second link of multi generator download don't work.

Thx Modtools

Modern_ #87 Posted 16 January 2012 - 01:24 PM

    Corporal

  • Player
  • 33190 battles
  • 150
  • Member since:
    07-11-2011
This need update. T-50-2 does not exist. Multi user tool does not exist. This was great tool at time it was updated regularly.

SkaceKachna #88 Posted 16 January 2012 - 11:47 PM

    Corporal

  • Player
  • 18343 battles
  • 150
  • Member since:
    02-25-2011
UPDATE

Sorry guys, I didn't have so much time lately. I didn't know that someone still use it. Don't shy to PM me if you find some bug!

Multi user - part1 (sources) - 15.1 kB
Multi user - part2 (resources) - 20.9 MB

THANKS to Esris for his notes. I followed most of them ;)

Single user - part1 (sources) - 9.8 kB
Single user - part2 (resources) - 17.6 MB

Important
Delete folders img, imgSmall and imgContur. Tank images now have different names.

Changes
Removed GeoIP function from generator to improve performance (It's still used at index.php!)
Fixed tanks images

Modern_ #89 Posted 17 January 2012 - 03:33 PM

    Corporal

  • Player
  • 33190 battles
  • 150
  • Member since:
    07-11-2011
works perfect now.

HBox #90 Posted 02 April 2012 - 10:50 PM

    Sergeant

  • Player
  • 54494 battles
  • 248
  • [-B-C-] -B-C-
  • Member since:
    09-10-2011
tin-soldiers are hosting this tool now

thanks to SkaceKachna for the files hope its OK for us to use this

it can be found at http://www.tinsoldiers-clan.com/

its just the same as 1st cav  

does need an update for the 7.2 patch to include new tanks  :P

enjoy

driv4r #91 Posted 27 April 2012 - 08:22 PM

    Translator

  • Beta Tester
  • 1411 battles
  • 306
  • [JOLT] JOLT
  • Member since:
    07-03-2010
Could you or someone at 1st Cav implement the efficiency rating ( from http://wot-news.com/.../stat/single/eu ) into the signature? Would be useful and probably possible to do if you'd co-operate with the author(s) of WoT-News.com...

modtools #92 Posted 16 July 2012 - 09:45 AM

    Private

  • Player
  • 29909 battles
  • 10
  • Member since:
    03-19-2011
Hi Zippyho,
can you reupload your generator,
the Links are dead,

thx
Modtools

Cpt_Jack_Sparrow_ #93 Posted 17 July 2012 - 12:54 AM

    Private

  • Player
  • 57828 battles
  • 5
  • Member since:
    06-17-2011
THX for reupload your generator

It works perfect for me.

But how can i new backgrounds add to the script ?

AgeofStrife #94 Posted 19 July 2012 - 06:33 PM

    Lance-corporal

  • Player
  • 13514 battles
  • 60
  • Member since:
    03-18-2011
SkaceKachna, thank's for the script, been running it for time on my own site for members only. I've recently added the WoT-News "efficiency rating" as an option to mine (including the color based on the XVM colour codes), and removed the need for tank image updates for new releases as it pulls missing images to it's image cache when first found in a player's profile. I've also shortened many of the stat descriptions, and added some additional backgrounds of my own - I'm still working on making this a simple change rather than having to edit all the different files where the number of images is stored, and possibly an admin option to upload new backgrounds. I've also ripped out all the HTML parsing and am using the JSON API, and have test code running that can parse all the achievements and clan info although I've not put them into the signature options yet.

If you don't mind I'd happily make the source (although it's a little rough around the edges in places) available to download.

Examples (and yes I know my ER is below average, I'm working on it ... :P)


Posted Image


Another member of my web site (not a WoT web site, but a few of us play):

Posted Image



EDIT: tweaked it again today, adding clan icons (either a small one to the right of the name, or a large one at the right side), and making the ER larger. I've also pushed the stats down a few pixels as they were overtyping the button edge of the name using the original code.

Posted Image

pulled my ER up 9 points since I first posted this topic :)

And here's my friend's with his clan icon at the right using the large icon, placed behind the ER value and semi-transparent.

Posted Image

EDIT 4th August: A few more tweaks - now 3 clan icon options (small at end of name, or choice of large or b/w decal at right under ER), 4 ER options (large at right corner with colour, large at right corner in white, small with colour in list with other stats, small in list in white), and also Average Tank Tier and Tanks Owned count (total number of tanks in profile list).

Stil trying to tidy the code, and looking at an upload option to add new backgrounds.

Edited by AgeofStrife, 04 August 2012 - 05:29 PM.


Aishor #95 Posted 05 October 2012 - 08:04 PM

    Private

  • Player
  • 123 battles
  • 2
  • [NGDOS] NGDOS
  • Member since:
    12-10-2011
I modified the php for my use in World of Warplanes, if you have any problems I will retire to my use.
'd be happy to know if you are interested in developing its program for World of Warplanes.
Thank you.

Edited by Aishor, 05 October 2012 - 11:18 PM.


SkaceKachna #96 Posted 09 October 2012 - 09:01 PM

    Corporal

  • Player
  • 18343 battles
  • 150
  • Member since:
    02-25-2011
UPDATE - multiuser version
Reworked the code, files now are properly located and named.
Config file added.
Garage added.

Many new options:
   Added optional effeciency rating
   Added optional clan logo
   Added optional server label

New version is avaible via github and it's also deployed on http://1stcav.net

Edited by SkaceKachna, 09 October 2012 - 09:01 PM.


Aishor #97 Posted 10 October 2012 - 10:33 AM

    Private

  • Player
  • 123 battles
  • 2
  • [NGDOS] NGDOS
  • Member since:
    12-10-2011
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /homepages/23/d375874580/htdocs/wot_languages/en.php on line 5

changes to fix the error, missing commas, suggested code on github

Guni_lingus #98 Posted 10 October 2012 - 11:44 AM

    Private

  • Player
  • 20232 battles
  • 44
  • [GB4NG] GB4NG
  • Member since:
    09-24-2011
Yep i've got the same error...
And don't find where is error in code.

Guni_lingus #99 Posted 10 October 2012 - 12:32 PM

    Private

  • Player
  • 20232 battles
  • 44
  • [GB4NG] GB4NG
  • Member since:
    09-24-2011
Ok i've found problem!

<?php
$language_id = 0;
$translation = array(
	'integrated_rating' => 'Rating',
	'battles' => 'Battles',
	'battle_wins' => 'Wins',
	'wins' => 'Wins',
	'losses' => 'Looses',
	'survived_battles' => 'Survived',
	'xp' => 'XP',
	'battle_avg_xp' => 'Avg. XP',
	'max_xp' => 'Max. XP',
	'ctf_points' => 'Captured',
	'dropped_ctf_points' => 'Defended',
	'damage_dealt' => 'Dammage',
	'frags' => 'Frags',
	'spotted' => 'Spotted',
	'hits_percents' => 'Hits',
   
	'title' => 'Signature Generator',
	'napoveda' => 'To get your ID, open your profile on worldoftanks.com (or your server). Adress will look somelike that:<br>http://game.worldoft...a</strong>/<br> Bold part of adress is your ID, witch you enter to textbox.',
	'id' => 'Enter Your ID',
	'server' => 'Server',
	'button' => 'Generate',
	'button_save' => 'Save',
	'posted_title' => 'Your signature:',
	'alert' => 'To incerase speed of loading, your singature will refresh only once per day.<br><br>',
	'size' => 'Size',
	'history' => 'History',
	'history_text' => 'Save history',
	'advanced' => 'Advanced settings',
	'show' => 'Show',
	'tanksize' => 'Size of tanks icons',
	'preview' => 'Preview',
	'flag' => 'Flag',
	'font' => 'Font size',
	'fontdesc' => 'Enter 0 for default size',
	'tankorder'=> 'Order tanks by',
	'tankorder_0' => 'Battles',
	'tankorder_1' => 'Tier',
	'category_all' => 'All',
	'category_original_renders' => 'Original Renders',
	'category_original_wallpapers' => 'Original Wallpapers',
	'category_historical' => 'Historical',
	'category_others' => 'Misc',
	'category_drawings' => 'Paintings',
	'position' => 'Position',
	'value' => 'Value',
	'tankname' => 'Show tank name',
	'positionSmall' => 'Show only positions < 1000',
	'tankbattles' => 'Show tank battles count',
	'tankwins' => 'Show tank wins count',
	'tankpercents' => 'Percentage of wins',
	'value' => 'Value',
	'position' => 'Position',
	'percents' => 'Percents',
	'garage' => 'Garage',
	'effeciency_rating' => 'Effeciency rating',
	'eff_none' => 'Don\'t show',
	'eff_old' => 'Old',
	'eff_new' => 'New',
	'settings' => 'Settings',
	'tanksize_3' => '86x66 + 55x31',
	'server_label' => 'Show server',
	'menu_lines' => 'Statistics',
	'menu_garage' => 'Garage',
	'clan' => 'Clan',
	'clan_name' => 'Clan name',
	'clan_image' => 'Clan icon'
);
?>

That's the good code fore en.php file

Guni_lingus #100 Posted 10 October 2012 - 03:24 PM

    Private

  • Player
  • 20232 battles
  • 44
  • [GB4NG] GB4NG
  • Member since:
    09-24-2011
I found many problems in new version.
http://resurection-tm.fr/signs/

Edited by Gunichou, 10 October 2012 - 03:26 PM.





1 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users