Advertise Here

Author Topic: Team Icons / Star Pips (Button Ranks)  (Read 1858 times)

0 Members and 1 Guest are viewing this topic.

Offline bigbrother

  • SMF For Free Member
  • *
  • Posts: 71
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Team Icons / Star Pips (Button Ranks)
« on: August 17, 2006, 01:22:31 am »
Are we allowed to install our own Button Rank Designs...if so, how to install instead of using the defualt stars...

FYI, i am a GFX Designer and would like to create a personal team icons/stars for my members...

Please help!
« Last Edit: August 17, 2006, 01:24:16 am by tigerclaw »

Offline Crasy

  • Global Moderator
  • *
  • Posts: 3960
  • Semi-Retired ;)
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    Poll Starter Poll Voter Seventh year Anniversary Arcade Highscore Windows User
Re: Team Icons / Star Pips (Button Ranks)
« Reply #1 on: August 17, 2006, 05:51:09 am »
You can't install the images.

However webworldx gave us this great little code that you can put in your footer.

Code: [Select]
<script type='text/javascript'>
/*
Change Any Image On Page
Created by iFusion
*/
var img_b = new Array();
img_b[img_b.length++] = [ "http://url.com/image1.gif" , "http://newurl.com/image1.gif" ];
img_b[img_b.length++] = [ "http://url.com/image2.gif" , "http://newurl.com/image2.gif" ];

var all_images = document.getElementsByTagName('IMG');
for(i=0;i<all_images.length;i++){
for(j=0;j<img_b.length;j++){
   if(all_images[i].src == img_b[j][0]){
     all_images[i].src = img_b[j][1];
}}}
</script>
Now simply change this line:
Code: [Select]
img_b[img_b.length++] = [ "http://url.com/image1.gif" , "http://newurl.com/image1.gif" ];
To something like this:
Code: [Select]
img_b[img_b.length++] = [ "URL OF PICTURE ALREADY THERE" , "URL OF NEW PICTURE" ];
That will swap rank if changed right.

So simply change in the URL OF PICTURE ALREADY THERE space to the current rank image url.
Then change URL OF NEW PICTURE to the new rank image.
Repeat for every rank.
And I believe you can add more of those lines if needed.

You can find out the URL's of ranks through the source. If you give me the URL of your forum and the URL to all of your ranks that you made and tell me how you want it I can do it for you if you don't get it.

« Last Edit: August 17, 2006, 05:32:52 pm by crasyandconfused »
Did my answer help you? Want to help out hosting costs?


Every donation counts.

Offline bigbrother

  • SMF For Free Member
  • *
  • Posts: 71
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Team Icons / Star Pips (Button Ranks)
« Reply #2 on: August 19, 2006, 12:26:37 am »
I tried it but no changes....is there any possible way to change the Group Icons beside of this script...i mean uploading them to the forum itself...

Offline Crasy

  • Global Moderator
  • *
  • Posts: 3960
  • Semi-Retired ;)
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    Poll Starter Poll Voter Seventh year Anniversary Arcade Highscore Windows User
Re: Team Icons / Star Pips (Button Ranks)
« Reply #3 on: August 19, 2006, 09:32:04 am »
No
You sure you used that script correctly?
Did my answer help you? Want to help out hosting costs?


Every donation counts.

Offline bigbrother

  • SMF For Free Member
  • *
  • Posts: 71
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Team Icons / Star Pips (Button Ranks)
« Reply #4 on: August 20, 2006, 12:17:21 am »
Here is the code i have installed in my footer:

[quote}<script type='text/javascript'>
/*
Change Any Image On Page
Created by iFusion
*/
var img_b = new Array();
img_b[img_b.length++] = [ "http://pinoymartialarts.x47.net/index.php?action=membergroups;sa=edit;id=1" , "http://img217.imageshack.us/img217/363/001founderadmingx1.gif" ];

var all_images = document.getElementsByTagName('IMG');
for(i=0;i<all_images.length;i++){
for(j=0;j<img_b.length;j++){
   if(all_images.src == img_b[j][0]){
     all_images.src = img_b[j][1];
}}}
</script>
Quote

I even tried to put this one:

- borderchrome/siteowner.gif  (the group icon)
- http://www.smfforfree.com/starpreview.htm

Now, which should be the URL of the current image to be used? Thanks!

Offline Crasy

  • Global Moderator
  • *
  • Posts: 3960
  • Semi-Retired ;)
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    Poll Starter Poll Voter Seventh year Anniversary Arcade Highscore Windows User
Re: Team Icons / Star Pips (Button Ranks)
« Reply #5 on: August 20, 2006, 08:47:35 am »
Nope completely wrong. You put in the URL of the page, not image.

I will do it for you...it's easier to do than explain really.

Code: [Select]
<script type='text/javascript'>
/*
Change Any Image On Page
Created by iFusion
*/
var img_b = new Array();
img_b[img_b.length++] = [ "http://www.smfboards.com/ranks/borderchrome/admin.gif" , "http://img217.imageshack.us/img217/363/001founderadmingx1.gif" ];

var all_images = document.getElementsByTagName('IMG');
for(i=0;i<all_images.length;i++){
for(j=0;j<img_b.length;j++){
   if(all_images[i].src == img_b[j][0]){
     all_images[i].src = img_b[j][1];
}}}
</script>

That should work...I hope. It should change the any ranks that says Admin to that image.
« Last Edit: August 20, 2006, 08:51:05 am by crasyandconfused »
Did my answer help you? Want to help out hosting costs?


Every donation counts.

Offline bigbrother

  • SMF For Free Member
  • *
  • Posts: 71
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Team Icons / Star Pips (Button Ranks)
« Reply #6 on: August 23, 2006, 03:34:08 am »
I found another solution for this problem...thanks for your time and replies...long live!

 

Related Topics

  Subject / Started by Replies Last post
New Pips(Stars)

Started by Prasad007 Suggestions

0 Replies
2703 Views
Last post October 04, 2005, 08:45:22 am
by Prasad007
0 Replies
737 Views
Last post December 01, 2007, 11:50:13 pm
by LazyMan
6 Replies
1865 Views
Last post January 30, 2008, 09:55:39 pm
by .:: £ SNIPER12903 £ ::.
40 Replies
8909 Views
Last post August 25, 2008, 10:04:19 pm
by Shimmy Shabby
7 Replies
2463 Views
Last post June 07, 2011, 04:49:29 pm
by Role Play Nut