By Renato Mendonça on Thursday, 31 October 2013
Replies 17
Likes 0
Views 1.1K
Votes 0
Hi,

I have created a Ribbon and would like to set this when the Article is created. Is there anyone that have already done something like this?

If not can someone guide me how to setup a new field in easyblog?

Tks,

Renas
Hello Renato,

I'm sorry for the late replay, what do you mean by ribbon, could you elaborate on that and how will it effect the post?

Thanks:)
·
Thursday, 31 October 2013 10:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Khairul,

Can you see the attached image?

You can also one pratical case here:
http://www.autoblog.com/

The Ribbon with: "video", "study"....

I have created in my test site with the Tag. I was thinking to take this from the Tag. The problem is the Tag is ordered in Alphabetical way. So, i don't know wich Tag is the first.

This will also make more sense as a field with some options. Something like the Tag but with a unique selection.

Tks for your help
·
Thursday, 31 October 2013 18:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Renato,

I'm sorry but easyblog currently do not have that feature, but thanks for sharing, we might consider for that feature in the future.
·
Thursday, 31 October 2013 18:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Khairul,

Can you please tell me how to change the order of the Tags? This is getting the Tags in Alphabetic Order.
I would like to pull this with submitted order.
·
Thursday, 31 October 2013 19:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Renato,

Sorry for the late reply. Unfortunately there is no settings to make it order by submitted date. Also when you say submitted date do you mean the date the tag is created or the date someone posted something with this tag? If it's the former then you can actually go to the file

JOOMLA/components/com_easyblog/views/tags/view.html.php

and change the codes in line 36 & 37 from
$ordering	= JString::strtolower( JRequest::getString( 'ordering'	, '' ) );
$sorting = JString::strtolower( JRequest::getString( 'sorting' , $config->get( 'main_tags_sorting' ) ) );

to
$ordering	= JString::strtolower( JRequest::getString( 'ordering'	, 'created' ) );
$sorting = JString::strtolower( JRequest::getString( 'sorting' , $config->get( 'main_tags_sorting' ) ) );

If you meant the latter then unfortunately that isn't possible. Hope this helps.

Thanks!
·
Friday, 01 November 2013 11:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Adelene,

Tks for your help. I have tried your suggestion but cannot do what i need.

When i change or create an article i will write some tags. Let's say:
-> Offer -> Car -> Cheap -> Actual

After saving this gets reordered everywhere in alphabetical way. Witch is a problem as the first tag written is the most relevant. What i want is to mantain the order that the Tags are written.

Tks
·
Friday, 01 November 2013 18:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Renato,

Sorry for the late reply. Then in that case I have misunderstood you. If you want it to be listed in the way you have entered it then unfortunately we do not document which tags comes first this it isn't possible to do this

Thanks!
·
Friday, 01 November 2013 18:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Adelene,

I have made some serach in the model. In the post_ad table the first id created is the first registered in the form, correct?
Is there a way to force this order always?

Sorry for so many questions but this is really important for my site.

Thanks
·
Friday, 01 November 2013 18:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Renato,

I think you will need to elaborate more here. When you say first written do you mean first inserted into the blog post or first created in EasyBlog. If it is first created then yes there is a hack you can do. Just go to the file

JOOMLA/administrator/components/com_easyblog/models/posttag.php

and add this line of codes at line 50
$query	.= ' ORDER `a.created` ASC';

Hope this helps.

Thanks!
·
Friday, 01 November 2013 18:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Adelene,

Tks for your time. I do mean this:
$query	.= ' ORDER BY b.id ASC';


The problem is that the query runs as i expect. It orders from the associated tags to the post. But somehow there is other reorder that changes this and still appear with other order in backoffice and page.

Thanks
·
Friday, 01 November 2013 22:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry,

It's correct now. Many thanks Adelene.
Please consider create a setting for the Tags Order in the future releases.
·
Friday, 01 November 2013 22:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Adelene,

Can you please tell me how to achieve this in the Post Form(Front and Back).

Tks
·
Friday, 01 November 2013 22:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Renato,

So sorry for the delay in getting back to you. Please go to this file

JOOMLA/components/com_easyblog/models/tags.php

and then change the codes in line 417 from
$query	.=  ' ORDER BY `title`';

to
$query	.=  ' ORDER BY `created`';

Hope this helps.

Thanks!
·
Monday, 04 November 2013 17:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Adelene,

I don't think this is the place of the code. I was mentioning the post tags. When saved a new post the tags in tha post edit get's reordered. Can you please tell me where is the code in front and back?

Tks
·
Monday, 04 November 2013 19:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Renato,

Please go to the file

JOOMLA/components/com_easyblog/models/posttag.php

and change the codes in line 53 from
$query	.= ' ORDER BY a.' . EasyBlogHelper::getHelper( 'SQL' )->nameQuote( 'title' ) . ' ASC';

to
$query	.= ' ORDER BY a.' . EasyBlogHelper::getHelper( 'SQL' )->nameQuote( 'created' ) . ' ASC';

and the file

JOOMLA/administrator/components/com_easyblog/models/posttag.php

and add the codes to line 50
$query	.= ' ORDER BY a.`created` ASC';

Hope this helps.

Thanks!
·
Monday, 04 November 2013 23:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Adelene,

I did change other way as i need the post order of the tags and not of the create of the tag himself.
But i do think is working now.

Tks for your great help.
·
Tuesday, 05 November 2013 00:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Renato,

You are most welcome. Glad that your issue is solved.

Thanks!
·
Tuesday, 05 November 2013 01:17
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post