Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-21-2010, 01:28 PM
denis919 denis919 is offline
 
Join Date: Oct 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Please help for notification forums

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
PHP Code:
<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>
            <
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>
            <
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....
Reply With Quote
  #2  
Old 12-22-2010, 05:53 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Deleting the if statement around
Code:
                <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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:09 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06767 seconds
  • Memory Usage 2,202KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete