MyBB Community Forums

Full Version: Add a thanks function and transfer hosts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want a "Thanks" plugin that you blends in with any theme, or I need help setting one up with my theme.

Also, can anyone link me to a good video or thread on how to properly switch hosts for a mybb forum?

Please answer one or both, thanks.
Great to see someone asking politely and with good grammar...

For switching hosts, I'm guessing you're using a shared host correct? You need to export your HTML files (The php, images, etc files) and your database. You'll need to import them to your new host via phpmyadmin (If it's a VPS, it's easier via command line). You'll then need to change the appropriate database settings in /inc/config.php. For the thanks plugin, I'm guessing your forum has CSS buttons, right? You'll need to edit the core of the plugin. Link me to your forum please, and the thanks plugin you're using so that I can be sure we're on the same page.

EDIT: I found this tutorial for changing hosts: http://community.mybb.com/thread-27771.html
(2013-10-07, 10:58 PM)Rymax99 Wrote: [ -> ]Great to see someone asking politely and with good grammar...

For switching hosts, I'm guessing you're using a shared host correct? You need to export your HTML files (The php, images, etc files) and your database. You'll need to import them to your new host via phpmyadmin (If it's a VPS, it's easier via command line). You'll then need to change the appropriate database settings in /inc/config.php. For the thanks plugin, I'm guessing your forum has CSS buttons, right? You'll need to edit the core of the plugin. Link me to your forum please, and the thanks plugin you're using so that I can be sure we're on the same page.

EDIT: I found this tutorial for changing hosts: http://community.mybb.com/thread-27771.html

http://sintation.com/
Currently I am using no plugin, simply because I do not want the ugly thanks button to show up until I find a good plugin.
(2013-10-07, 11:10 PM)Rob Zombie Wrote: [ -> ]
(2013-10-07, 10:58 PM)Rymax99 Wrote: [ -> ]Great to see someone asking politely and with good grammar...

For switching hosts, I'm guessing you're using a shared host correct? You need to export your HTML files (The php, images, etc files) and your database. You'll need to import them to your new host via phpmyadmin (If it's a VPS, it's easier via command line). You'll then need to change the appropriate database settings in /inc/config.php. For the thanks plugin, I'm guessing your forum has CSS buttons, right? You'll need to edit the core of the plugin. Link me to your forum please, and the thanks plugin you're using so that I can be sure we're on the same page.

EDIT: I found this tutorial for changing hosts: http://community.mybb.com/thread-27771.html

http://sintation.com/
Currently I am using no plugin, simply because I do not want the ugly thanks button to show up until I find a good plugin.
so I guess you are not changing hosts you just require a plugin to do something ?
Install this thanks plugin: http://mods.mybb.com/view/thanks
Install the plugin. Go to inc/plugins and edit thx.php

Replace lines 310-326 with this code:
if($mybb->user['uid'] != 0 && $mybb->user['uid'] != $post['uid']) 
    {
        if(!$b)
        {
            $post['thanks'] = "<a id=\"a{$post['pid']}\" onclick=\"javascript:return thx({$post['pid']});\" href=\"showthread.php?action=thank&tid={$post['tid']}&pid={$post['pid']}\">
            <span class=\"postbit\" alt=\"$lang->thx_main\" title=\"$lang->thx_main\" id=\"i{$post['pid']}\">+Thanks</span></a>";
        }
        else if($mybb->settings['thx_del'] == "1")
        {
            $post['thanks'] = "<a id=\"a{$post['pid']}\" onclick=\"javascript:return rthx({$post['pid']});\" href=\"showthread.php?action=remove_thank&tid={$post['tid']}&pid={$post['pid']}\">
            <span class=\"postbit\" alt=\"$lang->thx_remove\" title=\"$lang->thx_remove\" id=\"i{$post['pid']}\">-Thanks</span></a>";
        }
        else
        {
            $post['thanks'] = "<!-- remove thanks disabled by administrator -->";
        }
    }

For any future themes you have, you can use this tutorial: http://cyberforums.net/Thread-MyBB-thank...SS-classes
Thanks. Still looking for a video on how to switch hosts EASILY. Thanks.