vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   CommBull (Community Bulletin) (https://vborg.vbsupport.ru/showthread.php?t=66334)

jluerken 12-30-2004 01:37 PM

Ok I found the problem.

If you have photopost installed DO NOT include this part into your global.php
http://www.photopost.com/members/for...ght=stylesheet

wirewolf 12-30-2004 02:06 PM

Guys, don't mess with your forum stylesheets for the commbull html mail. Leave your current storage alone system for your forum. (uness you want to change it for your forum itself). As for the commbull email html calling for a stylesheet, you make a copy of your default stylesheet, rename it (something like - vb.css, as I did), place it in a different folder outside of your forum's directory ( I out it in a folder in my site root, also did the same for my forums' logo), and then in the html preview section of the commbull.php file, type in the full url path to these two files.:
example:
http://yoursite.com/bulletincssfolder/vb.css
http://yoursite.com/bulletincssfolder/logo.gif
Around line 318:
Quote:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://yoursite.com.net/bulletincssfolder/vb.css" /> //hard code in your stylesheet - I copied my defalut forum sheet, renamed it as vb.css, and placed it in a different folder - note full url - did same with full url to my logo too - see below
</head>
<body><br />
<img border="0" src="http://yoursite.com/bulletincssfolder/logo.jpg" width="80" height="80"><font size="4" face="arial,helvetica"><B>&nbsp; <a href="{$vboptions['bburl']}">
{$lang['mailsubject']}</a></b></font><br /><br />
Once you have established your site sytlesheet enough, you shouldn't have to make too many changes to this commbull email html sheet. Even if you do, just recopy your new forum sheet, naming it as the vb.css, and replace the old vb.css one.
I played enough with this stylesheet and logo thing, and I found this to be the easiest answer. You have to remember, the user is calling for the stylesheet and logo from their email client, not directly from your site.
John

sabret00the 12-30-2004 03:57 PM

Quote:

Originally Posted by jluerken
Is there a way to send out a newsletter automatically once every 1 of a month?

The template says: Currently, community updates are sent weekly.
Is this really done automatically or do I have to change this text?

where does it say that? it is hardcoded though and not automatically.

sabret00the 12-30-2004 03:58 PM

Quote:

Originally Posted by jluerken
Ok I found the problem.

If you have photopost installed DO NOT include this part into your global.php
http://www.photopost.com/members/for...ght=stylesheet

i've got zachery's version of that installed, hence why i could use css at files even for this.

sabret00the 12-30-2004 04:00 PM

Quote:

Originally Posted by wirewolf
Guys, don't mess with your forum stylesheets for the commbull html mail. Leave your current storage alone system for your forum. (uness you want to change it for your forum itself). As for the commbull email html calling for a stylesheet, you make a copy of your default stylesheet, rename it (something like - vb.css, as I did), place it in a different folder outside of your forum's directory ( I out it in a folder in my site root, also did the same for my forums' logo), and then in the html preview section of the commbull.php file, type in the full url path to these two files.:
example:
http://yoursite.com/bulletincssfolder/vb.css
http://yoursite.com/bulletincssfolder/logo.gif
Around line 318:

Once you have established your site sytlesheet enough, you shouldn't have to make too many changes to this commbull email html sheet. Even if you do, just recopy your new forum sheet, naming it as the vb.css, and replace the old vb.css one.
I played enough with this stylesheet and logo thing, and I found this to be the easiest answer. You have to remember, the user is calling for the stylesheet and logo from their email client, not directly from your site.
John

you shouldn't even need to do that, if you're storing css as files and have a large enough image, then your email client will download the stylesheet (with the help of zachery's hack) automatically, else it will use it as part of the page generation at which rate you get it anyway.

jluerken 12-30-2004 04:09 PM

Quote:

Originally Posted by sabret00the
where does it say that? it is hardcoded though and not automatically.

Its in the commbull phrases file but I don't see a sheduled task or something like this which will run the commbull really once a week.

wirewolf 12-30-2004 04:20 PM

Editing the html email in the commbull.php file.
In the commbull.php file look for (line numbers are approx.):

Quote:

// line 44
// get css file// comment out
//$sql = "SELECT * FROM ". TABLE_PREFIX."style WHERE userselect > 0 LIMIT 1";
//$cssrow = $DB_site->query_first($sql);
//$css = $cssrow['css'];
// add full site url to gradients, etc in css
//$css = str_replace(' url('," url({$vboptions['bburl']}/",$css);


//line 309
//$uselogo = $cbgLogo ? "<img src=\"$cbgLogo\">" : ''; // comment out


// line 317
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> // start here!!
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://yoursite.com.net/folder/vb.css" /> //hard code in your stylesheet - I copied my defalut forum sheet, renamed it as vb.css, and placed it in a different folder - note full url - did same with full url to my logo too - see below
</head>
<body><br />
<img border="0" src="http://yoursite.com/folder/logo2.jpg"><font size="4" face="arial,helvetica"><B>&nbsp; <a href="{$vboptions['bburl']}">
{$lang['mailsubject']}</a></b></font><br /><br />
<table class="tborder" width="80%" cellpadding="6" cellspacing="1"> // note table width - you have to set this in about four places as you will see in the other tags below
<tr>
<td class="alt1Active">$extramaterial_parsed</td>
</tr>
</table>
<br />
<table class="tborder" width="80%" cellpadding="6" cellspacing="1">
<tr>
<td class="tcat" colspan="2"><font size="3" face="arial,helvetica"><b>
Current Forum Activity</b></td> //typed this phrase in directly - planning to add a phrase variable
</tr>
<tr>
<td class="alt1Active">$lang[todaysdate] $todaysdate1.<br />{$lang['activitysincede']} $todaysdate2 $lang[activitysince]</td>
</tr>
</table><br />


// line 359
$HTML_footer = "<font size=\"2\">$lang[tounsubscribe]
<a href=\"{$vboptions['bburl']}/profile.php?do=editoptions\">{$lang['unsubscribelink']}</a>. //didn't change anything here except for language
$lang[changeprofile]
<br /><br />
$lang[bestregards]<br /><br /><br /></body></html>";

// line 513 - the other sections - most replies, most views, etc. follow this format. it's the table width that counts here.
<table class="tborder" cellspacing="2" cellpadding="6" width="80%">
<tr>
<td class="tcat" colspan="7"><b>{$lang['latestthreads']}</b></td>
</tr>
<tr class="alt1Active">
<td><b>{$vbphrase['title']}:</b></td>
<td><b>{$vbphrase['thread_starter']}:</b></td>
<td><b>{$lang['threadstartdate']}:</b></td>
<td><b>{$vbphrase['replies']}:</b></td>
<td><b>{$vbphrase['views']}:</b></td>
<td><b>{$vbphrase['last_post']}:</b></td>
<td><b>Last Post by:</b></td> // typed in directly. planning to add a phrase variable
</tr>

// line 918
<table class="tborder" border="0" width="80%"> // note width
<tr class="tcat">
<td><font size="2" face="arial,helvetica"><b>{$lang['upcoming_events']}: <a href="http://yoursite.com/forum/calendar.php?">Click here to
view this Months' Calendar</a></b></td> // note hard code to calendar
</tr>

// line 1064
<table border="0" class="tborder" width="80%"> // note width
<tr class="tcat">
<td colspan="2"><b>{$vbphrase['user']} {$vbphrase['info']}:<b></td>
</tr>
<tr class="alt1">
<td><b>{$lang['userdetails']}</b></td>
</tr>
<tr class="alt1">
<td>{$lang['yourusername']}: "\$username"</td>
</tr>
<tr class="alt1">
<td><a href="{$vboptions['bburl']}/login.php?do=lostpw">{$lang['forgotpass']}?</a></td>
</tr>
<tr class="alt1">
<td>{$lang['youhave']} \$posts {$vbphrase['posts']}</td>
</tr>
<tr class="alt1">
<td>{$lang['youregistered']} \$joindate</td>
</tr>
<tr class="alt1">
<td>{$lang['yourlastactivity']} \$lastactivity</td>
</tr>
</table><br />
Try to keep the html email simple and as small (file size) as possible. Users get pissed (as I do) with over sized html emails. Mine is only about 15 kb's
I didn't mess around with the poll sections. I only have three on my forum, and thay don't update much. But if you want to edit the html for these, or any part of the html, just look in the commbull.php file for any <table>, <tr>, <td> start tags.
Basically, the html output is a bunch of table structures, but they are spread out in the commbull.php file. I'm going to experiment with making a commbull html email template with the variables in it, and just have the commbull.php script call it up. Language changes are easy, just go to the commbull_phrase.php file (thinking of switching that over to phrase variables too!)
As always, MAKE and save a copy of the file prior to editing. Make your changes a little at a time, then send the bulletin to yourself (admin) and take a look. I must have sent myself at least twenty before I was satisfied.

Here's my how my final edit html email bulletin looks like:
http://shipmodeling.net/forumnewsletter.html

wirewolf 12-30-2004 04:32 PM

Quote:

Originally Posted by sabret00the
you shouldn't even need to do that, if you're storing css as files and have a large enough image, then your email client will download the stylesheet (with the help of zachery's hack) automatically, else it will use it as part of the page generation at which rate you get it anyway.

Haven't seen zachery's hack. What does it do?
I didn't feel like muking around with other files. This works quite nicely. I do have my froum css's stored as in file (s). My image is small too.

CtrlAltDel 01-02-2005 01:36 AM

thanks man, great to have this back on the vb3 board

rex_b 01-03-2005 05:38 PM

I have this hack installed and it has been working but now whenever I send something it thinks for a minute then brings up a page saying "The page cannot be displayed" . Any ideas on what is going wrong?


All times are GMT. The time now is 03:19 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.01550 seconds
  • Memory Usage 1,786KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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