MyBB Community Forums

Full Version: [Tutorial] How to use the MyBB SVN/SubVersion code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6
Before I start, I'll just reittrrate that the code from the SVN is to be used with care and caution. The 1.4 branch contains bug fixes, and you are more than entitled to use it patch your board if you want to, but you will not get any support for it, any support on how to patch your board with SVN code, or help if something goes wrong after you use it, it's used at your own risk and is recommended for advanced users only, and only if you really need to have a bug fixed as soon as possible. The 1.6 code is also only meant for testing, it is not finished, so it is not stable, you'll probably have errors using it on a localhost, let alone a live site, plus there's obviously no support for it. Enjoy it on your localhost and report bugs you find but don't base a live site on it.

The purpose if this tutorial is simply for setting up the SVN on your localhost so you can have a play.

This tutorial also assumes you already have a localhost setup on your computer, I won't go into how to do that.

First, you'll need an SVN client. For Windows, I recommend Tortoise SVN; it intergrates very nicely with Windows, and is what I'll be demonstrating in this tutorial. There's a list of alternatives here: [wiki]DevelopmentConfusedVN_Access#Subversion_clients[/wiki]

Next you need to create a folder to put the files. If you're using WAMP you'd need to create it in C:\WAMP\www\ and if you're using XAMPP it'll be C:\XAMPP\htdocs\

Now, you can choose what version of the MyBB SVN you want to use. As explained here, if you want the bug fixes for 1.4.x, this is the URL you'll need...

http://svn.mybboard.net/mybb/branches/1.4-stable/

... and if you want the 1.6 code, this is the URL you'll need...

http://svn.mybboard.net/mybb/trunk/

... of if you want everything, you'll need this:

http://svn.mybboard.net/mybb/

Create a folder in the normal way. What I personally do is have a folder for the 1.4.x code, and another for the 1.6 code, rather than having everything in one place. So, say I call the folder mybb14xsvn. Right click the folder, and choose SVN Checkout:

[attachment=15861]

You'll then see this box come up:

[attachment=15862]

Only change the 'URL of repository' option, leave everything else as it is. As this folder is for the 1.4.x code, I'd need the first URL from above. Put that in, and hit OK. A box will come up saying what files are being transfered, just let it load. When it's done it'll say 'Completed At revision: X'.

[attachment=15863]

You can then click OK.

There we go, you've got the SVN code. You now need to go to http://localhost/mybb14xsvn/install/index.php and install as you normally would.

You can now repeat this for the 1.6 version.

Every so often you'll need to update the SVN to get the latest code. To do this, right click the folder, and choose SVN Update.

[attachment=15864]

You'll then get a box very similar to the one when you initially checked out the SVN, telling you what files have been added/changed/removed since you last updated.

If files in the ./install/ folder have been changed in an update, I always install again; this is probably more important on the 1.6 SVN code as you might get a new feature in the updated code but the templates may be missing the code to show it, but running the installer again with the latest ./install/ files will make sure everything's up to date.

That's about it... enjoy Smile
Thanks Matt! I'm doing it right now Smile Thanks.
There are alternatives to Tortoise/RapidSVN, and if this is the first time (or you're a beginner) then those are the best to use. Personally I use SmartSVN for Windows - which is immense.

Great stuff, Matt... Toungue
Working on this now, cant wait to test 1.6 Big Grin
How do i download the 1.6 code, it only shows a list of the files.
Are you checking it out with an SVN client...?? You can't just visit the URL in your browser.
O i see, alright thanks.
This is awesome stuff.
(2009-12-16, 06:20 PM)EquippedMind Wrote: [ -> ]O i see, alright thanks.
This is awesome stuff.

I know. For some reason i don't have /trunk/ even though i did it all. (I used http://svn.mybboard.net/mybb/)
That link is dead.
(2009-12-16, 11:37 PM)EquippedMind Wrote: [ -> ]That link is dead.

You put it in the SVN module. Not in a browser. Smile

I updated and got it, most likely it timed out on my crappy inet connection Toungue

Thanks.
Pages: 1 2 3 4 5 6