Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Xbox Live Gamercard Integration

Aloittaja Compton, helmikuu 08, 2007, 05:31:36 IP

« edellinen - seuraava »

Compton

I would like a feature so that I can add a gamercard to the posting profile fo my members.  I searched the MOD database and came really close in the Custom Profile Field Mod.  But it has a ":" that it puts in front of every field and that throws off the spacing that I am looking for.

This mod could be used to add another image of any kind to the post profile.  Anyway I really hope someone decides to do this MOD I would be really grateful.  To give you an idea of the image here is a copy of what I plan to implement.


GC

I created an xbox live gamertag mod for SMF.

Compton

I am aware of that MOD but that is not what I am requesting here.  I have already got the gamertag MOD setup.  Thank you for your responce though.

Compton

I waited a week so I figured it was time for a bump.

Compton

Does anyone at least know how to do the mod I need in the custom profile mod?

jkrlvgn

Just find the ":" in the coding and then take it out..?

Compton

Lainaus käyttäjältä: jkrlvgn - helmikuu 24, 2007, 04:04:59 IP
Just find the ":" in the coding and then take it out..?

I am an extreme laymen.  What file would I look in?

jkrlvgn

I don't think it'll help much with the spacing, but you want to edit things in the CustomProfile.php in your Sources folder.  Just do a text search for:

: </b>

And replace it with:

</b>

Like I said, it might not help with your spacing issue...but...that'll take care of your nasty :'s.....

Compton

I implemented this and it did not work do you have any other suggestions?  (Thank for trying to help to begin with.)

jkrlvgn

#9
.....didn't work as in it didn't take the ":" away, or it didn't do the spacing issue?  Anyway....pm me a link to your board, and I'll see what I can play with.


---edit---

...or, a screenshot of what you get, and tell me how you want it differently.....that would work....

Compton

Okay here is a screenshot.  I have the area circled.  I just want that ":" gone.



http://o7ah.net/sigs/problem.jpg

There is a link the the larger version

jkrlvgn

OH!!!

I thought you meant in the profile itself.  *LOL*  God, I'm such an idiot.

Hold on..I've got this....

Compton


jkrlvgn

#13
Search for:
_name'] . ': '

Replace it with:

_name'] . ''

There's 4 instances of this....just checked on my board, and it's fine.

Lemme know if that works for you.

---Edit---

...it's in the same file, just so you know.

Compton

It worked perfectly.  Thank you tons!!!!!!!!!!!!!!

jkrlvgn


aperseghin


modz

Does anyone know how he added the gamercard part into the custom field?

modz

hmm im going to try somthing if it works i'll post it here.. But if anyone has any suggestions PLEASE let me know..

modz

Ok i got it to work.. What i did is installed the custom fields mod and then i had to add this..

LainaaMaybe useful for someone:
To add support for the Xbox Live Gamercards to a SMF open the Subs.php.
Look for:

Code:
         array(
            'tag' => 'white',
            'before' => '<span style="color: white;">',
            'after' => '</span>',
         ),and add

Code:
         array(
            'tag' => 'gamercard',
            'type' => 'unparsed_content',
            'content' => '<iframe src="hxxp:gamercard.xbox.com/$1.card [nonactive]" scrolling="no" frameBorder="0" height="140" width="204"></iframe>',
            'validate' => create_function('&$tag, &$data, $disabled', '$data = rawurlencode(trim($data));'),
         ),behind that.
This will add a BBC [gamercard]. To use it just write [gamercard]Gamertag[/gamercard] inside a post.
Used and tested with SMF 1.1 RC1
Have fun.
RealRauch



but the problem is this..



See the gamercard is sticking out into the post its self..

Now i could trim down the iframe

src="http://gamercard.xbox.com/$1.card" scrolling="no" frameBorder="0" height="140" width="204"></iframe>',

but that doesnt resize the card.. It just cuts the image to whatever the size is set to.. So if i took it down to 80 for example.. it would only show a small part of the gamercard..

The problem here is some peoples gamertags are longer then mine. So it would cut part of there name there..


Any solutions anyone has?

Advertisement: