News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Share This Topic

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

Previous topic - Next topic

Aktoraman

Quote from: Miss All Sunday on November 12, 2010, 12:49:35 PM
can you provide me an admin account to your forum to be sure the mod is installed properly,   this is the only way I can help you because I don't know what other errors you have or if other mods cause problems, or if you instelled the mod properly, you do not give enough info and I can't be guessing anymore.
Are you speaking to me??
Sorry but i don't understand if you are attending to me..

All Colours Sam

@Aktoraman    I already answer you:


Quote from: Miss All Sunday on November 11, 2010, 05:58:27 PM
on your /Sources/Display.php   find:

$message['body'] = ($message['body'].$mirahalo);

theres two of this, change both  to:


$message['body'] = ($mirahalo.$message['body']);


then on your /Sources/ShareThis.php

find:

<p style="overflow:auto;">'. $social_icons. '</p> 


again, theres two it it,   you can add a style to the  <p>   this way your icons and buttons do not interfere each other.


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

Aktoraman

Quote from: Miss All Sunday on November 11, 2010, 05:58:27 PM
on your /Sources/Display.php   find:

$message['body'] = ($message['body'].$mirahalo);

theres two of this, change both  to:


$message['body'] = ($mirahalo.$message['body']);




then on your /Sources/ShareThis.php

find:

<p style="overflow:auto;">'. $social_icons. '</p> 


again, theres two it it,   you can add a style to the  <p>   this way your icons and buttons do not interfere each other.

Your advice worked for me. Thank you very much!!!
I put a css : vertical-align:top  and now iam 100% satisfied with its alignment.

Here is the new printscreen:








But i have some errors in error log wih Share This MOD.

It gives me 2 errors in each action that is taking place there.


1. 8: Undefined index: buzz_post
File: /home/myForum/public_html/Sources/ShareThis.php
Line: 149


2. 8: Undefined index: tweet_name
File: /home/myForum/public_html/Sources/ShareThis.php
Line: 137


Does anybody know what is going wrong over there ??

All Colours Sam

those are language strings, make sure you have the proper translation  or make sure those strings exist on your /Themes/default/language/Modifications.yourlanguage.php

$txt['buzz_post'] = 'Post to Google Buzz';
$txt['tweet_name'] = 'Tweet';
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Aktoraman

Quote from: Miss All Sunday on November 12, 2010, 02:45:07 PM
those are language strings, make sure you have the proper translation  or make sure those strings exist on your /Themes/default/language/Modifications.yourlanguage.php

$txt['buzz_post'] = 'Post to Google Buzz';
$txt['tweet_name'] = 'Tweet';

In Themes/default/languages/Modifications.myLanguage.php  i dont have these:
$txt['buzz_post'] = 'Post to Google Buzz';
$txt['tweet_name'] = 'Tweet';


but i have these :
$txt['share_gbuzz'] = 'Google buzz';
$txt['share_twitter'] = 'Twitter';



Actually i had the Previous Version of Share This MOD (Share This Topic 2.1 )
and after a while  i've made a custom MOD and change some stuff in there (Modifications.myLanguage.php)  but when i tried to unistall and install the new one (Share This Topic  2.5.1 ) it gave me some errors during installation.....   :-[ 
but i continued and now i have to make all the corrections.

Conclusion : I dont have other errors from this Should i add them anyway?

All Colours Sam

you just have to add the strings I posted:


Quote from: Miss All Sunday on November 12, 2010, 02:45:07 PM
those are language strings, make sure you have the proper translation  or make sure those strings exist on your /Themes/default/language/Modifications.yourlanguage.php

$txt['buzz_post'] = 'Post to Google Buzz';
$txt['tweet_name'] = 'Tweet';



to your /Themes/default/languages/Modifications.yourlanguage


add it at the end, before the ?> tag
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Aktoraman

Quote from: Miss All Sunday on November 12, 2010, 03:20:13 PM
you just have to add the strings I posted:


Quote from: Miss All Sunday on November 12, 2010, 02:45:07 PM
those are language strings, make sure you have the proper translation  or make sure those strings exist on your /Themes/default/language/Modifications.yourlanguage.php

$txt['buzz_post'] = 'Post to Google Buzz';
$txt['tweet_name'] = 'Tweet';



to your /Themes/default/languages/Modifications.yourlanguage


add it at the end, before the ?> tag

Thank you once again Miss All Sunday, you are great!!!!
I have put them there and test it, for the moment i have no errors from these!

I have one more last question:
I have installed in my forum the SMF Arcade 2.5 RC1
Is it possible to have the Share This Topic MOD to work over there?

All Colours Sam

yes, you can include the icons and buttons easily with this new version, please see:  http://oharascans.com/foro/mods/faq_share_this_topic_mod_1905.0.html

tha last part show how you can include the icons and buttons on every page you want.

you only need a valid url to share.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Aktoraman

Quote from: Miss All Sunday on November 12, 2010, 03:38:36 PM
yes, you can include the icons and buttons easily with this new version, please see:  http://oharascans.com/foro/mods/faq_share_this_topic_mod_1905.0.html

tha last part show how you can include the icons and buttons on every page you want.

you only need a valid url to share.
Thank you once again....!!!
From a short look that i've made i didn't understand in which php form of Arcade, should i include the code that this guy gives?

All Colours Sam

I'm not familiar with that mod so I can't really help you there,   perhaps this mod has a template file where you can include the icons and buttons.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Aktoraman

And if i want to put it in my simple portal index page?
Thank you verry much for everything

All Colours Sam

again, you have to put the code in the template page for the simpleportal index, as long as there is a url to share it will work.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

marwan

I'm getting this error:

Fatal error: Call to undefined function share_headers() in D:\hshome\autoworks\auto-works.cc\forum\Sources\Load.php on line 1643 :s

Attached is my load.php file

All Colours Sam

do you have a  ShareThis.php file in your Sources/  folder?   if not, upload that file.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

marwan

Quote from: Miss All Sunday on November 19, 2010, 12:31:35 PM
do you have a  ShareThis.php file in your Sources/  folder?   if not, upload that file.
I have placed it in the sources folder. I'm using the standard one that comes with the mod. Didn't change any codes there...

All Colours Sam

the mod needs that file to work:


// Before anything else, set some header stuff, share this topic mod
      require_once($sourcedir . '/ShareThis.php');
   $context['html_headers'] .= share_headers();


what version are you using?  if your using 2.0  clean your cache and make sure the files name is correct:  ShareThis.php
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

marwan

Quote from: Miss All Sunday on November 19, 2010, 01:07:33 PM
the mod needs that file to work:


// Before anything else, set some header stuff, share this topic mod
      require_once($sourcedir . '/ShareThis.php');
   $context['html_headers'] .= share_headers();


what version are you using?  if your using 2.0  clean your cache and make sure the files name is correct:  ShareThis.php
I'm using RC4. I'm sure the file name is correct, ShareThis.php.

Do I need to add this code to the file? I copied it after thhe extraction and FTPed it as it is...

All Colours Sam

the code is already on your Sources/Load.php

thats why I told you to check if you have the ShareThis.php file, make sure it is fine, somtimes ftp programs can corrup files so make sure the file is fine  or just reupload the file and also,  clean you cache at  admin/ maintenance / forum maintenance / cache
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

marwan

Quote from: Miss All Sunday on November 19, 2010, 01:43:54 PM
the code is already on your Sources/Load.php

thats why I told you to check if you have the ShareThis.php file, make sure it is fine, somtimes ftp programs can corrup files so make sure the file is fine  or just reupload the file and also,  clean you cache at  admin/ maintenance / forum maintenance / cache
Cache is disabled. The file is there :s. Any other trrials?

All Colours Sam

yeah, but are you sure the file is ok?  some ftp programs can corrup files when uploading, thats why I need you to check, if the files is 0 bytes  then its corrup and you need to delete and upload a new one.

its the only posibility,  the error appears because Load.php cannot finde the share_headers();  function.  and that function is inside the ShareThis.php file.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Advertisement: