By Thomas Thrane on Tuesday, 22 March 2016
Posted in Technical Issues
Likes 0
Views 723
Votes 0
Hi

I'm using Easyblog on my site along with Smart Slider 3, which generates a dynamic slider with the latest blog post.
Everything is fine except the link :-(

I contacted Nextend, the Smart Slider developer and wrote them this:

This is the test site:
http://new.provinsprovence.dk/

The links on the slides takes me to the item, but without the right path.
Take the first slide with “På besøg hos…” - clicking the slides takes me to:
http://new.provinsprovence.dk/pa-besog-hos-danielle-siggerud

But it should be:
http://new.provinsprovence.dk/indretning/pa-besog-hos/pa-besog-hos-danielle-siggerud

I’am missing the categories?


Their reply:

The problem with easyblog and links are, that in Joomla the "itemid" decides, where the url should link, so if you would turn off the SEO in your website, you would see the same links, except at http://new.provinsprovence.dk/indretning/pa-besog-hos/pa-besog-hos-danielle-siggerud you would have &itemid=10 or some other number. Now I tried to put this number in the end of the links inside our slider, which works with most extensions, but in easyblog it doesn't, it seem to change it somewhere else, so from the code's point of view, it can't be told, where you want to have your link, and if you give the itemid manually, easyblog doesn't change it, so those links can only link to the default itemid=0, which is usually the homepage.


So right now I don't know what to do and who can help me out on this?
Any advice?

Kind regards
Thomas
Hey Thomas,

The login credentials which was supplied isn't working for me Can you please edit your post above and include the correct login credentials please?
·
Tuesday, 22 March 2016 21:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Done! :-)
·
Tuesday, 22 March 2016 21:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Thomas,

Can you check with the guys from Nextend where is the code that is being generated for EasyBlog items? Which file is responsible as I need to check their codes.
·
Tuesday, 22 March 2016 22:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark

Of course!
I have e-mailed them and will get back to you...
·
Tuesday, 22 March 2016 22:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Thomas, let me know what they said
·
Tuesday, 22 March 2016 22:11
·
0 Likes
·
0 Votes
·
0 Comments
·
They already got back to me:

You can find the EasyBlog generator files here: libraries\nextend2\smartslider\joomla\plugins\generator\easyblog
The fields are fetched from EasyBlog in this file: libraries\nextend2\smartslider\joomla\plugins\generator\easyblog\posts\generator.php
so I think that will be the file they need.
·
Tuesday, 22 March 2016 22:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Thomas,

I have modified the file /libraries/nextend2/smartslider/joomla/plugins/generator/easyblog/posts/generator.php and the links are generated correctly when I am debugging but I believe their codes is enforcing another JRoute to it.


" ["url"]=> string(55) "/indretning/pa-besog-hos/pa-besog-hos-danielle-siggerud"


Can you ask them where else is enforcing the JRoute of the "url"?
·
Tuesday, 22 March 2016 22:25
·
0 Likes
·
0 Votes
·
0 Comments
·
They wrote this to med:

Where are you at the debugging? In that generator.php file what did you modify the url variable to show this SEO link? Because as it was originally, the default links are not SEO links (generator.php, line 93.):
'url' => 'index.php?option=com_easyblog&view=entry&id=' . $result[$i]['id'],

and we let Joomla to change the links to SEO links. Just this was the problematic part with the itemid, that even if I give itemid, for example 1:
'url' => 'index.php?option=com_easyblog&view=entry&id=' . $result[$i]['id'].'&itemid=1',

which works in most Joomla extensions, my SEO url will just have that itemid 1 in the end:
http://nextenddev.no-ip.org/index.php/easyblog/template-for-videos-1?itemid=1
·
Tuesday, 22 March 2016 23:43
·
0 Likes
·
0 Votes
·
0 Comments
·
And then:

We get out the ID of the posts from the database, then make a not SEO link, so in our slider you will have the link like this:
<a href="index.php?option=com_easyblog&view=entry&id=3">Go to this post</a>

and we don't really route anything, we just let Joomla handle that part, just as if you would create a custom HTML module (see attachment) with the same code.
·
Wednesday, 23 March 2016 00:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Another reply from Nextend:

As I see in the forum the link has changed to the SEO link:
<a href="/blog/stackideas-blog">Go to this post</a>

so you should tell them, that you pasted the same link, which is used in the attached image too, so the not SEO version.
·
Wednesday, 23 March 2016 00:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Thomas,

I've revert the sef link from '/libraries/nextend2/smartslider/joomla/plugins/generator/easyblog/posts/generator.php ' and use non-sef link and attached the correct Itemid into the link and yet the link in slider module is not showing the correct one.

index.php?option=com_easyblog&view=entry&id=21&Itemid=681


If you manually JRoute the above url, joomla will return you the correct sef link.

Also, I've temporary created a custom html module on your site and assigned this module at 'sidebar-2' possition and follow the instruction from Nextend but the link did not turn into sef mode. Please see:

http://screencast.com/t/KMuzkUEOfI1

I not sure how else I can further test this as the non-sef link has all the information ( most important is the Itemid ) that Joomla JRoute need.

By the way, can you ask Nextend developer where is the file that output the link in slider module?

Please advise.

Hope this help and have a nice day!
Sam
·
Wednesday, 23 March 2016 12:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, just passed it on... :-)
I have no clue what you are talking about :-)
·
Wednesday, 23 March 2016 15:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Thomas,

Thanks and sorry for the confusion. What i mean in my previous message is that, right now the link for EasyBlog posts is already in non-sef format and, the link has the Itemid. e.g.

index.php?option=com_easyblog&view=entry&id=21&Itemid=681


According to Nextend developer, the above link should work but unfortunately it did not

Hope this help and have a nice day!
Sam
·
Wednesday, 23 March 2016 18:07
·
0 Likes
·
0 Votes
·
0 Comments
·
From Nextend (they got FTP access to the site):

Our senior developer looked into both Easyblog's and our codes, and he found the way they were requesting the itemid for each post, so we implemented that solution into the generator. (To both the URL and the category URL, so both will use the correct itemid from Easyblog.)

Also, we noticed you were using the permalink variable instead of the URL, so we changed that, too.

So all in all, the issue is fixed, and your URL is pointing to the correct place now.


Seems to work now.
Thank you so much for helping out on this!
·
Wednesday, 23 March 2016 19:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Thomas,

Thanks for the heads up on this one and glad to hear your issue now resolved
Have a nice day!
Sam
·
Wednesday, 23 March 2016 19:45
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post