Help with Voting and Favorites

More
14 years 4 weeks ago #11344 by ~cXc~
I'm having some JS conflicts but I can't find them and was hoping someone can help me get the default voting and favorites working on my site or offer me an alternative ... or at least help me find the conflict o.O

I have searched but can not find any solution for my issue.

Dev Website Example: core.zapto.org/downloads/item/18-jce-blockquote.html
Registered User Account
Login: Lost Coder
Password: unknown

Joomla! 1.5.21, FlexiContent 1.5.3c Stable

This is the only thing keeping FlexiContent from being perfect for my needs.

Please Log in or Create an account to join the conversation.

More
14 years 6 days ago #11850 by ~cXc~
No idea why I couldn't get these to work, but no matter what I tried all the AJAX functioned but clicking the images didn't send the votes.

Since no one could help me I added a new dispatcher to ...
*JOOMLA ROOT*/components/com_flexicontent/views/items/view.html.php @line 222
Code:
// ~cXc~ added for VOTitaly functionality $results = $dispatcher->trigger('onDisplayRating', array (&$item, &$params, $limitstart)); $item->event->displayRating = trim(implode("\n", $results)); // end ~cXc~
... installed VOTitaly changed its trigger in ...
*JOOMLA ROOT*/plugins/content/ji_votitaly.php @line 14
...from ...
Code:
$mainframe->registerEvent( 'onBeforeDisplayContent', 'plgVotitaly' );
... to ...
Code:
$mainframe->registerEvent( 'onDisplayRating', 'plgVotitaly' );
... then I add ...
Code:
<?php if ($this->params->get('show_vote', 1)) : ?> <div class="voting"> <?php echo $this->item->event->displayRating; ?> </div> <?php endif; ?>
... to my template wherever I want my item rating to appear.

I still don't have favorites functionality but at least I can get voting to work now :)

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.342 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline