I have put up another version on the test site. This is how I would do it if I had a board with lots of ranks. Makes it easier to spot the top posters.
2,902 2003-09-20 14:51
Re: About RANKINGS (46 replies, posted in Programming)
mannesan wrote:
And for ps21, m8, im gonna make ya dissapointed now, but i accidentally replaced the new zipfile (the updated one), and if it is possible just to change ranking.php back to as it was before the update!
(would like to have both versions, but only if it is possible,a dn u have the time)talk to ya later!
There is only one line of code different between the two versions of ranking.php. It is on line 8 and reads $info .= '<br>'."\n\t\t\t\t\t\t".$user_title;.
If you want to get rid of titles for mods and admins then you can simply comment it out like this //$info .= '<br>'."\n\t\t\t\t\t\t".$user_title;. Remember if you do this you also get rid of custom titles for mods and admins.
I just had a look at your board. What might look good is to have different colour stars above rank 5 i.e. Grandmasters. What I mean is for ranks 1 to 5 you get the normal blue stars say 3 bright blue stars and 2 dull blue stars. Above rank 5 you get red stars so a Grandmaster would get 5 bright blue stars plus one red star.
2,903 2003-09-20 13:11
Re: template problem (8 replies, posted in PunBB 1.2 troubleshooting)
I am working on improving and adding to the skinning guide. This looks like some stuff I could include. I forget all about changing the redirect template.
2,904 2003-09-20 12:21
Re: About RANKINGS (46 replies, posted in Programming)
Have you both got it working now.
Sorry, my hosts are upgrading their servers and because its mainly for business use they do it late at night.
The file that is there now includes a fix which allows titles for mods and admins as well as a graphic. You can use custom titles for everybody but they should still get ranked according to the number of posts they have made.
If everything worked OK then your sites should look like my test site. You can use any graphics you want as long as they fit in the column.
They only thing you can't do is to have different graphics for individual members of the same rank. For instances, if you have mods with titles of mod, supermod and ultramod they all get the same graphic because they are all moderators. I am going to have a good look at invisionbaord and phpbb to see how they handle it and then come up with v2 of this mod.
If you want it to work differently let me know, it really is very easy to change things.
2,905 2003-09-20 00:43
Re: About RANKINGS (46 replies, posted in Programming)
fly wrote:
is there any way to amkie it so it does not remove custom member titles?
Fixed, as per previous post.
2,906 2003-09-20 00:40
Re: About RANKINGS (46 replies, posted in Programming)
OK. Fixed it. Download the zip again. The only file you have to replace is ranking.php.
It is probably better this way anyway. Now you could have a graphic for mods and admins which didn't have any text in it, just a picture.
EDIT
I have now changed the graphics for admin and mod if you want to try the new ones. Having problems with the server at the moment, file is there but cannot download. I think they are upgrading.
2,907 2003-09-20 00:29
Re: About RANKINGS (46 replies, posted in Programming)
mannesan wrote:
The title dissapears tho, but this is a minor problem! It will sure be fixed somehow in the future!
Which title dissapears? The only title that should dissapear is the title for mods and admins if you use a graphic. The idea is that the graphic replaces the title. Do you mean custom titles for mods and admins like fly mentioned. If so I can easily configure it so it will show custom titles for mods and admins but will not show the title if it just says "Administrator" or "Moderator"
What about a link to your board so I can take a look.
EDIT
Took the easy way out. Put the title back for all admins and mods. I will post as soon as I have uploaded the fix.
2,908 2003-09-19 22:41
Re: About RANKINGS (46 replies, posted in Programming)
Finished, at least for testing purposes. Files and instructions here.
http://www.post21.co.uk/psfiles
Manne and others, I have included a pre-modified version of viewtopic.php if you don't want to bother with the editing yourself.
Sample graphics are included but the idea is that users will come up with their own undoubtedly superior offerings.
This is only being released for testing purposes. I will release it as a mod in the proper way shortly and post the announcement in the proper forum.
Kennel. My coding is somewhat primitive. If you have the time could you check that I haven't done anything silly. I have made it as modular as possible. There are only 11 lines of extra code in viewtopic.php everything else being done with file includes.
Improved version is currently in the planning stage which will allow options to be set through the Admin interface.
EDIT
Just to reassure everybody, this does not alter the database in any way and does not write to any files. As far as I can see the worst that could happen is you would have to re-upload viewtopic.php. If you have already made modifications to this file please be sure to back it up.
2,909 2003-09-19 02:08
Re: About RANKINGS (46 replies, posted in Programming)
mannesan wrote:
Wow, everything looks nicer, with the stars!
Its easier to keep track of who is active and who's not!
Nice work ps21, really nice!Is it complicated? it doesent seem to mess up the tabels or anything like that!
I think 5 or 6 stars should do it! if i need higher rankings, the i just swap the original stars with lets say a "red" star!
And for the admin, maybe like a crown, or something!I guess its not a problem since basically its just plain and simple images, so it could be a star or a crown, whatever, as long as its 12x12 pix!
Glad you like it.
Its fairly straightforward to set up. If you haven't edited your common.php or viewtopic.php files then I could just sent you the modified files. Let me know.
Adding extra ranks is not a problem. The way it works is to add an extra star for each rank. If you have 10 ranks you automatically get 10 stars. With admins and mods you get the choice of using a graphic which replaces the stars and the text label. If the graphic is not present on your system then mods get one star more than the highest rank and admins get two extra.
The maximum number of graphics files you need is 4. First is a bright star, second is a dull star, third and fourth are the graphics for admins and mods. You can of course use any image you like so long as the files are named correctly. You are not restricted to a 12x12 image. The images can be as large or as small as you like. If you have too many stars then they will simply wrap to a new line.
I have altered the test board so you can see the final version. Admin and Mod graphics come courtesy of IBPlanet.
P.S. I found some yellow stars if thats what you want.
P.P.S. Now all I have to do is wrap it up as a mod. Better download the mod GDK and submit it for testing.
P.P.P.S. Anybody want team icons and a way to set all this through Admin/Ranks?
2,910 2003-09-18 20:21
Re: Edit main forum url from file but not from web :/ (9 replies, posted in PunBB 1.2 troubleshooting)
As far as I know the value of the base url is stored in the options table of the PunBB database not in a file. The short answer is to alter it just edit the database entry.
2,911 2003-09-18 19:46
Re: About RANKINGS (46 replies, posted in Programming)
Kennel wrote:
One thing. I think there's just a little too much whitespace between the stars. Am I right?
The space between the stars is not set in the code. There is no spacing in the code at all. The spacing is in the graphic. In this case it is a 12px star positioned at the bottom left of a 15px transparent background. I have done it this way so users can just do their own graphics to suit. I have now modified the graphic so it is a 12px star on a 12px wide backround. You are right, it does look better.
2,912 2003-09-18 17:22
Re: About RANKINGS (46 replies, posted in Programming)
Just tidied it up a bit. And before you ask mannesan, yes I can do the stars in yellow.
I don't claim credit for the graphics, I used that well know web designing technique known as surf 'n' steal.
2,913 2003-09-18 15:55
Re: About RANKINGS (46 replies, posted in Programming)
Piggymon wrote:
And due to IE we won't be able to use stars, but squares. Fuck you IE and your useless PNG support.
So use GIF or JPG.
BTW. I just realised this could be done without using graphics at all which would be more in keeping with the design ethos of PunBB. No stars of course.
2,914 2003-09-18 10:41
Re: About RANKINGS (46 replies, posted in Programming)
fly wrote:
i think you should make it an option to use oen image that would say like "admin" or "mod"
Good idea. It could have something like a silver bar for mods and a gold bar for admins. It doesn't actually have any options at all apart from adapting itself to the number of ranks or the users own images. I wanted to avoid altering any of the admin php files. I suppose I could change it so it will look for a special graphic file for admins and mods and default to my method if it can't find one.
2,915 2003-09-18 10:18
Re: About RANKINGS (46 replies, posted in Programming)
mannesan wrote:
Well, the example ps21 did is just EXACTLY what i am looking for!!
(i assume u got my "more detailed" mail, lol)How do i incorporate these images in the rankings?
I still have a little work to do on it. I will email you with instructions as soon as it is completely finished. You should replace my test graphics with your own though if you want to it look good.
2,916 2003-09-18 01:36
Re: About RANKINGS (46 replies, posted in Programming)
Kennel wrote:
That would have to be in the form of a mod. Anyone?
I had a go at this. I put a test board up at http://www.post21.co.uk/forum
Excuse the rubbish graphics, they were for test purposes only. I must admit, not knowing any php did make it a little difficult
2,917 2003-09-14 22:25
Re: How to make an SQL Database (7 replies, posted in Programming)
What server, Apache I hope. Is it a Windows machine? Do you already have php installed? Reason I am asking is that there are some pretty good online tutorials I know of but it depends on your setup.
2,918 2003-09-14 21:32
Re: How to make an SQL Database (7 replies, posted in Programming)
Its http://www.mysql.com (not .net)
Were you actually asking about making an sql database on your own pc or on your IP's server?
2,919 2003-09-13 23:33
Re: I nearly allways get "could not fetch topic list" (26 replies, posted in PunBB 1.2 troubleshooting)
Codeshack forum works fine for me. I checked it out just after I saw the post and it was fine then too.
2,920 2003-09-13 16:16
Re: Project Hewitt (8 replies, posted in PunBB 1.2 show off)
Nice job. Its looking pretty slick now.
2,921 2003-09-13 12:12
Re: Project Hewitt (8 replies, posted in PunBB 1.2 show off)
Hewitt wrote:
Very nice work ps21! Okay, did you just put the entire board in a table and set some fixed widths? I'm kind of assuming you did. By the way, thanks for the guide on skinning for PunBB, I had never done any work on forums before and it helped a lot!
Here it is, its a bit rough and ready so you may have to tidy up the coding a bit.
http://www.post21.co.uk/files/hewitt.zip
2,922 2003-09-13 02:05
Re: Project Hewitt (8 replies, posted in PunBB 1.2 show off)
Nice. If you want it to blend with your site you could do this.
2,923 2003-09-12 23:20
Re: Recent Posts (10 replies, posted in Feature requests)
What I was thinking of was something like "Todays Posts". It would just show the posts made in the last 24 hours. It would work exactly the same as Show Posts Since Last Visit but would work for people not logged in, new users, people who always delete their cookies and people surfing the board away from the regular PC i.e the PC that has the cookie on it.
There is also a more complicated system you see on some boards which allows you to limit the visible posts to the last days, 10 days, 20 days etc via a dropdown list.
2,924 2003-09-12 22:44
Re: Netscape is bad news (7 replies, posted in PunBB 1.2 troubleshooting)
Kennel wrote:
ps21: IE5.* is no problem. I've also tried the most popular browsers for MacOS X (Safari, IE and Mozilla) and although it looks a bit different (specifically when it comes to fonts), there are no "issues" worth noting.
Thats good to know. I am of the school of thought that thinks people using version 4 browsers should be given a quick redirect and instructions on how to upgrade. Trying to make anything compatible with all versions of browsers just increases the size of html and seriously limits the effectiveness of CSS. Interestingly I noticed that the latest incarnation of Invision Board which is standards compliant (unlike version 1.1) has problems with old browsers.
2,925 2003-09-12 22:39
Re: Netscape is bad news (7 replies, posted in PunBB 1.2 troubleshooting)
Hewitt wrote:
Hmmm...my Netscape is old so that may be the culprit. However, I still prefer Opera over the competition.
Old Netscape is always a problem. I was wondering who the 0.08% of surfers still using NS4 were. Now I know.