Welcome to Geeklog Wednesday, June 19 2013 @ 05:04 PM EDT
|
||||||||
![]() |
Forum Index > Support > Plugin Support |
New Topic
|
Post Reply
|
SocialShare plugin - anyone using it? |
|||
| ::Ben |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 01/14/05 Posts: 1369 |
Breet,
There is the code from the plugin I use : PHP Formatted Code //$B['shareurl'] = str_replace('<SHAREURL>', $_CONF['site_url'].'/article.php?story='.$A['sid'], $B['shareurl']);//$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 ::Ben We speak french on http://geeklog.fr |
||||||
|
|||||||
| worldfooty |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster Status: offline ![]() Registered: 01/13/09 Posts: 118 |
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 PHP Formatted Code $story_id = $template->get_var('story_id');The zipped up version Rouslan attached earlier in this thread does not have it commented out either. |
||||||
|
|||||||
| gtgillis |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster ![]() Status: offline ![]() Registered: 11/05/03 Posts: 89 |
Quote by: worldfooty I just downloaded it from this site, I didn't change anything. PHP Formatted Code $story_id = $template->get_var('story_id');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 |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster Status: offline ![]() Registered: 01/13/09 Posts: 118 |
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 |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster ![]() Status: offline ![]() Registered: 11/05/03 Posts: 89 |
Quote by: worldfooty
Edit functions.inc and change line 378 from this to this Regards, Greg |
||||||
|
|||||||
| Roccivic |
|
||||||
![]() ![]() ![]() ![]() ![]() Moderator ![]() Status: offline ![]() Registered: 05/19/10 Posts: 136 |
|||||||
|
|||||||
| gtgillis |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster ![]() Status: offline ![]() Registered: 11/05/03 Posts: 89 |
|||||||
|
|||||||
| worldfooty |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster Status: offline ![]() Registered: 01/13/09 Posts: 118 |
That worked thanks!
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. |
||||||
|
|||||||
| Laugh |
|
||||||
![]() ![]() ![]() ![]() ![]() Admin ![]() Status: offline ![]() Registered: 09/27/05 Posts: 891 |
gtgillis
If you have the time could you add the fixes to the plugin and up the version number for us? Thanks Tom |
||||||
|
|||||||
| worldfooty |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster Status: offline ![]() Registered: 01/13/09 Posts: 118 |
I've made the changes to my professional layout. Looks good and seems to be working thanks. |
||||||
|
|||||||
| gtgillis |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster ![]() Status: offline ![]() Registered: 11/05/03 Posts: 89 |
Quote by: Laugh gtgillis I uploaded version 1.2 today and is just waiting on approval before it shows up in the downloads section. |
||||||
|
|||||||
| gtgillis |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster ![]() Status: offline ![]() Registered: 11/05/03 Posts: 89 |
Quote by: worldfooty
I'm glad you got it working. |
||||||
|
|||||||
| Anonymous: antiqueone |
|
||||||
|
|
After reading this topic I was a bit put off using this plugin, but the automatic install worked perfectly except I had to manually upload the three theme files. It took all of ten minutes to install and use this plugin on my web site www.historyandnews.co.uk.
A great plugin, thanks very much. |
||||||
|
|||||||
| Content generated in: 1.98 seconds |
|
|
|