Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ASN Forum for osCommerce


GLWalker

Recommended Posts

Hi!

 

After adding a new answer to a post, you get transfered to the forum start page. I would like to change the link so that you get transfered back to the topic you are posting on!

 

How do I change that?

 

Thanks for a great contribution!

 

Carl

Link to comment
Share on other sites

  • 1 month later...
Hi!

 

After adding a new answer to a post, you get transfered to the forum start page. I would like to change the link so that you get transfered back to the topic you are posting on!

 

How do I change that?

 

Thanks for a great contribution!

 

Carl

In catalog/asn_reply.php

 

change line 59

 

tep_redirect(tep_href_link('asnf_index.php', "id=$id",'SSL'));

 

to

 

tep_redirect(tep_href_link('asnf_viewtopic.php', "id=$id",'SSL'));

Link to comment
Share on other sites

  • 4 weeks later...

For those of you with the Error

 

Fatal error: Call to a member function on a non-object in (File Path)\header.php or (File Path)\asnf_addtopic.php on line xx

For me it was a result of leaving a field blank when submitting a new topic.

 

My solution was as follows.

 

In the File includes/asnf_lib.php

 

Find around line 216

function erro($message) {

comment out line 219

//include("header.php");

comment out line 263

//include("footer.php");

This will show the message to the user that they need to go back and properly fill out the form. A simple form validation script on the add topic form would be better but don't have time for that now :)

Link to comment
Share on other sites

  • 3 months later...
ASN Forum for osCommerce is so far the best "simple" forum addon I have found. Many thanks to the MasterGiGi and all others who have worked on this mod . Hopefully we can advance this script little by little, as it looks to be a very promising piece of code. As time permits I shall be cleaning it up to better match osC code and style.

My first step has been to create a customer moderator addon.

The contribution may be found here:

http://addons.oscommerce.com/info/4832

 

Hello is it working in e-Commerce 3 alpha 5 version?

 

And where can I download it?

 

Many thanks, Vitaly

Link to comment
Share on other sites

  • 3 months later...

for those of you who are still have the fatal error problem here is a fix that i did. the check_email function is still being used but instead of typing in the email every time it is fetched using an query.

 

in catelog/asnf_newtopic.php

 

find:

require_once("includes/asnf_header.php");

 

and add below:

  $email_query = tep_db_query("select customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'");
 $email = tep_db_fetch_array($email_query);
 $email_address = $email['customers_email_address'];

 

find:

<td width="72%"> 
           <input type="text" name="email" size="30">
         </td>

 

replace with:

<td width="72%"><?php echo tep_draw_input_field('email', $email_address); ?></td>

 

do the same for catelog/asnf_viewtopic.php

 

hope that helps you =]

Edited by josh48202
Link to comment
Share on other sites

  • 1 year later...
  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...