aproape
08-31-2008, 01:37 PM
Good morning everyone,
Time for more presents.. :-)
We have modified the current voting/rating options on Dynamics so that is:
1. using a very complex rating algorithm
2. the rating/voting options are displayed very clearly on the top of each article - no need to fiddle with menus and unnecessary options / permissions / already voted / etc
[rating box idea has been inspired from vb.org voting box style]
This post addresses the 2nd enhancement - if there is enough interest we can publish 1. as well.
For this enhancement, the following are the changes:
- changes the rating options to be presented in a yellow[ish] box at the top of each article/page.
- removes the 'vb-style' drop-down voting option/'Rate article'
- hides the rating options from guest users or other groups that are not allowed to vote [I mean.. really]
- shows the vote[d] value right away as well as the total number of votes and final rating on each page and presents the user from voting again [I mean.. really]
- the rated value[s] are shown in numbers, not stars [better understanding of the actual value]
Please check the attached archive for all the required files - instructions are inside as well as below.
--- CUT HERE ---
vBA Dynamics Rating Options/Box Revisited
1. Create [if it doesn't exist already] a folder called 'plugins' in the vBulletin main folder [your forum folder, _not_ dynamics!] and copy rating_process.php and set_user_entry_rating.php files into it.
2. Replace the content of the template of "vBadvanced Dynamics Templates »", ADV_DYNA _SHOWENTRY with the content of the file ADV_DYNA_SHOWENTRY.tpl
(from VBulletin Admin Control Panel, go to "Styles & Templates", select "Style Manager" and then the "Edit Templates" option)
-- OR --
if you have this template modified from the original, compare the contents with the original and make the modifications manually.
3. Add the following plugins:
(VBulletin Admin Control Panel => Plugins & Products => Plugin Manager => Add New Plugin)
3a.
Product: vBadvanced Dynamics
Hook Location: vba_dyna_functions_saveentry_rate_entry
Title: Enhanced Rating Process (modifies the actions on the entry rating)
Execution Order: 5
Plugin PHP Code: require_once('./plugins/rating_process.php');
Plugin Active: Yes
3b.
Product: vBadvanced Dynamics
Hook Location: vba_dyna_showentry_start
Title: Enhanced Set User Rating
Execution Order: 5
Plugin PHP Code: require_once('./plugins/set_user_entry_rating.php');
Plugin Active: Yes
4. That's all folks! Enjoy.
--- CUT HERE ---
Cheers,
aproape
Time for more presents.. :-)
We have modified the current voting/rating options on Dynamics so that is:
1. using a very complex rating algorithm
2. the rating/voting options are displayed very clearly on the top of each article - no need to fiddle with menus and unnecessary options / permissions / already voted / etc
[rating box idea has been inspired from vb.org voting box style]
This post addresses the 2nd enhancement - if there is enough interest we can publish 1. as well.
For this enhancement, the following are the changes:
- changes the rating options to be presented in a yellow[ish] box at the top of each article/page.
- removes the 'vb-style' drop-down voting option/'Rate article'
- hides the rating options from guest users or other groups that are not allowed to vote [I mean.. really]
- shows the vote[d] value right away as well as the total number of votes and final rating on each page and presents the user from voting again [I mean.. really]
- the rated value[s] are shown in numbers, not stars [better understanding of the actual value]
Please check the attached archive for all the required files - instructions are inside as well as below.
--- CUT HERE ---
vBA Dynamics Rating Options/Box Revisited
1. Create [if it doesn't exist already] a folder called 'plugins' in the vBulletin main folder [your forum folder, _not_ dynamics!] and copy rating_process.php and set_user_entry_rating.php files into it.
2. Replace the content of the template of "vBadvanced Dynamics Templates »", ADV_DYNA _SHOWENTRY with the content of the file ADV_DYNA_SHOWENTRY.tpl
(from VBulletin Admin Control Panel, go to "Styles & Templates", select "Style Manager" and then the "Edit Templates" option)
-- OR --
if you have this template modified from the original, compare the contents with the original and make the modifications manually.
3. Add the following plugins:
(VBulletin Admin Control Panel => Plugins & Products => Plugin Manager => Add New Plugin)
3a.
Product: vBadvanced Dynamics
Hook Location: vba_dyna_functions_saveentry_rate_entry
Title: Enhanced Rating Process (modifies the actions on the entry rating)
Execution Order: 5
Plugin PHP Code: require_once('./plugins/rating_process.php');
Plugin Active: Yes
3b.
Product: vBadvanced Dynamics
Hook Location: vba_dyna_showentry_start
Title: Enhanced Set User Rating
Execution Order: 5
Plugin PHP Code: require_once('./plugins/set_user_entry_rating.php');
Plugin Active: Yes
4. That's all folks! Enjoy.
--- CUT HERE ---
Cheers,
aproape