vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   News & Email Community Bulletin Generator (https://vborg.vbsupport.ru/showthread.php?t=32517)

NTLDR 10-18-2002 04:43 PM

Quote:

Originally posted by JoshFink
This may be asking too much, but is there a way to get a "Preview HTML" button that would show you what it looked like first?
Thats a good idea Josh, something like the preview buttons for the templates would be good.

LightBringer 10-18-2002 05:03 PM

Christec, any updates on the issues I was having before?

https://vborg.vbsupport.ru/showthrea...992#post301992

https://vborg.vbsupport.ru/showthrea...432#post302432

JoshFink 10-18-2002 06:23 PM

NTLDR , thanks for the help. That would be great.

Josh

groovesalad 10-19-2002 03:04 PM

Everything works great, except I'm having one issue. When I try to get the Bulletin to post on my message board in HTML format, the format is really messed up. I thought that maybe it was just posting incorrectly, so I just copied and pasted the HTML from the "Preview" screen before sending out the Newsletter and just pasted that into one of my forums. Still the same problem. I even checked the HTML source and it matched the "Preview" screen. Not sure why it's doing this. I'm almost positive NTLDR can figure this one out :)

http://groove-salad.com/forum/showth...=&threadid=177

groovesalad 10-20-2002 01:25 AM

When I try to use this, here is what I get as an error

[Sat Oct 19 19:17:10 2002] [error] [client 66.68.71.58] Empty script output

Anyone know what that means?

NTLDR 10-20-2002 04:46 PM

Here we go, the mod for the Preview button for the HTML, note variables like $username are not parsed in the preview.

Find:

PHP Code:

maketableheader("Preview of your TEXT email"); 

Above it add:

PHP Code:

    ?><tr class='firstalt' valign='top'>
        <td><p></p></td><td><p>
        <SCRIPT LANGUAGE="JavaScript">
        function displayHTML() {
        var inf = document.name.message.value;
        win = window.open(", ", 'popup', 'width=800,height=500,toolbar=no,status=yes,scrollbars=yes');
        win.document.write("" + inf + "");
        }
        </script>
        <input type='button' value='Preview' accesskey='p' onclick='javascript:displayHTML()'></p></td></tr>
    <?php

Thats it, you then get a preview button right under the HTML text area :D

Note: vB puts a space between java and script here: onclick='java script:displayHTML It should be javascript, one word ;)

Littlebit 10-26-2002 09:56 PM

Hi NTLDR,
yep...another Netscape java error...I got this script error in my java log from your script add for the preview
Quote:

Error: missing ; before statement
Source Code:
java script:displayHTML()
Any ideas? I think I'm going to make sure I don't have some weird Java setting messed up in my browser too. :/

NTLDR 10-26-2002 09:58 PM

I've only got IE installed and I'm no Java expert or fan. Does the preview for templates work in the ACP? That is basicly the code from there modified to work with this hack.

Littlebit 10-26-2002 10:05 PM

I got it! it was just being being stubborn over the space between java and script. It works with the space removed. :)
Man, I've decided that Netscape is way picky with it's code.

I forgot to say thanks for the nifty add ;)

NTLDR 10-26-2002 10:23 PM

Quote:

Originally posted by Littlebit
It works with the space removed. :)
Man, I've decided that Netscape is way picky with it's code.

The space isn't meant to be there ;) vB puts it in automatically for security reasons so it wouldn't have worked in any browser.


All times are GMT. The time now is 04:07 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.01189 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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