vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   Excessive? (https://vborg.vbsupport.ru/showthread.php?t=52602)

filburt1 05-05-2003 10:38 AM

Excessive?
 
My webmail hack now has over 67 custom templates, 12 PHP files, and four new tables in the database :eek:

filburt1 05-05-2003 10:44 AM

Oh, 65 templates. Just got rid of some redundancy. :p

N9ne 05-05-2003 11:00 AM

You're going to rival the store hack at this rate :p

filburt1 05-05-2003 11:08 AM

I rewrote the template cacher so I don't have to use $templatesused anymore :p

edit: from the developer notes:
Quote:

3. For the most part, $templatesused is now obsolete now that the template cacher has been rewritten. If you name your file in the format mailsomething.php, then all templates that begin with either mail, redirect_mail, or error_mail will automatically be cached.
I've really been wanting to rewrite the entire template engine itself...

Tony G 05-05-2003 11:11 AM

Not excessive, but alot. ;)

colicab-d 05-05-2003 11:16 AM

bloomin heck mate :D hope it doesnt get to big lol, still will be good if its using all this, and weve all seen what you can do with a single php file

Tony G 05-05-2003 11:17 AM

Should definently be one big release. :D

N9ne 05-05-2003 11:37 AM

Who said he's releasing it? :p I thought it was going to be a paid hack.

filburt1 05-05-2003 12:13 PM

You're damn right it will be if it's that much code ;)

filburt1 05-05-2003 12:41 PM

LOL, found this in the dev notes:
Quote:

This function will confuse the hell out of you if you don't know regexps.
:D

Dean C 05-05-2003 03:16 PM

UHHH regexps - scott tried to use that for me on a maths assignment... failed miserably - Bless him :p

- miSt

filburt1 05-05-2003 08:00 PM

Learn them, I can't stress how uber-cool and how uber-quick they make PHP. Uber.

filburt1 05-05-2003 11:38 PM

Fun!

Quote:

"vBulletin Mail System" Installation Script
Script based on filburt1's standard install script. Back up your database and files before installing this hack/mod.
This script runs queries to help install "vBulletin Mail System." This script can only create templates, create replacements, create settings, and run extra queries. It does not touch files or existing templates.
--------------------------------------------------------------------------------

Creating Settings...
Getting current highest + 1 displayorder for settings...
Creating settings group...
Getting newly created settinggroupid...
Writing script to create individual settings...
Caching highest settingid + 1...
Creating setting "Enable Mail System?"...
Creating setting "POP3 Server Hostname"...
Creating setting "POP3 Server Username"...
Creating setting "POP3 Server Password"...
Creating setting "E-mail "To" Domain Name"...
Creating setting "Allow Alias/Username Sharing?"...
Creating setting "Delete HTML-only e-mails?"...
Creating setting "Text to show for HTML-only e-mails"...
Creating setting "Banned aliases"...
Updating options template...

--------------------------------------------------------------------------------
Running extra queries...
Running extra query 1 of 6...
Running extra query 2 of 6...
Running extra query 3 of 6...
Running extra query 4 of 6...
Running extra query 5 of 6...
Running extra query 6 of 6...

--------------------------------------------------------------------------------
Creating custom templates and replacements...
Caching file "error_mail_badabalias.txt"...
Caching file "error_mail_badalias.txt"...
Caching file "error_mail_badreplyto.txt"...
Caching file "error_mail_badtolist.txt"...
Caching file "error_mail_bannedalias.txt"...
Caching file "error_mail_disabled.txt"...
Caching file "error_mail_filterexists.txt"...
Caching file "error_mail_folderexists.txt"...
Caching file "error_mail_folderreserved.txt"...
Caching file "error_mail_invalidemail.txt"...
Caching file "error_mail_noaction.txt"...
Caching file "error_mail_noalias.txt"...
Caching file "error_mail_noimap.txt"...
Caching file "error_mail_nokeyword.txt"...
Caching file "error_mail_nothingselected.txt"...
Caching file "error_mail_sendfail.txt"...
Caching file "error_mail_sendfieldempty.txt"...
Caching file "error_mail_sharedalias.txt"...
Caching file "error_mail_takenalias.txt"...
Caching file "error_mail_technical.txt"...
Caching file "error_mail_triedtoaddusertoab.txt"...
Caching file "mail.txt"...
Caching file "mailab.txt"...
Caching file "mailab_bit.txt"...
Caching file "mailab_emptybit.txt"...
Caching file "mailfilters.txt"...
Caching file "mailfilters_asmbits_delete.txt"...
Caching file "mailfilters_asmbits_from.txt"...
Caching file "mailfilters_asmbits_moveto.txt"...
Caching file "mailfilters_asmbits_subject.txt"...
Caching file "mailfilters_bit.txt"...
Caching file "mailfilters_emptybit.txt"...
Caching file "mailfilters_folderbit.txt"...
Caching file "mailfolders.txt"...
Caching file "mailfolders_bit.txt"...
Caching file "mailfolders_emptybit.txt"...
Caching file "mailnew.txt"...
Caching file "mailnew_sigcheckbox.txt"...
Caching file "mailread.txt"...
Caching file "mail_emptybit.txt"...
Caching file "mail_jumpbit_inbox_new.txt"...
Caching file "mail_jumpbit_inbox_nonew.txt"...
Caching file "mail_jumpbit_new.txt"...
Caching file "mail_jumpbit_nonew.txt"...
Caching file "mail_messagebit.txt"...
Caching file "mail_misc_navbar.txt"...
Caching file "mail_misc_navbar_endlink.txt"...
Caching file "mail_misc_navbar_endnull.txt"...
Caching file "mail_misc_navbar_newmailextra.txt"...
Caching file "mail_misc_navbar_openlink.txt"...
Caching file "mail_misc_navbar_opennull.txt"...
Caching file "mail_movebit.txt"...
Caching file "redirect_mail_abtomailnew.txt"...
Caching file "redirect_mail_abupdated.txt"...
Caching file "redirect_mail_allmarkedread.txt"...
Caching file "redirect_mail_deleted.txt"...
Caching file "redirect_mail_filtersupdated.txt"...
Caching file "redirect_mail_foldersupdated.txt"...
Caching file "redirect_mail_markedread.txt"...
Caching file "redirect_mail_markedunread.txt"...
Caching file "redirect_mail_moved.txt"...
Caching file "redirect_mail_sent.txt"...
Caching file "redirect_mail_updated.txt"...
Getting templatesetid and replacementsetid for styleid 1...
Checking for duplicate existing templates...
Duplicate templates found, removing them from the insertion queue...
Adding custom template "error_mail_badabalias" (1 of 59; about 157 chars)...
Adding custom template "error_mail_badalias" (2 of 59; about 237 chars)...
Adding custom template "error_mail_badreplyto" (3 of 59; about 233 chars)...
Adding custom template "error_mail_badtolist" (4 of 59; about 167 chars)...
Adding custom template "error_mail_bannedalias" (5 of 59; about 197 chars)...
Adding custom template "error_mail_disabled" (6 of 59; about 55 chars)...
Adding custom template "error_mail_filterexists" (7 of 59; about 164 chars)...
Adding custom template "error_mail_folderexists" (8 of 59; about 39 chars)...
Adding custom template "error_mail_folderreserved" (9 of 59; about 63 chars)...
Adding custom template "error_mail_invalidemail" (10 of 59; about 56 chars)...
Adding custom template "error_mail_noaction" (11 of 59; about 70 chars)...
Adding custom template "error_mail_noalias" (12 of 59; about 233 chars)...
Adding custom template "error_mail_noimap" (13 of 59; about 222 chars)...
Adding custom template "error_mail_nokeyword" (14 of 59; about 43 chars)...
Adding custom template "error_mail_nothingselected" (15 of 59; about 115 chars)...
Adding custom template "error_mail_sendfail" (16 of 59; about 108 chars)...
Adding custom template "error_mail_sendfieldempty" (17 of 59; about 59 chars)...
Adding custom template "error_mail_sharedalias" (18 of 59; about 260 chars)...
Adding custom template "error_mail_takenalias" (19 of 59; about 185 chars)...
Adding custom template "error_mail_technical" (20 of 59; about 136 chars)...
Adding custom template "error_mail_triedtoaddusertoab" (21 of 59; about 552 chars)...
Adding custom template "mail" (22 of 59; about 2834 chars)...
Adding custom template "mailab" (23 of 59; about 3724 chars)...
Adding custom template "mailab_bit" (24 of 59; about 352 chars)...
Adding custom template "mailab_emptybit" (25 of 59; about 136 chars)...
Adding custom template "mailfilters" (26 of 59; about 3375 chars)...
Adding custom template "mailfilters_asmbits_delete" (27 of 59; about 21 chars)...
Adding custom template "mailfilters_asmbits_from" (28 of 59; about 36 chars)...
Adding custom template "mailfilters_asmbits_moveto" (29 of 59; about 159 chars)...
Adding custom template "mailfilters_asmbits_subject" (30 of 59; about 22 chars)...
Adding custom template "mailfilters_bit" (31 of 59; about 304 chars)...
Adding custom template "mailfilters_emptybit" (32 of 59; about 145 chars)...
Adding custom template "mailfilters_folderbit" (33 of 59; about 96 chars)...
Adding custom template "mailfolders" (34 of 59; about 3121 chars)...
Adding custom template "mailfolders_bit" (35 of 59; about 280 chars)...
Adding custom template "mailfolders_emptybit" (36 of 59; about 149 chars)...
Adding custom template "mailnew" (37 of 59; about 2180 chars)...
Adding custom template "mailnew_sigcheckbox" (38 of 59; about 334 chars)...
Adding custom template "mailread" (39 of 59; about 3521 chars)...
Adding custom template "mail_emptybit" (40 of 59; about 177 chars)...
Adding custom template "mail_jumpbit_inbox_new" (41 of 59; about 136 chars)...
Adding custom template "mail_jumpbit_inbox_nonew" (42 of 59; about 49 chars)...
Adding custom template "mail_jumpbit_new" (43 of 59; about 170 chars)...
Adding custom template "mail_jumpbit_nonew" (44 of 59; about 83 chars)...
Adding custom template "mail_messagebit" (45 of 59; about 1396 chars)...
Adding custom template "mail_misc_navbar" (46 of 59; about 286 chars)...
Adding custom template "mail_misc_navbar_endlink" (47 of 59; about 4 chars)...
Adding custom template "mail_misc_navbar_endnull" (48 of 59; about 4 chars)...
Adding custom template "mail_misc_navbar_newmailextra" (49 of 59; about 64 chars)...
Adding custom template "mail_misc_navbar_openlink" (50 of 59; about 21 chars)...
Adding custom template "mail_misc_navbar_opennull" (51 of 59; about 3 chars)...
Adding custom template "mail_movebit" (52 of 59; about 106 chars)...
Adding custom template "redirect_mail_abtomailnew" (53 of 59; about 100 chars)...
Adding custom template "redirect_mail_abupdated" (54 of 59; about 69 chars)...
Adding custom template "redirect_mail_allmarkedread" (55 of 59; about 69 chars)...
Adding custom template "redirect_mail_filtersupdated" (56 of 59; about 36 chars)...
Adding custom template "redirect_mail_foldersupdated" (57 of 59; about 86 chars)...
Adding custom template "redirect_mail_moved" (58 of 59; about 57 chars)...
Adding custom template "redirect_mail_updated" (59 of 59; about 88 chars)...
No replacements to add!

--------------------------------------------------------------------------------

All done! Errors are highlighted above, if any occured. Now:
Delete this install script (/admin/install_mail.php)
Delete the directory "templates_vbulletinmailsystem" if you chose to install custom templates and replacements
Continue with the included installation instructions (which may involve going to the admin CP)

Dan 05-05-2003 11:51 PM

/me drools

Looking good

RDX1 05-06-2003 01:16 AM

Make it standalone with options to integrate with vb

Erwin 05-06-2003 02:00 AM

Stop tantalizing people! :)

filburt1 05-06-2003 10:19 AM

Quote:

Yesterday at 10:16 PM NerdNations said this in Post #15
Make it standalone with options to integrate with vb
I'd have to completely rewrite it, pretty much literally.

vB-Host.com 05-06-2003 11:39 AM

will this configure new e-mail accounts like hivemail does? any idea on cost yet?

filburt1 05-06-2003 01:45 PM

There's no real configuration beyond setting up the initial mail server options. Everything else is pretty much done by the user.

As I said I will not disclose the cost until at least May 20th, 2003.

Chris M 05-06-2003 05:16 PM

Yey!:)

Send me one freebie, and if I like, I'll make everyone else pay double;):p

Satan


All times are GMT. The time now is 07:45 PM.

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.01298 seconds
  • Memory Usage 1,794KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete