Webmastersite.net
Register Log In

Limiting No. of Description Characters
Limiting No. of Description Characters remaining per usergrp.

Comments on Limiting No. of Description Characters

tradenet
Forum Regular

Usergroup: Customer
Joined: Oct 14, 2004

Total Topics: 54
Total Comments: 127
Posted Jun 28, 2010 - 10:30 AM:

Is it possible to limit or adjust the no. of characters remaining per usergroup for a listing description?

eg. Usergroup "Member" = 500 characters remaining, or if user is a member of Usergroup "Premium Member" = 1000 characters remaining

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Jul 01, 2010 - 10:46 AM:

If you trust that it's not an automated submission and that they don't have javascript turned off, and you don't allow WYSIWYG descriptions, you can use conditionals. Replace both instances of {DESCRIPLENGTH} in the submit and edit templates with <IF {THISMEMBERUSERGROUP} is 5>1000<ELSE IF {THISMEMBERUSERGROUP} is 6>700<ELSE>500</IF>

A more foolproof method (trimming any longer submissions automatically) would require PHP, I could do that for $25.
tradenet
Forum Regular

Usergroup: Customer
Joined: Oct 14, 2004

Total Topics: 54
Total Comments: 127
Posted Jul 02, 2010 - 9:16 AM:

Talking about conditionals. I have been struggling with them. Is it possible to do something like:
<IF {THISMEMBERUSERGROUP} is greater than 2 and not 5>
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Jul 04, 2010 - 8:40 AM:

<IF {THISMEMBERUSERGROUP} is greater than 2 and {THISMEMBERUSERGROUP} is not 5>
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.