PDA

View Full Version : Dynamic forum....possible?


KingsGambit
12-14-2002, 11:00 PM
Hi all, am hoping someone might have some ideas on this idea I have for what I think might make a great hack, especially to boards where there might be "group" type accounts.
What I am thinking of is a single forum that takes the name of the logged in user but is visible to say 10 different people. For example if I log in it would be "KingsGambit Forum" or whatever the user's username is. All people of usergroupid=x can see the forum but it's their name on it, and the *only* posts they see in the forum and from the front page are those made under their login.
This way say a group of a few people who share the login can have their own private forum, but without the admin having to create one forum for each group and changing individual access masks too. Each group would see only their posts but obviously mods/admins would see all of them.
I think it would be a great idea....a dynamic forum that takes the user's name and only displays their posts, means everyone in that usergroup could have their own forum. Possible?

Graphics
12-15-2002, 08:52 AM
You might want to consider Zajako's hotel hack

Xenon
12-15-2002, 11:31 AM
Graphics is right, this would be the best idea...

KingsGambit
12-15-2002, 10:47 PM
Hmmm, that hotel hack does look good, and fairly close to my idea. I might try it anyway, but in the meantime, I've just been thinking about doing it using a forum. Admin CP let's you turn of countposts, can view others threads inside the forum, but the last post still shows up as whomever made it. What I'm thinking is something like this.

If $forumid==x AND $usergroupid=y then forum[title]="$username Forum" AND description = $username's private forum
if $username != lastposter[username] THEN don't show it anywhere

I'm just having trouble figuring out the exact php and where to put it...I think a little something in forumdisplay but maybe showthread as well?

This way there'll be a normal forum but it's name will be "KingsGambit Forum" whilst I'm logged in for example, description "KG's private forum" or whatever and even though all the other user's in same usergroup are posting in there, I don't see any of their posts at all, and they won't see mine, the post counts don't go up for that forum and everything else can be done via the CP (serach disaabled, etc). Any ideas? :ermm:

Xenon
12-16-2002, 02:43 PM
well, you have to edit index.php, forumdisplay.php and admin functions.php the makenavbar function.