vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   "Reminder" in notification email! (https://vborg.vbsupport.ru/showthread.php?t=51630)

trafix 04-15-2003 02:35 AM

"Reminder" in notification email!
 
I could probibly do this but more than likely i would stuff it up...

*****EDIT ******

I think I can do the hack myself.

Sorry

Erwin 04-15-2003 02:45 AM

You can do this as a template mod (although Admin CP is also not hard at all to do).

Just using templates:

1) Open phpinclude template.

2) At the bottom, at:

$emailmessage = "This weekend is.... blah blah blah";

3) Open email_notify template and add $emailmessage wherever you want it to show.

This is a quick and dirty way to do it without hacking. :)

Btw, you can now add $emailmessage anywhere in any template, and your message will show too. :)

trafix 04-15-2003 02:57 AM

yeah, thats why i edited my request.... thanks Erwin

I will add a text box in email options in the "vBulletin Options".

Give me a little time and it should be done ready for realease as it could be quite handy

trafix 04-15-2003 07:30 AM

Ok i got it worked out...will pack and release soon

Logician 04-15-2003 08:21 AM

I say put your annoucement in a template, then call it as

PHP Code:

eval("\$MyAnnouncement= \"".gettemplate("MyAnnouncement")."\";"); 

whereever you need it. Then you can add variable "$My Announcement" to your notifications (don't forget to make it global) or any other place you like.

This will save using the phpinclude template..

trafix 04-15-2003 08:39 AM

Its done!

i have added a section for it in the "email options" in the "vBulletin Options "

I am packing it ready for release

trafix 04-15-2003 09:21 AM

Quote:

Today at 08:15 PM Logician said this in Post #5
I say put your annoucement in a template, then call it as

PHP Code:

eval("\$MyAnnouncement= \"".gettemplate("MyAnnouncement")."\";"); 

whereever you need it. Then you can add variable "$My Announcement" to your notifications (don't forget to make it global) or any other place you like.

This will save using the phpinclude template..


RELEASED! damn I love a chalenge...lol

Erwin 04-15-2003 09:25 AM

Adding it to a template will add one query if you call it...

Logician 04-16-2003 11:59 AM

Quote:

Yesterday at 12:25 PM Erwin said this in Post #8
Adding it to a template will add one query if you call it...
Not if you add it to $templatesused variable. ;)

trafix 04-16-2003 12:13 PM

keep going guys...lol..im learning from this argument :)


All times are GMT. The time now is 07:04 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.00981 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete