Jump to content
xisto Community
Sign in to follow this  
Senor_Grunt

Phpbb3 Mod's Help.

Recommended Posts

I wanted to make a mod for my forums, that puts an emblem under a user's avatar and name. Like this:

 

Posted Image

 

I wanted to know if anyone had any basic tuts on something like this, or something exactly related to this. If anyone wants to just do it for me, you can send me a PM. But I'd rather do it on my own.

Share this post


Link to post
Share on other sites

Before editing the file, please make a copy of all files !

Open viewtopic_body.html from [phpBB-dir]/styles/prosilver/template

then,

FIND <!-- IF postrow.POSTER_FROM

AFTER ADD,

anythings you would like to appear on the user profile section.
Note that you may need to adjust the position up or down to suite your need.

Save all files and login to phpBB forum.
Then, goto administration index page.
Click the Purge the cache button.

Repeat above steps to adjust positions, styles ... etc.

---

Yout may optional include your new template data from external file
by using <!-- INCLUDE xxxxxxx.html -->

e.g.

Create a file named say usermorepic.html and add any html tags you like to appear on the user
profile section.

Then, save it under the same directory as viewtopic_body.html.

Open the viewtopic_body file again and search for a location you like to add the above new code.
for instance,

<!-- IF postrow.POSTER_FROM --><dd><strong>{L_LOCATION}:</strong> {postrow.POSTER_FROM}</dd><!-- ENDIF --><!-- INCLUDE usermorepic.html -->

done.

To save time when editing template files without manually clear cache.
Go to Administration console and enable recompile template when change occurs.
Admin -> General ->Load Settings -> Recompile stale style components -> yes

done.
Edited by magiccode9 (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.