Jump to content
Sign in to follow this  
GLWalker

ASN Forum for osCommerce

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

Share this post


Link to post
Share on other sites
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'));

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Hi,

I am looking for some sites with this addon, so i can see it working before i use it on my own site.

 

Cheers

Edited by tikidiboo

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×