01-05-2013, 01:48 PM
01-05-2013, 01:59 PM
Alright, any suggestions on plugins that might do this for me?
@Seabody - the code you gave me didn't work, I'm getting this error:
Parse error: syntax error, unexpected T_CLASS in /home/auderic/public_html/index.php(399) : eval()'d code(19) : eval()'d code on line 10
The only changed I made was replacing "INSERT fid HERE" with "2".
@Seabody - the code you gave me didn't work, I'm getting this error:
Parse error: syntax error, unexpected T_CLASS in /home/auderic/public_html/index.php(399) : eval()'d code(19) : eval()'d code on line 10
The only changed I made was replacing "INSERT fid HERE" with "2".
01-05-2013, 03:35 PM
Well, just create a simple plugin file with the _info() (you can find examples in any plugin) function within it and the following code at the end of the file:
PHP Code:
|
The may probably be some issues in some areas (can't really think of any) but since you don't plan on using ALL the core features...
01-05-2013, 04:32 PM
Nvm, got it working with this:
PHP Code:
|
and the outcome:
Demo: http://mybb-themes.com/index.php
01-05-2013, 08:16 PM
Using a css background image to get the theme picture? Nice trick.
01-06-2013, 02:51 AM
(01-05-2013 08:16 PM)leefish Wrote: [ -> ]Using a css background image to get the theme picture? Nice trick.
Yep, thanks. xD
Does anyone know what an SQL query pulling the amount of likes from the first post of a thread would look like? And I would have to do it in the while statement somehow right?
01-06-2013, 06:56 AM
Depends on the plugin you are using. It could be better to query all likes for the threads outside the while loop.
BTW, any reason you are using item tags without a list tag? Just curious.
BTW, any reason you are using item tags without a list tag? Just curious.
01-06-2013, 08:52 AM
It would be the popular one if it's still around (By G33K).
What do you mean item tags? I used italic tags if that's what you mean. The glyph font uses them to display icons.
What do you mean item tags? I used italic tags if that's what you mean. The glyph font uses them to display icons.
01-06-2013, 09:50 AM
You're going to either need to pull the count column, if the plugin has such a thing, otherwise a COUNT and GROUP BY on the likes table.
01-06-2013, 10:04 AM
That plugin adds a column to the posts table so you will need to query the column for the first psot of the thread (firspost=pid), this can certainly be done outside the while loop if you care about performance.
I mean <li> without <ul/ol>.
Quote:What do you mean item tags? I used italic tags if that's what you mean. The glyph font uses them to display icons.
I mean <li> without <ul/ol>.