Share This Topic

Started by All Colours Sam, September 06, 2009, 05:09:23 AM

Previous topic - Next topic

All Colours Sam

Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

HunterP


And again :

8: Undefined index: share_buzzbutton_enable
File: /www/htdocs/hulpvera/forum/Sources/ShareThis.php
Line: 79

8: Undefined index: share_likebutton_enable
File: /www/htdocs/hulpvera/forum/Sources/ShareThis.php
Line: 76

All Colours Sam

ok, try this one, I forgot to make some changes
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

HunterP


No errors yet, I'll let you know as soon as possible!

Thanks  8)

ben sisko

anyone noticed the Tip'd button leads to Yahoo bookmarks  ???

HunterP


Miss,

It's working now. I notice that you disabled all references to $modSettings ? I don't understand why these values aren't available in ShareThis.php. Actually, the values themselves are available. At first I only checked Twitter and that was the only button that was shown. So the link to modsettings works fine, but what about the index errors?

I did some hacks myself, as I'm only interested in Twitter. I also had to comment out all lines which referred to :

      $uno = '<p class="share_icons">'. $social_icons. '</p>';

Because ($social_icons == "") and that would lead to a non-existing .png, resulting in a broken image indicator.

All Colours Sam

$modSettings['value']  only can have two values:  1 or 0   so I changed the value from modsettings to 1 since the mod checks for a parameter, if the parameter doesn't exist, then use the 1 (true) as parameter.


// Set the parameters
$page_url = !empty($parameters['url']) ? $parameters['url'] : '';
$show_face = $parameters['face_button'] == 0 ?  false : 1;
$show_tweet = $parameters['retweet_button'] == 0 ?  false : 1;
$show_digg = $parameters['digg_button'] == 0 ?  false : 1;
$show_buzz = $parameters['buzz_button'] == 0 ?  false : 1;
$output = !empty($parameters['output']) ? $parameters['output'] : 'return';



are you still getting index errors?   whats exactly the problem you have?
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

HunterP


No, I don't get errors anymore, misunderstanding :) I was referring to the previous situation in which I still don't understand what was causing those errors...

DownloadPs3

If i have digg enabled i get this error code in my error log everytime i go to a post's page:

Admin    Today at 04:21:43 AM
IP address xx.xx.xxx.xxx      session 607cf3af46dbeb860c551315ad2c0924
URL http://myfreespeach.co.cc/index.php?topic=6.0
8: Undefined index: share_diggbutton_enable
File: /home/a5104797/public_html/Sources/ShareThis.php
Line: 78
Check Out My Site At myfreespeach.co.cc

DownloadPs3

Quote from: Miss All Sunday on February 08, 2011, 07:38:33 PM
use this one

Ok so i downloaded the file this person linked above and replaced mine. It did nothing so i put the original back on and the error code doesnt seem to show up anymore however there is no digg link/icon
Check Out My Site At myfreespeach.co.cc

All Colours Sam

DownloadPs3  the file you download must likely will only work for his/her forum, pelase upload your own ShareThis.php file


it seems this only happen with 1.1.x installations, I will check on this and make some further test to see what its causing the errors to appear.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

DownloadPs3

#1051
Quote from: Miss All Sunday on February 10, 2011, 11:06:38 AM
DownloadPs3  the file you download must likely will only work for his/her forum, pelase upload your own ShareThis.php file


it seems this only happen with 1.1.x installations, I will check on this and make some further test to see what its causing the errors to appear.

here is mine

Could you look at the second file to? im getting an unidentified ofset 0 at line 3840 error. Just deleted about 5 pages of them
Check Out My Site At myfreespeach.co.cc

All Colours Sam

use this file, the error on Subs.php is due another mod,  some mod related to signatures please use that mod's support topic.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

DownloadPs3

Quote from: Miss All Sunday on February 10, 2011, 07:29:33 PM
use this file, the error on Subs.php is due another mod,  some mod related to signatures please use that mod's support topic.

Ok i will try your file.

And i know that its related to a different mod and i did ask there and havent gotten help with that part. I figured you may know the answer cuz it seems to be one thing thats worng
Check Out My Site At myfreespeach.co.cc

All Colours Sam

I can gladly help but I do not know that mod well enough, sorry.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

DownloadPs3

Quote from: Miss All Sunday on February 10, 2011, 07:39:03 PM
I can gladly help but I do not know that mod well enough, sorry.

Ok thank you, and i am not getting any share this post errors but the digg is still now showing up with the file you gave me, but seeing as i have no idea what digg is i dont feel its that important so ill just leave it off.
Check Out My Site At myfreespeach.co.cc

All Colours Sam

the digg button relies on some javascript to work properly,  sometimes the button doesn't appear,  digg has many complains because of this but so far digg has not been able to update their button ;)
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

DownloadPs3

Quote from: Miss All Sunday on February 10, 2011, 07:47:33 PM
the digg button relies on some javascript to work properly,  sometimes the button doesn't appear,  digg has many complains because of this but so far digg has not been able to update their button ;)

Ok, ill just keep it off.

Can you tell me what this line means?

return $signs[0];

The way im looking at it is that if x statement is true do y but if not reture signs to 0.

And they way im seeing it, i cant figure out why there is an error
Check Out My Site At myfreespeach.co.cc

Arantor

QuoteThe way im looking at it is that if x statement is true do y but if not reture signs to 0.

Nope. $signs is what's called an array, which means it holds multiple values, and normally the first item is item 0 (as computers normally start lists at 0), so return $signs[0] means to leave the current area of processing, head back up the chain to where we were before, and send back the first item in the $signs array as you do it.
Holder of controversial views, all of which my own.


ben sisko

#1059
Quote from: Mr. 0 on January 15, 2011, 06:44:09 PM
ok, I'm afraid  this mod is not compatible with pretty urls,  it is, however, compatible with simplesef
any chance you can make it compatible with 'pretty urls' too?
i installed your mod and only the FB like button doesn't seem to be working. it looks like it's because of the pretty urls..

EDIT

never mind. i can do it another way.
thx for this very useful mod.

Advertisement: