comment notification options when bridged comment notification options when bridged
 

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

comment notification options when bridged

Started by nickfzx, November 10, 2006, 02:50:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nickfzx

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

Stramm

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

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?

Stramm


nickfzx

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

Stramm

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

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

Stramm

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

nickfzx

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:
'auto_subscribe_post' => 'user_notify',
'auto_subscribe_comment' => 'user_notify',


I have done this:
'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

nickfzx

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?

Stramm

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
if ($auto_subscribe_post['auto_subscribe_comment'])
and replace with
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
'notify' => 'email_setting',
'auto_subscribe_post' => 'email_setting',
'auto_subscribe_comment' => 'email_setting',

nickfzx

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

Stramm

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
'notify' => 'email_setting',
'auto_subscribe_post' => 'pun_notify_post',
'auto_subscribe_comment' => 'pun_notify_comment',

nickfzx

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