How do I remove rating stars in 7.0.3?
In phpmyadmin, sys_objects_vote, I have changed "IsOn" from 1 to 0. But now instead of stars I get {rate}.
Since I don't want voting, in sys_objects_cmts I have also changed "IsRatable" from 1 to 0.
Does this have to be done somewhere other than phpmyadmin, or is what I've done correct but some other code has to be changed?
Thanks.
Someday, Someway. |
Hello open the : templates\base\scripts\BxBaseVotingView.php
1. add before this code line : $iMax = $this->getMaxVote();
return;
2. Add after this code line : function getExtraJs () {
return;
PS: If possible do not write me personally, please try to ask on the forum first |
@SashaE - Thank you for your reply. I have made the script changes as you suggest and manually cleared my cache. However, I still get {rate} wherever the stars used to appear - photos, sounds, videos, etc. How can I remove that? Someday, Someway. |
modules/boonex/[module]/templates/base/css/view.css:
.fileUnitInfoRate { position: relative; float: left; margin: 0px 10px; display: none; }
You'll have to apply this change to the following modules (there is apparently no global style sheet to control this):
- Sounds
- Videos
- Photos
- Files
Once you've finished making your changes, save and clear the usual suspects. Have fun.
Edit: I'm currently looking into how to remove the stars from the rest of the site (browse pages, etc.).
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
@ Magnussoft - Thanks for the suggestion. Unfortunately it doesn't seem to be working in my case. I've attached a screenshot of where it shows up in Public Videos. This is from my Homepage, but it occurs anywhere such a thumbnail would appear, like "Browse Videos From Album." Image is from my custom template, but it shows up in the UNI template, too.
Please let me know if you make any progress on this. Was hoping there might be a global fix in a .php that controls the rating function. SashaE's .php fix didn't work for me either.
Someday, Someway. |
@ Magnussoft - Thanks for the suggestion. Unfortunately it doesn't seem to be working in my case. I've attached a screenshot of where it shows up in Public Videos. This is from my Homepage, but it occurs anywhere such a thumbnail would appear, like "Browse Videos From Album." Image is from my custom template, but it shows up in the UNI template, too.
Please let me know if you make any progress on this. Was hoping there might be a global fix in a .php that controls the rating function. SashaE's .php fix didn't work for me either.
This only removes the rating feature from the viewing page, not the other pages (such as viewing albums). Remember that this file isn't located under templates/base/css/, but modules/boonex/[module]/templates/base/css/. You'll have to make this modification to all of the listed modules above (or find a better solution).
I'll post more information on removing the other rating areas shortly.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Here's the last part of the modification needed.
modules/boonex/[module]/templates/base/css/search.css:
.boxContent .votes_small {
float: none;
position:relative;
width: auto;
display: none;
}
You'll have to repeat this step for all the modules listed above (or whichever ones are installed). Once you've finishes making your changes, save and clear the usual suspects.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Thank you again. I had applied the changes in the correct files. I didn't realize your suggestion was only for the viewing page. Not sure if I had the rating stars there before, but I don't now.
The {rate} problem is with any page that displays the thumbnail view in my screenshot.
This does call for a global solution. I have PM'd SashaE to see if there is another possibility. I may not have been clear about what I needed to remove, and the screenshot might help.
Boonex should incorporate rating options in the next update. Other members have asked for this and many business sites would require it.
Someday, Someway. |
Thank you again. I had applied the changes in the correct files. I didn't realize your suggestion was only for the viewing page. Not sure if I had the rating stars there before, but I don't now.
The {rate} problem is with any page that displays the thumbnail view in my screenshot.
This does call for a global solution. I have PM'd SashaE to see if there is another possibility. I may not have been clear about what I needed to remove, and the screenshot might help.
Boonex should incorporate rating options in the next update. Other members have asked for this and many business sites would require it.
My post above yours removes the stars from all other parts of the site. I agree, this isn't the easiest solution, but it's the only one I know of. I'd also like to be able to disable the rating features for certain modules (or site-wide), but something tells me this won't make the cut for a while.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
I have applied both of your fixes and still get {rate} showing up below the lower left corner of each photo/sound/video thumbnail as in my screenshot.
Does this occur for you?
Someday, Someway. |
I have applied both of your fixes and still get {rate} showing up below the lower left corner of each photo/sound/video thumbnail as in my screenshot.
Does this occur for you?
Try undoing the edit SashaE suggested.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
==Videos==
/modules/boonex/videos/templates/base view_unit.html
<div class="fileUnitInfo" style="width:__width_ext__px;"> <div class="fileUnitInfoRate"> __rate__ </div> <div class="fileUnitInfoCounts">
/modules/boonex/videos/templates/base browse_unit.html
<div class="sys_file_search_header"> <div class="sys_file_search_rate">{rate}</div> <div class="sys_file_search_size">{size}</div> <div class="clear_both"></div> </div>
==Photos==
/modules/boonex/photos/templates/base view_unit.html
<div class="fileUnitInfo" style="width:__width_ext__px;"> <div class="fileUnitInfoRate"> __rate__ </div> <div class="fileUnitInfoCounts">
/modules/boonex/photos/templates/base browse_unit.html
<div class="sys_file_search_header"> <div class="sys_file_search_rate">{rate}</div> <div class="sys_file_search_size">{size}</div> <div class="clear_both"></div>
remove marked code you can try and do it for other modules.
|
==Videos==
/modules/boonex/videos/templates/base view_unit.html
<div class="fileUnitInfo" style="width:__width_ext__px;"> <div class="fileUnitInfoRate"> __rate__ </div> <div class="fileUnitInfoCounts">
/modules/boonex/videos/templates/base browse_unit.html
<div class="sys_file_search_header"> <div class="sys_file_search_rate">{rate}</div> <div class="sys_file_search_size">{size}</div> <div class="clear_both"></div> </div>
==Photos==
/modules/boonex/photos/templates/base view_unit.html
<div class="fileUnitInfo" style="width:__width_ext__px;"> <div class="fileUnitInfoRate"> __rate__ </div> <div class="fileUnitInfoCounts">
/modules/boonex/photos/templates/base browse_unit.html
<div class="sys_file_search_header"> <div class="sys_file_search_rate">{rate}</div> <div class="sys_file_search_size">{size}</div> <div class="clear_both"></div>
remove marked code you can try and do it for other modules.
It's Magnussoft's CSS solution vs Prolaznik's HTML solution. Who will win?!
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
|
@Magnussoft - I undid SashaE's suggestion. That didn't make a difference. However, your idea made me think about restoring "IsOn" to 1 in phpmyadmin/sys_objects_vote. That DID work, though it is strangely inconsistent. On my home page, it is cleared from all piblic photos/sounds/videos thumbnails. Looks gorgeous. But if you go to the home page of their respective sections, the stars show up in Public Photos/videos but not Public Sounds!! VERY STRANGE.
Anyway, your fixes on their own did take care of the problem to this exrtent, and I thank you for that. Unless you can think of a reason for it, we'll probably have to be satisfied with this until Boonex re-codes the program in 7.1. They're supposed to add controls to seeing age/sex in that release.
If you have the time, please check my IE7 post. Need someone to confirm this bug.
EDIT: just saw prolaznik's html fix. Will try that. Had wondered about HTML since this looked like a problem I'd encountered in removing age/sex in some places. Just didn't know where to look. Will update.
Someday, Someway. |
YOU BOTH ROCK! The html fix took care of what was left. Did phohos/sounds/videos for now. Will do others as the need comes up. At lease I know what to do.
Have a feeling this will be another pile of adjustments added to the rest that will have to be redone with each major update.
Someday, Someway. |