HomeAdmin ManualRelease NotesVersion 1.5.0 - Template Changes

66. Version 1.5.0 - Template Changes

This page describes the changes to each HelpSpot portal template. If you have an HTML editor available like Dreamweaver or BBEdit it is probably more effecient to simple use the diff tools to compare your edited documents (/custom_templates) with the new templates (/helpspot/templates/). If those tools are not available, the listings below will allow you to manually change the templates.

These changes are only needed if you have customized your portal and specifically customized the files listed below. If not, you do not need to make any adjustments.

Note: Your portal will not work correctly until these changes have been made.

These templates have changed in version 1.5.0:

css.tpl.php

New line starting after 484:

pre{
font: 100% courier,monospace;
border: 1px solid #ccc;
overflow: auto;
overflow-x: scroll;
width: 90%;
padding: 1em 1em 1em 1em;
background: #fff7f0;
color: #000
}

forums.posts.tpl.php

New lines starting after line 92, just before the close form tag </form>

	
<!-- START: SPAM Protection DO NOT REMOVE -->
<?php echo $this->helper->getSPAMCheckFields() ?>
<!-- END: SPAM Protection DO NOT REMOVE -->

forums.topics.tpl.php

New lines starting after line 95, just before the close form tag </form>

	
<!-- START: SPAM Protection DO NOT REMOVE -->
<?php echo $this->helper->getSPAMCheckFields() ?>
<!-- END: SPAM Protection DO NOT REMOVE -->

index.tpl.php

New lines after line 56

case "moderated":
include $this->loadTemplate('moderated.tpl.php');
break;

request.check.tpl.php

Edit line 20. It should now be:

<form action="index.php?pg=request.check" method="post" enctype="multipart/form-data">

New lines after line 115

<?php //File uploads. You can turn this on and off via a setting in Admin->Settings->Portal. It's disabled by default ?>
<?php if($this->hd_allowFileAttachments == 1): ?>

<p><label for="doc[]" class="datalabel"><?php echo lg_portal_req_file_upload ?>:</label><br />
<?php //TIP: You can have multiple file uploads by adding more lines identical to the one below. ?>
<input type="file" name="doc[]" size="40">
</p>

<?php endif; ?>

request.tpl.php

Edit line 33. It should now be:

<form action="index.php?pg=request" method="post" enctype="multipart/form-data">

Replace line 146 with:

<?php //portalFormFormat 1 is the complex 3 question display. 2 is the simple single textarea. 
//1 is the default. If you'd like to just use the simple textarea you can switch the setting in Admin->Settings->Portal

if($this->hd_portalFormFormat == 1): ?>

New lines after original line 169 (after above modification it's around 172)

<?php //File uploads. You can turn this on and off via a setting in Admin->Settings->Portal. It's disabled by default ?>
<?php if($this->hd_allowFileAttachments == 1): ?>

<p><label for="doc[]" class="datalabel"><?php echo lg_portal_req_file_upload ?>:</label><br />
<?php //TIP: You can have multiple file uploads by adding more lines identical to the one below. ?>
<input type="file" name="doc[]" size="40">
</p>

<?php endif; ?>

New lines after line 175 (after above modification it's around 188), just before the close form tag </form>

<!-- START: SPAM Protection DO NOT REMOVE --> <?php echo $this->helper->getSPAMCheckFields() ?> <!-- END: SPAM Protection DO NOT REMOVE -->  

This page was: Helpful | Not Helpful