|
Topics Started By: Jonny
Jonny
Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
|
Monday, Jul 28, 2008 11:36
When uploading an attachment it kept saying 'Wrong attachment area', which was because $attachtype was not always assigned.
To solve this, open uploads/upload.php. Find (lines 201-203):
RAW CODE $topicid = escape_string($_GET['topicid']);
$attachtype=escape_string($_GET['attachtype']);
$hash=escape_string($_GET['hash']);
and move it above:
RAW CODE if (isset($_GET['id'])){
That should solve the problem
|
|
|
Jonny
Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
|
Wednesday, Nov 07, 2007 19:40
The banned feature won't work because there's single quotes around $warn_level:
header.php:RAW CODE if ($max_warn_level<='$warn_level'){
Needs to be: RAW CODE if ($max_warn_level<=$warn_level){
Last edited by:
Caleyjag
- Tuesday, Nov 27, 2007 19:05.
|
|
|
Jonny
Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
|
Wednesday, Oct 17, 2007 18:29
Download the latest version: here
So it's been a while since my last modification for BabbleBoard, mainly because I got bored of writing the same code over and over. However developing this mod is something new and interesting because its programmed in OOP (most won't know what that is).
So what does it do I hear you say? Its hard to explain because its not finished yet, and I want to keep as much as possible secret, but a good example is IPBSDK. Have a look at some of the functions on the left, especially the member functions, this exactly what this mod will do.
To use it'll be as simple as uploading two files to your forums and including it in your sites index.php page.
It can then be used to create member only pages, admin only pages, showing latest posts & topics, etc on your site.
Heres an example to check if a user is online:RAW CODE if ($bbsdk->user_is_loggedin()){
echo "i am logged in :)";
}
else {
echo 'Im not logged in :(';
}
Another example, this time check if the forums are offline:RAW CODE if ($bbsdk->board_offline()){
echo "board is offline...";
}
else {
echo "board is online...";
}
In the first release there'll only be the most important functions probably, but as it grows so will the feature list.
So far there features ive thought of are:RAW CODE logged in, online, get posts, get topics, board offline, group info, is admin, is mod
If anyone thinks of any good features to be included then post them here.
Also ideas, opinions and comments would be welcome as always.
I'll look to keep you all informed over the next few days
|
|
|
Jonny
Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
|
Friday, Jun 29, 2007 21:58
So earlier today I decided it was about time i installed php, mysql, apache etc on my computer after i lost a few files when my web host went down.
Everything has worked well so far, installed apache, php and mysql fine. All i need to know is how to view the mysql, do i have to install phpmyadmin?
If i do need to install phpmyadmin, then i need some help, since it won't log in
Please help me... :cry:
EDIT: Probably should be moved into Web Development
|
|
|
|