vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Statistics Modifications - vB Weekly Stats (https://vborg.vbsupport.ru/showthread.php?t=132061)

skoenig 01-18-2007 05:56 AM

Great mod. Very very useful for our moderators and myself.

FYI The most recent version does seem to cause all vB emails sent to be treated as HTML emails or to have all their carriage returs remapped...resulting in :

Dear skoenig, You are subscribed to the thread "Bluetooth Pairing Problems" by ReneeRoberts, there have been 1 post(s) to this thread, the last poster was Jackskid. http://domainurl.com These following posts were made to the thread: ************ Treo headset pairing http://domainurl.com /1989-bluetooth-pairing-problems-post8488.html#post8488 Posted by: Jackskid On: 01-17-2007 10:07 AM I had pairing problems with my Treo Headset also. This worked for me. Go to prefs>hands-free> then check always route call to hands-free. ---Quote (Originally by ReneeRoberts)--- It seems my original Palm Treo Bluetooth Headset won't stay properly.


~ Steph

FireFish 01-18-2007 11:04 PM

I just needed to uninstall this mod because it seemed that it was affecting my vB automated e-mails. They were lacking line breaks; once I disabled this mod, all was back to normal.

mack324 01-19-2007 09:18 PM

AHHHHHHHHHHHHHHHHHHHHHHHHHH

uploaded, when i try to get to forum i get

Fatal error: Cannot use string offset as an array in /home/*******/public_html/global.php(356) : eval()'d code on line 321

cupra 01-19-2007 09:51 PM

thx, good one - installd!

criscokid 01-21-2007 10:08 AM

Quote:

Originally Posted by skoenig (Post 1161966)
FYI The most recent version does seem to cause all vB emails sent to be treated as HTML emails or to have all their carriage returs remapped.

Read the thread for this mod I was looking forward to installing it... until I got to news that the latest version is causing problems with emails. Hopefully this'll get sorted soon... looking forward to installing.

skoenig 01-22-2007 04:09 AM

It's a great mod and well worth the effort. Just got a little buglet that I'm sure will get ironed out soon...

~ Steph

TheWhite 01-23-2007 04:55 AM

Serious BUG found i'm using VB 364 and while having version 140 installed i had NO problems with my general forum emails, in the last few days since i updated to version 150 all my forum email was being crunched or parsed for some reason after days and nights of uninstalling every single hack and backstepping anything that i might of altered i found out that the 150 update is causing this so i put back the 140 verion and everything is working at 100% can the author please look into it and comment about this???

Regards

stomph 01-23-2007 10:22 PM

This hack also garbled my standard emails that vb sends.

I traced it down to the plugin called 'replace Content-Type with text/html in headers'. If I understand correctly, it simply replaces 'text/plain' in all email-headers with 'text/html'. However, the content of the standard emails from vb are not HTML and so there is no formatting to apply and everything is just one line!

I deactivated the plugin.. and badabing: Emails are formatted correctly again as plaintext.
I ran the weekly cronjob and the Statusmail displayed correctly as text/html in my mailclient (kmail)??
I don't quite understand why.. maybe kmail checks for html-tags. Although it does say 'text/html' in the header.. however, it seems to work! :)

Exitilus 01-24-2007 07:43 PM

The fix for this is to Disable the only plugin that this Mod creates.

Realize that the e-mail will come showing all HTML so it won't be parsed.

skoenig 01-24-2007 07:50 PM

Fixed in v1.5
This is not an official fix and may not work for you. This is a general purpose fix for all HTML emails sent through Vb and has been tested on vB v3.6.2 with PHP 5xx

1. Go to the Plugin Manager
2. Search down to Product: Weekly Stats
3. Click: replace Content-Type with text/html in headers
4. Replace contents with:

PHP Code:

if (stristr($message,'<HTML>')){
$headers str_replace('text/plain','text/html',$headers);



Explanation
This patch searches the message body for <HTML>. If it finds it it then replaces the content type with the content type for HTML emails. It's not bullet proof and can be fooled but for most people it should work fine.

If you want a bullet proof solution specifically for Weekly Stats the following should work:

PHP Code:

if (stristr($subject,'SUBJECT OF YOUR WEEKLY STATS EMAIL HERE')){
$headers str_replace('text/plain','text/html',$headers);


This can be made more efficient using the stripos() function to return as soon as the fist occurrence of the string in etiher case is found.

I've also modded the original install with the primary general purpose fix above for those who want it.

This is not endorsed nor approved by the original authors but here for those who may need it. All the other usual disclaimers apply.

~ Steph
forum.treonauts.com


All times are GMT. The time now is 11:49 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.01440 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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