THT Community (TCom)

Full Version: TheHostingTool and XenForo Post2Host Plugin | 1.0.0 Beta
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Plug-in Information
I am proud to present the first public beta release of the THT - XF Plugin, created by Liam D, owner of RocketSlice.com.

This plug-in works with the latest THT release (1.2.3) and the latest beta release of XenForo (1.1 Beta 4). The plug-in wasn't tested in the 1.0.x branch of XenForo.

This is Beta Software
Please remember that this is beta software. Please backup your TheHostingTool folder before uploading the plug-in files. Although we have not found any bugs while testing the plug-in, it is not safe from bugs.

Please report any bugs and errors you find in this thread.

Installation Instructions
Installing the plug-in is easy.
1. Download the THT_XF_Plugin-1.0.0-Beta1.zip included in this thread.
2. Save the file to your computer.
3. Unzip the file that you downloaded, and upload the includes folder using FTP. If asked, overwrite existing files.
4. Ta-dam!

If you made any modifications to p2h.php and addforum.tpl, they will be changed. Keep a backup of those files just in case.
Contents of the .zip:
THT_XF_Plugin-1.0.0-Beta1.zip
--Includes
----tpl
------addforum.tpl
----types
------p2h.php
Very cool! As a heads up, v1.2.4 will include quite a few changes to p2h.php and addforum.tpl if I'm not mistaken.
This is actually my 2nd plugin. I made one for FluxBB before, but unfortunately I lost it. Oh well. I'm looking forward to making more THT plugins as time passes by.
(10-28-2011 01:57 AM)Liam D. Wrote: [ -> ]This is actually my 2nd plugin. I made one for FluxBB before, but unfortunately I lost it. Oh well. I'm looking forward to making more THT plugins as time passes by.

You are "Andrej"? If so you can use the forgot your password feature to recover the account.
(10-28-2011 07:29 PM)Kevin Wrote: [ -> ]
(10-28-2011 01:57 AM)Liam D. Wrote: [ -> ]This is actually my 2nd plugin. I made one for FluxBB before, but unfortunately I lost it. Oh well. I'm looking forward to making more THT plugins as time passes by.

You are "Andrej"? If so you can use the forgot your password feature to recover the account.

No, I am not Liam D. I got permission to share this plug-in with the community, as at that point Liam was busy to do it himself.
Nope, I was too busy at the time to post the plugin here, as I was resolving a server issue on my site. Anyway. Enjoy the plugin Smile
Ah. I see.
BTW. Andrej forgot to put: If you made any modifications to p2h.php and addforum.tpl, they will be changed. Keep a backup of those files just in case.
PHP Code:
case "xenforo":
                
$result mysql_query("SELECT * FROM `{$prefix}user` WHERE username = '{$fuser}'"$this->con);
                if(
mysql_num_rows($result) == "0") {
                    return 
3;
                }
                else {
                    
$member mysql_fetch_array($result);
                    
                    
                        if(
$member['message_count'] >= $signup) {
                            return 
1;
                        }
                        else {
                            return 
0;
                        }
                    
                }
            break; 

Um, not to be a party buster, but that doesn't check passwords!

I'll fix it asap and include the code in my next post.
Yeah, Jerry, talked to you on Skype. Nice to see you working on it. xenForo's DB uses BLOBS >.< That's why I was having a hard time.
Pages: 1 2
Reference URL's