Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Can HOME link be set to go to a home category?  (Read 11565 times)

0 Members and 1 Guest are viewing this topic.

Gerdofal

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Can HOME link be set to go to a home category?
« on: June 16, 2006, 05:37:47 am »

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!
« Last Edit: June 26, 2006, 07:23:39 am by Paver »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Can HOME link be set to go to a home category?
« Reply #1 on: June 16, 2006, 08:42:21 am »

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?
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Gerdofal

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Can HOME link be set to go to a home category?
« Reply #2 on: June 16, 2006, 02:47:09 pm »

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
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Can HOME link be set to go to a home category?
« Reply #3 on: June 16, 2006, 03:55:41 pm »

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 ;)
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Gerdofal

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Can HOME link be set to go to a home category?
« Reply #4 on: June 16, 2006, 06:05:15 pm »

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

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Can HOME link be set to go to a home category?
« Reply #5 on: June 17, 2006, 04:38:05 am »

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

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Can HOME link be set to go to a home category?
« Reply #6 on: June 17, 2006, 07:30:57 am »

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

Gerdofal

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Can HOME link be set to go to a home category?
« Reply #7 on: June 18, 2006, 05:23:06 pm »

Thanks :)  I appreciate that.

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Can HOME link be set to go to a home category?
« Reply #8 on: June 19, 2006, 07:40:02 am »

Issue solved then?
Logged

Gerdofal

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Can HOME link be set to go to a home category?
« Reply #9 on: June 26, 2006, 07:17:50 am »

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

(Sorry for taking so long to reply, I was out of town.)
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 20 queries.