New Gold/Silver/Bronze Trophy for #1, 2 + 3!

Various mods to change or add features.

New Gold/Silver/Bronze Trophy for #1, 2 + 3!

Postby Gamecock » 2008-03-10 06:15 pm

I'm truly quite proud to announce my first ever Mod for Aardvark Topsites 5.x!

Trophy Mod version 1.1 - based on original mod released by Nexia Lys (Nexia).

WHAT IT DOES: Adds a Gold, Silver and Bronze Trophy for sites currently ranked 1, 2 and 3 respectively on a site using Aardvark Topsites PHP v5.x.

NOTE: For security purposes, it is wise to upgrade any/all older ATS topsites to at least v5.1.2.

Image

See it LIVE in full size from the below URL:

http://www.topsitesamerica.com/

So, what's NEW about it?

Updated with new image files optimized to load faster as interlaced 4-bit (16 color) GIF files. The trophy images look exactly the same as before, but new transparent background is available (which is what I'm now using on my 4 ATS lists). The optimized versions of the images with the non-transparent white background are also included. Some errant pixels contained in the original graphics have now been cleaned up!

There's now an installation help file (INSTALL.TXT).

In addition, there has been a change in the code to insure page will render as
valid to W3C XHTML 1.0 Standard and add title tags to show in Firefox browsers.

To be specific on above code change, bgcolor="transparent" has now been removed as this caused an error when validation using the W3C Validator was attempted.

Since these new image files will be displayed right up at the top of the first page on a topsite, it is VERY important they load quickly. Now they will!

For example, 2 new buttons can now load faster than it took to load ONE!

num_1.gif - WAS: 1,247 bytes - This is Trophy 1 centered with white background.

num_1.gif - NOW: 549 bytes - This keeps Trophy 1 centered in white background.

num_1.gif - NOW: 547 bytes - Shows Trophy 1 centered in transparent background.

The document weight saving on buttons 2 and 3 are very similar to 1 above.

If you already installed this mod before, all you have to do now is get the new optimized images (same filenames) and put them in the same place (overwrite the old ones) to take advantage of a rendering speed increase now available!

I'd also like to ask some of you PHP wizards HOW (and WHERE) to modify the code further so that visitors will see #1, #2 and #3 come up in browsers instead of just the numbers 1, 2 and 3. I tried to do this on my own, but could not get it to work. I would think adding the # symbol would be easy.

Any help, from anybody, to get this number symbol added will be appreciated! There is already a thread going about this new mod at OSEmpire.com here:

http://www.osempire.com/community/showthread.php?t=10252

This was already among THE easiest mods to make for your topsite and now it is even easier, more efficient and the end result (in my opinion) looks better!

Trophy-11.zip


Please let me know what you think!
You do not have the required permissions to view the files attached to this post.
Gamecock
Advanced Member
 
Posts: 288
Joined: 2006-01-06 09:09 am
Location: Charleston, SC USA

Re: New Gold/Silver/Bronze Trophy for #1, 2 + 3!

Postby darbeey » 2008-03-20 10:34 pm

Hey looks great. Can someone please tell me how to install the google PR on the top 8 of my topsites. Like the guys site above this post.
darbeey
Member
 
Posts: 10
Joined: 2008-03-19 09:41 pm

Re: New Gold/Silver/Bronze Trophy for #1, 2 + 3!

Postby Gamecock » 2008-04-18 10:00 pm

darbeey wrote:Hey looks great.


Thank you very much! I agree they look great, but they load MUCH faster too (which is equally important). :D

Can someone please tell me how to install the google PR on the top 8 of my topsites.


There are a couple different ways to do that. I should probably point out I simply added the phrase "Google PR" when I was editing the table_top_row.html file. Somebody once asked me where that came from. :roll:

Like the guys site above this post.


If you have not been there yet, check out the ATS forums at OSEmpire! Someone there put together a nice list of popular ATS mods you can add - all in 1 message. That way you don't have to dig through all of the many areas there. Best of all, it's broken down by which ATS version you have, like v5.20 only OR v5.12, etc.

Good Luck!
Gamecock
Advanced Member
 
Posts: 288
Joined: 2006-01-06 09:09 am
Location: Charleston, SC USA

Re: New Gold/Silver/Bronze Trophy for #1, 2 + 3!

Postby Dragonrider » 2008-05-05 05:16 am

Nice one, easy to add as well! Thank you.

I couldn't get the hash to appear, but it was relatively easy to add No. to the title tag if that's any use?

Code: Select all
      $TMPL['trophy'] = (in_array($TMPL['rank'], array(1,2,3))) ? '<img src="'.$TMPL['skins_url'].'/'.$TMPL['skin_name'].'/num_'.$TMPL['rank'].'.gif" title="'.'No.'.$TMPL['rank'].'" alt="'.$TMPL['rank'].'" />' : $TMPL['rank'];
Dragonrider
Newbie
 
Posts: 7
Joined: 2007-07-22 04:25 am
Location: Ilkley, West Yorkshire, UK

Re: New Gold/Silver/Bronze Trophy for #1, 2 + 3!

Postby Charlie » 2008-09-05 06:50 pm

Nice! I'm using it ;D

Edit: I would if it worked ;(

Edit: Forgot to re-upload table_top_row :P anyway, nice work.
Charlie
Member
 
Posts: 14
Joined: 2008-08-30 12:23 pm

Re: New Gold/Silver/Bronze Trophy for #1, 2 + 3!

Postby Gamecock » 2010-04-15 11:54 pm

Thanks for leaving compliments for this custom mod. It took me a LONG time to create/update it, but I think the effort was well worth it. I'm proud to see other webmasters adding this mod.

Frankly, I'm not sure why there are not more comments in this thread (as it is quite popular)...

Glad you like it! :D

Regards,

Gamecock
Gamecock
Advanced Member
 
Posts: 288
Joined: 2006-01-06 09:09 am
Location: Charleston, SC USA

Re: New Gold/Silver/Bronze Trophy for #1, 2 + 3!

Postby kickflip » 2010-09-29 01:10 am

Looks great, really makes it stand out. thanks!
kickflip
Newbie
 
Posts: 5
Joined: 2010-09-25 11:35 pm

Re: New Gold/Silver/Bronze Trophy for #1, 2 + 3!

Postby kickflip » 2010-10-01 03:01 am

Do you happen to have any images for some more numbers like 1-10?
kickflip
Newbie
 
Posts: 5
Joined: 2010-09-25 11:35 pm


Return to Mods

Who is online

Users browsing this forum: No registered users and 4 guests

cron