Current time: 07-04-2009, 08:38 AM Hello There, Guest! (LoginRegister)


Post Reply 
show the icons of threads beside their subjects in main page
06-05-2008, 12:38 PM
Post: #1
Question show the icons of threads beside their subjects in main page
any ideas for showing the icons of threads beside their subjects in main page?

کامپیوتر اینترنت موبایل موزیک سرگرمی نرم افزار
Visit this user's website Find all posts by this user
Quote this message in a reply
06-05-2008, 03:18 PM
Post: #2
RE: show the icons of threads beside their subjects in main page
In the 'lastpost'-column ?

Visit this user's website Find all posts by this user
Quote this message in a reply
06-08-2008, 08:47 AM
Post: #3
RE: show the icons of threads beside their subjects in main page
Exactly !
like vbulletin
Can u guide me?

کامپیوتر اینترنت موبایل موزیک سرگرمی نرم افزار
Visit this user's website Find all posts by this user
Quote this message in a reply
06-08-2008, 09:03 AM (This post was last modified: 06-08-2008 09:05 AM by LeX-.)
Post: #4
RE: show the icons of threads beside their subjects in main page
Open ./inc/functions_forumlist.php

Find
PHP Code:
global $fcache

Change into
PHP Code:
global $fcache$cache

Find
PHP Code:
// Format lastpost date and time 

Add Above
PHP Code:
// GET THREAD ICON 
$lastpost_icon "";
$thread get_thread($lastpost_data['lastposttid']);
$icon_cache $cache->read("posticons");
if(
$thread['icon'] > && $icon_cache[$thread['icon']])
{
    
$icon $icon_cache[$thread['icon']];
    
$lastpost_icon "<img src=\"{$icon['path']}\" alt=\"{$icon['name']}\" />&nbsp;";


Then open your forumbit_depth2_forum_lastpost template
And add {$lastpost_icon} where you want to display it.

Visit this user's website Find all posts by this user
Quote this message in a reply
08-06-2008, 09:27 AM (This post was last modified: 08-06-2008 09:45 AM by ELY_M.)
Post: #5
RE: show the icons of threads beside their subjects in main page
have someone tested this on 1.4?
I used to do this mod for old mybb 1.0.x
I just tried this mod on mybb 1.4
it is working perfectly Big Grin
Find all posts by this user
Quote this message in a reply
08-06-2008, 10:02 AM
Post: #6
RE: show the icons of threads beside their subjects in main page
yes this still works

[Image: img8_1224706616c.png]
Planeta Macabro...
Find all posts by this user
Quote this message in a reply
08-19-2008, 05:10 AM (This post was last modified: 08-19-2008 05:16 AM by GG-Xtreme.)
Post: #7
RE: show the icons of threads beside their subjects in main page
This worked fine for me in 1.4, but when I updated to 1.4.1, reverted the templates, modified inc/functions_forumlist.php again and did the template modifications above, I got
Code:
Fatal error: Call to a member function read() on a non-object in /home/*****/public_html/inc/functions_forumlist.php on line 345
So I added
PHP Code:
global $cache
right above
PHP Code:
$icon_cache $cache->read("posticons"); 
(as suggested by an admon here, even though $cache is already in the global line at the top of the file as instructed in this thread), and now the error is gone, but the icons don't display. Can someone help me get this working in 1.4.1?

The Mercenary X Clan - http://mercx.exofire.net
Visit this user's website Find all posts by this user
Quote this message in a reply
09-15-2008, 08:39 AM
Post: #8
RE: show the icons of threads beside their subjects in main page
please up!
Find all posts by this user
Quote this message in a reply
09-17-2008, 11:11 AM
Post: #9
RE: show the icons of threads beside their subjects in main page
can some one make a plugin for this?

کامپیوتر اینترنت موبایل موزیک سرگرمی نرم افزار
Visit this user's website Find all posts by this user
Quote this message in a reply
10-04-2008, 10:55 PM
Post: #10
RE: show the icons of threads beside their subjects in main page
Yes please, this would be an incredible plugin !

- Proudly one year with mybb Big Grin.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: