1

(1 replies, posted in PunBB show off)

Hi guys, here you can find my forum for a free italian biker group  smile
bikers lumbard

Added some style (very simple to increase navigation simplicity)
Added a little portal with last events and "outta-forum" administration with CRUD of events, meetings and administration users.
Added private events page with pagination
Added private meetings page with pagination
Added private gallery inside the forum
Will be added soon (maybe tomorrow) a RSS publisher for custom bikes news
(n.b. private = you must be registered!)

What you think about my works?  smile  thanks to the community! (...and sorry for my baaad english!)

I was trying to make the same thing and this is my solution wink

'New link active' => '<strong>New messages (%d)</strong><script>window.alert(\'you've got new private messages!\');</script>',

I change animated gif to a javascript alert, your users cannot say now "i didn't see!" wink
Sorry for my bad english tongue

//----------------------------------------------------------------------------------
function secretMail(){
    require FORUM_ROOT.'include/email.php';
    $to = $forum_config['o_webmaster_email'];
    $object = 'è stato modificato un post';        //e mail subject
    $from = $forum_name;        //from who?
    $url = FORUM_ROOT.'viewtopic.php?pid='.$id.'#p'.$id;    // $root contains modificated topic address
    $message =  '<p>messaggio originale:</p><p>'.$cur_post['message'].'</p><p>per visualizzare il messaggio modificato segui questo link:</p>'.'<a href="'.$url.'">link</a>'; //message
    forum_mail($to,$object,$message); //forum_mail function contained in email.php included above
}
//----------------------------------------------------------------------------------

here is my code, but i don't know how to put the function call hmm
if i put the call before
redirect(forum_link($forum_url['post'], $id), $lang_post['Edit redirect']);
on line 166 mail is sent only if i click submit button, but if i click preview and after submit email isn't sent.

mmm....
i think i can put that call on line 170 in the "empty line" after everything but i can't see if that works because i'm working on localhost and i can send to myself email (for now, i'm working on this with a free servermail smile).

solutions?
thanks! wink

i solve most of my problems, thanks however.....only one problem i didn't solve yet....
pun_mail doesn't exists in path include/email.php
and so i got to use smtp_mail() or forum_mail() function...which better? hmm

ok, i've tried for hours sad and i'm in the fog....

i'm running punbb in localhost to perform change to prevent online errors for users...
i made an echo of pun_user['username'] and nothing print..... seems i ain't got a pun_user, but it's impossible (i'm logged with admin profile, i supposed Admin is a particular case of an user).

ok, next step...
i wrote in my code: require FORUM_ROOT.'include/email.php';
but when i test the page an error occourred about finding "email.php" , where i'm wrong?? it couldn't find this filw and i've got it in that path sad

last step (maybe one day i will offer you a beer for the patience)
for post link i must write something like this?

<a href="viewtopic.php?pid=<?php echo $id.'#p'.$id ?>"> link here </a>

maybe i'm stupid but i can't find this error...
Thanks!!! big_smile

Hi, i try to send a mail with some information when user tryes to edit a post and submit post modificated.
I find the following data:
1 - original message -> $cur_post['message']
2 - original subject of the post -> $cur_post['subject']

Now i'm trying (and i didn't find yet) variables for:
1 - post url  ... maybe 'f.redirect_url'? to send the link by mail
2 - username that change the post ... maybe $pun_user['username']?

After i find that i want to send an "hidden to user" mail to administrator/moderator using php mail function when i confirm the submit button on edit.php.

<form id="edit" method="post" action="edit.php?id=<?php echo $id ?>&amp;action=edit" onsubmit="return process_form(this)">

How can i add another function on "submit" event?

Thank you and sorry for my "terrible" english language tongue

7

(2 replies, posted in PunBB 1.3 additions)

ok, thanks a lot slavok wink

Hi to all, i'm a newbie in PunBB but it's great big_smile my question...
Are there a way to view staff the history of a single message??

If an user send a post and after he modifies the same post i want to make the original message and the new message visible to all the staff (moderators, administrator and webmaster) to prevent some "clever" user wink
Is it possible?