PDA

View Full Version : Please help for notification forums


denis919
12-21-2010, 01:28 PM
hi,
sorry for my english but i'am italian.

My vbulletin version is 4.0.8

I want to add this option: instant notification by email when user subscribed to forum.

I'have delete the line 15 and 17 into

ACP > Go to Style Manager > Choose The Style > Edit Template > Find subscribe_choosetype

<form class="block" id="subscribethread" action="subscription.php?do=doaddsubscription&amp;{vb:raw type}id={vb:raw id}" method="post">
<h2 class="blockhead">
<vb:if condition="$show['subscribetothread']">
{vb:rawphrase subscribe_to_thread}<span class="normal">: {vb:raw threadinfo.prefix_plain_html} {vb:raw threadinfo.title}</span>
<vb:else />
{vb:rawphrase subscribe_to_forum}<span class="normal">: {vb:raw foruminfo.title}</span>
</vb:if>
</h2>

<div class="blockbody formcontrols">
<div class="blockrow">
<label for="type">{vb:rawphrase notification_type}</label>
<select class="primary" name="emailupdate" tabindex="1">
<option value="0" {vb:raw emailselected.0}>{vb:rawphrase no_email_notification}</option>
<vb:if condition="$show['subscribetothread']">
<option value="1" {vb:raw emailselected.1}>{vb:rawphrase instant_notification_by_email}</option>
</vb:if>
<option value="2" {vb:raw emailselected.2}>{vb:rawphrase daily_updates_by_email}</option>
<option value="3" {vb:raw emailselected.3}>{vb:rawphrase weekly_updates_by_email}</option>
</select>
<p class="description">{vb:rawphrase subscription_notification_description}</p>
</div>

<vb:if condition="$show['folders']">
<div class="blockrow">
<label for="folder">{vb:rawphrase folder}</label>
<select class="primary" name="folderid" id="folder" tabindex="1">
{vb:raw folderbits}
</select>
<p class="description">{vb:rawphrase select_folder_for_subscription}</p>
</div>
</vb:if>
</div>

<div class="blockfoot actionbuttons">
<div class="group">
<input class="button" type="submit" value="{vb:rawphrase add_subscription}" accesskey="s" tabindex="1" />
<input class="button" type="reset" value="{vb:rawphrase reset}" tabindex="1" />
</div>
</div>
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="doaddsubscription" />
<input type="hidden" name="{vb:raw type}id" value="{vb:raw id}" />
<input type="hidden" name="url" value="{vb:raw url}" />
</form>

you see the option in the dropdown menu into User CP but no found.

I 'have creating a new thread in that forum about 15 minutes, I haven't receive any email.

Help me please....

BirdOPrey5
12-22-2010, 05:53 PM
Deleting the if statement around

<vb:if condition="$show['subscribetothread']">
<option value="1" {vb:raw emailselected.1}>{vb:rawphrase instant_notification_by_email}</option>
</vb:if>



will just show the option... but the code to handle this choice must still be programmed via php probably in one or more plugins and you'll need a new phrase for an email to send out- this is a pretty significant amount of coding to do this. Also the very fact it's not an option by default worries me there could be performance issues.