Skip to Content Skip to Menu

A little Help with my plugin

14 years 6 months ago #133725 by paulocentr
A little Help with my plugin was created by paulocentr
good morning

i'm having some issues in creating a plugin
this is what i'm trying to do:

I want to creat a plugin that have a javascript code to show a Skype (or any other similar based messenger) button

i took the hello world plugin and i had sucess on doin this but...


the image of the button is appearing on top the page and not on the tap position that i want (see atached)

the code i'm using is this

[code:1]$is_skype_plug_enabled = $params->get('skypetabenabled', "1"«»);
$skype_tab_message = $params->get('skypetab', "teste!"«»);

if ($is_skype_plug_enabled != "0"«») {
if($tab->description != null){
$return .= "\t\t<div class=\"tab_Description\">"
. $tab->description // html content is allowed in descriptions
. "</div>\n";
}
$return .= "\t\t<div>\n"
. "<p>"
. htmlspecialchars(""«») // make all other output html-safe
. "Profile data filed to show is " . $user->cb_skype .""
. "</div>\n";
print "<a href=\"skype:$cb_skype?call\"><img src=\" download.skype.com/share/skypebuttons/buttons/call_blue_white_124x52.png\ " style=\"border: none;\" width=\"124\" height=\"52\" alt=\"Skype!\" />";
}
return $return;[/code:1]

obviously i'm doin somethig wrong any help?

Post edited by: paulocentr, at: 2010/05/21 20:07
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum