Basilmobile - a mobile version of basil
[header]Basilmobile[/header]
[header]Notes[/header]
[*] @eeveepony told me that I was allowed to post the code
[*] feel free to rename/throw away/move the thread if necessary
[*] I will try to only put working code on github so assume that the code online is working!
[*] [i]IF[/i] any data is stored, it will be stored on your comp! You don't have to trust anyone else with your info.
[header]Introduction[/header]
This thread's purpose is to share my work on a mobile version of basil with other basilers, I'd be very glad for any input, comments etc. We will all benefit from it.
[header]What is github?[/header]
It's like facebook for programmers!
Basically, github makes it very easy to share your work and work in groups.
Example:
Get all files in the repository: git pull
Update files in reposirory: git push
etc.
[header]How to install/use[/header]
[b]The updated guide is always on github![/b]
Link: http://github.com/mindstormer/Basilmobile/blob/master/README.markdown
1. Install a server (WAMP, MAMP, LAMP) google them
2. Go to the root folder, for example: C:wampwww
3. Paste the basilmobilealpha-folder in your root folder (www)
4. Start your server
5. Open your browser and navigate to: http://localhost/basilmobilealpha/
6. Done!
[b]IMPORTANT NOTICE![/b]
You need to turn on theese modules in order to use this apication:
[*] rewrite_module (apache)
[*] php_curl (php)
[*] php_openssl (php)
[*] php_mysqli (php)
[b]IMPORTANT NOTICE![/b]
You need to port-forward in order to access the site with your phone, otherwise you will only be able to run the site localy on your computer!
Use google to find a guide on how to open the correct ports, all routers are different.
[header]The files[/header]
You can view and download all the files here: http://github.com/mindstormer/Basilmobile
[header]Update log[/header]
[header]The start (2011-04-03)[/header]
All the files were added to github, below is a list of added features:
[*] Latest videos
[*] Latest screens
[*] Rules
[*] Added direct link to image
[*] Added direct link to youtube
[*] Made rules collapsible
Also fixed pretty URL's and imported the cURL-lib for codeigniter.
Images:
([b]old[/b]) Homescreen icon for iPhone users: http://i242.photobucket.com/albums/ff216/habokillen/apple-touch-icon.png
([b]new[/b]) Homescreen icon for iPhone users: http://i242.photobucket.com/albums/ff216/habokillen/11d0b7de.png
Startpage: http://i242.photobucket.com/albums/ff216/habokillen/16df6232.png
Screens: http://i242.photobucket.com/albums/ff216/habokillen/a5fe4854.png
Videos: http://i242.photobucket.com/albums/ff216/habokillen/57d460ac.png
Some code: (for learning purpose)
This is the code that get the list of the latest screens/videos from basil: http://github.com/mindstormer/Basilmobile/blob/master/Basilmobilealpha/application/controllers/show.php
[header]Newsfeed (2011-04-09)[/header]
New day, new updates. Have added a newsfeed for the following sites:
[*] GMS
[*] EMS
[*] hidden-street
[*] spadows blog
Some pics:
http://i242.photobucket.com/albums/ff216/habokillen/Namnlsglobal.jpg
http://i242.photobucket.com/albums/ff216/habokillen/Namnlsnews.jpg
[b](FIXED)[/b]Also noticed a bug in the video script wich means that it's currently not working. I will try to solve this as soon as possible!
[header]Auth system (2011-04-12)[/header]
I've added a db-session library and written a custom basil helper file. The helper includes encryption and decryption functions. In order to use the new features you have to turn on your php_openssl module.
The helper can be found here: http://github.com/mindstormer/Basilmobile/blob/master/Basilmobilealpha/application/helpers/basil_helper.php
The login page can be found here: http://github.com/mindstormer/Basilmobile/blob/master/Basilmobilealpha/application/controllers/login.php
Next feature will probably be the forum part. There is alot of work to do on the forum so it will probably be released in parts. (ex. read update -> post update -> create threads update -> "extras"
[header][/header]
[header]I want to help![/header]
I'd gladly apreciate some help on this project, PM me the following form:
Programming experience:
Preffered languages:
Worked with codeigniter: (yes/no)
I know how to use github: (yes/no)
Additional info:
25 Comments • Newest first
@SolaceAbyss:
I've asked the mods if I can give basilers access to my private webserver but I haven't got a response from them yet. If I just post it without asking them they might mistake it for advertising.
[b]Small update:[/b] fixed a bug in the login system. (a new cookie was created every pageload) should work properly now though...
@Jake305:
Mr.B haven't created such a feature because he said that it was useless.
Regarding Anonyma, no, basilmarket is not supported by that or any other app in the appstore. This is the only mobile version of basil released as far as I know.
Am I the only one who saw the title and tought someone made a Basil version of the Batmobile?
[quote=xXjarakudaXx]Sign up as an apple developer and put it on itunes![/quote]
That's unnecessary, I'm using the jQuerymobile framework, basically, it looks like an app but it works on both iOS and android.
[b]UPDATE:[/b]
Added a login (auth) system, this is a necessary addition before I can start on the forum section.
Sign up as an apple developer and put it on itunes!
@xXjarakudaXx:
The good thing is that it's free...
Videopage should be fixed, the bug was caused by a change in basils source code.
I would soooo pay a dollar for this.
[quote=chimchar1205]what about android?[/quote]
jQuerymobile runs on android devices, a list of supported devices can be found here: http://jquerymobile.com/gbs/
[b]UPDATES[/b]
Today I've added a newsfeed, any thoughts/comments?
[quote=malapo]@jonatan:
yeah I think it's the latest one since I just downloaded it
"php_curl" wasn't enabled but it still doesn't seem to be working. And I checked in notepad it does say localhost[/quote]
Maybe your rewrite_module is off.
Click on the server icon -> apache -> apache modules -> check rewrite_module
I managed to replicate the error message by turning it off.
Glad to see this thread is still alive!
I've seen you doing really good work, keep it up
@malapo:
Weird, do you use the latest version of it?
screens and videos is using cURL, check if that's enabled.
Click on the server icon -> PHP -> PHP addons (I think it's called that, my WAMP has swedish menus) -> check if php_curl is enabled in the list
Also, if you open your config.php file (basilmobilealpha/application/config/config.php) and check if the base_url is localhost. Should be something like this in the beginning of the file: $config['base_url'] = 'http://localhost/basilmobilealpha/';
EDIT: just tested in FF and it worked for me. (I'm normally using chrome)
[quote=malapo]oh I put it in the main folder instead of www. It works on my laptop now but not on my iPhone. I also get an "error loading page" when I click one of the buttons[/quote]
Wich button?
[quote=Gigaman]So wait, we need to setup a server on our comps first?[/quote]
Yes.
[quote=ChickenOnRice]hopefully u can set up an android one.[/quote]
jQuerymobile works on android also. It has cross-platform support.
Why spend time on making 2 apps when 1 is enogh to cover both of them?
[quote=malapo]hmm I can't get this to work. "Cannot Open Page - Safari cannot open the page because the server cannot be found"
Doesn't work on my laptop Firefox either
I guess I need to port forward or something? Not really sure how[/quote]
That can be caused by a number of reasons, start debugging by testing it locally.
1. Install a webserver, WAMP if you use windows. (WAMP because it's easy to use for beginners, it comes pre-configured with MYSQL, PHP5 and phpmyadmin)
2. Start your webserver.
3b. additional step: open your browser and type in localhost, if you get some result your server is working.
3. Place the basilmobilealpha folder in your root directory. (the www-folder)
4. type: localhost/basilmobilealpha in your browser window
If this is working then you can continue with opening ports.
[quote=ravkin]The links have mindstormer's name in them.
Does this mean that all of this is done by mindstormer and not you?
Or?[/quote]
It's made by me.
Regarding the name: it's a cool username that I accually use on a number of websites. Sorry if that's unclear.
[quote=ravkin]Are there any issues that can occur for people that use this?
Users should have a right to know of any known issues.[/quote]
"Issues" is a [i]very[/i] broad question because it can be basically any error.
This is under development wich means that small bugs can occur, yes. [b]But[/b], thoose bugs is usually noticed when I test the additions before adding them to github.
Worst case scenario: a link may be broken when parsing info from basil. Codeigniter is a good and secure foundation.
[quote=Shroomsly]Anyone else pronounce the "mobile" part like they would "batmobile"?[/quote]
YESSS! That's exactly what I thought of when I saw this for some reason. >_<
Wow, two thumbs up man.
If I had an iPhone & a data plan, I would actually use this ^_^
[quote=moonpanda]>Go to internet on phone and type in basilmarket.com.
Done.[/quote]
Been there, done that, head hurt. @_@
I used the IPhone of a friend and maybe it's because I'm not used to using such phones (my phone's from 2006), but I didn't like how the site worked on it. :S I'm not planning to ditch my good old phone, but it could be beneficial for those who do Basil a lot on iPhones.
[quote=Etokapa]This is awesome!
I'm tempted to set up a server for this...[/quote]
I already have a server but @eeveepony said that I shouldn't share it because it could be considered as advertising. Even if it's just for demonstration purposes.
To everyone else: thanks for the comments, I really apreciate them!
I might add a function that automatically get the latest news from GMS, EMS and spadow later today.
[quote=Shroomsly]Anyone else pronounce the "mobile" part like they would "batmobile"?[/quote]
I did that...
I thought this was going to be some kind of parody picture or something.
@Shroomsly LOL i did that ! i thot this was going to be some sort or BasilMarket truck, or Basil on wheels lol.
OT: but yea a mobile version of this site would be [b]awesome[/b].
does it work on PSP?
Anyone else pronounce the "mobile" part like they would "batmobile"?
This is awesome!
I'm tempted to set up a server for this...
I think we're all underqualified to do this.
I commend you on your dedication and work on this.
Oh cool.