Module Social Plugins

Get help with installation and running official modules for phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
breitsch
Posts: 473
Joined: Sun 6. Mar 2005, 23:12
Location: bern switzerland

Module Social Plugins

Post by breitsch »

Docu and Downloadlink here: http://www.phpwcms-howto.de/wiki/doku.p ... al_plugins

Thanks to claus for help in beta testing and some hints & tipps!
Thanks to flip flop to provide a new home for the docu's! Within the next weeks/month all the docus on casa-loca.com will be transferred to the wiki.
http://www.youtube.com/watch?v=jqxENMKaeCU
because it's important!
breitsch
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Module Social Plugins

Post by update »

Go get it - this is really cool!
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
nameless1
Posts: 880
Joined: Sun 27. Apr 2008, 23:22

Re: Module Social Plugins

Post by nameless1 »

thanks. awesome.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: Module Social Plugins

Post by Jensensen »

installation failed.
output when clicking the module the first time:

Code: Select all

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /is/htdocs/abc654_YQDE04PWKX/www/include/inc_module/mod_socialplugins/backend.default.php on line 56
Module Social Plugins Setup
Module Social Plugins setup successful. Please click the module link again to start working with the module!
clicking the module again the error appears again.
the table `phpwcms_modfb`has been created successfully.

mysql 5.1.49
php 5.2.17
hmmm
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Module Social Plugins

Post by flip-flop »

Mhhh,

for me it is working like a charme.

A little test:

Insert into the file "include/inc_module/mod_socialplugins/backend.default.php" direct before

Code: Select all

  if (mysql_fetch_row(mysql_query('SHOW TABLES FROM ' . $GLOBALS['phpwcms']['db_table'] . ' LIKE "%phpwcms_modfb"'))) { ...
the following lines:

Code: Select all

dumpVar('SHOW TABLES FROM ' . $GLOBALS['phpwcms']['db_table'] . ' LIKE "%phpwcms_modfb"');
dumpVar(mysql_query('SHOW TABLES FROM ' . $GLOBALS['phpwcms']['db_table'] . ' LIKE "%phpwcms_modfb"'));
dumpVar(mysql_fetch_row(mysql_query('SHOW TABLES FROM ' . $GLOBALS['phpwcms']['db_table'] . ' LIKE "%phpwcms_modfb"')));
Result for me ("wcms_r420" is my db name):

Code: Select all

SHOW TABLES FROM wcms_r420 LIKE "%phpwcms_modfb"

Resource id #51

Array
(
    [0] => phpwcms_modfb
)
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: Module Social Plugins

Post by Jensensen »

Hi Knut,

thank you very much for your help.

The output is:
SHOW TABLES FROM db2274123-cms LIKE "%phpwcms_modfb"

Code: Select all

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /is/htdocs/abc654_YQDE04PWKX/www/include/inc_module/mod_socialplugins/backend.default.php on line 60

Code: Select all

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /is/htdocs/abc654_YQDE04PWKX/www/include/inc_module/mod_socialplugins/backend.default.php on line 65
Module Social Plugins Setup
Module Social Plugins setup successful. Please click the module link again to start working with the module!
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Module Social Plugins

Post by flip-flop »

I think you have an db connection problem.
-> mysql_query("SHOW DATABASES") ohne Connection?!?

Please make a second test:

Change

Code: Select all

  if (mysql_fetch_row(mysql_query('SHOW TABLES FROM ' . $GLOBALS['phpwcms']['db_table'] . ' LIKE "%phpwcms_modfb"'))) {
to

Code: Select all

  if (_dbQuery('SHOW TABLES  LIKE "%phpwcms_modfb"','COUNT_SHOW')) {
I hope it will run.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
nameless1
Posts: 880
Joined: Sun 27. Apr 2008, 23:22

Re: Module Social Plugins

Post by nameless1 »

thx knut, works for me
User avatar
isac
Posts: 410
Joined: Tue 18. Nov 2003, 13:13
Location: Portugal
Contact:

Re: Module Social Plugins

Post by isac »

Very nice module.

I have a problem when put the replacement tag in template>inc_cnpart>articlesummary>list>sample.tmpl it only render in the first article.

Code: Select all

[SPACE]<hr />[/SPACE]
<table cellspacing="0" cellpadding="0" border="0" width="100%" summary="">
	<tr>
		<td width="150" valign="top">
			[IMAGE]<div><a href="{ARTICLELINK}">{IMAGE}</a></div>[/IMAGE]
			[CAPTION]<div align="center">{CAPTION}</div>[/CAPTION]
		</td>
		<td width="10"><img src="img/leer.gif" border="0" width="10" height="1" alt="" /></td>
		<td width="98%" valign="top">
			[TITLE]<h1>{TITLE}</h1>[/TITLE]
			[SUB]<h2>{SUB}</h3>[/SUB]
			[SUMMARY]<div><strong>{DATE:F lang=DE}</strong> {SUMMARY}</div>[/SUMMARY]
			[MORE]<p><a href="{ARTICLELINK}"{TARGET}>{MORE}</a></p>[/MORE]
			<p class='meta facebook'>{MSP_FB_LIKE:1}</p>
		</td>
	</tr>
</table>
POR :D TUGAL
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Module Social Plugins

Post by update »

It certainly makes no sense in listing mode: How will the reader be able to judge if an article is to be "liked" (or whatever) by reading some parts of a teaser text only???
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
axelko
Posts: 138
Joined: Mon 27. Feb 2006, 22:51
Contact:

Re: Module Social Plugins

Post by axelko »

Hi Jensensen,

I got the same error (Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource ) with the cm_calendar (I saw you did also had it there) at one phpwcms site. The module was working fine on an other site at the same server with the same phpwcms version. After trying a lot of solutions I noticed that the databasename used a - (dash) in it. After renaming the database all worked ok.

So don't use a - (dash) in the database name if you have.

Greetz,

Axel
-------------------------------
novallis
Posts: 121
Joined: Tue 7. Dec 2004, 11:23
Location: Hassloch, Germany

Re: Module Social Plugins

Post by novallis »

First of all: Thank you breitsch for the great module.

Now my 2 questions:
Is there a possibility to have the buttons active after one more click like this here:
http://www.heise.de/ct/artikel/2-Klicks ... 33879.html?
Any solution in combination with your module?

And another question:
If i hit the "like"-button in Facebook without a personal comment it is shown at the "pinwand" for all (everybody).
If i combine with a comment it is shown for friends only (my desired option).
So will the hit of the like-button differently processed?
How can I do, that for a blank hit of the like-button (without comment) the secure options (privacy options) will take effect like do with personal comment ?

Thanks in advance for helping.

Best regards,
Ralf
(novallis)

P.S.: Sorry for my bad english
breitsch
Posts: 473
Joined: Sun 6. Mar 2005, 23:12
Location: bern switzerland

Re: Module Social Plugins

Post by breitsch »

novallis wrote:Is there a possibility to have the buttons active after one more click like this here
I'll try to integrate this in the next update
novallis wrote:How can I do, that for a blank hit of the like-button (without comment) the secure options (privacy options) will take effect like do with personal comment ?
I honestly don't know. I'll have a look at this but I fear that it's facebook who desides what happens when data comes anywhere near their servers.
http://www.youtube.com/watch?v=jqxENMKaeCU
because it's important!
breitsch
breitsch
Posts: 473
Joined: Sun 6. Mar 2005, 23:12
Location: bern switzerland

Re: Module Social Plugins

Post by breitsch »

Get the new version!
now with Google+ and an optional 2-Click-Solution
see: http://www.phpwcms-howto.de/wiki/doku.p ... al_plugins
http://www.youtube.com/watch?v=jqxENMKaeCU
because it's important!
breitsch
Post Reply