Jump to content

Fetching Preview...


DeathStar

Recommended Posts

Ok now i'm so lost..

I searched smf forum for that thin gwhere if you hit preview it does that preview thing at the top and now i got the part for it but how do I use it?

 

		// Only show the preview stuff if they hit Preview.
	if ($really_previewing == true || isset($_REQUEST['xml']))
	{
		// Set up the preview message and subject and censor them...
		$context['preview_message'] = $form_message;
		preparsecode($form_message, true);
		preparsecode($context['preview_message']);

		// Do all bulletin board code tags, with or without smileys.
		$context['preview_message'] = parse_bbc($context['preview_message'], isset($_REQUEST['ns']) ? 0 : 1);

		if ($form_subject != '')
		{
			$context['preview_subject'] = $form_subject;

			censorText($context['preview_subject']);
			censorText($context['preview_message']);
		}
		else
			$context['preview_subject'] = '<i>' . $txt[24] . '</i>';
	}

Link to comment
https://forums.phpfreaks.com/topic/43399-fetching-preview/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.