1st post image next to topic title
Divvy Offline
Junior Member
**
Posts: 37
Joined: Jan 2012
Post: #1
1st post image next to topic title
Hello guys,

Can someone tell me If exists any mod that allow us to show the first image in the post at the thread list?
To show before the topic title, something like that:
http://i.imgur.com/3oDM9.png

I found this mod:
http://community.mybb.com/thread-47562-p...#pid332031

But only works for attachments... And I want to use the first image of the post [IMG] [/ IMG] (or <IMG when we use HTML in posts) without using attachments.

Can someone help me?
Thank you Smile
03-22-2012 11:28 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 483
Joined: May 2011
Post: #2
RE: 1st post image next to topic title
(11-15-2011 07:52 AM)ZiNgA BuRgA Wrote:  You can't.

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
03-22-2012 01:35 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Jumper Offline
Member
***
Posts: 75
Joined: Aug 2010
Post: #3
RE: 1st post image next to topic title
you can create a Custom Thread Field for the image-url (using XThreads). so you can display the image in threadlist. ok, you must paste the image-url a second time, but it works. Smile

or you display the pictures as a mouseover:
http://mybbhacks.zingaburga.com/showthre...41#pid9041

But no matter which way, you need to create an additional field.
03-22-2012 06:44 PM
Find all posts by this user Quote this message in a reply
Divvy Offline
Junior Member
**
Posts: 37
Joined: Jan 2012
Post: #4
RE: 1st post image next to topic title
Thank you for your replies!

Jumper, thank you mate! Can you give me detailed instructions how to make that possible please? Smile
03-22-2012 10:07 PM
Find all posts by this user Quote this message in a reply
Jumper Offline
Member
***
Posts: 75
Joined: Aug 2010
Post: #5
RE: 1st post image next to topic title
What is your preferred variant?

1. a small picture before every threadtitel like your picture or
2. a picture which you see if you go with your mouse over the threadtitel like this:
http://s14.directupload.net/images/120322/otbd93de.jpg (Demo)
03-23-2012 12:40 AM
Find all posts by this user Quote this message in a reply
Divvy Offline
Junior Member
**
Posts: 37
Joined: Jan 2012
Post: #6
RE: 1st post image next to topic title
Jumper, option 1 Smile
03-23-2012 07:17 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 483
Joined: May 2011
Post: #7
RE: 1st post image next to topic title
Just create a thread field, you can take thread description as example.

Use some regex to check if the input is a url.

In display format you insert your code and place the variable into the threadlist. Is´it no like that?

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
03-23-2012 01:21 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Jumper Offline
Member
***
Posts: 75
Joined: Aug 2010
Post: #8
RE: 1st post image next to topic title
(03-23-2012 07:17 AM)Divvy Wrote:  Jumper, option 1 Smile

use this: Thread Image Wink

i know, this is with attachment too. but it is better cause the mini thumbs are hosting on your server. if you want only using picture-url, so you must do what Sama34 wrote. create a standard thread field (without file-upload)
03-23-2012 09:26 PM
Find all posts by this user Quote this message in a reply
Divvy Offline
Junior Member
**
Posts: 37
Joined: Jan 2012
Post: #9
RE: 1st post image next to topic title
Thank you for your replies guys.

I already installed XThreads, but I don't know what to write in "Add Thread Field".
Jumper, I saw the topic that you said, but I dont know what I need to edit to work with img without using attachments.

Can you help me giving me detailed instructions please? Smile
03-23-2012 10:08 PM
Find all posts by this user Quote this message in a reply
Jumper Offline
Member
***
Posts: 75
Joined: Aug 2010
Post: #10
RE: 1st post image next to topic title
OK Smile

i have only a problem to create a new additional column for the pictures in threadlist.
i try it, but it looks terrible Biggrin
so i use the "icon" column. make the following:

create a new threadfield:

Title: Threadlistpicture
Key: t_list_pic
Applicable Forums: Select forum(s) where this will be applied
Input Field Type: Textbox
Display Format:

PHP Code:
<img src="{VALUE}" height="100%" width="100">


open template forumdisplay_thread and search for:

PHP Code:
<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>

replace with:

PHP Code:
<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$GLOBALS['threadfields']['t_list_pic']}</td>


now create a new thread and insert a directlink to a picture in the Threadlistpicture field and save the new thread. you will see your new threadlist view like this:

[Image: mwsnap03-23--2012-16_08_02-32d4798.jpg]

However, i know that it is not a 100% solution cause i use the icon-column, but perhaps another user can post what we must do to add a new column without destroying the optic Biggrin

03-24-2012 01:12 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: