News Flash:
New Version of ShopClass theme 1.4.0 is Released on 13 JUNE 2018, Please upgrade your installation.

Remove SEO fields in form

If you are having general problems with Tuffclassified theme, post your questions here. This is not the place for customization or feature requests
Locked
steve
Senior
Posts: 222
Joined: Thu Oct 01, 2015 5:33 pm
Has thanked: 11 times
Been thanked: 4 times

Remove SEO fields in form

Post by steve » Tue Dec 01, 2015 7:01 pm

Hi Navjot,
How can we remove the SEO fields when a user fills in the publish ad form . Eg. SEO title and SEO description.
If these are your inbult custom fields, please tell me how to remove those fields ONLY... as i have added a couple of my own custom fields too.

Awaiting your reply. Thanks.

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: Remove SEO fields in form

Post by tuffadmin » Wed Dec 02, 2015 2:06 am

Why you want to remove those fields they are visible to Administrators only?
BTW you can remove/disable this block of code from seo-extra.php file in tuffclassified->includes

Code: Select all

if (osc_is_admin_user_logged_in()) {
    // show field in item post layout
	osc_add_hook( 'item_form', 'tfc_seo_form' ) ;
    // insert seo data
    osc_add_hook( 'posted_item', 'tfc_seo_form_post' ) ;
    // show field in item edit layout
    osc_add_hook( 'item_edit', 'tfc_seo_item_edit' ) ;
    }
    // update seo data after edit POST
    osc_add_hook( 'edited_item', 'tfc_seo_item_edit_post' ) ;

    // delete seo data of the deleted item
    osc_add_hook( 'delete_item', 'tfc_seo_delete_item' ) ;
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

steve
Senior
Posts: 222
Joined: Thu Oct 01, 2015 5:33 pm
Has thanked: 11 times
Been thanked: 4 times

Re: Remove SEO fields in form

Post by steve » Wed Dec 02, 2015 5:11 pm

Hello,
I think those SEO fields sometimes appear to normal customers too. I am attaching a screenshot, with the area marked as RED - just to make sure we both are talking about the same issue.

The thing is, i don't want normal customers too fill in SEO kind of information.
Please check the screenshot and let me know :)
Thanks
You do not have the required permissions to view the files attached to this post.

steve
Senior
Posts: 222
Joined: Thu Oct 01, 2015 5:33 pm
Has thanked: 11 times
Been thanked: 4 times

Re: Remove SEO fields in form

Post by steve » Wed Dec 02, 2015 5:18 pm

..i just confirmed. All the users who try to post an ad are seeing the SEO fields.
Solution please?

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: Remove SEO fields in form

Post by tuffadmin » Fri Dec 04, 2015 3:31 am

Remove code I mentioned above. Before posting any ad first logout from your osclass dashboard.
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

Locked