The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
I want an extra rank image added for admins as part of the galaga shiled ranking hack. I thought it would be simple enough for my limited PHP knowledge but I got stuck anyway.
Here is what I have in showthread.php PHP Code:
Thanks |
#2
|
|||
|
|||
Nevermind..finally figured it out
|
#3
|
||||
|
||||
I would like to be able to display an images for each different rank I have on my board.
Maybe a variation of what you did would allow me do to this. Are you willing to share your knowledge about this? |
#4
|
|||
|
|||
It sound like what you are looking to do is the Star Hack, just replace the star images with whatever images you like.
My users prefer the Galaga ranking system because the image ranking changes every 10 posts they make. They just love that stuff. This hack is also a little easier to install I think. It only requires one change in showthread.php and no database changes. What I did is add a mod shield before the actual ranking shields. change: PHP Code:
PHP Code:
|
#5
|
||||
|
||||
The star hack only lets you add multiples of 1 image.
I want to have a unique image for each different ranking on my board. I was able to do this on phpBB. Not that I am trying to compare the two of them, obviously VB is better, but I would still like to be able to do something like this. |
#6
|
|||
|
|||
Prez: I'm pretty sure you can do that with the star hack
I could be wrong, but in the admin cp you have to type in the image name and the number of posts required to meet that image name |
#7
|
||||
|
||||
I tried installing the Stars hack, and it caused some kind of problem in my database, so I had to revert back, and have decided not to use the hack. I am pretty sure I followed the instructions to the letter, and don't have the knowledge to trouble shoot it when something like that doesn't work.
I am certainly no expert when it comes to this stuff, but it sounds like Castel's version could be adapted to what I want to do, but I don't know how to do it. Maybe an additional custom template that could be called from the right point in showthread.php to get the images to display that I would like to add. Currently I have 11 different user titles that I would like to have an additional graphic file associated with. The difference in what he has implemented, and the way the user titles are obtained on my board is that he has it change on every 10 posts, and mine gets progressively harder to obtain a higher rank, so I don't think the division process would work for me. |
#8
|
|||
|
|||
I think this will do exactly what you are looking for. Save your original showthread.php because I am very new to PHP. But it seems to work fine on my test board.
In showthread.php find : PHP Code:
PHP Code:
You mentioned you have 11 user titles so you will need to add more elseif routines and change the number of posts in this example to fit your forum title settings. |
#9
|
||||
|
||||
OK, here is what I did so far, but I will add a couple questions afterwards.
PHP Code:
Also, there might be the rare case that I would want to give someone a custom rank, and maybe have a custom graphic associated with that and over ride this mathematical part of it. Is it possible to relate the graphics to the user title rather then how many posts they have? Thank you so much for the help, you are awesome. |
#10
|
|||
|
|||
Quote:
l8r) Ludikraut (aka SauerChoke) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|