Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Wednesday, May 22 2013 @ 03:48 PM EDT


 Forum Index > Support > Plugin Support New Topic Post Reply
 SocialShare plugin - anyone using it?
First | Previous | 1 2 | Next | Last
   
::Ben
 03/09/11 08:50AM  
+++++
Full Member

Status: offline


Registered: 01/14/05
Posts: 1359
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 Confused: Plugin version 1.1

::Ben

We speak french on http://geeklog.fr
 
Profile Email Website
 Quote
worldfooty
 03/10/11 01:28AM  
++++-
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');
whereas in your version that is all commented out.

The zipped up version Rouslan attached earlier in this thread does not have it commented out either.

 
Profile Email Website
 Quote
gtgillis
 03/10/11 03:20PM  
++++-
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.

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');
whereas in your version that is all commented out.

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

 
Profile Email Website
 Quote
worldfooty
 03/11/11 02:12AM  
++++-
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.

 
Profile Email Website
 Quote
gtgillis
 03/11/11 08:37AM  
++++-
Regular Poster

Status: offline


Registered: 11/05/03
Posts: 89
Quote by: 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.




Edit functions.inc and change line 378

from this

PHP Formatted Code

if (!isset($A['sid'])) {
 


to this

PHP Formatted Code

if (!isset($A['sid']) && !$type="admin_page") {
 


Regards,

Greg

 
Profile Email Website
 Quote
Roccivic
 03/11/11 08:55AM  
MMMMM
Moderator

Status: offline


Registered: 05/19/10
Posts: 136
Quote by: gtgillis

PHP Formatted Code

if (!isset($A['sid']) && !$type="admin_page") {
 



I'm pretty sure that you actually meant:

PHP Formatted Code
if (!isset($A['sid']) && $type != "admin_page") {

 
Profile Email
 Quote
gtgillis
 03/11/11 12:03PM  
++++-
Regular Poster

Status: offline


Registered: 11/05/03
Posts: 89
Quote by: Roccivic

Quote by: gtgillis

PHP Formatted Code

if (!isset($A['sid']) && !$type="admin_page") {
 



I'm pretty sure that you actually meant:

PHP Formatted Code
if (!isset($A['sid']) && $type != "admin_page") {



Yes, you are correct.

 
Profile Email Website
 Quote
worldfooty
 03/12/11 05:23AM  
++++-
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.

 
Profile Email Website
 Quote
Laugh
 03/12/11 08:46AM  
AAAAA
Admin

Status: offline


Registered: 09/27/05
Posts: 876
gtgillis

If you have the time could you add the fixes to the plugin and up the version number for us?

Thanks

Tom

 
Profile Email Website
 Quote
worldfooty
 03/13/11 12:34AM  
++++-
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.

 
Profile Email Website
 Quote
gtgillis
 03/14/11 11:01AM  
++++-
Regular Poster

Status: offline


Registered: 11/05/03
Posts: 89
Quote by: Laugh

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.

 
Profile Email Website
 Quote
gtgillis
 03/14/11 11:02AM  
++++-
Regular Poster

Status: offline


Registered: 11/05/03
Posts: 89
Quote by: worldfooty


I've made the changes to my professional layout. Looks good and seems to be working thanks.



I'm glad you got it working.

 
Profile Email Website
 Quote
Anonymous: antiqueone
 06/06/11 07:14PM  



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.

 
 Quote
First | Previous | 1 2 | Next | Last
Content generated in: 1.95 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content