TinyPortal

General => Chit chat => Topic started by: fenris_w0lf on January 26, 2006, 05:57:59 PM

Title: Modifying "Poster Information"
Post by: fenris_w0lf on January 26, 2006, 05:57:59 PM
I notice you here on these forums have something called "Karma". Is this a mod or included in some newer version of TP than 0.75 (which I'm using)?

It would be nice to have a "feature" in TP where you could add/remove fields (even custom ones) in TPAdmin...but anyways, if this is not the case for 0.75; I have a few "user-defined" fields in my members table in the database, and I'm looking into getting some of these fields to display in the poster info-box. What files are involved in such a modification ?
Title: Re: Modifying "Poster Information"
Post by: Rasyr on January 26, 2006, 06:10:34 PM
Karma is actually part of SMF itself. In SMF 1.1 RC1, go into Admin, and then to Features and Settings and scroll down to the bottom of the page, and you will find the settings for Karma.

On my own forums, I changed Karma to "Laugh Points" and "Idea Points", though this required me to make changes to both Display.template. php and PersonalMessages.template.php to display properly.

To get your extra fields to show in the poster info section, this is where you will want to make changes (open those files and do a search for the word Karma to see how they do it).

However, you will most likely need to make a change to one or more of the source files, so that the initial queries pull your additional information without having to make a lot of extra queries to the DB.



Title: Re: Modifying "Poster Information"
Post by: fenris_w0lf on January 26, 2006, 07:08:05 PM
I just sent you a PM Rasyr hoping to have a look at the modifications you've done to those two files. :)
Title: Re: Modifying "Poster Information"
Post by: fenris_w0lf on January 26, 2006, 11:20:28 PM
Seems this will be a hard jump..err...dive? into php-coding, I'll have to wait a while to find time to do this, but thanks a lot Rasyr!! for helping :) (I received the files)
Title: Re: Modifying "Poster Information"
Post by: bloc on January 27, 2006, 10:11:16 AM
Just changing the names of karma, "smite" etc..it should be neough to only change the language files..but for more fields in profile its required to change the tempalte. But - that too is geared against being able to simply add fileds, and they will both show and save. [unknown] ad a small tutorial for this.

This only happens in template files, meaning source files stay untouched.

On another note..I would like a extended profile page for TP, it will enhance the "community" aspect. Whether it should be for the SMF profile or as a "TP profile" I am not sure..but it should be reachable from profile page anyhow.
Title: Re: Modifying "Poster Information"
Post by: fenris_w0lf on January 27, 2006, 01:36:42 PM
Quote from: Bloc on January 27, 2006, 10:11:16 AM
[unknown] ad a small tutorial for this.

I tried to search but didnt find this article, anyone got url to it ?

Would it be hard to "redo" the "poster info" to work more like the blocks do ? This would enable the forum admins to tweak the look of it *so* much easier....