UBB.Dev
Posted By: DrChaos Question about threads code and links - 11/17/2004 3:33 AM
see the image below. I want to add that halo 2 image there for the group "clan members" and that group only. If theye are not marked as being in that group, they dont get the image.

I got so far as to add the image but it shows up under every member. I tried the User Group Flag mod and got the image to move to the bottom but it moves the "A" and the "M" also and it don't display the halo 2 image if they are an admin or mod.... (because they have an image already)

Im also tring to figure out how to get each one of thoose images to link to that persons stats page.

I added the halo 2 and the trophy image in ms paint, because that where I would like them to display.

Attached picture 123084-untitled.JPG
Posted By: Anno Re: Question about threads code and links - 11/17/2004 10:54 AM
What you would do:

in showflat.php you have to modify the query where all the posts are gathered from the database to include the Group each user is in. Then also modify the (list() to gather these groups to a variable.

Then, you have to make a check, whether the user is in your helo group , and whether his status is not admin or mod.

If the above conditions are met, asign a variable $postrow[$i]['Helo2image'] the image url, and then include this varaible in your showflat.tmpl file where you want the image to appear.
Posted By: dimopoulos Re: Question about threads code and links - 11/17/2004 1:57 PM
..or you can modify the existing modification to give you the information you need. The "A" graphic for the admins for instance is a <img src.... /> tag that is displayed there. All you have to do is alter the function that Josh's modification has to also contain the condition if usergroup= something then <a href="this is the new link"><img src="the new graphic"></a>

Something like that will make it work without too much tampering with the modifications. As for the stats page you will have to give a bit more information. Where is the stats information coming from? Is it a standard page where you pass the U_Number as a parameter and it shows the statistics or something else that is stored in the database?
Posted By: Twisty Re: Question about threads code and links - 11/17/2004 2:19 PM
[]Anno said:
What you would do:

in showflat.php [/]

It would also need to be done in showthreaded.php & showthreaded.tmpl, and the changes will be slightly different.
Posted By: DrChaos Re: Question about threads code and links - 11/17/2004 4:33 PM
Thanks for the pointers. Not sure but Ill give it a try.

The stats page for halo 2 and each user is on an outside link located on the bungie.net website.
Posted By: Anno Re: Question about threads code and links - 11/17/2004 8:05 PM
>It would also need to be done in showthreaded.php & showthreaded.tmpl,

Providing anybody is using the showthreaded view
Posted By: dimopoulos Re: Question about threads code and links - 11/17/2004 8:15 PM
You will be surprised
Posted By: Twisty Re: Question about threads code and links - 11/17/2004 9:14 PM
I know on my board the majority of users prefer it
Posted By: Anno Re: Question about threads code and links - 11/18/2004 12:15 AM
Really?! On our board showflat is used almost exclusively.
Posted By: Twisty Re: Question about threads code and links - 11/18/2004 1:11 AM
Code
total view <br />3282 threaded <br />171  flat <br />  
Posted By: ChAoS_dup1 Re: Question about threads code and links - 11/18/2004 12:35 PM
threaded is for more "advanced" users lol

sometimes I am lucky if my users can follow the registration instructions
Posted By: dimopoulos Re: Question about threads code and links - 11/18/2004 1:06 PM
[]ChAoS said:
sometimes I am lucky if my users can follow the registration instructions [/]
VERY VERY lucky!!!!
seriously about 10-15% of the people that sign up for my boards A) Reply to the Welcome PM. or B)Reply to the confirm Email instead of clicking the link.
© UBB.Developers