Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2008-12-27 02:47:50

st1cky1cky
Member
Registered: 2008-12-27
Posts: 14

Rank as picture :D [[ its all rigged up rofl. ]]

Alright so i was determined to get a picture as my rank!
Haha so i rigged up my forum title as the picture's location such as: admin.jpg is what i will now type in for the title instead of admin

Okay so here is how you do it.

Open Viewtopic.php in the public html folder.

Find:

<?php echo $user_title ?>

Now then make that into these simple modifications or replace it w/e you want:

<?php echo '<img src="http://yourwebsite.com/images/'.$user_title.'">

Now NOTICE you must replace yourwebsite.com with yourwebsite URL.... Lol okay and dont forget to replace the /images directory with the one you plan on to put all the pictures of the ranks in and if you do replace the images directory make sure you have the directory made that your saying you do say you change images to /ranks and you dont got that directory well it wont work lol..

Go to the directory where you plan to put the ranks and right click on it CHMOD it to 777 so it works right.

Now after its all replaced etc.. etc.. save and exit now that was a easy modification ey?

Now here comes the rigged up part lol go into your administrator panel on your FluxBB board and go into User Groups now listen close.

Once your in the user group leave the Group title alone just edit the User Title to what the image is loaded up as in your directory.

Say your image is admin.jpg

write in the User Title area admin.jpg then press save and go check it out!

Heres a pic of proof:

2197v4.jpg

enjoy rofl.

NOTE: Remember this modification towards the ranks is only used for ranks like admin, mod, other special ranks. Its not for just regular ranks. Although im about to make one for regular.

Last edited by st1cky1cky (2008-12-27 02:59:33)


www.pixel2gether.com <- full functioning rank system, fun competitions, and open positions! Check it out.

Offline

#2 2008-12-27 03:20:35

st1cky1cky
Member
Registered: 2008-12-27
Posts: 14

Re: Rank as picture :D [[ its all rigged up rofl. ]]

Things i plan to try to fix on it, although i have no idea what im doing in PHP very well but im managing hah =]

Things to do
1. User list ( title shows up as location [[ image.jpg ]] )
2. I'd like to be able to add a uploader into the admin panel just for the directory you choose.
3. Make all ranks images not just special ones like admin , etc..
4. Make multiple rank options.

Well before i get too far ahead of my self i might need your guy's help. So if im having trouble ill need some help.

Well have fun and mess around with what i have so far.


www.pixel2gether.com <- full functioning rank system, fun competitions, and open positions! Check it out.

Offline

#3 2008-12-27 13:55:50

MattF
Member
From: South Yorkshire, England
Registered: 2008-05-06
Posts: 1,233
Website

Re: Rank as picture :D [[ its all rigged up rofl. ]]

You can more easily achieve the same result by altering the admin/mod titles in the langfile, and placing the image link there. smile Your method above will throw a wobbler where no image is specified. smile

Last edited by MattF (2008-12-27 13:56:10)


Screw the chavs and God save the Queen!

Offline

#4 2008-12-27 13:58:04

Smartys
Former Developer
Registered: 2008-04-27
Posts: 3,139
Website

Re: Rank as picture :D [[ its all rigged up rofl. ]]

Or by altering the function that generates titles to allow HTML for custom group titles wink

Offline

#5 2008-12-27 15:36:13

Gotipe
Member
Registered: 2008-05-10
Posts: 181

Re: Rank as picture :D [[ its all rigged up rofl. ]]

Someone who read my dreams? Well, maybe exaggerating but I really want ranks as titles. But I won't do anything 'til there is a clearly stated way of not just changing user group specific ranks but your own as well. ^^
It would ofc be nice to type in HTML code in the rank-thing in admin panel, but I am sorry to have to say this to you all: I am not God. sad

Offline

#6 2008-12-27 16:21:02

st1cky1cky
Member
Registered: 2008-12-27
Posts: 14

Re: Rank as picture :D [[ its all rigged up rofl. ]]

Well i do not know PHP very well i was just trying to get some type of way to have a rank as an image.

So i succeeded in doing so by rigging it all up haha.
But im sure there will be a better way eventually.


www.pixel2gether.com <- full functioning rank system, fun competitions, and open positions! Check it out.

Offline

#7 2009-01-02 20:10:59

st1cky1cky
Member
Registered: 2008-12-27
Posts: 14

Re: Rank as picture :D [[ its all rigged up rofl. ]]

i figured out if you set the ranks as image.jpg or w/e instead of Member it will also grab the image from the directory so you can do special group ranks, and ranks with this =] its not the best way but it does work.


www.pixel2gether.com <- full functioning rank system, fun competitions, and open positions! Check it out.

Offline

#8 2009-02-21 10:03:48

analogbernd
Member
Registered: 2009-02-14
Posts: 26
Website

Re: Rank as picture :D [[ its all rigged up rofl. ]]

What I have to do for set rank as word AND picture? I have create ten ranks. Below of the rank I would like to have a picture. Whats the right code?

Many thanks

Offline

#9 2011-01-24 06:12:27

st1cky1cky
Member
Registered: 2008-12-27
Posts: 14

Re: Rank as picture :D [[ its all rigged up rofl. ]]

Wow i just re-discovered this, very old has anyone came up with a better rank system yet? Lol


www.pixel2gether.com <- full functioning rank system, fun competitions, and open positions! Check it out.

Offline

#10 2011-01-24 08:00:09

analogbernd
Member
Registered: 2009-02-14
Posts: 26
Website

Re: Rank as picture :D [[ its all rigged up rofl. ]]

What you meaning?

Offline

#11 2011-11-27 18:18:12

Soimul
Member
Registered: 2011-11-20
Posts: 1

Re: Rank as picture :D [[ its all rigged up rofl. ]]

Hello!!
I tried to change but does not work.
Is it because of the versions?

Offline

#12 2011-11-28 14:11:14

Spiky
Member
From: France
Registered: 2009-08-31
Posts: 55

Re: Rank as picture :D [[ its all rigged up rofl. ]]

Offline

#13 2011-11-28 17:18:35

adaur
Developer
From: France
Registered: 2010-01-07
Posts: 843
Website

Re: Rank as picture :D [[ its all rigged up rofl. ]]

I got a simpler solution smile

<?php if (file_exists(get_base_url().'img/groups/'.$cur_post['g_id'].'.png')) echo '<dd class="postavatar"><img src="'.get_base_url().'img/groups/'.$cur_post['g_id'].'.png"></dd>'; ?>

You have to upload 1.png to /img/groups/ for admin image and you're done wink


FeatherBB - A simple and lightweight new generation forum system
Based on FluxBB, written in PHP, using Slim Framework for a proper OOP-MVC architecture.

Offline

#14 2011-11-28 20:09:58

053+
Member
From: West London, GB
Registered: 2011-02-08
Posts: 205

Re: Rank as picture :D [[ its all rigged up rofl. ]]

Elaborate adaur, please! smile


New project coming 2013. Graphic designer & (amateur) web developer.
Got a CSS question? I'll do my best to help!

Offline

#15 2011-11-29 16:26:22

adaur
Developer
From: France
Registered: 2010-01-07
Posts: 843
Website

Re: Rank as picture :D [[ its all rigged up rofl. ]]

053+ wrote:

Elaborate adaur, please! smile

What do you mean ? There's nothing more to say.


FeatherBB - A simple and lightweight new generation forum system
Based on FluxBB, written in PHP, using Slim Framework for a proper OOP-MVC architecture.

Offline

#16 2011-11-29 16:43:48

053+
Member
From: West London, GB
Registered: 2011-02-08
Posts: 205

Re: Rank as picture :D [[ its all rigged up rofl. ]]

Like, where that code goes? smile


New project coming 2013. Graphic designer & (amateur) web developer.
Got a CSS question? I'll do my best to help!

Offline

#17 2011-11-29 17:57:06

adaur
Developer
From: France
Registered: 2010-01-07
Posts: 843
Website

Re: Rank as picture :D [[ its all rigged up rofl. ]]

After

<dd class="usertitle"><strong><?php echo $user_title ?></strong></dd>

Use get_base_url() if you're running 1.4 only


FeatherBB - A simple and lightweight new generation forum system
Based on FluxBB, written in PHP, using Slim Framework for a proper OOP-MVC architecture.

Offline

#18 2011-11-29 23:24:24

053+
Member
From: West London, GB
Registered: 2011-02-08
Posts: 205

Re: Rank as picture :D [[ its all rigged up rofl. ]]

Oh right, i see.

Some simple explaining helped a lot there smile


New project coming 2013. Graphic designer & (amateur) web developer.
Got a CSS question? I'll do my best to help!

Offline

Board footer

Powered by FluxBB