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
Post
by Stoker » 11 Jun 2011, 09:49
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:
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.
Post
by kevinviet » 12 Jun 2011, 00:56
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.
Post
by Stoker » 12 Jun 2011, 04:01
I made a mistake in the instructions.
The last edit is Ad BEFORE and not ad after.
Post
by kevinviet » 12 Jun 2011, 06:09
Ok great, i have the image corrected, but how come the words description of that forum is not show up ?
Thanks Stoker
Post
by Stoker » 12 Jun 2011, 06:15
It has nothing to do with the snippet.
But take a look at the file and read the comments in the file.
Post
by kevinviet » 12 Jun 2011, 07:56
Thank you master
Got it
Post
by Blackwolf » 25 Sep 2011, 02:05
Thanks
Stoker ......looks cool
Post
by Martin_K » 26 Sep 2011, 01:46
Thanks Stoker .. just spotted this! Helps provide more visual clues as to where you are!
Post
by SiLeNcE » 25 Aug 2014, 12:32
Thank you stoker, cool