inherit
125950
0
Aug 29, 2011 8:52:54 GMT -8
Bleeding Star
180
June 2008
bleedingstar
|
Post by Bleeding Star on Jul 2, 2008 10:00:13 GMT -8
Forum URL: Not Provided Experienced By: Not sure Web Browser: Not sure Description: Ive created a text field that can be used in the profile, how would I go about adding an Image as the response? The field is gamertag but instead of the tag being displayed I want a gamercard image to be displayed
|
|
T-Dub
New Member
Posts: 83
inherit
127119
0
Nov 18, 2010 17:20:55 GMT -8
T-Dub
83
June 2008
tdub3111
|
Post by T-Dub on Jul 2, 2008 10:56:44 GMT -8
I was getting ready to create a topic like this So I also want to know how to do this
|
|
inherit
104284
0
Nov 9, 2011 13:05:42 GMT -8
Pseudocide(Syth)
?●.●?
1,411
May 2007
crazlk
|
Post by Pseudocide(Syth) on Jul 2, 2008 11:46:55 GMT -8
Forum URL: Not Provided Experienced By: Not sure Web Browser: Not sure Description: Ive created a text field that can be used in the profile, how would I go about adding an Image as the response? The field is gamertag but instead of the tag being displayed I want a gamercard image to be displayed Not sure what code you added, but have you tried to use a img tag? Talking about: [/img]
|
|
inherit
125950
0
Aug 29, 2011 8:52:54 GMT -8
Bleeding Star
180
June 2008
bleedingstar
|
Post by Bleeding Star on Jul 2, 2008 11:51:36 GMT -8
yep i tried image tags and img src html code
|
|
inherit
104284
0
Nov 9, 2011 13:05:42 GMT -8
Pseudocide(Syth)
?●.●?
1,411
May 2007
crazlk
|
Post by Pseudocide(Syth) on Jul 2, 2008 11:53:07 GMT -8
I have no idea then.. Sorry.
|
|
Kami
Forum Cat
Posts: 40,063
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,063
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jul 2, 2008 12:36:40 GMT -8
I don't think the CF code supports Images.
|
|
inherit
Official Code Helper
65613
0
1
May 11, 2024 14:19:23 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,879
December 2005
horace
|
Post by Chris on Jul 2, 2008 16:18:26 GMT -8
You gave no forum url so I'm assuming you want this for Pregame Lobby. This addon uses the functionality already present in existing code on that forum, specifically Crossfury and mini-profile switchit by California. It should go below both these codes in the global footer... <script> /* Gamertag Crossfury Enhancement - Eton*/ /* Requires mini-profile switchit by California */ /* Install below the mini-profile switchit code AND crossfury global footer portion*/
document.body.innerHTML.replace(/(<br\s*\/?>gamer(?:['s\s]+)?tag:\s)(\w+)/gi,function(m,p1,p2){ mpSwitch(m,p1 + '<embed src="http://card.mygamercard.net/'+p2+'.swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" type="application/x-shockwave-flash" width="198" height="135"></embed>');return m;}) </script> For instance if you have gamertag set to jnbj then it would replace it with the jnbj flash file Required Scripts: - Crossfury
- Crossfury Patch#1 and Crossfury Patch#2
<script> <!-- /* miniprofile switch-it by california */
var iCell = document.getElementsByTagName("td"); function mpSwitch(m1,m2){ for(m=0;m<iCell.length;m++){ var c = iCell[m].innerHTML; if(iCell[m].width=="20%" && c.match(/Posts:/) && iCell[m].className.match(/owbg/) && c.match(m1)){ iCell[m].innerHTML = c.replace(m1,m2); } } }
if(location.href.match(/on=(display|search2|viewpr|(user)?rece|calendarvi)/)){
mpSwitch('member is ', 'Status: ');
} // --> </script>
|
|
inherit
125950
0
Aug 29, 2011 8:52:54 GMT -8
Bleeding Star
180
June 2008
bleedingstar
|
Post by Bleeding Star on Jul 3, 2008 3:15:58 GMT -8
omg thats amazing thanks, one problem though is that whe I enter a gamertag with a spac e in eg Welsh Dude it only searches the gamercard for Welsh
|
|
inherit
Official Code Helper
65613
0
1
May 11, 2024 14:19:23 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,879
December 2005
horace
|
Post by Chris on Jul 3, 2008 7:06:00 GMT -8
I assumed gamertags couldn't contain spaces new code... <script> /* Gamertag Crossfury Enhancement - Eton*/ /* Requires mini-profile switchit by California */ /* Install below the mini-profile switchit code AND crossfury global footer portion*/
document.body.innerHTML.replace(/(<br\s*\/?>gamer(?:['s\s]+)?tag:\s)(.+?)<br\s*\/?>/gi,function(m,p1,p2){ mpSwitch(m,p1 + '<embed src="http://card.mygamercard.net/'+p2+'.swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" type="application/x-shockwave-flash" width="198" height="135"></embed><br>');return m;}) </script>
|
|
inherit
125950
0
Aug 29, 2011 8:52:54 GMT -8
Bleeding Star
180
June 2008
bleedingstar
|
Post by Bleeding Star on Jul 3, 2008 7:15:21 GMT -8
|
|
inherit
Official Code Helper
65613
0
1
May 11, 2024 14:19:23 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,879
December 2005
horace
|
Post by Chris on Jul 3, 2008 7:54:09 GMT -8
Oops! Since it's the last option in the mini-profile there was a "</td>" instead of a "<br>" after it new code...
<script> /* Gamertag Crossfury Enhancement - Eton*/ /* Requires mini-profile switchit by California */ /* Install below the mini-profile switchit code AND crossfury global footer portion*/
document.body.innerHTML.replace(/(<br\s*\/?>gamer(?:['s\s]+)?tag:\s)(.+?)(?=<)/gi,function(m,p1,p2){ mpSwitch(m,p1 + '<embed src="http://card.mygamercard.net/'+p2+'.swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" type="application/x-shockwave-flash" width="198" height="135"></embed>');return m;}) </script>
This one assumes you can't have a "<" in a gamertag. I didn't even know what a gamertag was until I read this thread so if I'm wrong again let me know.
|
|
inherit
125950
0
Aug 29, 2011 8:52:54 GMT -8
Bleeding Star
180
June 2008
bleedingstar
|
Post by Bleeding Star on Jul 3, 2008 7:57:49 GMT -8
absolutly perfect, thank you so much
|
|