.Sup
be nice
+2,646|6699|The Twilight Zone
Hey guys, a buddy set up a site couple months ago, its based on phpBB3 and it has an option that your profile under avatar shows your MSN messenger username and when someone clicks that in your profile it runs messenger in order to add that person as your friend, same as we have here at BF2s for xfire.

Is there a way to change "msn" to" steam" so it runs that?

This is a screenshot of the user control panel:

https://img442.imageshack.us/img442/2001/39256109.png


and if you click on the MSN (Steam) icon below your avatar it opens this window:

https://img340.imageshack.us/img340/6201/58311948.png

Anyway this would work simply by changing the name in the template or is coding required?
https://www.shrani.si/f/3H/7h/45GTw71U/untitled-1.png
.Sup
be nice
+2,646|6699|The Twilight Zone
bump.

no one?
https://www.shrani.si/f/3H/7h/45GTw71U/untitled-1.png
CrazeD
Member
+368|6918|Maine

Code:

<a href="msnim:chat?contact=username">Add Contact</a>

<a href="msnim:add?contact=username">Send message</a>
Replace "username" with whatever the variable is that puts the steam name in.

Last edited by CrazeD (2009-12-10 13:05:23)

B-Scimitar
Defeating your warriors.
+116|6655|Espoo, Finland
I see no way for a random user to change it individually whether he wants to be contacted through MSN or Steam, if that's what you meant. However if your buddy wants to set up a new contact option or just replace MSN with Steam, he should do something like this:

Code:

<a href="steam://friends/add/000_steamcommunityuserid#_000">Add Contact</a>
<a href="http://steamcommunity.com/profiles/000_steamcommunityuserid#_000">View Steam Community Profile</a>
CrazeD
Member
+368|6918|Maine
Oh, I guess I read wrong. You want to change MSN to Steam, not Steam to MSN. lawl
.Sup
be nice
+2,646|6699|The Twilight Zone
So where exactly do I put this?
https://www.shrani.si/f/3H/7h/45GTw71U/untitled-1.png
B-Scimitar
Defeating your warriors.
+116|6655|Espoo, Finland

.Sup wrote:

So where exactly do I put this?
In the memberlist.php file or in some other file that is included in it. Just follow the $_GET's properly and it should be rather easy to hack, assumed that you are the webmaster and have an access to said files.

Edit: Just make sure that you don't mess with the variables there and make some backups if you're unsure of what you're doing.

Last edited by B-Scimitar (2009-12-10 15:52:56)

CrazeD
Member
+368|6918|Maine
ROOT/styles/yourstyle/template/memberlist_im.html

Replace:

Code:

<dd><object classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28" codetype="application/x-oleobject" id="objMessengerApp" width="0" height="0"></object></dd>
<dd><a href="#" onclick="add_contact('{A_IM_CONTACT}'); return false;">{L_IM_ADD_CONTACT}</a></dd>
<dd><a href="#" onclick="im_contact('{A_IM_CONTACT}'); return false;">{L_IM_SEND_MESSAGE}</a></dd>
With:

Code:

<dd><a href="steam://friends/add/{A_IM_CONTACT}">{L_IM_ADD_CONTACT}</a></dd>
<dd><a href="steam://friends/message/{A_IM_CONTACT">{L_IM_SEND_MESSAGE}</a></dd>
Haven't tested but should work.
.Sup
be nice
+2,646|6699|The Twilight Zone
Thanks for the replies.

I tried both suggestions but they don't seem to work.


In the last screenshot the blank space where you put your steam username it does not save anything I put in. It says updating but its still blank. I also changed all "msn and msnm" words  in template.html into "Steam" but that did not work either. This is only the clone site of the real site so I'm willing to give someone my pass and username to look for a solution if anyone would like to help me.
Thanks
https://www.shrani.si/f/3H/7h/45GTw71U/untitled-1.png
B-Scimitar
Defeating your warriors.
+116|6655|Espoo, Finland
Has the clone site's database chmod values been set up correctly? That could be one reason as to why the settings won't save. Also note that you need to use the Steam Community user id numbers in the form on the site. (For example, yours would be 76561197999718440.)

Note that I didn't know the correct variables, so you should've replaced the '000_steamcommunityuserid#_000' with the appropriate strings. Therefore CrazeD's post would be the way to start.
.Sup
be nice
+2,646|6699|The Twilight Zone

B-Scimitar wrote:

Has the clone site's database chmod values been set up correctly? That could be one reason as to why the settings won't save. Also note that you need to use the Steam Community user id numbers in the form on the site. (For example, yours would be 76561197999718440.)

Note that I didn't know the correct variables, so you should've replaced the '000_steamcommunityuserid#_000' with the appropriate strings. Therefore CrazeD's post would be the way to start.
Ok this is way over my head. Could I just rename messenger to steam somehow?

https://img192.imageshack.us/img192/9415/12100562.jpg
https://www.shrani.si/f/3H/7h/45GTw71U/untitled-1.png
CrazeD
Member
+368|6918|Maine
If you could send me your unmodified theme, I will make the necessary changes for you.
.Sup
be nice
+2,646|6699|The Twilight Zone

CrazeD wrote:

If you could send me your unmodified theme, I will make the necessary changes for you.
That would be great Crazed. Here's the theme: http://www.awesomestyles.com/phpbb3-sty … irty-board
We already did some modifying so if you succeed you will need to tell which exact files you have modified so I only copy those. I would give you a direct link to our modified theme but FTP doesn't allow it. Thanks man.
https://www.shrani.si/f/3H/7h/45GTw71U/untitled-1.png
CrazeD
Member
+368|6918|Maine
So do you want to remove MSN and replace it with Steam? Or add Steam and keep MSN too?
.Sup
be nice
+2,646|6699|The Twilight Zone
bump. Can someone help me with this?
https://www.shrani.si/f/3H/7h/45GTw71U/untitled-1.png
tazz.
oz.
+1,338|6420|Sydney | ♥

ill give it a go in the morning. I'm aout to nod off.

phpbb3 is the install?
everything i write is a ramble and should not be taken seriously.... seriously.
tazz.
oz.
+1,338|6420|Sydney | ♥

Ok the command to add an individual is: steam://friends/add/<id>

I'm on my mac at the moment, someone wanna see if this adds me?? ==> click click



Also, i'm mentally planning the php... i think you guys will need to change everyone's profile, to just have the ID in the field under profile, not the whole URL....

is that ok?


edit: i assume chuy has disabled the feature i just tried, as it auto puts "denied" infront of it...


oh well..


Edit Edit: I've added a quick link at the bottom of my fileserver, tell me how it goes?

http://home.tazz.me/

Last edited by tazz. (2010-04-04 06:17:37)

everything i write is a ramble and should not be taken seriously.... seriously.
.Sup
be nice
+2,646|6699|The Twilight Zone
Tazz thanks for helping me. It opens Steam, tries to add and then says failed to add "unknown", I assume only because no valid nickname was selected. To answer your first question; yes its phbb3. Do you want me to take some screenshots of the template? I'm not sure what you mean by changing everyone's profile?
https://www.shrani.si/f/3H/7h/45GTw71U/untitled-1.png
tazz.
oz.
+1,338|6420|Sydney | ♥

ahh i see...

Ahk, it must only accept the actual ID, that is the long arse #



hmm.

I'll muck around today
everything i write is a ramble and should not be taken seriously.... seriously.
Finray
Hup! Dos, Tres, Cuatro
+2,629|6034|Catherine Black
Yeah I clicked it and it just popped up the "Add friend" box.

It works from Steam profiles though, if you could somehow rip the code off that.
https://i.imgur.com/qwWEP9F.png
tazz.
oz.
+1,338|6420|Sydney | ♥

ok, i got it to work

I plan that all we'll need to do is simply add "$communityid" into the correct spots..

ie: steam://friends/add/$communityID

or even.. http://steamcommunity.com/profiles/$communityid


I'll work in it later tonight.. i have to go pick up relatives for lunch.

This is good progress however!



Code:

<?php
        $cusomtid = 'tazz'; //change tazz to the variable in phpbb33
        
        $communityid = get_id($cusomtid); 
        echo $communityid;

        function get_id($data){
            $data=strtolower(trim($data));
                    $xml = @simplexml_load_file("http://steamcommunity.com/id/".$data."?xml=1");
                    $steamid64=$xml->steamID64;
                    return $steamid64;
                }
?>
everything i write is a ramble and should not be taken seriously.... seriously.
tazz.
oz.
+1,338|6420|Sydney | ♥

.Sup wrote:

I'm not sure what you mean by changing everyone's profile?
I mean instead of having the URL: "http://steamcommunity.com/id/tazz"

you would HAVE to just put in JUST "tazz"
everything i write is a ramble and should not be taken seriously.... seriously.
.Sup
be nice
+2,646|6699|The Twilight Zone

tazz. wrote:

.Sup wrote:

I'm not sure what you mean by changing everyone's profile?
I mean instead of having the URL: "http://steamcommunity.com/id/tazz"

you would HAVE to just put in JUST "tazz"
That would be fine Tazz! Thank you! Even better actually
https://www.shrani.si/f/3H/7h/45GTw71U/untitled-1.png
tazz.
oz.
+1,338|6420|Sydney | ♥

This replaces MSN IM to Steam IM.

PLEASE make sure to read if i've said replace, or add after, or add before etc etc.



---------------------------------------
/language/en/memberlist.php
---------------------------------------

replace
   

Code:

'IM_MSNM'                => 'Please note that you need Windows Messenger installed to use this.',
with
   

Code:

'IM_MSNM'                => 'Please note that you need Steam installed to use this.',
---------------------------------------
/language/en/ucp.php
---------------------------------------

replace
   

Code:

'UCP_MSNM'                    => 'WL/MSN Messenger',
with
   

Code:

'UCP_MSNM'                    => 'Steam',
---------------------------------------
/memberlist.php
---------------------------------------

find

Code:

 // Send vars to the template
Add after

Code:

 $cusomtid = $row[$sql_field];

        $communityid = get_id($cusomtid);
Find

Code:

             'IM_CONTACT'    => $row[$sql_field],
Add After

Code:

            'STEAM_ID'        => $communityid,
Find

Code:

?>
Add Before

Code:

 function get_id($data){
            $data=strtolower(trim($data));
                    $xml = @simplexml_load_file("http://steamcommunity.com/id/".$data."?xml=1");
                    $steamid64=$xml->steamID64;
                    return $steamid64;
                }
---------------------------------------
/styles/WHATEVER/template/memberlist_im.html
---------------------------------------

Find
   

Code:

<!-- IF S_SEND_MSNM -->
        ~~~~~
    <!-- ENDIF -->
Note that there will be code in between the ifs
Replace the whole thing with:
   

Code:

<!-- IF S_SEND_MSNM -->
        <dl class="fields2">
            <dd><a href="steam://friends/add/{STEAM_ID}">Add Friend</a></dd>
            <dd><a href="http://steamcommunity.com/profiles/{STEAM_ID}">View Profile</a></dd>
        </dl>
    <!-- ENDIF -->
Finally purge your cache through the phpbb3 admin control panel. (Under the general tab)

https://u.tazz.me/XYo.jpeg

and finally, TEST!

Last edited by tazz. (2010-04-05 01:31:27)

everything i write is a ramble and should not be taken seriously.... seriously.
.Sup
be nice
+2,646|6699|The Twilight Zone
Tazz could I send you a notepad file with all these files and you edit them?
https://www.shrani.si/f/3H/7h/45GTw71U/untitled-1.png

Board footer

Privacy Policy - © 2024 Jeff Minard