Support Forums - Classified Ads Script Osclass
Unread
New Replies
Osclass Market
Download Osclass
Documentation
Home
Help
Search
Login
Register
Is there a way to prevent a listing from being removed?
Support Forums - Classified Ads Script Osclass
General osclass questions
General discussion
Is there a way to prevent a listing from being removed?
Match all words
Match any words
Most relevant results first
Largest topics first
Smallest topics first
Most recent topics first
Oldest topics first
Advanced
Unread posts
New replies
My topics
My posts
Print
Pages: [
1
]
morfik
169 posts
Is there a way to prevent a listing from being removed?
«
on:
March 05, 2023, 05:16:03 PM »
Is there a way to prevent a listing from being removed by the user? I mean, is there an option to allow only admins to remove listings?
Logged
MB Themes
Support team
17691 posts
Only quality matters
Download Osclass
Re: Is there a way to prevent a listing from being removed?
«
Reply #1 on:
March 07, 2023, 01:19:31 PM »
@morfik
Well you can try to hide all remove buttons but still not supergood.
You could go to model/Item.php in core, find this line:
Code:
[Select]
public function deleteByPrimaryKey($id) {
and after it put:
Code:
[Select]
if(!osc_is_admin_user_logged_in()) { return false; }
Logged
To get fast support, we need following details:
Detail description, URL to reproduce problem, Screenshots
morfik
169 posts
Re: Is there a way to prevent a listing from being removed?
«
Reply #2 on:
March 07, 2023, 01:58:18 PM »
Hmm, I thought maybe there's some option I couldn't fine in the Osclass settings, similar to disabling a listing (allow user to disable their listings).
Logged
MB Themes
Support team
17691 posts
Only quality matters
Download Osclass
Re: Is there a way to prevent a listing from being removed?
«
Reply #3 on:
March 07, 2023, 08:19:28 PM »
No no such ootion exists.
You may use history logger plugin if you need to keep historical data - what listings you had
Logged
To get fast support, we need following details:
Detail description, URL to reproduce problem, Screenshots
Print
Pages: [
1
]