Forums / Setup & design / problems with my own forum notification

problems with my own forum notification

Author Message

Alessandro Cipriani

Friday 16 April 2004 3:54:13 am

hi all
i know this thread should appear like a deja vu, but i wasn't able to find any answer to my questions:

i've made my own forum on my site, and i'd like that when a user presses the "keep me update" button, a mail is sended to it
i already use cronjobs, so it isn't a cronjob problem
simply no notification mail is sended to anyone.
should the user have some particular privilege?

more: when, in the admin interface, section "notificatio" i try to select a node to keep me updated if some new node is published, i get no new entry in the node list, that continues empty...

i use the verision 3.3-1

any suggestion?

best regards
alessandro

Paul Forsyth

Friday 16 April 2004 4:12:40 am

This may be silly but have you set up your email program, such as sendmail correctly? Is php recognising it?

I had a problem recently where sendmail wasn't installed but php thought it was, so nothing was sent.

paul

Alessandro Cipriani

Friday 16 April 2004 5:01:42 am

hi paul
yes, the email is ok: i use the email system for the forgotpassword functionality.
I use an external smtp server.

any hint?

Paul Forsyth

Friday 16 April 2004 5:31:47 am

Well, if smtp is working it should be ok. But I haven't used the notification yet in my own projects yet :(

Does <your-site>/notification/settings show that your forum message has been added?

To test the user privilege change the users roles to * *.

paul

Alessandro Cipriani

Friday 16 April 2004 5:59:34 am

paul

the <mysite>/notification/settings is empty, also when i specify the node i want to watch.
i'm trying with the admin role (*,*) so i think the problem is elsewhere

best regards
alessandro

Paul Forsyth

Friday 16 April 2004 6:14:46 am

Ok, so the notification isn't being made. Can you look at the source code for your page?

I had a quick look on the ez site and i see code like this for notifications:

<form method="post" action="/content/action">
<input class="button" type="submit" name="NewButton" value="New reply" />

    <input type="hidden" name="ContentNodeID" value="48435" />
    <input type="hidden" name="ContentObjectID" value="54895" />
    <input class="button" type="submit" name="ActionAddToNotification" value="Keep me updated" />
<input type="hidden" name="NodeID" value="48435" />

<input type="hidden" name="ClassID" value="14" />

</form>

Not all of this is needed. When i look in kernel/content/action.php i see that only the hidden field ContentNodeID is required. Is the value for this input field being set?

paul

Alessandro Cipriani

Friday 16 April 2004 6:30:21 am

that's my tpl code
everithing seems to match to what you said:

<form method="post" action="/index.php/platino/content/action">
<div class="buttonblock">
<input class="button" type="submit" name="NewButton" value="New topic" />

<input type="hidden" name="ContentNodeID" value="51" />
<input type="hidden" name="ContentObjectID" value="48" />
<input class="button" type="submit" name="ActionAddToNotification" value="Keep me updated" />
</div><input type="hidden" name="NodeID" value="51" />
<input type="hidden" name="ClassID" value="7" />

</form>

???
cheers
alessandro

Alessandro Cipriani

Friday 16 April 2004 6:37:52 am

more:
also if i browse the node i want to watch the node list is empty... could be the action.php file not working?
where can i find another version of it?

alessandro

Paul Forsyth

Friday 16 April 2004 6:56:38 am

Does the node id match your current node? I know when i tried forums before there was a problem with old node ids.

What is your template code that puts in the <input tag for the node id?

paul

Alessandro Cipriani

Friday 16 April 2004 7:22:01 am

yes, the node_id matches the real node id
the template code is:

<form method="post" action={"content/action/"|ezurl}>

{switch match=$node.object.can_create}
{case match=1}
<div class="buttonblock">
<input class="button" type="submit" name="NewButton" value="New topic" />

<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$node.contentobject_id.}" />
<input class="button" type="submit" name="ActionAddToNotification" value="Keep me updated" />
</div>
{/case}
{case match=0}
<p>
You need to be logged in to get access to the forums.</p>
{/case}
{/switch}
<input type="hidden" name="NodeID" value="{$node.node_id}" />
<input type="hidden" name="ClassID" value="32" />

</form>

Paul Forsyth

Friday 16 April 2004 7:52:22 am

Hmm, it looks good to me. Does your debug lines say anything? Clear the cache before you load the page in debug mode.

The only other thing i can suggest is to try to debug the action class. If goto line 291 you will see code it uses. If you then add lines like:

eZDebug::writeWarning("Testing");

and look in the file var/log/warning.log you can step through whats going on...

sorry, i can't help more.

paul

--
http:www.visionwt.com

Alessandro Cipriani

Monday 19 April 2004 6:45:09 am

paul,
i've turned on the debugoutput and in the /notification/settings i get this error:

Query error: Unknown column 'user_id' in 'field list'. Query: SELECT id, user_id, use_digest, node_id
FROM ezsubtree_notification_rule
WHERE user_id='14'
ORDER BY id ASC

the query doesn't match the table structure!

Rinze Cats

Wednesday 16 June 2004 2:56:59 am

@allesandro

did you ever solve this problem? I am using 3.3.5 and no notifications are being send. Mail works (for instance tell a friend or custom forms send emails).

greetz
rinze

Alessandro Cipriani

Wednesday 16 June 2004 5:27:42 am

hi rinze

i was workin' with 3.3-1 when nothing worked
now i upgraded to 3.3-5 and the notification works. I didn't try it on the forum, but i think that it works in the same way.

ps: what about this site notification? i'm not recieving any new message since the 1st of june!

best regards
alessandro

eZ debug

Timing: Jan 31 2025 04:14:33
Script start
Timing: Jan 31 2025 04:14:33
Module start 'content'
Timing: Jan 31 2025 04:14:33
Module end 'content'
Timing: Jan 31 2025 04:14:34
Script end

Main resources:

Total runtime0.1671 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.0469180.8281
Module start 'content' 0.00620.0055 768.8750110.0234
Module end 'content' 0.01170.1553 878.8984539.0781
Script end 0.1671  1,417.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00301.7992200.0002
Check MTime0.00120.7098200.0001
Mysql Total
Database connection0.00070.439110.0007
Mysqli_queries0.123673.94941410.0009
Looping result0.00110.66551390.0000
Template Total0.155192.810.1551
Template load0.00060.385910.0006
Template processing0.154592.414110.1545
Override
Cache load0.00050.275310.0005
Sytem overhead
Fetch class attribute can translate value0.00120.720410.0012
XML
Image XML parsing0.00020.141210.0002
General
dbfile0.00724.3324200.0004
String conversion0.00000.004330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs