vbulletin 4.2 to xenforo ( vbSEO & Thanks )

Status
Not open for further replies.

mr.jagh

New member
Hello guys.

two question
i have a vb4 forum and i want to convert xenforo

1- we have vbseo and want remain this structure urls
2- we have thanks plugin and want convert to reaction

how is possible?
 
 
Hello guys.

two question
i have a vb4 forum and i want to convert xenforo

1- we have vbseo and want remain this structure urls
2- we have thanks plugin and want convert to reaction

how is possible?

1) You wont be able to maintain the URL structure but you can redirect to the new XenForo ones easily.

2) This can likewise be done usually with a simple SQL statement to convert them to vBulletin repuation so the stock importer will import them.
 
1) You wont be able to maintain the URL structure but you can redirect to the new XenForo ones easily.

2) This can likewise be done usually with a simple SQL statement to convert them to vBulletin repuation so the stock importer will import them.
1- the importer by default redirect old vbseo url to new url? is there any option?
2- can you more explain and tell me what is that command?
 
1- the importer by default redirect old vbseo url to new url? is there any option?
2- can you more explain and tell me what is that command?

1. It will not. There's an add-on that can do DBSEO (replacement in vBulletin for vBSEO) redirects, though for most I prefer .htaccess rules rather than an add-on in addition to the vBulletin redirect add-on you will need.
2. There are several different thanks plugins, and you didn't say which. Converting them to Reputation points is not how I go about it. I create a "Thanks" reaction in Xenforo, and import thanks.... as thanks. :-)
 
my thanks plugin is
1. It will not. There's an add-on that can do DBSEO (replacement in vBulletin for vBSEO) redirects, though for most I prefer .htaccess rules rather than an add-on in addition to the vBulletin redirect add-on you will need.
2. There are several different thanks plugins, and you didn't say which. Converting them to Reputation points is not how I go about it. I create a "Thanks" reaction in Xenforo, and import thanks.... as thanks. :-)
Post Thank You Hack ver.7.82
 
I want to change topics urls in xenforo to this formatexample.com/f8/tapatalk-2/

8 is Id forums, and 2 is topic id

i create an addon "CustomThreadRoute"my addon.json codes is:

Code:
{
    "title": "Custom Thread Route",
    "version_id": 1000000,
    "version_string": "1.0.0",
    "dev": "Your Name",
    "dev_url": "https://yourwebsite.com",
    "description": "A custom listener to change thread URLs",
    "actions": [
        {
            "action": "XF\AddOn\AbstractAddOn::install",
            "execute_order": 10
        }
    ],
    "listeners": [
        {
            "event": "router_public",
            "action": "CustomThreadRoute\Listener::routerPublic"
        },
        {
            "event": "router.build_link",
            "action": "CustomThreadRoute\Listener::generateUrl"
        }
    ]
}

and Listener.php is

Code:
<?php

namespace CustomThreadRoute;

use XF\Mvc\RouteBuiltLink;
use XF\Mvc\Router;

class Listener
{
    public static function routerPublic(Router $router, array &$routes)
    {
        $routes['custom-route/{thread_id}-{title}'] = 'threads/view';
    }

    public static function generateUrl(RouteBuiltLink $link, $route, array &$data, array &$parameters)
    {
        if ($route === 'threads' && isset($data['thread_id'])) {
            $link->route = 'custom-route';
            $link->params = [
                'thread_id' => $data['thread_id'],
                'title' => $data['title']
            ];
        }
    }
}
also i add code event listener

enter image description here

but not working and urls not change why?

i try to create an addon for custom urls

i am testing in localhost it is for my customer and if i success we will buy xenforo, he ask me keeping dbseo format url
 
Status
Not open for further replies.
Back
Top Bottom