Results 1 to 5 of 5

Thread: printer friendly version dosn't display custom fields

  1. #1

    Default printer friendly version dosn't display custom fields

    when viewing the printer friendly version of an article, the custom fields are not shown. Only text entered into the message window is shown.

  2. #2
    Join Date
    Mar 2008
    Posts
    367

    Default

    same here, any solution available?

  3. #3
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default

    Thank you for pointing this out. You should be able to correct this issue by looking in your dynamics/misc.php file for this code:
    PHP Code:
                $templater vB_Template::create(ADV_DYNA_PREFIX '_showentry_custombits');
                
    $templater->register('bgclass'$bgclass);
                
    $templater->register('field'$field);
                
    $customfieldbits .= $templater->render(); 
    Replace with this:
    PHP Code:
    $customfieldbits[$field['fieldid']] = $field
    Then you will need to edit your 'ADV_DYNA_PRINTER_FRIENDLY' template to look for this code:
    Code:
    	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="1" border="0" width="100%">
    		{vb:raw customfieldbits}
    	</table>
    And replace it with this:
    Code:
    		<div class="blockrow">
    			<vb:each from="customfieldbits" value="field">
    				<dl class="stats">
    					<dt>{vb:raw field.title}</dt>
    					<dd>{vb:raw field.value}</dd>
    				</dl>
    			</vb:each>
    		</div>
    Last edited by Brian; 11-04-2011 at 12:18 PM.
    Frequently Asked Questions
    CMPS Users Manual

    For vBadvanced software assistance, please use the support forums.
    Unsolicted PMs, IMs, and email will not be responded to.
    If you have a non-software related question or problem with your account, please submit a support ticket.

  4. #4
    Join Date
    Mar 2008
    Posts
    367

    Default

    Thank you Brian, it works great. While you have an error in description:

    Not this has to be replaced in the template:

    Code:
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="1" border="0" width="100%">
    		$customfieldbits
    </table>
    (this code does not exist in the template)

    This is the right code which has to be replaced:

    <table class="tborder" cellpadding="{vb:stylevar cellpadding}" cellspacing="1" border="0" width="100%" class="blockrow">
    {vb:raw customfieldbits}
    </table>
    larina

  5. #5
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default

    Thanks, I updated my original post to correct that.
    Frequently Asked Questions
    CMPS Users Manual

    For vBadvanced software assistance, please use the support forums.
    Unsolicted PMs, IMs, and email will not be responded to.
    If you have a non-software related question or problem with your account, please submit a support ticket.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Arrange display of Custom Fields ?
    By 1kether1 in forum "How Do I..." Questions
    Replies: 2
    Last Post: 04-15-2011, 07:25 PM
  2. Message showing twice on Printer Friendly Version
    By J_Caesar in forum Bugs From 1.1.0
    Replies: 2
    Last Post: 01-27-2009, 03:36 PM
  3. Printer friendly multi-page articles issue
    By aproape in forum Bugs From 1.0.0
    Replies: 3
    Last Post: 01-10-2008, 07:37 PM
  4. Custom Fields Display Order?
    By edfig in forum Troubleshooting & Problems
    Replies: 9
    Last Post: 09-21-2007, 03:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •