vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Add Skype/Xfire/Google Talk to IM List (https://vborg.vbsupport.ru/showthread.php?t=98707)

Hawkbizkit 11-03-2005 10:08 PM

Quote:

Originally Posted by Joshua5692
Great work, thank you for the mod!

My problem I think is somewhere in the headinclude...

When I click the MSN icon, I get the popup and it is perfect. When I click the Skype however it merely refreshes the page, no popup at all.


Any help would be appreciated.

PHP Code:

<meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]/>
<
meta name="generator" content="vBulletin $vboptions[templateversion]/>
<if 
condition="$show['threadinfo']">
<
meta name="keywords" content="$threadinfo[title]$vboptions[keywords]/>
<
meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]/>
<else />
    <if 
condition="$show['foruminfo']">
<
meta name="keywords" content="$foruminfo[title_clean]$vboptions[keywords]/>
<
meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]/>
    <else />
<
meta name="keywords" content="$vboptions[keywords]/>
<
meta name="description" content="$vboptions[description]/>
    </if>
</if>

<!-- 
CSS Stylesheet -->
$style[css]
<if 
condition="is_browser('opera') AND !is_browser('opera', '8.0.1')">
<
style type="text/css">
ulol padding-left:20px; }
</
style>
</if>
<!-- / 
CSS Stylesheet -->

<
script type="text/javascript">
<!--
var 
SESSIONURL "$session[sessionurl_js]";
var 
IMGDIR_MISC "$stylevar[imgdir_misc]";

{
    return 
openWindow(
        
'sendmessage.php?' SESSIONURL 'do=googletalk&u=' userid,
        
widthheight
    
);
}
function 
xfirewindow(useridwidthheight)
{
    return 
openWindow(
        
'sendmessage.php?' SESSIONURL 'do=xfire&u=' userid,
        
widthheight
    
);
}
function 
skypewindow(useridwidthheight)
{
    return 
openWindow(
        
'sendmessage.php?' SESSIONURL 'do=skype&u=' userid,
        
widthheight
    
);
}
</
script>

<
script type="text/javascript" src="clientscript/vbulletin_global.js"></script>
<if 
condition="$show['popups']"><script type="text/javascript" src="clientscript/vbulletin_menu.js"></script></if>
<if 
condition="$vboptions['externalrss']"><link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="external.php?type=RSS" /></if> 


well first off in your headinclude you are missing

function gtwindow(userid, width, height)

right below var IMGDIR_MISC = "$stylevar[imgdir_misc]";

so it should be like this
PHP Code:

<meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]/>
<
meta name="generator" content="vBulletin $vboptions[templateversion]/>
<if 
condition="$show['threadinfo']">
<
meta name="keywords" content="$threadinfo[title]$vboptions[keywords]/>
<
meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]/>
<else />
    <if 
condition="$show['foruminfo']">
<
meta name="keywords" content="$foruminfo[title_clean]$vboptions[keywords]/>
<
meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]/>
    <else />
<
meta name="keywords" content="$vboptions[keywords]/>
<
meta name="description" content="$vboptions[description]/>
    </if>
</if>

<!-- 
CSS Stylesheet -->
$style[css]
<if 
condition="is_browser('opera') AND !is_browser('opera', '8.0.1')">
<
style type="text/css">
ulol padding-left:20px; }
</
style>
</if>
<!-- / 
CSS Stylesheet -->

<
script type="text/javascript">
<!--
var 
SESSIONURL "$session[sessionurl_js]";
var 
IMGDIR_MISC "$stylevar[imgdir_misc]";
 function 
gtwindow(useridwidthheight)
{
    return 
openWindow(
        
'sendmessage.php?' SESSIONURL 'do=googletalk&u=' userid,
        
widthheight
    
);
}
function 
xfirewindow(useridwidthheight)
{
    return 
openWindow(
        
'sendmessage.php?' SESSIONURL 'do=xfire&u=' userid,
        
widthheight
    
);
}
function 
skypewindow(useridwidthheight)
{
    return 
openWindow(
        
'sendmessage.php?' SESSIONURL 'do=skype&u=' userid,
        
widthheight
    
);
}
</
script>

<
script type="text/javascript" src="clientscript/vbulletin_global.js"></script>
<if 
condition="$show['popups']"><script type="text/javascript" src="clientscript/vbulletin_menu.js"></script></if>
<if 
condition="$vboptions['externalrss']"><link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="external.php?type=RSS" /></if> 


Hawkbizkit 11-03-2005 10:16 PM

Quote:

Originally Posted by ROTPAR
that?s right. If I try to uninstall the product I can?t because it does not finde the needed things in the database (google etc.)

ok run these queries

[sql]ALTER TABLE user ADD googletalk VARCHAR( 250 ) AFTER msn

ALTER TABLE user ADD xfire VARCHAR( 250 ) AFTER msn

ALTER TABLE user ADD skype VARCHAR( 250 ) AFTER msn[/sql]

be sure to add your table prefix if you have one... you man only need to run 1 or all of these queries so try them all if you have all 3 installed if not just use the one needed

Joshua5692 11-03-2005 11:03 PM

That was just too sexy! Thank you, it finally works the way you intended! Again thank you for the addition and the support for it.

If all you coders would put a little Paypal script in your entry submission, I am sure there are probably a few dozen like me that would be more than happy to donate for the time and effort you put into this stuff.

Joshua5692 11-04-2005 01:22 PM

I spoke too soon. The code you gave worked great in Firefox. It took me a full day to get the complaints, but it is very bad for those who use IE. In Internet Explorer, with the Headinclude you gave it give many errors and some even in Firefox. The original code in the post I had does not give these errors, but your modification won't work unless I use yours.

The errors are when you reply to any message the drop down smilies (in advanced mode) and many of the code options stop working. The other major error is the style selection no longer functions, the language selection no longer functions.

I really am interested in making this work, if anyone has a suggested modification of the code above?

ROTPAR 11-04-2005 05:10 PM

Quote:

Originally Posted by Hawkbizkit
ok run these queries

[sql]ALTER TABLE user ADD googletalk VARCHAR( 250 ) AFTER msn

ALTER TABLE user ADD xfire VARCHAR( 250 ) AFTER msn

ALTER TABLE user ADD skype VARCHAR( 250 ) AFTER msn[/sql]

be sure to add your table prefix if you have one... you man only need to run 1 or all of these queries so try them all if you have all 3 installed if not just use the one needed

thank you very much..now it?s perfect :)

Hanif 11-04-2005 07:43 PM

Interesting to note that vbulletin.org will have an interesting feature added to 3.5.2 with regards, to Skype: http://www.vbulletin.com/forum/showthread.php?t=162169

Snake 11-04-2005 08:38 PM

That's good but what about Google Talk?

Hawkbizkit 11-04-2005 11:52 PM

Quote:

Originally Posted by Joshua5692
I spoke too soon. The code you gave worked great in Firefox. It took me a full day to get the complaints, but it is very bad for those who use IE. In Internet Explorer, with the Headinclude you gave it give many errors and some even in Firefox. The original code in the post I had does not give these errors, but your modification won't work unless I use yours.

The errors are when you reply to any message the drop down smilies (in advanced mode) and many of the code options stop working. The other major error is the style selection no longer functions, the language selection no longer functions.

I really am interested in making this work, if anyone has a suggested modification of the code above?

well i just tried editing your code here is my headinclude code from my personal board tell me it that works..
PHP Code:

<meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]/>
<
meta name="generator" content="vBulletin $vboptions[templateversion]/>
<if 
condition="$show['threadinfo']">
<
meta name="keywords" content="$threadinfo[title]$vboptions[keywords]/>
<
meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]/>
<else />
    <if 
condition="$show['foruminfo']">
<
meta name="keywords" content="$foruminfo[title_clean]$vboptions[keywords]/>
<
meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]/>
    <else />
<
meta name="keywords" content="$vboptions[keywords]/>
<
meta name="description" content="$vboptions[description]/>
    </if>
</if>

<!-- 
CSS Stylesheet -->
$style[css]
<if 
condition="is_browser('opera') AND !is_browser('opera', '8.0.1')">
<
style type="text/css">
ulol padding-left:20px; }
</
style>
</if>
<!-- / 
CSS Stylesheet -->

<
script type="text/javascript">
<!--
var 
SESSIONURL "$session[sessionurl_js]";
var 
IMGDIR_MISC "$stylevar[imgdir_misc]";
// -->
function gtwindow(useridwidthheight)
{
    return 
openWindow(
        
'sendmessage.php?' SESSIONURL 'do=googletalk&u=' userid,
        
widthheight
    
);
}
function 
xfirewindow(useridwidthheight)
{
    return 
openWindow(
        
'sendmessage.php?' SESSIONURL 'do=xfire&u=' userid,
        
widthheight
    
);
}
function 
skypewindow(useridwidthheight)
{
    return 
openWindow(
        
'sendmessage.php?' SESSIONURL 'do=skype&u=' userid,
        
widthheight
    
);
}
</
script>

<
script type="text/javascript" src="clientscript/vbulletin_global.js"></script>
<if 
condition="$show['popups']"><script type="text/javascript" src="clientscript/vbulletin_menu.js"></script></if>
<if 
condition="$vboptions['externalrss']"><link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="external.php?type=RSS" /></if> 


Allan 11-13-2005 02:14 PM

Very Nice ;)

Thanks, Click Install

File Attach: French Language for Skype

Joshua5692 11-13-2005 03:41 PM

Quote:

Originally Posted by Hawkbizkit
well i just tried editing your code here is my headinclude code from my personal board tell me it that works..

I would love to tell you it works flawless and thank you very much, but....
as soon as I say that is when I get notified of board errors. So I will tell you thank you very much, it does not have the display or function problems that my old one had. It works perfectly from what I can see. Thanks for all your support.


All times are GMT. The time now is 10:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01356 seconds
  • Memory Usage 1,859KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete