[TH] Star Rating for Custom Fields (Custom Field XML)

[TH] Star Rating for Custom Fields (Custom Field XML) 1.1.0a

No permission to download

Andrej

Well-known member
@time you have clearly not read the install instructions.

Installation:
  • Upload contents of upload folder to root directory, overwriting any existing files.
  • Install Custom Fields by Waindigo (v1.1).
  • Import field-waindigo_custom_rating.xml file as a Custom User Field, Custom Thread Field, Custom Post Field or Custom Resource Field.
That's because the provided file is not an add-on XML file. It is a custom fields XML file.

Please go to the appropriate page for importing a custom field.

Admin CP -> Users -> Custom User Fields -> Import
Admin CP -> Applications -> Custom Thread Fields -> Import
Admin CP -> Applications -> Custom Post Fields -> Import
Admin CP -> Applications -> Custom Resource Fields -> Import
 
Last edited:

QenTox

Well-known member
We will be setting up a demo of this on waindigo.com soon.
Could you please send me a link to a demo if it is already set up? This sounds very interesting as I have a gaming site with reviews, but I can not really imagine, what this exactly does and how it works... Thanks.
 

QenTox

Well-known member
That looks amazing, exactly what I was looking for! That is just awesome, now I only need to know how to achieve this. Simply beatiful!
 

Beermonster

Active member
I've imported most of the things needed but I don't have a Admin CP -> Applications -> Custom Resource Fields -> Import
 

DiscussionWire.pk

New member
well i am using xenforo 1.2.3 and i tried to install this add-on but it is giving an error "
Error
The provided file is not an add-on XML file.
"
please guide me how can i install this addon
 

DiscussionWire.pk

New member
i didn't find of the field your mention in your recent comment...
Admin CP -> Users -> Custom User Fields -> Import
Admin CP -> Applications -> Custom Thread Fields -> Import
Admin CP -> Applications -> Custom Post Fields -> Import
Admin CP -> Applications -> Custom Resource Fields -> Import

xenforo.PNG
please do guide me.
 

macroforum

Active member
I'm using this addon for rating photos in my photo critique section in my forum.
I have created 3 custom post rating field: i have changed ID in addon xml file, line 2 (field_id="waindigo_custom_rating") and i have imported 3 times the addon.
Then i have used this code in Footer HTML:
Code:
<div style="margin:30px auto 0 auto;width:500px;color:#808080;margin-top:20px;"><p align="center">Tecnica:
<xen:if is="{$customPostFields.waindigo_custom_rating} == 1">
<img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_off.png'><img src='http://www.mydomain.com/foto/star_off.png'><img src='http://www.mydomain.com/foto/star_off.png'><img src='http://www.mydomain.com/foto/star_off.png'>
<xen:elseif is="{$customPostFields.waindigo_custom_rating} == 2" />
<img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_off.png'><img src='http://www.mydomain.com/foto/star_off.png'><img src='http://www.mydomain.com/foto/star_off.png'>
<xen:elseif is="{$customPostFields.waindigo_custom_rating} == 3" />
<img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_off.png'><img src='http://www.mydomain.com/foto/star_off.png'>
<xen:elseif is="{$customPostFields.waindigo_custom_rating.rating} == 4" />
<img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_off.png'>
<xen:elseif is="{$customPostFields.waindigo_custom_rating} == 5" />
<img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'>
<xen:else />
Non valutata
</xen:if>
|Creatività:
<xen:if is="{$customPostFields.waindigo_custom_rating1} == 1">
<img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_off.png'><img src='http://www.mydomain.com/foto/star_off.png'><img src='http://www.mydomain.com/foto/star_off.png'><img src='http://www.mydomain.com/foto/star_off.png'>
<xen:elseif is="{$customPostFields.waindigo_custom_rating1} == 2" />
<img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_off.png'><img src='http://www.mydomain.com/foto/star_off.png'><img src='http://www.mydomain.com/foto/star_off.png'>
<xen:elseif is="{$customPostFields.waindigo_custom_rating1} == 3" />
<img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_off.png'><img src='http://www.mydomain.com/foto/star_off.png'>
<xen:elseif is="{$customPostFields.waindigo_custom_rating1} == 4" />
<img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_off.png'>
<xen:elseif is="{$customPostFields.waindigo_custom_rating1} == 5" />
<img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'>
<xen:else />
Non valutata
</xen:if>
|Emozione:
<xen:if is="{$customPostFields.waindigo_custom_rating2} == 1">
<img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_off.png'><img src='http://www.mydomain.com/foto/star_off.png'><img src='http://www.mydomain.com/foto/star_off.png'><img src='http://www.mydomain.com/foto/star_off.png'>
<xen:elseif is="{$customPostFields.waindigo_custom_rating2} == 2" />
<img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_off.png'><img src='http://www.mydomain.com/foto/star_off.png'><img src='http://www.mydomain.com/foto/star_off.png'>
<xen:elseif is="{$customPostFields.waindigo_custom_rating2} == 3" />
<img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_off.png'><img src='http://www.mydomain.com/foto/star_off.png'>
<xen:elseif is="{$customPostFields.waindigo_custom_rating2} == 4" />
<img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_off.png'>
<xen:elseif is="{$customPostFields.waindigo_custom_rating2} == 5" />
<img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'><img src='http://www.mydomain.com/foto/star_on.png'>
<xen:else />
Non valutata
</xen:if></p></div>
Results in user replies

custom1.jpg

Reply form with custom post rating fields

custom2.jpg

Tips to improve this or it's ok ? :)
I would improve this in thy way but mybe it's not possibile: give to user the possibility voting only 1 time...and if he reply second time the custom fiield not shows for him.
Thanks :)
Antonio
 

Jon W

Well-known member
Looks good to me.

There are a million and one ways to style it in the post using CSS but that is down to personal taste.
 
Top