Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 05:24 pm EST
Geeklog Forums
SocialShare plugin - anyone using it?
Page navigation
::Ben
There is the code from the plugin I use :
//$B['shareurl'] = str_replace('<SHARETITLE>', $A['title'], $B['shareurl']);
//$B['shareurl'] = str_replace('<SHARETEXT>', (substr($A['6'], 0, 150)), $B['shareurl']);
//------start fix
//Bug fix reported by Cordiste
//fix Code by Kenji(mystral-kk)
//Thanks guys
if (!isset($A['sid'])) {
/*
$story_id = $template->get_var('story_id');
$title = $template->get_var('story_title');
$introtext = $template->get_var('story_introtext');
*/
} else {
$story_id = $A['sid'];
$title = $A['title'];
$introtext = $A['introtext'];
}
I don't why it is different than yours : Plugin version 1.1
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
worldfooty
So the difference is that the first half of the logic statement is commented out in yours, even though that is the part that executes (at least when I'm running it), i.e. my error occurred on the line
The zipped up version Rouslan attached earlier in this thread does not have it commented out either.
gtgillis
I just downloaded it from this site, I didn't change anything.
So the difference is that the first half of the logic statement is commented out in yours, even though that is the part that executes (at least when I'm running it), i.e. my error occurred on the line
The zipped up version Rouslan attached earlier in this thread does not have it commented out either.
I don't know why you are getting this error.
What version of Geeklog are you running. Was it installed via Fantastico?
Regards,
Greg
worldfooty
GL 1.7.1
Not installed using Fantastico. I think installed manually 7 years ago originally, and I've been doing updated manually since.
gtgillis
GL 1.7.1
Not installed using Fantastico. I think installed manually 7 years ago originally, and I've been doing updated manually since.
Edit functions.inc and change line 378
from this
if (!isset($A['sid'])) {
to this
if (!isset($A['sid']) && !$type="admin_page") {
Regards,
Greg
gtgillis
if (!isset($A['sid']) && !$type="admin_page") {
I'm pretty sure that you actually meant:
Yes, you are correct.
worldfooty
I'll make those story page changes to professional and see how it all looks.
I should note that the above fix was published on the original link I looked at http://www.geeklog.net/filemgmt/index.php?id=987 but I forgot about the fix as I was having so many problems with the initial part of my install. I guess the archive on that link still has the error in it.
worldfooty
I've made the changes to my professional layout. Looks good and seems to be working thanks.
gtgillis
gtgillis
If you have the time could you add the fixes to the plugin and up the version number for us?
Thanks
Tom
I uploaded version 1.2 today and is just waiting on approval before it shows up in the downloads section.
gtgillis
I've made the changes to my professional layout. Looks good and seems to be working thanks.
I'm glad you got it working.
antiqueone
A great plugin, thanks very much.
FloridaVillas
disneybreak.co.uk is the site
Regards
Steve
::Ben
Did you add {socialshareicons} to the files :
storytext.thtml
featuredstorytext.thtml
archivestorytext.thtml
in public/layout/yourthemefolder ?
I'm available to customise your themes or plugins for your Geeklog CMS
FloridaVillas
Regards
Steve
Tom
I could install the social pluggin:
https://www.geeklog.net/filemgmt/index.php/1053
But did not see the icons below the stories.
i had to copy the files from folder socialshare_1.2.tar\socialshare_1.2\socialshare\layout\professional
archivestorytext
featuredstorytext
storytext
into the /layout/modern_curve folder.
That did it for me.
Thanks for the pluggin.
Laugh
{socialshareicons}
into the templates where you want the social icons to display.
Tom
One of the Geeklog Core Developers.
ivy
https://github.com/ivywe/Default
change language id: data-lang="ja"
Autotag plugin add 'domain' set your domain
see more
http://www.ivysoho.net/article.php/geeklog-social-button
Geeklog Japan https://www.geeklog.jp
Page navigation
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content