Powered by MediaWiki
Personal tools

Popup comments

From b2evolution manual

Jump to: navigation, search

This page refers to 0.9.x

  • Open up your skin's _main.php file.
  • In the <head> section of the file, add this bit of code: <?php comments_popup_script() // Include javascript to open pop up windows ?>
  • Copy the _popup.php from the originalb2 skin into your new skin's folder.
<?php
	if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );

	while( $Item = $MainList->get_item() ) 
	{
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php locale_lang() ?>" lang="<?php locale_lang() ?>">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?php locale_charset() ?>" />
	<title><?php	$Blog->disp('name', 'htmlhead') ?> - feedback on '<?php $Item->title( '', '', false, 'htmlhead' ) ?>'</title>
	<base href="<?php skinbase(); // Base URL for this skin. You need this to fix relative links! ?>" />
	<style type="text/css" media="screen">
		@import url( 'layout2b.css' );
	</style>
	<link rel="stylesheet" type="text/css" media="print" href="print.css" />
</head>
<body>

<div id="contentcomments">

<?php
	$disp_comments = 1;					// Display the comments if requested
	$disp_comment_form = 1;			// Display the comments form if comments requested
	require( dirname(__FILE__).'/_feedback.php' );
?>
</div>

<div><strong><span style="color: #0099CC">::</span> <a href="javascript:window.close()">close this window</a></strong></div>

</body>
</html>
<?php } ?>
  • Open up _popup.php and customize it to your liking.