[SNIPPET] Forum Image displayed on viewforum

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

[SNIPPET] Forum Image displayed on viewforum

Post by Stoker »

Display the forum image on forum view.
By default you are only able to view it on forum index.

Open includes/functions_display.php
Find:

Code: Select all

	$template->assign_vars(array(
		'FORUM_ID' 		=> $forum_data['forum_id'],
		'FORUM_NAME'	=> $forum_data['forum_name'],
Add after:

Code: Select all

		'FORUM_IMAGE'	=> $forum_data['forum_image'],
Open styles/prosilver/template/viewforum_body.html
Find:

Code: Select all

<h2><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></h2>
Add after:

Code: Select all

<!-- IF FORUM_IMAGE --><div  style="float:left; padding-right:8px;"><img src="{ROOTH_PATH}{FORUM_IMAGE}" alt="{FORUM_NAME}" /></div><!-- ENDIF -->
Find:

Code: Select all

<!-- IF S_FORUM_RULES -->
Add before:

Code: Select all

<!-- IF FORUM_IMAGE -->
<div style="clear:both;"></div>
<!-- ENDIF -->
Screenshot:
forum-image.png
You do not have the required permissions to view the files attached to this post.

Re: [SNIPPET] Forum Image displayed on viewforum

Post by kevinviet »

Thanks for the Snippet Stoker, After added all the codes but some how my is a little different with your demo picture. It's the same line with new post button. How do i adjust the image above the new post button ?
image error.jpg
You do not have the required permissions to view the files attached to this post.

Re: [SNIPPET] Forum Image displayed on viewforum

Post by Stoker »

I made a mistake in the instructions.
The last edit is Ad BEFORE and not ad after.

Re: [SNIPPET] Forum Image displayed on viewforum

Post by kevinviet »

Ok great, i have the image corrected, but how come the words description of that forum is not show up ? :?

Thanks Stoker

Re: [SNIPPET] Forum Image displayed on viewforum

Post by Stoker »

It has nothing to do with the snippet.
But take a look at the file and read the comments in the file.

Re: [SNIPPET] Forum Image displayed on viewforum

Post by kevinviet »

Thank you master :thumb: Got it :D

[SNIPPET] Forum Image displayed on viewforum

Post by Blackwolf »

Thanks Stoker......looks cool 8-)

[SNIPPET] Forum Image displayed on viewforum

Post by Martin_K »

Thanks Stoker .. just spotted this! Helps provide more visual clues as to where you are!

[SNIPPET] Forum Image displayed on viewforum

Post by SiLeNcE »

Thank you stoker, cool