remove Community Builder Gallery photos from game

More
6 years 11 months ago #38302 by Buzz50
How can I remover community Builder Gallery photos from the Avatars game?
Some members have the same Gallery Avatars which makes the game very difficult to play!
They are shown in the table as gallery/butterfly.gif for example where uploaded avatars are shown as 94_511ff730852a8.jpg
I don't mind hacking the code if you tell me where the query is!

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

More
6 years 11 months ago - 6 years 11 months ago #38303 by nordmograph
OK, edit
components/com_memorizr/models/game.php
look for
Code:
$source=='cb_av'
and jusr before its
Code:
ORDER BY RAND()

add this
Code:
AND c.avatar NOT LIKE '%gallery/%'

Let me know if this solves your issue so I can add it to the core.

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.
Last edit: 6 years 11 months ago by nordmograph.

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

More
6 years 11 months ago #38308 by Buzz50
Thank you :)

It works.

Amazing support as ever for a great component!

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

Time to create page: 0.318 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.