BabbleBoard Support Forums
What Are YOU Babbling About?
Hello Guest!  |  Home  |  Search  |  Login  |  Register
Posts By Jonny

Page: 1 2

Forum Dead??
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Sunday, Sep 27, 2009 16:53  Trackback URL

Hi. If I were you I'd take a look at NovaBoard. It was created by the original developer of babbleboard, and is still being actively developed under new management (unlike babbleboard which is basically dead).

And payments work fine on novaboard  
This Topic Has Attachments You do not have permission to download attachments in this forum
Go To Top


Help me
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Monday, Jul 28, 2008 11:44  Trackback URL

I hope the attachments bug gets fixed soon (it works on a fresh install of 1.1.6, but not here).

Ive decided to create a directory with my mods, which you can find here. There you should be able to download the portal  
Go To Top


Change index.php to a changeable setting
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Wednesday, Jul 23, 2008 11:32  Trackback URL

So you want users to be able to log in on the forum, and then also be logged in on your site?
If so, you just need to change the cookie paths. You can do this by opening up includes/pages/login.php, and find:
RAW CODE
if ($_POST['remember']!=''){
setcookie("bb_name", $name, time() +31536000);
setcookie("bb_password", $password, time() +31536000);
}
else{
setcookie("bb_name", $name);
setcookie("bb_password", $password);
}

and replace all that with:
RAW CODE
if ($_POST['remember']!=''){
setcookie("bb_name", $name, time() +31536000, '/');
setcookie("bb_password", $password, time() +31536000, '/');
}
else{
setcookie("bb_name", $name, null, '/');
setcookie("bb_password", $password, null, '/');
}

Hope that helps  

P.S. You could also take a look at bbSDK which i created a while ago. It was designed specifically to integrate babbleboard with a site.
Go To Top


My website\'s disappeared
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Thursday, May 15, 2008 15:22  Trackback URL

Your quote kinda gives it away that you need to run install.php.
Go To Top


sef error
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Friday, Feb 22, 2008 15:22  Trackback URL

If your hosting doesn't allow .htaccess then you shouldn't have turned it on. Changing the value to 0 in the database should have fixed the problem?

If this is the code you are using to set the value to 0, then its wrong:
PHP CODE
$sql = 'SELECT * FROM `babbleboards_settings` LIMIT 0, 30 '; 

Instead it should be:
PHP CODE
mysql_query("UPDATE {$db_prefix}settings SET sef_urls='0'");

Hope that helps
Go To Top


registration code
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Saturday, Feb 16, 2008 10:52  Trackback URL

Probably because your server doesn't have the latest version of the GD library installed. To check this, create a new file anywhere on your server called phpinfo.php and paste the following inside:
PHP CODE
<?php phpinfo(); ?>

Then browse to this file from your web browser, and see whether GD support is enabled.
Go To Top


Couple Of Things
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Sunday, Feb 10, 2008 10:04  Trackback URL

Maybe try checking the database and see if it exists in there?
Go To Top


[1.1.5] Links open in a new window
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Tuesday, Jan 15, 2008 13:26  Trackback URL

Yes, i did realise that after starting work on it The only added bonus i suppose is that you can turn it on/off from the admin area.
Go To Top


Cookie Paths
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Monday, Jan 14, 2008 18:05  Trackback URL

Did this never happen then?
Go To Top


[1.1.5] Welcome PM
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Monday, Jan 14, 2008 15:51  Trackback URL

Very true, 160 online in the last 24 hours, only 1 post today
Go To Top


BB Portal
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Sunday, Jan 13, 2008 22:32  Trackback URL

Unfortunately I've lost the template file for this, and don't really feel like re-creating it, sorry.
Attached is the updated version though, so if anyone wants to write the template file for it, feel free.
This Topic Has Attachments You do not have permission to download attachments in this forum
Go To Top


BB Portal
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Sunday, Jan 13, 2008 15:26  Trackback URL

So it does install correctly, just the links need updating?
Go To Top


BB Portal
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Sunday, Jan 13, 2008 13:01  Trackback URL

Ali Trackback URL

Will this still work for 1.1.5?

I really want to use it. It's perfect for what I want.

Im not sure, try and install it and see if it works. If not, ill update it for 1.1.5
Go To Top


Problem when installing
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Sunday, Jan 13, 2008 11:16  Trackback URL

In phpmyadmin go to the settings table and click 'SQL' at the top. In the text box, paste the following:
RAW CODE
ALTER TABLE `babbleboard_settings` ADD `bb_version` TEXT NOT NULL
and then click 'go'

Note: You may need to change 'babbleboard_' if you have a chosen a different table prefix.
Go To Top


Captcha error
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Saturday, Jan 12, 2008 17:49  Trackback URL

Click - Link to download & installation instructions etc
Go To Top


BB Portal
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Monday, Nov 12, 2007 20:58  Trackback URL

Nope sorry, here's a screenshot though.

This Topic Has Attachments You do not have permission to download attachments in this forum
Go To Top


Banned doesn't work?
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Wednesday, Nov 07, 2007 20:27  Trackback URL

Okey dokey

If it does work with single quotes, it should be changed though.
Go To Top


Forums -> Site Integration Development
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Thursday, Oct 25, 2007 17:06  Trackback URL

And here comes v0.2

This version features 10 new functions mostly based around the user. It also includes changes to some functions such as renaming and altering of some functions.
All changes have been recorded in the included changelog.txt.

So this version is again mostly for testing and feedback purposes. It now also as a much easier to follow install guide, and also the example area is layed out neater.

With more functions means more examples, so make sure you take a look at them if your interested in using this.

So anyway, download and test, and report back any bugs etc please
This Topic Has Attachments You do not have permission to download attachments in this forum
Go To Top


Cookie Paths
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Monday, Oct 22, 2007 20:02  Trackback URL

Suppose you could if you want
Go To Top


Cookie Paths
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Monday, Oct 22, 2007 19:43  Trackback URL

With a time:
RAW CODE
setcookie("bb_name", $username, time()+3600, "/"");


Without a time:
RAW CODE
setcookie("bb_name", $username, NULL, "/"");


Logging out:
RAW CODE
setcookie("bb_name", "", time()-3600, "/"");


And instead of "/" you would have something like "$cookie_path" which could be set from the admin area.
Go To Top


Cookie Paths
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Monday, Oct 22, 2007 17:49  Trackback URL

Well as seen in my new mod, you need to edit the cookie paths to get them to work throughout the site, not just under the /forums directory.

Having the ability to easily change the paths of the cookies can allow people to use the cookies throughout their site
Go To Top


Forums -> Site Integration Development
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Sunday, Oct 21, 2007 22:17  Trackback URL

So here we go then, a bit later than Thursday/Friday I admit but I tried to include a few examples and what not with it.

This version is basically just for testing and for feedback etc. However it does have enough functions for it to be usable on your site.
Things like loggedin, user info, new pms, list pms, newest member, member info, etc have all been included.

So go and give it a test and report back any bugs and stuff here.
There are a few functions not complete yet, such as new_pms, so they don't need to be mentioned.

To install, just download the .zip file, and read the install.html file located in the documentation folder.
This Topic Has Attachments You do not have permission to download attachments in this forum
Go To Top


Javascript Help
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Thursday, Oct 18, 2007 17:57  Trackback URL

Hmm, have you tried using double quotes around <img .. />?

Edit - Doubt this'll work, but i think you need something like this:
RAW CODE
function edAddTag(button) {
var img = '<img src="kjhfjk" />';
if (edButtons[button].tagEnd != '') {
edOpenTags[edOpenTags.length] = button;
document.getElementById(edButtons[button].id).value = img + document.getElementById(edButtons[button].id).value;
}
}
Go To Top


Javascript Help
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Thursday, Oct 18, 2007 17:45  Trackback URL

Can you not just change 'x' to something like: <img src="icon.png" /> ?
Go To Top


Forums -> Site Integration Development
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Thursday, Oct 18, 2007 16:30  Trackback URL

I've already made a function that can show all topics or from certain forums., but you might as well post yours to see if there's anything I can add to mine
Go To Top


Forums -> Site Integration Development
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Thursday, Oct 18, 2007 11:37  Trackback URL

Yep thats the general idea. Rather than someone who has limited knowledge of php having to write out large mysql queries to get info, its now as simple as calling a function
Go To Top


Forums -> Site Integration Development
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Wednesday, Oct 17, 2007 23:17  Trackback URL

Rob Trackback URL

Does this include something simple such as putting the little nav bar (logged in, yes, no, my controls, new messages etc) on a mainsite rather than just on the forums?

It was something that I was going to look at tomorrow for my own use, but if it's something which your thing will deal with, i'll leave it and wait to see what you've come up with.
If you want you can easily recreate the nav bar by using the functions username, logged_in, new_pms, etc.

So a simple nav bar could be:
RAW CODE
require_once ('../bbsdk_class.php');
$bbsdk = new bbSDK();

echo '<div class="nav-bar">';

if ($bbsdk->user_is_loggedin())
{
echo 'Logged in as: .'$bbsdk->username();
echo ' | <a href="....?page=mycontrols">My Controls</a>';
if ($bbsdk->get_new_pms()!='0')
{
echo ' | '.$bbsdk->get_new_pms().' New Messages';
}
}
else
{
echo 'Welcome <i>Guest</li> | <a href="...?page=login">Login</a> | <a href="...?page=register">Register</a>';
}

echo '</div>';
?>
Go To Top


Forums -> Site Integration Development
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Wednesday, Oct 17, 2007 22:59  Trackback URL

Rob Trackback URL

Looks quite a good idea, it'll be interesting to see how it's implemented

you got a timeline for this?
Errm, I'm hoping to have the first version released either tomorrow or Friday. It won't have too many features but it'll allow me to get feedback etc.

Caleyjag Trackback URL

Yeah, I'll be watching this, could be very helpful in creating a kind of portal page for BB
Yep, it should come with some nifty functions that make creating a portal page easy peasy.
Go To Top


Grab your stats
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Wednesday, Sep 26, 2007 19:46  Trackback URL

Just finished creating this myself, its quite simple, but does the job. Basically you upload a file to your site, enter your site url into a file (which could be located here at BB) and it creates an image.

Heres the first file (which would be good if hosted here on BB )
RAW CODE

//////////////////////////////////
// BabbleBoard forum stats by Jonny //
// http://www.jaanboy.com //
//////////////////////////////////
// To show posts enter {posts} //
// To show topics enter {topics} //
// To show members enter {members} //
//////////////////////////////////

if (isset($_GET['site'])){
$site = $_GET['site'];
}
elseif ($_POST['submit']){
$site = $_POST['site'];
}

if (isset($site))
{

$stats = file_get_contents(''.$site.'/stats.php');
$stats = explode("|", $stats);

if (isset($_GET['site']))
{
$string1 = $_GET['text1'];
$string2 = $_GET['text2'];
$string3 = $_GET['text3'];
}
elseif ($_POST['submit'])
{
$string1 = $_POST['text1'];
$string2 = $_POST['text2'];
$string3 = $_POST['text3'];
}

$string1 = str_replace("{posts}", $stats[0], $string1);
$string1 = str_replace("{topics}", $stats[1], $string1);
$string1 = str_replace("{members}", $stats[2], $string1);

$string2 = str_replace("{posts}", $stats[0], $string2);
$string2 = str_replace("{topics}", $stats[1], $string2);
$string2 = str_replace("{members}", $stats[2], $string2);


$string3 = str_replace("{posts}", $stats[0], $string3);
$string3 = str_replace("{topics}", $stats[1], $string3);
$string3 = str_replace("{members}", $stats[2], $string3);

header("Content-type: image/png");

$img = imagecreate(300, 100);
$white = imagecolorallocate($img, 255, 255, 255);
$black = imagecolorallocate($img, 0, 0, 0);

imagestring($img, 5, 0, 0, $site, $black);
imagestring($img, 5, 0, 40, $string1, $black);
imagestring($img, 5, 0, 60, $string2, $black);
imagestring($img, 5, 0, 80, $string3, $black);

imagepng($img);
imagedestroy($img);

}

else
{
?>
<form method="post" action="">

Your site URL (no trailing slash (/)): <input type="text" name="site" />
String 1: <input type="text" name="text1" />
String 2: <input type="text" name="text2" />
String 3: <input type="text" name="text3" />

<input type="submit" name="submit" value="Submit" />

</form>
}

?>
In the form the user can type {posts}, {topics} and {members} to show the three stats from their board.

Finally, for this to work they need to create a file called 'stats.php' with the following inside and upload to their forums' root:
RAW CODE

//////////////////////////////////
// BabbleBoard forum stats by Jonny //
// http://www.jaanboy.com //
//////////////////////////////////

define("BB_RUN", 1); require 'includes/config.php';

$query2 = "select ID from {$db_prefix}posts" ;
$result2 = mysql_query($query2) or die("online.php - Error in query: $query2") ;
$posts=number_format(mysql_num_rows($result2));

$query2 = "select DISTINCT TOPIC_ID from {$db_prefix}posts" ;
$result2 = mysql_query($query2) or die("online.php - Error in query: $query2") ;
$topics=number_format(mysql_num_rows($result2));

$query2 = "select ID from {$db_prefix}members" ;
$result2 = mysql_query($query2) or die("online.php - Error in query: $query2") ;
$members=number_format(mysql_num_rows($result2));

echo "$posts|$topics|$members";

?>
Go To Top


Trackback URL going to low
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Tuesday, Sep 25, 2007 21:57  Trackback URL

Works fine for me
Go To Top


 
 
Powered by BabbleBoard v1.1.6
All Content © BabbleBoard Support Forums