Topic: babespy.net - Powered by punbb

Hello everybody. After testing many forums (mybb, phpbb e.t.c) for the ease of design and customisability (is that a word?), I decided to choose punbb. Three days on and this is where I'm at...

Babe Spy - Does not contain adult images but links to them.

A little info on what I have created. There is only 1 mod installed (cash mod). It's a custom portal because I started it before looking at what was available (silly me). The theme is basically oxygen with 1 image and a handful of extra style properties. I edited a lot of the files which I probably could have left alone but for a first time the result is acceptable.

I plan on contributing to punbb as much as I can. I know its not much but if anyone would like to know how I done any part of this just ask, I'll try to respond as soon as I can.

Thankyou for such a wonderful product,
Malloy.

2 (edited by Dr.Jeckyl 2006-02-21 22:54)

Re: babespy.net - Powered by punbb

i really like how you did the "profile" of each babe as the suedo first post of the thread. also i don't see where to submit/post new babes.

~James
FluxBB - Less is more

Re: babespy.net - Powered by punbb

Each babe is a forum and their profile is the description field. Because each babe is a forum this means that users cannot submit their own babe. This is a huge design flaw which i only realised half way through but decided to go ahead anyway.

Is there a simple way to allow ordinary users to create new forums in a certain category?

Thankyou for taking the time to look at my site smile

4 (edited by Smartys 2006-02-21 23:44)

Re: babespy.net - Powered by punbb

I was bored, so I wrote something that should work tongue

<?php
/***********************************************************************

  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)

  This file is part of PunBB.

  PunBB is free software; you can redistribute it and/or modify it
  under the terms of the GNU General Public License as published
  by the Free Software Foundation; either version 2 of the License,
  or (at your option) any later version.

  PunBB is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  MA  02111-1307  USA

************************************************************************/

define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';

// Put the category ID in here
$category = '3';

// Add a "default" forum
if (isset($_POST['add_forum']))
{
        $forum_name = $db->escape(trim($_POST['forum_name']));
        $forum_desc = $db->escape(pun_linebreaks(trim($_POST['forum_desc'])));

        if ($forum_name == '')
        message('You must enter a forum name.');

        $db->query('INSERT INTO '.$db->prefix.'forums (forum_name, forum_desc, cat_id) VALUES("'.$forum_name.'", "'.$forum_desc.'", '.$category.')') or error('Unable to create forum', __FILE__, __LINE__, $db->error());

        // Regenerate the quickjump cache
        require_once PUN_ROOT.'include/cache.php';
        generate_quickjump_cache();

        redirect($_SERVER['PHP_SELF'], 'Babe added. Redirecting …');
}

$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Forums';
require PUN_ROOT.'header.php';

?>
        <div class="blockform">
                <h2><span>Add babe</span></h2>
                <div class="box">
                        <form id="addforum" method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>">
                <table>
                    <tr>
                        <td>Babe name:</td>
                        <td><input type="text" name="forum_name" value="" size="50" /></td>
                    </tr>
                    <tr>
                        <td>Babe description:</td>
                        <td><textarea name="forum_desc" cols="50" rows="10"></textarea></td>
                    </tr>
                </table>
                                <p class="submitend"><input type="submit" name="add_forum" value="Add babe" tabindex="<?php echo $tabindex_count ?>" /></p>
                        </form>
                </div>
        </div>
        <div class="clearer"></div>
<?php

require PUN_ROOT.'footer.php';

Change the catgeory variable to the correct category, name it whatever you like, put a link to it.
If you want to force people to use specific fields (like date of birth and nationality) just replace the description with some regular input fields and have the submit bit put all the bits together

Re: babespy.net - Powered by punbb

This works perfect thankyou smile

Re: babespy.net - Powered by punbb

I'm guessing this isn't work safe then? smile

"Programming is like sex: one mistake and you have to support it for the rest of your life."