Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: April 25, 2024, 10:40 am

Poll: Sound like a cool idea?
This poll is closed.
Yes
88.89%
8 88.89%
No
11.11%
1 11.11%
Total 9 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Min's Rep Indication Suggestion
#41
RE: Min's Rep Indication Suggestion
Oh well nevermind! It's the thought that counts!

Bounce Ball
Reply
#42
RE: Min's Rep Indication Suggestion
(October 18, 2017 at 9:27 pm)Tiberius Wrote:
(October 18, 2017 at 6:21 pm)Rev. Rye Wrote: You don't think you could make it so you put a small icon by a user's name if you've given them a rep? I don't know code, but I would think it could be fairly easy.

The problem is getting the data. The reputations are stored in a separate table in the database. It might be possible to have a single query that gets the info I need but if not, I would have to do a single query for each post which is too much overhead.

I don't know what rep plugin you are using, but fetching them with a single query should be quite possible. Also depending on how many reps someone has given, stashing those unique user ids in their session beforehand might also be an option,and you can then just cross reference and control the button display during render.
Quote:To know yet to think that one does not know is best; Not to know yet to think that one knows will lead to difficulty.
- Lau Tzu

Join me on atheistforums Slack Cool Shades (pester tibs via pm if you need invite) Tongue

Reply
#43
RE: Min's Rep Indication Suggestion
(October 19, 2017 at 9:38 am)Aoi Magi Wrote:
(October 18, 2017 at 9:27 pm)Tiberius Wrote: The problem is getting the data. The reputations are stored in a separate table in the database. It might be possible to have a single query that gets the info I need but if not, I would have to do a single query for each post which is too much overhead.

I don't know what rep plugin you are using, but fetching them with a single query should be quite possible. Also depending on how many reps someone has given, stashing those unique user ids in their session beforehand might also be an option,and you can then just cross reference and control the button display during render.

It's not a plugin, this is a default feature. The issue is whether I can extract all the user IDs for posts on the page in advance, I believe MyBB fetches that data but then iterates over it to get each individual post.

The problem is that if that happens, I'd be looking at 10 extra queries per page. If someone has the forum set to 50 posts per page, that's potentially 50 extra queries.
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  Suggestion: Install Soma Tablet Depositories On All Threads Violet 17 2476 May 3, 2020 at 1:14 pm
Last Post: Rhizomorph13
  Suggestion: atheism source links Foxaèr 3 1091 April 28, 2019 at 9:52 am
Last Post: Gawdzilla Sama
  Does this already exist? If not, count it as a suggestion Reltzik 26 2951 October 3, 2018 at 11:08 am
Last Post: Joods
  Sub forum suggestion Joods 2 975 July 15, 2018 at 2:25 pm
Last Post: brewer
  New Code suggestion Joods 30 4815 May 21, 2018 at 7:56 am
Last Post: Edwardo Piet
  Compulsory swearing subsection suggestion I_am_not_mafia 47 6297 May 13, 2018 at 3:21 pm
Last Post: The Valkyrie
  Civility subsection suggestion Catholic_Lady 400 46417 May 11, 2018 at 10:36 am
Last Post: Tiberius
  Can't rep on mobile Aegon 15 2283 February 20, 2018 at 7:32 am
Last Post: Foxaèr
  Suggestion for debate forum ErGingerbreadMandude 1 1252 December 20, 2016 at 5:07 am
Last Post: BrianSoddingBoru4
  Tagging suggestion Foxaèr 12 2447 November 19, 2016 at 10:04 pm
Last Post: Cyberman



Users browsing this thread: 1 Guest(s)