Doesn't matter, I've sorted it out.
For anyone who's interested this is what I done:
I done away with the ask a question form so that when someone clicks the ask a question button they are taken to the standard zen cart contact us form I achieved this by changing the following:
In file includes/modules/faqs_all_listing.php
changed toCode:<td colspan="2" align="right" class="main"><?php echo '<a href="' . zen_href_link(FILENAME_FAQ_SUBMIT, '', 'NONSSL') . '">' . zen_image_button(BUTTON_IMAGE_SUBMIT_FAQ, BUTTON_SEND_ALT) . '</a>'; ?></td> </tr>
I repeated this for includes/modules/faqs_new_listing.phpCode:<td colspan="2" align="right" class="main"><?php echo '<a href="' . zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . zen_image_button(BUTTON_IMAGE_SUBMIT_FAQ, BUTTON_SEND_ALT) . '</a>'; ?></td> </tr>
Then to add the button to the catagory pages I added this code
to the bottom of file includes/modules/faq_listing.phpCode:<table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td colspan="2" align="right" class="main"><?php echo '<a href="' . zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . zen_image_button(BUTTON_IMAGE_SUBMIT_FAQ, BUTTON_SEND_ALT) . '</a>'; ?></td> </tr> </table>
Then the final step to make the page jump straight to the answer page when question is clicked:
in file includes/modules/faq_listing.php changed this:
to this:Code:case 'FAQ_LIST_NAME': $lc_align = ''; $lc_text = ' <a href="' . zen_href_link(FILENAME_FAQS, 'fcPath=' . $fcPath . '&faqs_id=' . $listing->fields['faqs_id']) . '">' . $listing->fields['faqs_name'] . '</a> ';
Code:case 'FAQ_LIST_NAME': $lc_align = ''; $lc_text = ' <a href="' . zen_href_link(FILENAME_FAQ_INFO, 'fcPath=' . $fcPath . '&faqs_id=' . $listing->fields['faqs_id']) . '">' . $listing->fields['faqs_name'] . '</a> ';


Reply With Quote
