Advertise Here

Author Topic: [Code] How to make doubled sided image names  (Read 18217 times)

0 Members and 1 Guest are viewing this topic.

Offline mintkiller

  • SMF For Free Newbie
  • *
  • Posts: 17
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
[Code] How to make doubled sided image names
« on: July 31, 2008, 06:11:49 am »


SECTION 1

A double sided name guide follow it to see what i mean

here's a picture of what i mean



right you want to know how to do that?

heres the code to make a double sided name

Put this in your HEADER if you don't already have it:

Code: [Select]
<script src="/jquery.js"></script>
Put this in your FOOTER:

Code: [Select]
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array()
vfour[vfour.length] = ["NAME","<img src='IMAGE URL'/>NAME<img src='IMAGE URL'/>","COLOR",""];

for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML == vfour[f][0]){
this.innerHTML = this.innerHTML.replace(vfour[f][0],"<font color='" + vfour[f][2] + "'>" + vfour[f][3] + vfour[f][(vfour[f][1] != "" ? 1 : 0)] + "</font>");
};});};}
name_across_board();
</script>

right all you need to change is the 'NAME' bit to the name of the person who you want to double image
its caps sensitive so make sure you get it right :D then you will see two 'IMAGE URL' bits fill the both with the same image or change them to one image one side and another image another side.

then change 'COLOUR' to the colour you want the name to be.

thats how you make a double sided icon but i bet your wondering how to add two people instead of putting the code again i will explain that in section two.

The codes credit is 100% agent moose i do not take credit for the code.

SECTION 2

This is how you make a two people without putting the code in again well all you do is add this

vfour[vfour.length] = ["NAME","<img src='IMAGE URL'/>NAME<img src='IMAGE URL'/>","COLOR",""];

underneath the the first

vfour[vfour.length] = ["NAME","<img src='IMAGE URL'/>NAME<img src='IMAGE URL'/>","COLOR",""];

you can have as many as you like so go wild :P

i will take 50% credit for working this code out but 50% credit to the how to make the runescape crown guide since i worked it out from that.

i will take 100% credit for writing this whole guide

also thanks agent moose it helped alot :D!!!!!

hope you guys like aswell as me!

post if you have any problems getting it work since i might be able to answer what you have done wrong. :D
« Last Edit: March 08, 2009, 11:40:27 am by simply sibyl »


A Funny animation made by me :

Offline Ineedrsforum

  • SMF For Free Newbie
  • *
  • Posts: 3
    • View Profile

  • Total Badges: 8
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 First Post
Re: [Code] How to make doubled sided image names
« Reply #1 on: October 10, 2008, 07:05:23 pm »
Isnt working for me....
I posted it:
vfour[vfour.length] = ["Mod Jake","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>NAME<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>","yellow",""];
but still not working! :'( :'( :'( :'(

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: [Code] How to make doubled sided image names
« Reply #2 on: October 11, 2008, 11:06:12 am »
When you are having problems with codes it is really helpful to post the following:

1.  Your forum URL
2.  The code exactly as you have it set in your forum, including any changes you made for it.

It is also very helpful to leave the code in place on your forum so we can go look at what's happening.

Thanks


And I Play:  Mafia-Mandemz

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] How to make doubled sided image names
« Reply #3 on: October 11, 2008, 12:21:53 pm »
Isnt working for me....
I posted it:
vfour[vfour.length] = ["Mod Jake","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>NAME<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>","yellow",""];
but still not working! :'( :'( :'( :'(

do this:

Code: [Select]
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array()
vfour[vfour.length] = ["Mod Jake","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>Mod Jake<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>","yellow",""];

for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML == vfour[f][0]){
this.innerHTML = this.innerHTML.replace(vfour[f][0],"<font color='" + vfour[f][2] + "'>" + vfour[f][3] + vfour[f][(vfour[f][1] != "" ? 1 : 0)] + "</font>");
};});};}
name_across_board();
</script>


Make sure you have this in your header:

Code: [Select]
<script src="/jquery.js"></script>


Offline Uloveher

  • SMF For Free Newbie
  • *
  • Posts: 4
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 First Post
Re: [Code] How to make doubled sided image names
« Reply #4 on: January 17, 2009, 04:50:30 pm »
It is not working for me.



my wedsite: www.testscape1.smfforfree.com


I put:
Header:
<script src="/jquery.js"></script>

Footer:
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array()
vfour[vfour.length] = ["Uloveher","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>Uloveher<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>","yellow",""];

for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML == vfour[f][0]){
this.innerHTML = this.innerHTML.replace(vfour[f][0],"<font color='" + vfour[f][2] + "'>" + vfour[f][3] + vfour[f][(vfour[f][1] != "" ? 1 : 0)] + "</font>");
};});};}
name_across_board();
</script>


Whats wrong with it?

Offline Didds

  • SMF For Free Sr. Member
  • *
  • Posts: 269
  • Didds Forums
    • View Profile
    • Didds Forums

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] How to make doubled sided image names
« Reply #5 on: January 17, 2009, 04:56:42 pm »
To the post above, could you put the code inside
Code: [Select]

Makes it easier to read you see....

Offline Didds

  • SMF For Free Sr. Member
  • *
  • Posts: 269
  • Didds Forums
    • View Profile
    • Didds Forums

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] How to make doubled sided image names
« Reply #6 on: January 17, 2009, 04:58:28 pm »
Also, I just checked your forum and it does have the two crowns on either side of your name... it's all working  :uglystupid2:

Offline - Lawrence -

  • SMF For Free Hero
  • *
  • Posts: 549
    • View Profile

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] How to make doubled sided image names
« Reply #7 on: January 17, 2009, 05:00:22 pm »
Try this code:
Code: [Select]
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array()
vfour[vfour.length] = ["Uloveher","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif' />Uloveher<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>","yellow",""];

for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML == vfour[f][0]){
this.innerHTML = this.innerHTML.replace(vfour[f][0],"<font color='" + vfour[f][2] + "'>" + vfour[f][3] + vfour[f][(vfour[f][1] != "" ? 1 : 0)] + "</font>");
};});};}
name_across_board();
</script>
See if that works ;).

Offline interruption

  • SMF For Free Member
  • *
  • Posts: 24
    • View Profile
    • TheMegaPolo Community

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] How to make doubled sided image names
« Reply #8 on: January 25, 2009, 02:09:18 pm »
Isnt working for me....
I posted it:
vfour[vfour.length] = ["Mod Jake","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>NAME<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>","yellow",""];
but still not working! :'( :'( :'( :'(
That image was deleted. Try using an image that isn't deleted. I guarantee it will work for you.

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] How to make doubled sided image names
« Reply #9 on: January 25, 2009, 02:21:00 pm »
Quote
That image was deleted. Try using an image that isn't deleted. I guarantee it will work for you.

The image url is correct and has not been deleted.
Here is that url: http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif
which displays this: 
If you clicked on the link in their post it would have given you the wrong information  ;)

This should fix it:   (same code Lawrence posted)   

Code: [Select]
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array()
vfour[vfour.length] = ["Uloveher ","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>Uloveher<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>","yellow",""];

for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML == vfour[f][0]){
this.innerHTML = this.innerHTML.replace(vfour[f][0],"<font color='" + vfour[f][2] + "'>" + vfour[f][3] + vfour[f][(vfour[f][1] != "" ? 1 : 0)] + "</font>");
};});};}
name_across_board();
</script>
« Last Edit: January 25, 2009, 02:23:02 pm by simply sibyl »

Offline Turtlesarecool

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

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] How to make doubled sided image names
« Reply #10 on: March 08, 2009, 10:02:16 am »
is it working yet and for the color u put yellow try this

Code: [Select]
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array()
vfour[vfour.length] = ["Uloveher ","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>Uloveher<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>","FFCC00",""];

for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML == vfour[f][0]){
this.innerHTML = this.innerHTML.replace(vfour[f][0],"<font color='" + vfour[f][2] + "'>" + vfour[f][3] + vfour[f][(vfour[f][1] != "" ? 1 : 0)] + "</font>");
};});};}
name_across_board();
</script>


Offline clairebear

  • SMF For Free Master
  • *
  • Posts: 1019
    • View Profile

  • Total Badges: 23
    Badges: (View All)
    Fifth year Anniversary Search Level 5 1000 Posts Poll Voter
Re: [Code] How to make doubled sided image names
« Reply #11 on: March 13, 2009, 06:57:41 am »
the images.. can i use any image?
and do i have to make it tiny?
or will it do it itself?
www.teardrop.mysmf.com

A support forum for support in loss from early miscarriage to five years.

Offline clairebear

  • SMF For Free Master
  • *
  • Posts: 1019
    • View Profile

  • Total Badges: 23
    Badges: (View All)
    Fifth year Anniversary Search Level 5 1000 Posts Poll Voter
Re: [Code] How to make doubled sided image names
« Reply #12 on: March 13, 2009, 07:43:21 am »
i also cannot get this wo work
www.teardropsupport.org

Code: [Select]
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array()
vfour[vfour.length] = ["barbara","<img src='[IMG]http://i271.photobucket.com/albums/jj132/tinkeradela/a-crown3.gif[/IMG]'/>barbara<img src='[IMG]http://i271.photobucket.com/albums/jj132/tinkeradela/a-crown3.gif[/IMG]'/>","#E066FF",""];

for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML == vfour[f][0]){
this.innerHTML = this.innerHTML.replace(vfour[f][0],"<font color='" + vfour[f][2] + "'>" + vfour[f][3] + vfour[f][(vfour[f][1] != "" ? 1 : 0)] + "</font>");
};});};}
name_across_board();
</script>


www.teardrop.mysmf.com

A support forum for support in loss from early miscarriage to five years.

Offline Seldom Fail

  • Helpers
  • *
  • Posts: 2082
  • Helping for 3 years! :)
    • View Profile
    • My Site!

  • Total Badges: 26
    Badges: (View All)
    Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
Re: [Code] How to make doubled sided image names
« Reply #13 on: March 13, 2009, 07:54:56 am »
The original code in the first post works fine for me.

You may have just accidentaly removed something. Here's the code I used and it works fine on my test forum.
Code: [Select]
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array()
vfour[vfour.length] = ["Uloveher","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>Uloveher<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>","yellow",""];

for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML == vfour[f][0]){
this.innerHTML = this.innerHTML.replace(vfour[f][0],"<font color='" + vfour[f][2] + "'>" + vfour[f][3] + vfour[f][(vfour[f][1] != "" ? 1 : 0)] + "</font>");
};});};}
name_across_board();
</script>
<--- Donate to SMF For Free! :D

Offline clairebear

  • SMF For Free Master
  • *
  • Posts: 1019
    • View Profile

  • Total Badges: 23
    Badges: (View All)
    Fifth year Anniversary Search Level 5 1000 Posts Poll Voter
Re: [Code] How to make doubled sided image names
« Reply #14 on: March 13, 2009, 12:07:14 pm »
i tried that one but nothing happened
was i suppoed to use the hex code for color or just write in red purple etc?
and im still not ure as if do i make the img smaller or do it do it alone?
www.teardrop.mysmf.com

A support forum for support in loss from early miscarriage to five years.

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
592 Views
Last post September 06, 2008, 04:40:49 pm
by simply sibyl
2 Replies
1361 Views
Last post November 26, 2008, 03:38:15 pm
by - Lawrence -
2 Replies
2131 Views
Last post December 06, 2008, 10:59:03 am
by OutOfOrder
1 Replies
701 Views
Last post March 14, 2009, 08:26:20 pm
by Andrew
0 Replies
1163 Views
Last post October 19, 2013, 08:12:33 pm
by Jen Lee