Topic Rating Bar

Started by Bugo, January 05, 2012, 11:13:27 PM

Previous topic - Next topic

Diego Andrés

Did you configure the permissions and settings?

SMF Tricks - Free & Premium Responsive Themes for SMF.

-Rock Lee-

Did it give you an error? did you look at various posts?


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Rgvill

Quote from: Diego Andrés on October 11, 2022, 11:44:45 PMDid you configure the permissions and settings?

Ok I can see it now.

mickjav

Hi Just installed on my test 2.1.3 and like to concept, I would like to replace my polls of my albums database with this mod, But it clashes with my Artists Headers, So Was Wondering  :o

If you look at the page below:
https://www.databasedreams.co.uk/charts/albums-database/destiny-s-child-album-destiny-s-child-1998/

You'll see the header plus poll, What I was wondering is would the rating bar be able to be inserted into the topic at the top I.E. in my case just above the hashtags for the main topic?

All the best mick
Site Under redesign not expected to be complete before January 2026

Bugo

You can place it anywhere on the page. Currently, the rating bar is displayed through layers, but you can comment out the line $context['template_layers'][] = 'bar'; in the file Class-TopicRatingBar.php and insert template_bar_above() function anywhere you need in Display.template.php

mickjav

Quote from: Bugo on April 15, 2023, 11:19:46 AMYou can place it anywhere on the page. Currently, the rating bar is displayed through layers, but you can comment out the line $context['template_layers'][] = 'bar'; in the file Class-TopicRatingBar.php and insert template_bar_above() function anywhere you need in Display.template.php


Thanks, @Bugo  but I didn't want to start editing the system files, I've managed to do everything thus far with hooks.

All the best mick.
Site Under redesign not expected to be complete before January 2026

Panoulis64

I leave you the Greek translation.   You cannot view this attachment. 

Panoulis64

I leave you the Correct  Greek translation.   You cannot view this attachment.

mickjav

Would it be possible for the person who created the Post to be able to rate the post like the polls.

I'm using my rating bar with my Albums dB To rate albums, See link


https://www.databasedreams.co.uk/charts/albums-database/paramore-album-this-is-why-2023/

Thanks Mick
Site Under redesign not expected to be complete before January 2026

mickjav

Not to worry about last post.

Found mod from @Diego Andrés that allows me to edit poster so I can rate albums without editing rating mod ;D .

https://custom.simplemachines.org/index.php?mod=2626
Site Under redesign not expected to be complete before January 2026

mickjav

Just tried adding the code on the mod homepage To A php block and get errors in pic:

I was going to add it in the block Latest Albums below the latest albums

https://www.databasedreams.co.uk/charts/index.php

TopicRatingBar::getBestTopic();
loadTemplate('TopicRatingBar');
template_best_topics_above();
Site Under redesign not expected to be complete before January 2026

Bugo

Try this:
global $modSettings;
$modSettings['tr_show_best_topic'] = true;
TopicRatingBar::getBestTopic();
loadTemplate('TopicRatingBar');
template_best_topics_above();

mickjav

Worked A Treat Thanks
Site Under redesign not expected to be complete before January 2026

mickjav

Been Having A Problem with some Topics, I have tried to sort out why this would happen but no luck. I don't think it's a problem with your mod but can't see why as my mods code is same for all

When I vote in a large number it works fine, but when I go to Various Artists - Now! Series

https://www.databasedreams.co.uk/charts/albums-database/?prefix=191

It won't except a rating I'm lost any help would be appreciated
Site Under redesign not expected to be complete before January 2026

Bugo

For what purpose did you post this link? What should I see there?

mickjav

Quote from: Bugo on May 20, 2023, 11:10:15 PMFor what purpose did you post this link? What should I see there?

It's A List of Albums that I can't rate, but thinking about it, it's a member's only thing so is a bit of a waisted link
Site Under redesign not expected to be complete before January 2026

mickjav

Just found out what seems to prevent a rating for a topic

I have an album which I couldn't rate:
Taylor Swift: Taylor Swift Album - Speak Now (Taylor's Version) (2023)

When I changed the title To

Taylor Swift: Taylor Swift Album - Speak Now (Taylors Version) (2023) removing the '

I was able to rate the topic


Site Under redesign not expected to be complete before January 2026

Marina3

Errors:
Hook call: function "eiu_modifications" could not be called.
The callable eiu_modifications could not be called.

Link: index.php?action=admin;area=modsettings;sa=topic_rating.
I use SMF 2.1.4 and php 8.2.

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Lucarella

Great mod and works great.
I ask for information: is it possible to vote on the posts in reply in addition to the first post?

Advertisement: