PM system is somewhere in the punBB addons site
+ from few weeks there is my CMS - RkCMF which uses punBB | "example" site | get it |
You are not logged in. Please login or register.
PunBB Forums → Posts by Riklaunim
PM system is somewhere in the punBB addons site
+ from few weeks there is my CMS - RkCMF which uses punBB | "example" site | get it |
wow nice but whats with the Freewebs page builder look?
What do you meen by " Freewebs page builder look" ?
Download here (tar.bz2 rather for unix/linux users)
Installation how-to is in the "install.txt" file
Modules are in the download... extra eng description should show up tomorrow
hm... I'll see what I can do
Is there a way to disable the cache (quick jump etc)? I'm using punBB in multisite (one script - few bords based on $_SERVER['SERVER_NAME']).
The new ver of RkCMF is out and it is integrated with punBB :)
A RkCMF site: link
VIS example (something like a category): link - not that on the bottom there are "links" to some of the punBB forums (which is here :)
RkCMF is a system designed mainly for content management - text and simillar data. If you add an article - there are no categories - everything is hand made in VIS where you can use ContentBBcode like to insert a link to an article with it title and desc you enter [A=id] where id is the article ID :) The forum thing is just:
[FSTART=my forum]
[F=2]
[F=3]
[FSTOP=x]
RkCMF can run on MySQL and Postgres. SQLite isn't supported yet and Postgres may be unstable... It can run in a multisite (1 copy of RkCMF/punbb - multiple sites). Current Langs: Polish / English... but I have to write the english install how to and make punbb english install.php (some files like the installer have been hacked a bit). RkCMF should be released for english speaking people in a couple of days... support site admins are/will be wanted - I don't have so much free time to maintain everything...
ADOdb is the slowest acording to my tests
ok, fixed no start / end transaction... You can expect RkCMF (Polish and English lang supported) to show up in 1-2 days.
I have a problem with SQLITE and Postgres within my CMF - I making a CMF called RkCMF which from incoming release will be integrated with punBB - users, db classes and... forum
- structure:
/rkcmf
-- forum/ (pun here)
-- other/
-- some files
- in punBB install I've added the core tables like:
switch ($db_type)
{
case 'mysql':
case 'mysqli':
$sql = 'CREATE TABLE '.$db_prefix.'cmf_blocks (id smallint(5) unsigned NOT NULL auto_increment, location varchar(20) default NULL, number smallint(5) unsigned default NULL, title varchar(255) default NULL, content text, PRIMARY KEY (id))';
break;
case 'pgsql':
$db->start_transaction();
$sql = 'CREATE TABLE '.$db_prefix.'cmf_blocks (id SERIAL, location varchar(20), number int, title varchar(255), content text, PRIMARY KEY (id))';
break;
case 'sqlite':
$db->start_transaction();
$sql = 'CREATE TABLE '.$db_prefix.'cmf_blocks (id int NOT NULL, location varchar(20), number smallint(5), title varchar(255), content text, PRIMARY KEY (id))';
break;
}
$db->query($sql) or error('Unable to create table '.$db_prefix.'cmf_blocks. Please check your settings and try again.', __FILE__, __LINE__, $db->error());
and core data like:
$db->query('INSERT INTO '.$db->prefix."cmf_groups VALUES (1, 'YXJyYXkoJ3JrJyA9PiBhcnJheSgnYWxsJykpOw==')") or error('ERROR', __FILE__, __LINE__, $db->error());
It installs on all DB (Mysql + i, SQLite and postgres) and after creating the config.php script redirect to /rkcmf/install.php:
define('INDEX', true);
define('PUN_ROOT', 'forum/');
ob_start();
require_once PUN_ROOT.'include/common.php';
include_once 'config.php';
include_once 'kernel/database/'.$config['db'].'.php';
$action = new db($db);
$query = $action->query("SELECT lang_string FROM ".$tables['rk_global_lang']." LIMIT 3");
IF (count($query) >= 2) { die('DATA ALREADY INSTALLED'); }
include 'kernel/classes/admin.class.php';
$adm = new admin();
$adm->add_link('modconf', 'config', '<div class="folder">[TRA=modconf]
<div class="doc"><a href="admin.php?mod=modconf&act=edit">[TRA=edit_modconf]</a></div>
<div class="doc"><a href="admin.php?mod=modconf&act=add">[TRA=add_modconf]</a></div>
</div>');
$adm->global_lang_add('config', array('Polish' => 'Konfiguracja', 'English' => 'Config'));
$adm->global_lang_add('modconf', array('Polish' => 'Konfiguracja Modu????w', 'English' => 'Modules Config'));
/*and so on */
echo '<B>Kernel zainstalowany<BR>Kernel installed</B>';
echo '<META HTTP-EQUIV="Refresh" CONTENT="1; URL=index.php">';
BUG: only mysql and mysqli work here - postgres and SQLite won't instert data with no error
"add_link" in admin class looks like this:
function add_link($title, $node, $link)
{
$link = base64_encode($link);
IF($this->action->query("INSERT INTO ".$this->tables['rk_admin']." (ad_title, ad_node, ad_links) VALUES ('".$title."', '".$node."', '".$link."')"))
{
return true;
}
else
{
die('ADMIN TREE MENU LINK NOT ADDED - INSERT SQL ERROR<BR>NIE DODANO LINKA DO MENU ADMINA Z PODOWU PROBLEM??W Z BAZÄ?');
}
}
and RkCMF db class:
class db
{
function db($base)
{
$this->base = $base;
}
function query($query)
{
IF(ereg('SELECT', $query))
{
IF($make = $this->base->query($query))
{
while ($row = $this->base->fetch_obj($make))
{
$return[] = $row;
}
}
else
{
echo '<pre>'.$query;
print_r($this->base->error());
exit();
}
return $return;
}
else
{
// NON SELECT HERE
IF(!$this->base->query($query))
{
echo '<pre>'.$query;
print_r($this->base->error());
exit();
}
else
{
return true;
}
}
}
function insert()
{
return $this->base->insert_id();
}
}
(in earlier releases it was a normal multiDB class...). I have no idea why it doesn't want to INSERT data any ideas? OS: SuSE 9.2, XAMPP PHP 5.03
Some small hacks that could be added to vanilla punBB.
header.php
change:
<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_user['style'].'.css' ?>" />
to:
<link rel="stylesheet" type="text/css" href="<?PHP echo PUN_ROOT.'/'; ?>style/<?php echo $pun_user['style'].'.css' ?>" />
CSS is visible for punbb pages included from outsite the forum (like in a script).
register.php
- form ACTION could be changed to:
<?PHP
IF(ereg('\?', $_SERVER['REQUEST_URI']))
{
$act = $_SERVER['REQUEST_URI'].'&';
}
else
{
$act = $_SERVER['REQUEST_URI'].'?';
}
?>
<form id="register" method="post" action="<?PHP echo $act; ?>action=register" onsubmit="this.register.disabled=true;if(process_form(this)){return true;}else{this.register.disabled=false;return false;}">
(instead register.php?action=register)
and
require PUN_ROOT.'include/common.php';
to:
require_once PUN_ROOT.'include/common.php';
Allows adding registration in the integrated script in your CMS/Script add:
include_once PUN_ROOT.'register.php';
and you will have punBB registration - it will look like punBB but it will "use" the script links like "index.php?mod=user&act=register" for my RkCMF
I have my RkCMF which is Object oriented and 99,9% of the code (not counting index.php) is in classes and in the user class I want to add the punBB user data..... it works Now we can hack it more... CMF with punBB comming soon
Notice: Undefined index: language in /opt/lampp/htdocs/html/punbb/include/common.php on line 120
There is no valid language pack '' installed. Please reinstall a language of that name.
code:
function foo()
{
global $db;
$lang_common = 'English';
define('PUN_ROOT', 'pubb/');
require PUN_ROOT.'include/common.php';
print_r($pun_user);
}
foo();
gives an empty array:
Array ( )
Fatal error: Call to a member function on a non-object in /opt/lampp/htdocs/html/punbb/functions.php on line 110
I have a problem when using punBB code inside functions/classes of my CMF - i get errors that something is not set/not present etc. What variables etc. should be in the global statement for it to work?
function foo()
{
global WHAT?;
define('PUN_ROOT', 'punbb/');
require PUN_ROOT.'include/common.php';
IF($pun_user['group_id'] == 3) return false;
IF($pun_user['username'] == 'Guest') return false;
IF($pun_user['password'] == 'Guest') return false;
IF($pun_user['id'] == 1) return false;
return true;
}
maybe base64_encode the text submitted in the form and then when the text should be displayed - base64_decode it . It should help...
To add punBB to your site - a big and nice set of links for Search Engines and it also makes the site to look nice
This code:
function rewrite_url_filter($data)
{
$link = $data[0];
$link = ereg_replace('"$', '', $link);
$link = explode('="', $link);
$_link = $link[0];
$link = $link[1];
$link = preg_replace('#([0-9A-Za-z ?&.]*)#si', '\\1', $link);
$link = 'pubb/'.$link;
$link = $_link.'="'.$link.'"';
return $link;
}
function rewrite_ob_filter($string)
{
return preg_replace_callback('/(href|src|action)s*=s*"[^"]+"/', 'rewrite_url_filter', $string);
}
ob_start('rewrite_ob_filter');
define('PUN_ROOT', 'pubb/');
include PUN_ROOT.'index.php';
allows to include punBB in any place of your web site [edit define('PUN_ROOT', 'pubb/'); ] It's a remake of my short urls script... in this case it appends PUN_ROOT to all links, images and forms.
I'm currently working on a CMF focused on managing text data ? articles and similar, called RkCMF (0.6 beta is available here ? English lang is supported, there is a readme - install how-to). I've made a "simple" forum module (Forums, posts ? normal, sticky, global, announcement etc.) but I don't have the time to make it more forum like (few things not made yet) so I've decided to use (we shall see if optional or hardcoded) punBB as a RkCMF forum But maybe some of my forum how-to ideas could be moved to pun like:
- each Forum has it's own table for posts smaller tables are easier to move etc.
- forum can have it's forum icon, the same for topics. Example: link
- there are no categories Forum lists are build by simple tags like:
[FSTART=text] ? starts forum template (like category header)
[F=id] ? inserts a row with link/data from selected forum (like forum in a category)
[FSTOP] ? ends forum template
Extra feature: you can add entry for one forum multiple times and can be mixed with other things: example
I'm planning to use PunBB as a standard forum for my RkCMF Ver 0.6 should have it.
Where are punBB functions (and what are theirs names) that can:
1. tell me if I'm logged in
2. Log me in
3. Logout
4. Register
only PHP5+MMCache doesn't work, PHP4 works witn MMcache
Bug found - TurckMMCache on: punBB broken, TuckMMCache off: punBB works...
Turck Settings:
extension="mmcache.so"
mmcache.shm_size="16"
mmcache.cache_dir="/opt/lampp/tmp/mmcache"
mmcache.enable="1"
mmcache.optimizer="1"
mmcache.check_mtime="1"
mmcache.debug="0"
mmcache.filter=""
mmcache.shm_max="0"
mmcache.shm_ttl="0"
mmcache.shm_prune_period="0"
mmcache.shm_only="0"
mmcache.compress="1"
PHP 5:
File: /opt/lampp/htdocs/html/inne/pun/punbb-1.2/upload/include/cache.php
Line: 84
PunBB reported: Unable to fetch forum config
Database reported:
PHP Version 5.0.3 on XAMPP 1.4.11 and still pun isn't working
PunBB Forums → Posts by Riklaunim
Powered by PunBB, supported by Informer Technologies, Inc.