Topic: guest and post topic
when a guest wants to post a topic, he MUST insert his email...
is there a way to let him insert the post without inserting email???
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 discussion → guest and post topic
when a guest wants to post a topic, he MUST insert his email...
is there a way to let him insert the post without inserting email???
i think someone asked for this before, not sure what happened to it though, it should be possible with a little bit of code editing, i'll have a look tomorrow unless someone else has a solution
i use blog:cms 3.5 final with punbb 1.2
thanks if you'll be able to find something...
ok you should backup your files before doing this but with a couple of edits to post.php guests can post without entering an email
about like 133 -
replace:
$email = strtolower(trim($_POST['req_email']));
with:
$email = strtolower(trim($_POST['guest_email']));
about like 450 -
replace:
<td class="puncon2"> <input type="text" name="req_email" size="50" maxlength="50" tabindex="<?php echo $cur_index++ ?>"></td>
with:
<td class="puncon2"> <input type="text" name="guest_email" size="50" maxlength="50" tabindex="<?php echo $cur_index++ ?>"></td>
about line 150 -
find:
if (!is_valid_email($email))
message($lang_common['Invalid e-mail']);
above add:
if ($email)
and that should do it i think although my files have alot of edits so make sure you backup and tell me if you get any errors
it works!!!
very nice... thank you very much!!!
the only difference from what you wrote was this... about line 450...
<div class="fconl">
<label for="guest_email"><strong><?php echo $lang_common['E-mail'] ?></strong><br/></label>
<input id="guest_email" type="text" name="guest_email" value="<?php if (isset($_POST['req_email'])) echo pun_htmlspecialchars($email); ?>" size="50" maxlength="50" tabindex="<?php echo $cur_index++ ?>" />
</div>
It's on the todo list for 1.2. It involves a few more changes than the above though.
i have already the 1.2dev
and with that changes it works...
hmmm... maybe because i'm using the blog:cms mod version?
well what i did was just a quick hack it doesn't give the option in admin...
PunBB Forums → PunBB 1.2 discussion → guest and post topic
Powered by PunBB, supported by Informer Technologies, Inc.