#55199
01/14/2003 7:38 PM
|
Joined: Jan 2002
Posts: 39
Member
|
Member
Joined: Jan 2002
Posts: 39 |
I was wondering if anyone knew how to do this in 6.4. This used to be handled in public_topic_page.pl and public_forum_page.pl by the following code in older versions: [code][/code]That was from 6.1 and I'm sure quite a lot of code has changed since then. I'd like to be able to have the VIP names displayed in a different color and bold or italicized on topic pages, the forum page for topic starter and last replier, and in the Recent Visitor's list if possible. Thanks for any help!
|
|
|
#55200
01/29/2003 1:25 AM
|
Joined: Jan 2002
Posts: 39
Member
|
Member
Joined: Jan 2002
Posts: 39 |
Bumping this after no answers for a few weeks. Anyone know how to do this? 
|
|
|
#55201
01/29/2003 4:06 AM
|
Joined: Jul 2002
Posts: 9
Junior Member
|
Junior Member
Joined: Jul 2002
Posts: 9 |
We added colortags in User Titles :
junior shooter shooter senior shooter hard shooter extreme shooter
|
|
|
#55202
01/29/2003 1:36 PM
|
Joined: Jan 2002
Posts: 39
Member
|
Member
Joined: Jan 2002
Posts: 39 |
Thanks for the reply, OcShoot.
That is an idea, but I'd like to be able to specify certain members, not groups of members dependent on their rank or admin/mod title.
I run a board on the game, Age of Mythology, and we frequently get developers from the company that made the game, Ensemble Studios. They don't post enough to get mod status, but it's ideal to have their names stand out in the topic pages and forum listings so people can find their posts easily.
I know how to go about doing this, it's just that I don't have enough knowledge about version 6.4 to call lines from the profile. "$user_profile[0]" used to work in 6.1 and 6.2, though it doesn't seem to in 6.4.
|
|
|
#55203
01/29/2003 10:01 PM
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
I don't quite understand "VIP_NAME"? Will you be substituting that with the user's display name or is "VIP" taken from another hack?
|
|
|
#55204
01/29/2003 10:10 PM
|
Joined: Jan 2002
Posts: 39
Member
|
Member
Joined: Jan 2002
Posts: 39 |
Hey Prime, no, what I meant was that I want to choose a single member, a very important person on the board, tell the UBB to single him/her out, and have his/her name show up in a different color when he/she posts. The "VIP_NAME" waas just a variable name filler... I should be able to put any user's name in there. There's no substitution, rather a simple if block that tests whether or not it is that user posting. I know how to set up the if statement, but what I don't know is what variable name to use to call the user's name field in the profile. I guess it could also be done by checking their member number. Take for example, this thread . Scroll down to the fourth reply and you'll see that I changed the name for the VIP, named "matty", to blue. This was done in 6.1.x using the code above in my original post. I've tried it with 6.4 and it doesn't work. 
|
|
|
#55205
01/29/2003 11:58 PM
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
I don't know if this code is correct in syntax but seems to work without a glitch. In public_topic_page.pl find: [/code]and after add:
</pre></div></div>Now take this code:<br><br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre> and place it where you want the user's color to be displayed. The "ff0000" can be changed to whatever color you want. It should look something like:
</pre></div></div>In place of "VIP_NAME" post the user's public display name. Now this only allows you to put one name but if you wish to add more do this:<br><br> [code] Now you should be able to add 2 names. To add more just look at the code and copy and paste.
I tested it so it should work on 6.4 versions. Let me know how it goes. 
|
|
|
#55206
01/30/2003 12:00 AM
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
If this works then placing it in the "last reply" and "recent visitors" shouldn't be hard. Just let me know. What actually might be more practical if you were to install just a portion on the Font Hack (color only) then make the custom profile field optional in the Registration Settings via CP. To prevent users from entering their own color code you can edit out the custom profile filed bit in the public_register_form.pl, public_register_confirm.pl and public_edit_profile.pl files. Then to set your VIP user colors go into CP and enter the color code of your choice in each member's properties. I did that before as well as with their avatars...Very effective. 
|
|
|
#55207
01/30/2003 12:43 AM
|
Joined: Jan 2002
Posts: 39
Member
|
Member
Joined: Jan 2002
Posts: 39 |
Thanks a ton Prime! I'll go try this out and let you know. Edit: Worked like a charm.  Thanks again, Prime, I appreciate it.
|
|
|
#55208
01/30/2003 3:14 AM
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
Cool. 
|
|
|
#55209
01/30/2003 3:28 AM
|
Joined: Apr 2001
Posts: 103
Member
|
Member
Joined: Apr 2001
Posts: 103 |
Why not make it as a hack PrimeTime? I'd like to have it too, with the possibility that you can add names in CP. (Including avatars  )
Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats.
|
|
|
#55210
01/30/2003 5:07 AM
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
quote: Originally posted by Saxeus: Why not make it as a hack PrimeTime? Because I'm not a coder.  Although I consider myself a template editor. Hmm...It would be an interesting hack though. Something in the mix of Font Hack, Team Image Hack and Custom Status Hack (all 3 combined).
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|