PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

[MODULE] [free] Block Yahoo Status v0.9

56 replies to this topic
#1
Gabi T

    PrestaShop Apprentice

  • Moderators
  • 215 posts
by Gabriel Tenita from Digitalicon, web with purpose

It is a module for the display of the employees Yahoo status IDs on your Prestashop site. Tested on Prestashop 1.1.0.5 - 1.3.0.6.

Features:
* Displays the Yahoo status of selected employees in Front Office
* Provide an ymsgr link, so your customers can click it to start messaging
* Has an administration interface in Back Office
* -Provides an extra hook, although you'll have to implement it yourself in the chosen pair of php/tpl files.-
* The data entered in Back Office is kept in the database, in the "employee_yahoo_status" table. This table can be exported as CSV file.

CHANGELOG, INSTALLATION & USE, UPGRADE & UNINSTALLATION: see readme.txt files in the archive

--------------------------------------------------------


05.09.2009: v 0.1

07.09.2009: v 0.2

03.10.2009: v 0.3

04.10.2009: v 0.4

08.10.2009: v 0.5

23.11.2009: v 0.6

30.01.2010: v 0.7

22.02.2010: v 0.7.1

28.02.2010: v 0.8

23.03.2010: v 0.9

--------------------------------------------------------

Please share your comments and suggestions.
Also it would be nice to hear from you if it's working, not only if it's not.

Attached Files


design de identitate vizuală (site-uri web, sigle, şabloane, formulare) în Bucureşti, România

visual identity design (web sites, logo, templates, stationery) in Bucharest, Romania

#2
jolvil

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 2706 posts
Thanks for sharing, added to Prestashop modules list :-)

#3
artshop

    PrestaShop Apprentice

  • Members
  • PipPip
  • 26 posts
I do everything you say,everything works fine except status: online-offline, allways is off, can you help me?

#4
Gabi T

    PrestaShop Apprentice

  • Moderators
  • 215 posts
I suspect wrong spelling of the Yahoo ID.

I did this module just for exercise, the only code in it (beside the code that makes it a module) is this line:

if ($y['yahooid']) $status = @file_get_contents('http://opi.yahoo.com/online?u='.$y['yahooid'].'&m=t&t=1') == '01' ? 'online' : 'offline';


It checks the status and returns 'online or 'offline' strings.

Try entering this in the browser's address bar (use your real Yahoo ID instead of 'YOUR_ID' part :lol: ):

Quote


opi.yahoo.com/online?u=YOUR_ID&m=t&t=1


You should get '00' or '01' answers, depending on the status of your ID.

Or you could try changing the last digit to 0, if you like more verbose answers.
design de identitate vizuală (site-uri web, sigle, şabloane, formulare) în Bucureşti, România

visual identity design (web sites, logo, templates, stationery) in Bucharest, Romania

#5
artshop

    PrestaShop Apprentice

  • Members
  • PipPip
  • 26 posts
Thank you for your answer. I try enter the line you give me to browser and works fine, when online and when offline, my yahoo ID is correct, but still I`am allways offline for my site...anything else? Will link to my page help? Thank you in advance...

#6
Gabi T

    PrestaShop Apprentice

  • Moderators
  • 215 posts
@artshop

Right now it works. To be honest I don't know why [it didn't work before and it works now]. I suspect Yahoo black voodoo.

If it is happening again, let me know.
design de identitate vizuală (site-uri web, sigle, şabloane, formulare) în Bucureşti, România

visual identity design (web sites, logo, templates, stationery) in Bucharest, Romania

#7
artshop

    PrestaShop Apprentice

  • Members
  • PipPip
  • 26 posts
Once again thank you for your help....

#8
Fabbritzio

    PrestaShop Newbie

  • Members
  • Pip
  • 10 posts
I can't move the position....

Attached Files



#9
Gabi T

    PrestaShop Apprentice

  • Moderators
  • 215 posts
Read this: http://www.prestasho...bled_transplant.

I would really appreciate if you would search the forum before asking me to do the search.

And don' rely on the romanian translation of the Prestashop for the Back Office, it confuses you.
design de identitate vizuală (site-uri web, sigle, şabloane, formulare) în Bucureşti, România

visual identity design (web sites, logo, templates, stationery) in Bucharest, Romania

#10
Fabbritzio

    PrestaShop Newbie

  • Members
  • Pip
  • 10 posts
10x I found.....

#11
langbianiam

    PrestaShop Apprentice

  • Members
  • PipPip
  • 96 posts
Hi,
Anyone think your website will be slowly if install yahoo status module (v.0.4)?
This is nice module.
My site have problem, it slowly if active this module
any idea?
sorry my bad English

Thanks

#12
Gabi T

    PrestaShop Apprentice

  • Moderators
  • 215 posts
Try the new version. I removed 3 hooks (which were not used anyway) and it seems to me that the page loads faster. And please, give me some feedbak.
As soon I will have more time I will look into it.

Best regards.
design de identitate vizuală (site-uri web, sigle, şabloane, formulare) în Bucureşti, România

visual identity design (web sites, logo, templates, stationery) in Bucharest, Romania

#13
langbianiam

    PrestaShop Apprentice

  • Members
  • PipPip
  • 96 posts

From 1254976621:

Try the new version. I removed 3 hooks (which were not used anyway) and it seems to me that the page loads faster. And please, give me some feedbak.
As soon I will have more time I will look into it.

Best regards.

Thanks for support.
Faster than with new ver.

#14
diu1so

    PrestaShop Apprentice

  • Members
  • PipPip
  • 123 posts
I installed the module and I dont want to show it in the center column of the products.. where should I edit?


Please sorry for my bad english, and thanks again.

#15
Gabi T

    PrestaShop Apprentice

  • Moderators
  • 215 posts
Back Office >> Modules >> Positions.
Check Display non-positionnable hook.
Go down to Extra actions on the product page (right column).
Press the little red x to the right of the module.
design de identitate vizuală (site-uri web, sigle, şabloane, formulare) în Bucureşti, România

visual identity design (web sites, logo, templates, stationery) in Bucharest, Romania

#16
AffordableFiberOptics

    PrestaShop Apprentice

  • Members
  • PipPip
  • 63 posts
Awesome module!!!

Thanks!

#17
diu1so

    PrestaShop Apprentice

  • Members
  • PipPip
  • 123 posts

From 1262818401:

Back Office >> Modules >> Positions.
Check Display non-positionnable hook.
Go down to Extra actions on the product page (right column).
Press the little red x to the right of the module.


well, that was real easy!

Thanks a lot for the module and for help!

#18
befneh

    PrestaShop Newbie

  • Members
  • Pip
  • 12 posts
I tried this module but it made my website loading very slow.
But thanks anyway.Maybe it is just that my hosting is slow to load this module.
http://www.jencell.com/shop
Yoobao Indonesia : Battery & accessories for Gadgets/Smartphones/PDA

#19
AffordableFiberOptics

    PrestaShop Apprentice

  • Members
  • PipPip
  • 63 posts
First of all, I love the module. THANK YOU!

I have a formatting problem. If I add a "call-to-action" telephone number in the product listing, the text is too far to the left of the block. The text is on top of the phone image.

Is there a way to change that? It looks fine on the right side of the page but only occurs when viewing a product.

Thanks for your help.
Patrick

#20
Gabi T

    PrestaShop Apprentice

  • Moderators
  • 215 posts

From 1263432604:

I tried this module but it made my website loading very slow.
But thanks anyway.Maybe it is just that my hosting is slow to load this module.


No, it's the Yahoo server the takes ~500ms (in my case) for every enabled ID. To make it clear you should time your site with the module installed versus uninstalled.
I just released version 0.7. This one makes simultaneous requests, so it should help if you have more than one enabled ID.

From 1263924679:

Is there a way to change that? It looks fine on the right side of the page but only occurs when viewing a product.


Hi, Patrick! Thank you for your interest.
The just released 0.7 version has a corrected .css file that should help you.

Best regards,
Gabriel Tenita
design de identitate vizuală (site-uri web, sigle, şabloane, formulare) în Bucureşti, România

visual identity design (web sites, logo, templates, stationery) in Bucharest, Romania