Jump to content
Sign in to follow this  
wheeloftime

[Contribution]Skype Contact

Recommended Posts

Where to set the skype name or user ?

Look in your Skype Contact admin settings or the screenshot within the posting above yours

Share this post


Link to post
Share on other sites
Thanks for replay

 

This is how my admin settings look like:

 

3.jpg

 

I don't know what could be wrong there.

 

Didn't see your reply until now :-(

Anyhow, that admin shot looks okay to me and normally works without problem. Must be something with your environment when it does not for you. I can't tell anything specific without knowing your environment and/or be able to investigate it on your webspace. You solved it by hardcoding some stuff which is maybe not optimal but sufficient I guess.

Share this post


Link to post
Share on other sites
Didn't see your reply until now :-(

Anyhow, that admin shot looks okay to me and normally works without problem. Must be something with your environment when it does not for you. I can't tell anything specific without knowing your environment and/or be able to investigate it on your webspace. You solved it by hardcoding some stuff which is maybe not optimal but sufficient I guess.

Edited by joepesci

Share this post


Link to post
Share on other sites
[code][quote name='wheeloftime' date='Mar 16 2006, 04:51 AM' post='817413']
quote name='jewelrytrends' date='Mar 15 2006, 10:04 PM' post='817197']
Hi, 

I installed the contrib, and first of all thank you for the contrib.

Instead of placing the box in the left or right colum I would like to insert it into my contact_us.php, could you help me out in the way I have to this.
Denice

Denice,

To place it in your contact_us.php you can simply use the code from the (catalog)/includes/boxes/skype_contact.php inside your (catalog)/contact_us.php
Ie. if you look for this
[code]
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
		<td class="pageHeading" align="right"><?php // echo tep_image(DIR_WS_IMAGES . 'table_background_contact_us.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
	  </tr>
	</table></td>
  </tr>

and place

<tr>
<td>

<!--
Skype 'Call me!' button
http://www.skype.com/go/skypebuttons
-->
<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js">
</script>
<?php

if ((INFOBOX_SKYPE_SHOW_HEADER == 'true') && (SKYPE_SHOW_CALL == 'true' || SKYPE_SHOW_CHAT == 'true')) {
  $info_box_contents = array();
  $info_box_contents[] = array('text' => BOX_HEADING_SKYPE);

  new SkypeBoxHeading($info_box_contents, false, false);
}

if (SKYPE_SHOW_CALL == 'true') {
	$skype_call_string = '<div align="center"><a href="skype:' . SKYPE_ID_NAME . '?call" onclick="return skypeCheck();"><img src="' . SKYPE_BUTTON_LINK . '" style="border: none;" alt="Call me!" /><br>' . TEXT_SKYPE_CALL . '</a></div>';
}

if (SKYPE_SHOW_CHAT == 'true') {
	$skype_chat_string = '<div align="center"><a href="skype:' . SKYPE_ID_NAME . '?chat" onclick="return skypeCheck();"><img src="' . SKYPE_BUTTON_LINK . '" style="border: none;" alt="Chat with me!" /><br>' . TEXT_SKYPE_CHAT . '</a></div>';
}

if (SKYPE_SHOW_CALL == 'true' || SKYPE_SHOW_CHAT == 'true') {
	$info_box_contents = array();
	$info_box_contents[] = array('text' => $skype_call_string . '<br>' . $skype_chat_string);

	new SkypeBox($info_box_contents);
}
?>
</td>
</tr>

directly after that and you will have a full width skype contact box. You can manipulate the position/size etc. through HTML and CSS as you like.

 

And thanks for the tip to get this working with STS !

 

regards,

Howard

 

 

Hello Howerd I was wondering where should i add the spesifc code you added?

I'm using a purchased tamplate and the code is kind of diffrent i was wondering where should i add the folowing code if i want the skype box to show in the bottem of the page next to the phone numbers

here is my Contact us page code

 

<?php
/*
 $Id: contact_us.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $

 E-Commerce Solutions

*/

 require('includes/application_top.php');

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US);

 $error = false;
 if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {
$name = tep_db_prepare_input($HTTP_POST_VARS['name']);
$email_address = tep_db_prepare_input($HTTP_POST_VARS['email']);
$enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']);

if (tep_validate_email($email_address)) {
  tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address);

  tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success'));
} else {
  $error = true;

  $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
}
 }

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->

<tr>
<td width="173" align="right" valign="top" bgcolor="#FFFFFF">
<table width="171" cellpadding="0" cellspacing="0" border="0">
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
</table>
</td>
<td width="557" valign="top" align="left">
	<table border="0" cellpadding="0" cellspacing="0" width="555">
		<tr>
						<td width="100%" height="100%" valign="top" bgcolor="#FFFFFF">

							<table border="0" width="100%" cellpadding="0" cellspacing="0" >
								<tr>
								<td width="100%" height="19" valign="top">
											<div class="header"><img src="images/marker_header.gif" width="3" height="5" alt="" style="margin:0px 6px 2px 0px;" />
											<?php
										echo HEADING_TITLE; ?></div>   

	   											</td>
								</tr>
								<tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '1'); ?></td>
  </tr>
								<tr>
								<td valign="top" height="416" style="padding:0px 5px; " class="infoBox">
								<table border="0" cellpadding="0" cellspacing="0" width="100%">






	 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '1'); ?></td>
  </tr>
<?php
 if ($messageStack->size('contact') > 0) {
?>
  <tr>
	<td><?php echo $messageStack->output('contact'); ?></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
<?php
 }

 if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {
?>

  <tr>
	  <td>
	<table border="0" width="100%" cellspacing="0" cellpadding="0" >
  <tr>
	<td class="main" align="center"><?php echo TEXT_SUCCESS; ?></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td align="left"><table border="0" width="100%" cellspacing="1" cellpadding="2" >
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
  </table></td></tr>
<?php
 } else {
?>

  <tr>
	<td align="left" ><table border="0" width="100%" cellspacing="1" cellpadding="2">
	  <tr class="infoBoxContents">

		<td width="100%" style="padding:5px; "><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td class="main" ><?php echo ENTRY_NAME; ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo tep_draw_input_field('name'); ?></td>
		  </tr>
		  <tr>
			<td class="main" ><?php echo ENTRY_EMAIL; ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo tep_draw_input_field('email'); ?></td>
		  </tr>
		  <tr>
			<td class="main" ><?php echo ENTRY_ENQUIRY; ?></td>
		  </tr>
		  <tr>
			<td align="left" style="padding-left:3px; "><?php echo tep_draw_textarea_field('enquiry', 'soft', 30, 7); ?></td>
		  </tr>
		</table></td>
	  </tr>
	  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td colspan="2"><table border="0" width="100%" cellspacing="1" cellpadding="2" >
	  <tr class="infoBoxContents">
		<td align="left"><table border="0" width="180" cellspacing="0" cellpadding="2">
		  <tr>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
   <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
		<td colspan="2" height="1" background="images/hpoint.gif" align="left"><img src="images/hpoint.gif" width="3" height="1" alt=""></td>
</tr>
<tr>
		<td colspan="2" height="1" background="images/hpoint.gif" align="left" style="margin-top:2px;"><img src="images/hpoint.gif" width="3" height="1" alt=""></td>
</tr>
<tr>
	<td colspan="2" align="left">
	<Table border="0" cellpadding="0" cellspacing="0" >
	<tr align="left">
	<td width="50%" style="padding-left:20px;"><br/>
	<span style="font-weight:bold;">Phone:</span>(718)-951-1300<br>
<br/>
<span style="font-weight:bold;">Fax:</span>(718)-360-8813</td>
	<td width="50%" style="padding-left:20px;"> 

	  <p><br/>
		  <span style="font-weight:bold;">E-mail:</span> </p>
	  <p>estore@c-square-d.com<br>
			<br/>
	  </p></td>
	</tr></table></td>
</tr>
	</table></td>
  </tr>

<?php
 }
?>
</table></td></tr>  </table></td>
								</form>














					</tr>


				</table>
			</td>
		</tr>




<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->


</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

 

And here is my site so you can see what i'm talking about

 

C-square-D.com

Share this post


Link to post
Share on other sites
Didn't see your reply until now :-(

Anyhow, that admin shot looks okay to me and normally works without problem. Must be something with your environment when it does not for you. I can't tell anything specific without knowing your environment and/or be able to investigate it on your webspace. You solved it by hardcoding some stuff which is maybe not optimal but sufficient I guess.

 

Hi

Today i just found out the problem. It was because i had too many same entries in the database. Before I imported the sql file more than once. I deleted the queries and i imported the sql file again and it works now. Thanks for the great contribution.

Share this post


Link to post
Share on other sites

the Skype contribution seems to be working in all browsers except for Firefox. All other browsers go directly to skype and initiate the chat, but when clicking on the skype button through Firefox, it just opens a new window to a Skype download page. download.skype.com

 

Any ideas?

 

Thank you for this contribution, and thanks for your replies.

 

Mark :thumbsup:

Share this post


Link to post
Share on other sites

Hi fellows,

 

I follow the installation instructions and everything is working great, but in Configuration > Skype Contact I see two lines with it:

 

Configuration

...

Sessions

Skype Contact

Skype Contact

 

The first links to www.mysite.com.br/admin/configuration.php?gID=16

The second links to www.mysite.com.br/admin/configuration.php?gID=17

 

I configure just the first and is working fine. How can I take off the second line in Admin > Configuration > Skype contact?

 

Thanks, :thumbsup:

 

Willian

Share this post


Link to post
Share on other sites

First of all - great contri. Works fine!

 

Only 2 things:

 

-with Firefox, there is coming a news warning that an external link will open. Any ideas to change this?

 

-Box position

 

I placed it left and now it´s the last box, but I want the box higher at an other position. But how???

 

I tried to managed it, in the shop admin under Box views/designs.

 

I placed the skype box there but when I do it so, I have 2 Skype boxes in my shop. One still at the end and the other at the position I manged under Box views.

 

So what to do???

 

 

Thanks for all ideas!!

Edited by idefix-69

Share this post


Link to post
Share on other sites

I have installed this contrib added files imported sql and set skype options in admin. However all I get is the text in the header.

No buttons at all. www.thepcdock.com help please.

Share this post


Link to post
Share on other sites

Finally got it working

this is the only code that works..

 

<? if ($request_type != 'SSL'); {include(DIR_WS_BOXES .'skype_contact.php'); }?>

 

Rgds

 

 

 

 

I have installed this contrib added files imported sql and set skype options in admin. However all I get is the text in the header.

No buttons at all. www.thepcdock.com help please.

Share this post


Link to post
Share on other sites

Could someone please help

 

Installed showing in left colum but when I go into admin panel I cant see Skype to edit

 

I have tried all sorts

 

and reinstalled but with no joy

Share this post


Link to post
Share on other sites

I think Firefox and IE treat the Skype button differently.

 

I've just raised a support call with Skype Support, and will post up anything useful that comes out of that.

 

IE works fine bringing up the chat or call session when you click the button, but Firefox just brings up the contacts window and sits there doing nothing.

 

Mike

Best Exhaust Pty Ltd

http://www.bestexhaust.com.au

Share this post


Link to post
Share on other sites

hi whats wrong with my code?

 

images not working regarding online status

 

INSERT INTO `configuration_group` VALUES ('', 'Skype Contact', 'Skype contact configuration.', '1', '1');

UPDATE `configuration_group` SET sort_order = last_insert_id() WHERE `configuration_group_id` = last_insert_id();

 

SET @id_config = last_insert_id();

 

INSERT INTO configuration VALUES ('', 'Show infobox header ?', 'INFOBOX_SKYPE_SHOW_HEADER', 'true', '', @id_config, '1', NULL, now(), NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),'),

('', 'Show Skype Call option ?', 'SKYPE_SHOW_CALL', 'true', '', @id_config, '2', NULL, now(), NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),'),

('', 'Show Skype Chat option ?', 'SKYPE_SHOW_CHAT', 'true', '', @id_config, '3', NULL, now(), NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),'),

('', 'brentwoodgforum', 'SKYPE_ID_NAME', '', '', @id_config, '4', NULL, now(), NULL, NULL),

('', 'Skype button reference', 'SKYPE_BUTTON_LINK', '', 'ie. http://mystatus.skype.com/smallclassic/brentwoodgforum (for options see: http://www.skype.com/share/buttons/advanced.html)', @id_config, '5', NULL, now(), NULL, NULL);

Share this post


Link to post
Share on other sites

I installed the contrib, but it will not show the status messages online/offline etc.

I set the privacy settings in skype as by the instructions.

 

Anyone can help me?

 

www.oefenhoofden.nl (right column)

Share this post


Link to post
Share on other sites

Hi, all is well installed and working fine but I would like to know if when calling me the call could go straight into a video call rather than a phone call.

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×