News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Custom fields and filters of post

Started by davidhs, February 21, 2014, 01:53:17 PM

Previous topic - Next topic

davidhs

Quote from: Americano on July 13, 2015, 11:33:03 PM
hi

I'm doing a custom fields. However, all fields are in one column in filter and index.  This makes occupy a large space.  :'(

I can not get the search filter with the fields in the same line like the figure.

Note: The fields are in the same group

How do I get the fields on the same line like  figure of example.
Attach an image of your filters. And other image with you want to see. :)

Americano

Quote from: davidhs on July 14, 2015, 08:21:49 AM
Quote from: Americano on July 13, 2015, 11:33:03 PM
hi

I'm doing a custom fields. However, all fields are in one column in filter and index.  This makes occupy a large space.  :'(

I can not get the search filter with the fields in the same line like the figure.

Note: The fields are in the same group

How do I get the fields on the same line like  figure of example.
Attach an image of your filters. And other image with you want to see. :)

Attach an image of my filters - suporte1

And other image with I want to see - suporte2





davidhs

Quote from: Americano on July 14, 2015, 02:40:58 PM
Quote from: davidhs on July 14, 2015, 08:21:49 AM
Quote from: Americano on July 13, 2015, 11:33:03 PM
hi

I'm doing a custom fields. However, all fields are in one column in filter and index.  This makes occupy a large space.  :'(

I can not get the search filter with the fields in the same line like the figure.

Note: The fields are in the same group

How do I get the fields on the same line like  figure of example.
Attach an image of your filters. And other image with you want to see. :)

Attach an image of my filters - suporte1

And other image with I want to see - suporte2
This problem is about CSS. But... both images use same forum and same theme?

If yes, I do not know cause.

If no, you can view these files
FORUM/Themes/default/css/index.css
FORUM/Themes/your_theme/css/index.css

and search at end of files
/* BEGIN MOD CustomFieldFilterPost */
...
/* END MOD CustomFieldFilterPost */


Both files must have "display: inline;" on this code (this write filters of message index in only one line):
form#cffp_filters div.cffp_filters,
form#cffp_filters div.cffp_filters dl,
form#cffp_filters div.cffp_filters dt
{
display: inline;
}
form#cffp_filters div.cffp_filters dd,
form#cffp_filters div.cffp_filters_button
{
display: inline;
margin-left: 0;
margin-right: 1em;
}

Americano

I uninstalled the mod and then install again. Now it is working like figure 2.  :)

I do not set anything different

davidhs

Quote from: Americano on July 15, 2015, 05:25:40 PM
I uninstalled the mod and then install again. Now it is working like figure 2.  :)

I do not set anything different
Problem solved. :)
Perhaps an error occured on your last installation.  :o


Westwegoman

Quote from: davidhs on July 15, 2015, 07:38:44 AM
Quote from: Americano on July 14, 2015, 02:40:58 PM
Quote from: davidhs on July 14, 2015, 08:21:49 AM
Quote from: Americano on July 13, 2015, 11:33:03 PM
hi

I'm doing a custom fields. However, all fields are in one column in filter and index.  This makes occupy a large space.  :'(

I can not get the search filter with the fields in the same line like the figure.

Note: The fields are in the same group

How do I get the fields on the same line like  figure of example.
Attach an image of your filters. And other image with you want to see. :)

Attach an image of my filters - suporte1

And other image with I want to see - suporte2
This problem is about CSS. But... both images use same forum and same theme?

If yes, I do not know cause.

If no, you can view these files
FORUM/Themes/default/css/index.css
FORUM/Themes/your_theme/css/index.css

and search at end of files
/* BEGIN MOD CustomFieldFilterPost */
...
/* END MOD CustomFieldFilterPost */


Both files must have "display: inline;" on this code (this write filters of message index in only one line):
form#cffp_filters div.cffp_filters,
form#cffp_filters div.cffp_filters dl,
form#cffp_filters div.cffp_filters dt
{
display: inline;
}
form#cffp_filters div.cffp_filters dd,
form#cffp_filters div.cffp_filters_button
{
display: inline;
margin-left: 0;
margin-right: 1em;
}


I've looked in both css files and they both have display: inline;.

In the SMF default theme it shows correct so I assume it has something to do with the theme I am using. (Blackjack by Crip)

Any idea what could cause this?

davidhs

Quote from: Westwegoman on November 05, 2015, 11:02:38 PM
Quote from: davidhs on July 15, 2015, 07:38:44 AM
Quote from: Americano on July 14, 2015, 02:40:58 PM
Quote from: davidhs on July 14, 2015, 08:21:49 AM
Quote from: Americano on July 13, 2015, 11:33:03 PM
hi

I'm doing a custom fields. However, all fields are in one column in filter and index.  This makes occupy a large space.  :'(

I can not get the search filter with the fields in the same line like the figure.

Note: The fields are in the same group

How do I get the fields on the same line like  figure of example.
Attach an image of your filters. And other image with you want to see. :)

Attach an image of my filters - suporte1

And other image with I want to see - suporte2
This problem is about CSS. But... both images use same forum and same theme?

If yes, I do not know cause.

If no, you can view these files
FORUM/Themes/default/css/index.css
FORUM/Themes/your_theme/css/index.css

and search at end of files
/* BEGIN MOD CustomFieldFilterPost */
...
/* END MOD CustomFieldFilterPost */


Both files must have "display: inline;" on this code (this write filters of message index in only one line):
form#cffp_filters div.cffp_filters,
form#cffp_filters div.cffp_filters dl,
form#cffp_filters div.cffp_filters dt
{
display: inline;
}
form#cffp_filters div.cffp_filters dd,
form#cffp_filters div.cffp_filters_button
{
display: inline;
margin-left: 0;
margin-right: 1em;
}


I've looked in both css files and they both have display: inline;.

In the SMF default theme it shows correct so I assume it has something to do with the theme I am using. (Blackjack by Crip)

Any idea what could cause this?
I installed this theme (Blackjack) in my test forum and then I installed my mod, and works. Your theme is not the problem, I think!

When you installed my mod, had you checked your theme, at end of page? (See my attach image, blue rectangle at bottom.)

Westwegoman

Yes. I looked in the index.css file and the edits were made.

When I switch to the default theme, it all looks right.

davidhs

Quote from: Westwegoman on November 06, 2015, 06:54:04 AM
Yes. I looked in the index.css file and the edits were made.

When I switch to the default theme, it all looks right.
Perhaps another mod modify something...

Can you attach here your index.css of Black Jack theme?

Westwegoman

Ok. I will attach it tonight when I get home. Thanks in advance.

Westwegoman

Quote from: davidhs on November 06, 2015, 08:14:43 AM

Perhaps another mod modify something...

Can you attach here your index.css of Black Jack theme?

Here it is.

davidhs

Quote from: Westwegoman on November 06, 2015, 07:30:27 PM
Quote from: davidhs on November 06, 2015, 08:14:43 AM

Perhaps another mod modify something...

Can you attach here your index.css of Black Jack theme?

Here it is.
You have an error on your index.css file! Perhaps was added for another mod...

Search (line 2726)
input:focus, textarea:focus, button:focus, select:focus {
border: solid 1px #FFD700;
.seperate {

Replace by
input:focus, textarea:focus, button:focus, select:focus {
border: solid 1px #FFD700;
}
.seperate {





By another hand, you have installed version 1.1 of my mod, and the latest version is 1.3.2. I added many enhancements. You can install current version (1.3.2), or wait some days/weeks because I will update to 1.4 soon (with more enhancements).

Westwegoman

Thanks.

I never did update due to the errors when using the package manager. When I installed it originally, I had to do a lot of manual edits, mostly from other mods.

davidhs

Quote from: Westwegoman on November 07, 2015, 07:31:16 AM
I never did update due to the errors when using the package manager. When I installed it originally, I had to do a lot of manual edits, mostly from other mods.
Yes, I know this. It is a problem of SMF's modifications. :(

But I recommend to you install version 1.4 when I upload. It will have many enhancements.

Westwegoman

Ok. Thanks, the fix you provided worked.

davidhs

Quote from: Americano on July 06, 2015, 07:52:33 PM
is it could have top?

You can make a top 10 rank of the custom fields:-X
Done.




New versión:
1.4     2015-10-30
------------------
+ Field in administration panel to show, on the statistics, the top 10 posters of each type of records.
+ The total number of each type of record created can be show on the statistics.
+ SMF compatibility: 2.0.11.
+ Languages: New language string in portuguese_brazilian, portuguese_brazilian-utf8, brazilian, brazilian-utf8, portuguese_pt, portuguese_pt-utf8, thanks to Americano.
+ Languages: german, german-utf8, german_informal, german_informal-utf8, thanks to sangham.net.
- SMF 2.0.x: Languages: brazilian, brazilian-utf8, spanish, spanish-utf8 (these are not used).

Americano

Please

How do i install the new version without uninstalling the old version?

davidhs

Quote from: Americano on November 11, 2015, 05:50:36 PM
Please

How do i install the new version without uninstalling the old version?
It it not possible. You must uninstall the old version (without to delete user data!) and then install the new version.

Americano

I managed to uninstall. It installed perfectly !. It was excellent.

I was not getting uninstall.

I uninstall the "Enhancements to recent posts" and then went uninstall the Custom fields and filters of post and functioned normally.

Thank You very much!

Advertisement: