UBB.Dev
Posted By: kaspar Different post icon for different users - 08/28/2002 11:57 PM
Hi, I have a question. I'm a long time reader of forums but it's my first time trying to set on up. Is it possible for like a thread to have a different post icon if a certain person/group posts a reply in the thread itself? I mean the boards I'm attempting to setup deals with a lot of technical issues etc etc. And I would want to have a thread to have a different icon, kinda like how sticky posts have the pushpin pic, when a someone from a certain group replys. That would eliminate a lot of speculation and wrong answers being contributed by people who do not know and just guess. Just wondering if it's possible? I'm thinking it would be a if..then statement with something or the other. but unfortunately it's beyond my skills haha

i think there is a site...bioware? or something that has something similar implemented if you don't know what I mean.
Posted By: JoshPet Re: Different post icon for different users - 08/29/2002 12:34 AM
I've done alot of hacking with the post icons and such based on file types. I bet I could easily adapt the "if" statement to check the usergroup. (he says before he looks at it ).

I'll take a look.
Posted By: kaspar Re: Different post icon for different users - 08/29/2002 1:45 AM
coolness. you wouldn't know how many people would want something like that. well..i don't haha maybe just me. But reasoning behind it is you know when too many people jump in a conversation with their two cents and you don't know who to believe. it would be cool to have a authoratative answer. thanks man.
Posted By: Aglavalin Re: Different post icon for different users - 08/29/2002 2:11 AM
Maybe you could give custom titles to those who have working brains so others know they are the correct answer posters? hehe
Posted By: JoshPet Re: Different post icon for different users - 08/29/2002 7:05 AM
I've written something up and posted it here.

It works for postlist, showflat and showthreaded.

It does NOT work for the list of replies in showthreaded view. Frankly, showthreaded.php confuses the heck outta me. So if there's anyone that can make that work, be my guest. I'm not sure that it queries the user table for those as it doesn't do the Mod/Admin flag either.

Hope that helps!
Josh
Posted By: kaspar Re: Different post icon for different users - 08/30/2002 12:17 AM
Oh yeah, I thought about that, but then somebody one time is gonna go "Uh...what does that mean." or get just ridiculously confused. Plus people like pretty picture and don't wanna read thru the entire post. Coz people are just lazy like that.

Wow, that's awesome you got to work on it so quickly. If I can learn quickly maybe I can work on it too altho I got a long way to go before even coming close to understanding what it's doing.

Posted By: JoshPet Re: Different post icon for different users - 08/30/2002 12:42 AM
If you made a graphic that said "expert" or somthting like that.. this could be adapted to appear below their username or title in the showflat and showthreaded view.... and/or even in thie profile... if that worked better than in the subject.
Posted By: kaspar Re: Different post icon for different users - 09/03/2002 10:39 PM
I finally got around to trying to implement your little hack there. And I can't find line:

// -----------------------------------------------------------
// If there is a file attachment we mark it with the disk icon
if ($file) {
$Subject = "<img src="{$config['images']}/file.gif" alt="" border="0" $imagestyle />$Subject";
}
$thisone = ",$Number,";
$alt = ".";
$newthread = "";

in the postlist.php

I was wondering am I missing something? Like another mod? or something?
Posted By: JoshPet Re: Different post icon for different users - 09/04/2002 1:41 AM
Ooooops!

My bad.... the hack WILL work with 6.0.x but I wrote it for 6.1.... but after a while I get so confused over what has been a hack for so long and what has been a standard feature that I used some code exclusive to 6.1 as a reference point.

I just tweaked the instructions.... to code that will also exist in 6.0.x and reposted here.

Haven't tested in 6.0.x though.... but it should work now. Let me know how you make out.

Josh
Posted By: kaspar Re: Different post icon for different users - 09/07/2002 1:44 AM
well, i think i'll put this mod on hold for the time being since the boards have to go public soon and I don't have time to have it going down and not working. So I'm gonna scrounge up some spare parts here and there and reimage the server onto another computer and play with the mod then. so if i mess it up, there's no big deal. Plus I really want this mod to work well.
© UBB.Developers