By Zaneta Trajkoska on Tuesday, 12 February 2019
Posted in General Issues
Likes 0
Views 587
Votes 0
Нow i get error on all blog posts: 0 Call to undefined method EasyBlogPost::hasPinterest()
Hey there,

You shouldn't replace the old file directly is because we might be included some new other fix into this same file JoomlaFolder/administrator/components/com_easyblog/includes/post/post.php .

The best way is edit this post.php file once you updated to latest version of Easyblog.

You have to find this line of code :
LINE 3280 - 3281
[gist type="php"]
$data['blogIntro'] = preg_replace('/(<[^>]+) style="(?!float).*?"/i', '$1', $data['blogIntro']);
$data['blogContent'] = preg_replace('/(<[^>]+) style="(?!float).*?"/i', '$1', $data['blogContent']);
[/gist]

Then replace to :
[gist type="php"]
// $data['blogIntro'] = preg_replace('/(<[^>]+) style="(?!float).*?"/i', '$1', $data['blogIntro']);
// $data['blogContent'] = preg_replace('/(<[^>]+) style="(?!float).*?"/i', '$1', $data['blogContent']);
[/gist]

By the way, try download my attached file and replace into this same file location, it should work fine and included your custom fix.
·
Wednesday, 13 February 2019 11:31
·
0 Likes
·
0 Votes
·
0 Comments
·
I found that it`s this thing /respublica.edu.mk/administrator/components/com_easyblog/includes/post/ post.php

This was change due to a problem with Images and Text alignment... i have a support ticket for that...

Now i have the same problem can you, do something that the images and text align on left?
·
Tuesday, 12 February 2019 20:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Here is the modify file from your side
·
Tuesday, 12 February 2019 20:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Not too sure if I understand you here. Did you apply some modifications to this file or?
·
Tuesday, 12 February 2019 21:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Not too sure if I understand you here. Did you apply some modifications to this file or?

Yes, you did, one of your staff members, to align the image and text on push notification e-mail
Here is the resolved issue https://stackideas.com/forums/image-and-text-on-blog-e-mail-notification-is-not-align
Arlex Wong was the member who helped me resolve this issue
The problem is now that is back the way it was, with the text under the image, and i need them to be align left,
·
Tuesday, 12 February 2019 23:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

You shouldn't replace the old file directly is because we might be included some new other fix into this same file JoomlaFolder/administrator/components/com_easyblog/includes/post/post.php .

The best way is edit this post.php file once you updated to latest version of Easyblog.

You have to find this line of code :
LINE 3280 - 3281
[gist type="php"]
$data['blogIntro'] = preg_replace('/(<[^>]+) style="(?!float).*?"/i', '$1', $data['blogIntro']);
$data['blogContent'] = preg_replace('/(<[^>]+) style="(?!float).*?"/i', '$1', $data['blogContent']);
[/gist]

Then replace to :
[gist type="php"]
// $data['blogIntro'] = preg_replace('/(<[^>]+) style="(?!float).*?"/i', '$1', $data['blogIntro']);
// $data['blogContent'] = preg_replace('/(<[^>]+) style="(?!float).*?"/i', '$1', $data['blogContent']);
[/gist]

By the way, try download my attached file and replace into this same file location, it should work fine and included your custom fix.


Worked perfectly, tnx so much
·
Wednesday, 13 February 2019 16:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating, glad that your issue is resolved now.
·
Wednesday, 13 February 2019 16:23
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post