Jump to content

Recommended Posts

Similar to the Community Builder Progress Field: https://www.joomlapolis.com/addons/cb-progress-field

As websites that implement Jreviews tend to rely on users submitting listings, I'd like to suggest a listing progress field similar to those you may find on message boards. This will indicate that a listing is not 100% complete and still has missing field values and media items. I believe a visual aid such as this would encourage owners to complete their listings.

I can see this being very useful for Jreviews sites with many listings and lots of field groups.

The settings for the plugin would allow admin to select whether to view the progress field on the frontend or solely in a module / menu item displayable solely to the owner.

progress-field.jpg

Share this post


Link to post

Hey there,

You can mange this in a simple way.. for example:

So lets say you have some fields:   jr_textfieldname, jr_textareafield, main_image, jr_checkboxfieldname etc

first you can check if the specified fields you are mentioning are empty or not and you can do it this way: 

<?php echo $CustomFields->fieldValue('r_textfieldname',$listing); ?>

<?php $textfieldname =  $CustomFields->fieldValue('r_textfieldname',$listing);?>

<?php if empty($textfieldname): ?>

Text Field Name is EMPTY

<?php endif ?>

You can do this for all the fields which are important to you... and put the results in a

<ul>

<li></li>

</ul>

to generate the line bar then u have to count all the fields u want - filled fields and generate a % from where you can echo it to the chart width...

Well this is an idea which actually works very well, probably some other guys can give you another shorter method

 

Regards

Laert.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Please refer to our Privacy Policy.