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: comment notification options when bridged  (Read 11254 times)

0 Members and 1 Guest are viewing this topic.

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
comment notification options when bridged
« on: November 10, 2006, 02:50:56 pm »

I was wandering if there is any way of being able to specify the two options:

Automatically subscribe to images you have uploaded

Automatically subscribe to comments you have made

These two options are usually found in the coppermine profile page when the modpack is installed but are lost when you bridge coppermine.

I am persoanlly bridged with punbb but I think it is the same for smf and phpbb.

Is there a way of using these two options while bridged, ideally they would be added to the subsciption manager?

Cheers Nick
« Last Edit: November 15, 2006, 05:08:28 pm by Stramm »
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: comment notification options when bridged
« Reply #1 on: November 10, 2006, 03:03:59 pm »

you're dependent on the forums user table. If the bbs offers more sophisticated settings like phpbb it's easy (and already implemented). The user_notify column triggers both events

For punbb it's implemented too but here the column email_setting triggers notify, auto_subscribe_post, auto_subscribe_comment
In SMF it's the column notifyAnnouncements

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
Re: comment notification options when bridged
« Reply #2 on: November 10, 2006, 04:49:37 pm »

ok I think I understand, is the column email_setting controlled via the privacy settings in punbb profile page:

Display your e-mail address.
Hide your e-mail address but allow form e-mail.
Hide your e-mail address and disallow form e-mail.

so you have to have it on "hide e-mail address but allow but allow form email."

and this turns on the 3 notify options of your modpack?
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: comment notification options when bridged
« Reply #3 on: November 10, 2006, 06:36:45 pm »

yes

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
Re: comment notification options when bridged
« Reply #4 on: November 11, 2006, 02:20:06 pm »

is there a way of adding a new column to the punbb database entries and then add a new switch that is specific to notifiaction in the punbb profile.

It would be nice to have a seperate button.

How hard do you think this would be for me to do?  And is it possible?

Cheers

Nick
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: comment notification options when bridged
« Reply #5 on: November 11, 2006, 02:30:32 pm »

That'll mean modifying punbb code. I do not know that software so I can't give you any info. I'd have to do the same as you... looking into the code and coming up with a solution.

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
Re: comment notification options when bridged
« Reply #6 on: November 11, 2006, 02:41:35 pm »

i think I will give it a look then...

I doubt its too hard to add a new checkbox (and database entry to match) to the punbb profile and have your code use that instead of the email settings...then regardless of the email setting it will send or not send.

Is it as simple as that?  or is there something special about the email setting entry that your code needs?

cheers

Nick
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: comment notification options when bridged
« Reply #7 on: November 11, 2006, 02:44:24 pm »

nothing special, you edit the bridge file and change the db column for the notification to use

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
Re: comment notification options when bridged
« Reply #8 on: November 12, 2006, 01:53:41 am »

so ive got it half working...

I have added 2 entries to the punbb user table and added two checkboxes to punbb's profile.

one for subscriptions to uploaded images and one for commented on images.

the uploaded images checkbox works just fine but i can't seem to get the "auto subscribe to commented on images" to work.

the link is:

http://amateurillustrator.com.s2734.gridserver.com/punbb/index.php

and coppermine:

http://amateurillustrator.com.s2734.gridserver.com/cpg/index.php

You still have ftp access and i havent changed the passwords.

I tested it a lot and found that the first (image upload auto notify) checkbox works great every time but the comment notify checkbox doesn't do anything although they are put together in the exact same way.

I noticed that even phpbb uses the same db entry for both checkboxes:
Code: [Select]
'auto_subscribe_post' => 'user_notify',
'auto_subscribe_comment' => 'user_notify',

I have done this:
Code: [Select]
'auto_subscribe_post' => 'auto_subscribe_post',

'auto_subscribe_comment' => 'auto_subscribe_comment',

...in the punbb bridge file and it has only work for auto_subscribe_post.

Any help would be great

thanks for all your help once again

all the best Nick
Logged

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
Re: comment notification options when bridged
« Reply #9 on: November 13, 2006, 05:52:43 pm »

I have one a fresh install of everything here

http://amateurillustrator.com.s2734.gridserver.com/galleries/

and found the problem persists... after re-reading this thread I see that you mention above that phpbb only triggers the two events at once (comment and post auto subscriptions) with user_notify.

Is the file "udb_base.inc.php"  setup to allow seperate control of these 2 options when bridged?
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: comment notification options when bridged
« Reply #10 on: November 14, 2006, 05:13:06 pm »

I haven't had much time yet to look into your problem but I found a bug. Maybe it'll solve your issues

in db_input.php find
Code: [Select]
if ($auto_subscribe_post['auto_subscribe_comment'])and replace with
Code: [Select]
if ($auto_subscribe_comment['auto_subscribe_comment'])
auto_subscribe_post should work
you shouldn't change the punbb bridge to test things
so it should read
Code: [Select]
'notify' => 'email_setting',
'auto_subscribe_post' => 'email_setting',
'auto_subscribe_comment' => 'email_setting',

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
Re: comment notification options when bridged
« Reply #11 on: November 14, 2006, 05:18:26 pm »

oh yeah it does work but I'm trying to seperate out the functions and have them on their own checkboxes in the profile (under privacy)

if you go to my site you will see what I mean.

I'll try out your fix and see if it works now.

Cheers

nick
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: comment notification options when bridged
« Reply #12 on: November 14, 2006, 05:27:03 pm »

if you want to seperate the two (notify on post and comment) you'll have to create 2 new db entries in your punbb user table... eg. pun_notify_comment and pun_notify_post

then the punbb bridge file would have to be modified accordingly
Code: [Select]
'notify' => 'email_setting',
'auto_subscribe_post' => 'pun_notify_post',
'auto_subscribe_comment' => 'pun_notify_comment',

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
Re: comment notification options when bridged
« Reply #13 on: November 14, 2006, 05:29:04 pm »

oh yep i already did that

the fix to db_input.php has fixed the problem

now everything works great and I have them seperated out and working great.

Thanks stramm  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 19 queries.