So you want the topic icon normally seen next to each topic on the viewforum pages to also show on the index page? is that right?
Craig.
Simple query for icons
- igorw
- Past Contributor
- Posts: 1967
- Joined: 01 Jun 2006, 20:48
- Real name: Igor [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Simple query for icons
The way you are currently doing it is going to use a query in a loop, which is a bad thing. Never do a query in a loop. You can use $cache->obtain_icons(); to get all icons, and you could try to obtain which post has which icon in one separate query.
Tell me if that's any good, else i'll go into more detail.
Tell me if that's any good, else i'll go into more detail.
- we're poor!
-
- New member
- Posts: 49
- Joined: 25 Jul 2008, 23:59
- [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Simple query for icons
anyone?
-
- New member
- Posts: 49
- Joined: 25 Jul 2008, 23:59
- [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Simple query for icons
Hey guys can you tell me at least if it's better removing that query. Reading the evil<3 post, i wouldn't like to risk.
-
- New member
- Posts: 49
- Joined: 25 Jul 2008, 23:59
- [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Simple query for icons
Ok I've tried anything to get icons on index, but it seem impossible my functions_display is stressed too So, if someone feel like working on this mod, help yourselves! At least i can learning a little php
Thanks for ur support guys! See ya
Thanks for ur support guys! See ya
Return to “phpBB Development discussion”
Who is online
Users browsing this forum: No registered users and 15 guests