News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Skype Mod with Icon [new]

Started by John Slater, June 11, 2005, 04:54:59 PM

Previous topic - Next topic

John Slater

Link to Mod

This modification makes a feild in your profile and displays a Skype Icon in your mini profile along side your posts.

Simply Install this mod using package manager and enter your skype name into your profile. The icon will then link to your user name, when pressed it will qutomaticly ring the person, if skype is open or installed on your PC.

I know their is a mod simlar to this but this mod places an icon in the mini icon, underneith the other message icons.

Below Is a Preview of the mod




Please put forward any questions, this is recomended for the default theme, may work with other themes. If not ask in the thread and the team will be able to give you pointers.

Made By: thesimpsonjohn

Credit to: [Unknown] & Dan The Man

Gary

Seems like a decent enough mod. Good work John.
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Mike Frith

nice work... simple... but effective

John Slater

Thanks, It took a while to get the dman thing to work but it was worth it.

I'm going to need to make some kind of read me file that will tell people who dont use the default theme how to use the mod.

I can say that it works with the 7Dana theme and the default and partly works with the YabbSe theme.

Mike Frith

thats great news for MT2 and TMFE  ;D

Gary

Well the latter at least. Could always test it out on Beta 3 for you John.
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

John Slater

Yeah that would be great, it should work with the new versions but like you have said the templates are very different.

It should show a Small icon in your post profile and a text area in your profile (where you update), as well as a linked peice of text under your website url in your profile.

Mike Frith

on the images up top... why does it say favorite animal - season 13?

Gary

Small thing John, the Skype Name does not appear on a new line. And streches out the table:

See Attachment. (Click Thumbnail to enlarge)
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

John Slater

Ok Will sort that gary. Mike what do you mean?

Mike Frith

on the images at the top... you have favorite animal... then a drop down list of seasons

John Slater

Can you print screen what you mean please then i know where and what you mean. I think i know what you mean, but it should be in this mod.

Gary

Mike is refering to your favourite Season Drop down menu. It has faviourite animal next to it, rather than faviourite season.
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Mike Frith

its not to do ith this mod... i was just wondering why it said this... look at the last option


John Slater

Oh yeah i get ya, sorry about that, it was a mistake i have ben meaning to fix, will be added to a mod soon. With loads of extras feilds.

Mike Frith


Gary

Any word on the bug fix John?
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

NOS ChromeNut

Any hints on how to get this running with other templates?  I'm using Helios Multi, and while the mod went in easy with package manager, I can't see any changes when I go into my profile. I'm assuming that's because I'm using a template.  I have heavy experience in phpBB and xmB, having four boards running that software, and am very hip on manually upgrading my boards, but am new to SMF. Before I go tackling the files in my template and possibly damaging something, I want to make sure I'm at least pointed in the right direction.

Also, I just updated to 1.0.4 prior to adding this Skype mod, now I get an error message regarding Current Template Versions:  Profile.template.php 1.0.1 1.0.4

That was set at 1.0.4 after my upgrade to 1.0.4, then this error message showed up after adding your mod.  When I go look at the list of files associated with your mod it doesn't say anything at all about Profile.template.php, so why did your mod rewrite/overwrite my file?  And is this not compatible with 1.0.4??? Sorry to ask so many questions at one time...

Gary

In Profile.template.php

Find:

<td><input type="text" name="websiteUrl" size="50" value="', $context['member']['website']['url'], '" /></td>


Add after it:

<td><b>Skype Name: </b></td>
<td><input type="text" name="default_options[skype]" size="50" value="', @$context['member']['options']['skype'], '" /></td></tr><tr>


Find:

<td><a href="', $context['member']['website']['url'], '" target="_blank">', $context['member']['website']['title'], '</a></td>


Add after it:

', !empty($context['member']['options']['skype']) ? '</tr><tr>
<td><b>Skype Name: </b></td>
<td><a href="callto://' . $context['member']['options']['skype'] . '" target="_blank">' . $context['member']['options']['skype'] . '</a></td>' : '', '


In Display.template.php

Find:

', $message['member']['yim']['link'], '<br />';


Add after it:

if (!empty($message['member']['options']['skype'])) echo '<a href="callto://', $message['member']['options']['skype'], '/"><img border="0" src="' . $settings['images_url'] . '/skype.gif"></a><br />';


Dont forget to upload skype.gif to your images folder.

However, I dont think that John has fixed the problem. With John's permission, I will re-write for John and send it to him.
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

NOS ChromeNut

 ;D You guys are so spoiling me!  I swear, I've run forums and boards now for over two years, many with mucho mods as I just can't leave well-enough alone, and these boards, these forums for SMF, have been the friendliest, and fastest to answer all my questions of all of those.

Keep up the great work!!!

Advertisement: