Can HOME link be set to go to a home category? Can HOME link be set to go to a home category?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Can HOME link be set to go to a home category?

Started by Gerdofal, June 16, 2006, 05:37:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gerdofal

Greetings,

Is there a way to assign a home category to a user and have their home link go to that category top instead of the default home?

Thanks!

Sami

you need to modify theme.php ,
what do you realy want?
- a link to one category for all users?
- or a link to one category for each user?
‍I don't answer to PM with support question
Please post your issue to related board

Gerdofal

A link to one category per user group really.  Group 1 has a home in category A, Group 2 has a home in category B... etc.

I know I can set everyone's home to a category by messing with the config, but I need them different.

Thanks

Sami

it's need some php experience
let's face it :
- first you need to find user's group:
query xxx_session for user_id then query xxx_users with that id for user_group okey now you have group number of user
- now you should bind the category to that user:
I think you need a new table here to define which group goes for wich category , so you have group number just query this new table for category with that group number
- and finaly you need to deal with theme.php functions to show the thumbnails

sorry at this time I don't have much time to give you clear view
Actualy Paver are specialist in this issue ;)
‍I don't answer to PM with support question
Please post your issue to related board

Gerdofal

Thanks.  I know PHP and SQL... just have to figure out the table structure here.  Hmm..

Paver

Ok, it seemed like an interesting project, so here's a plugin to set the home category for each group.

Sami

Great
You see Paver is the man :)
nothing can stop him
Karma ++
‍I don't answer to PM with support question
Please post your issue to related board

Gerdofal


Joachim Müller


Gerdofal

Yes, thank you.  I installed the update and it works perfectly.

(Sorry for taking so long to reply, I was out of town.)