No controller response error message

That's your AJAX call.

Sorry I don't know what you mean. There are two main components to the AJAX.

1) The similarthreads.js file
2) The Route Prefix

Where do I need to add "forums/index2" ??

Earlier you indicated I don't need the Route Prefix, is this still correct?
 
You are making an AJAX request, right? Where you are currently sending it is now forums/index2
 
Earlier you indicated that the problem was I was using a Route Prefix, so I deleted the Route Prefix. Now you are indicating that I need to add "forums/index2" somewhere but I don't have a clue where to add that. These are my thoughts:

1) Create a Route Prefix because it's needed
2) Edit the similar.js file

Perhaps I need to do something else, I don't know. At this point when I type into the thread title form it display the following:

pic001.webp
 
Am I suppose to edit the similar.js file and change this line?

$('base').attr('href') + 'similarthreads/',
 

Thank you, Jeremy.

I've been trying every variation I can think of but the only thing that does anything is the following:

$('base').attr('href') + 'forums/',

That will show the forum view instead of the similar threads.
 
My ControllerPublic_Forum file is correct:

library/Andy/SimilarThreads/ControllerPublic/Forum.php

PHP:
class Andy_SimilarThreads_ControllerPublic_Forum extends XFCP_Andy_SimilarThreads_ControllerPublic_Forum
{
    public function actionIndex2()
    {
...
 
Looks like we got it. Out of desperation I tried the following:

$('base').attr('href') + 'forums/*/index2/',

and it works!!! (still jumping up and down)
 
The changes made:

1) Extended XenForo_ControllerPublic_Forum instead of XenForo_ControllerPublic_Abstract
2) Now using the Class Proxy XFCP system
3) Removed the Route Prefix
 
Last edited:
Back
Top Bottom