MyBB Community Forums

Full Version: problem on new posts page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I Made
this forum page
showing new threads from the whole forum but i want to show a forum image for each forum thread on this page instead of the author's avatar...

how can i do this?
newposts.php file is not from the default MyBB. is it from a plugin or from where you got it (is it coded by Lee ?)
(2013-07-03, 02:22 PM).m. Wrote: [ -> ]newposts.php file is not from the default MyBB. is it from a plugin or from where you got it (is it coded by Lee ?)

its from this thread
Create an image per forum and put it in the images folder. Give the image name the exact name of the forum.

Then, use the $thread['forumname'] variable as a png.

like this:

<img src="images/{$thread['forumname']}.png" />
where i have to put the code?
^ find below code in newposts_latestthreads_thread template (near the top)
<img src="{$thread['avatar']}" alt="" title="" width="45px" height="45px" />
replace with the code given by Lee (add width, height .. etc if required)
<img src="images/{$thread['forumname']}.png" />
(2013-07-04, 04:49 PM).m. Wrote: [ -> ]^ find below code in newposts_latestthreads_thread template (near the top)
<img src="{$thread['avatar']}" alt="" title="" width="45px" height="45px" />
replace with the code given by Lee (add width, height .. etc if required)
<img src="images/{$thread['forumname']}.png" />


i tried but it shows broken image
have you followed what Lee said in post #4
Quote:Create an image per forum and put it in the images folder. Give the image name the exact name of the forum.
(2013-07-04, 05:23 PM).m. Wrote: [ -> ]have you followed what Lee said in post #4
Quote:Create an image per forum and put it in the images folder. Give the image name the exact name of the forum.

yes i did this exactly....but with 2 of my forums to test it first...

by the name of the forum u mean the name tha i gave not the one shown in the adress bar(
http://4stoixeia.freeiz.com/forumdisplay.php?fid=3
)
^ No. for example, if you have a forum with name "computer tutorials" then its image should be computer tutorials.png
Pages: 1 2