theme bug? i see the line on the images
I think it's an IE6 or Safari issue. Paul from FluxBB was working on it.
You are not logged in. Please login or register.
PunBB Forums → Posts by FSX
theme bug? i see the line on the images
I think it's an IE6 or Safari issue. Paul from FluxBB was working on it.
By coincidence I was checking the punbb forums and this is the first post I see ... wtf scot.
Well, welcome quakers wife. ^^
Hmm, I'll stay with FluxBB.
Me too. I'll make my Download Mod working on FluxBB too.
PunBB makes the url's in posts automaticly clickable.
What errors do you have?
I found when I searched for an anti spam method for the contact form on my website: http://klauskjeldsen.dk/2007/07/19/avoi … using-css/
I'm not really sure if it works, but maybe it can be used in PunBB to avoid spamming?
Forum looks good and also the website.
People should update to IE7 or Firefox. IE6 is outdated. I'm not going to support IE6 anymore on my website.
No, but I'll start using 1.3 after there are some good mods ^^.
I tried, but it didn't work. I still got this error: Fatal error: Call to a member function query() on a non-object in C:\wosportable\www\WMS\include\functions.php on line 212. And sessions aren't working.
This is the deconstrutor of my database class:
function __deconstruct()
{
if ($this->link)
{
if ($this->query_result)
@mysqli_free_result($this->query_result);
return @mysqli_close($this->link);
}
else
{
return false;
}
}
I putted session_write_close(); in there, but it didn't work.
EDIT:
I putted session_write_close(); in my footer.php and I don't get the error anymore, but the sessions arent working. I checked the sessions table and it contains a session. I think something is wrong with the _read function.
EDIT 2:
Sessions are working. Only my login script doesn't work.
EDIT 3:
It seems that I have to call session_write_close(); after each session edit.
Something like this, my logout:
else if ($g_action == 'logout' && checkToken())
{
unset($_SESSION['user']);
session_write_close();
header('location: user.php');
exit;
}
I'm trying to save sessions in my database, but it isn't working. I followed this guide: http://shiflett.org/articles/storing-se … a-database.
I'm using a database object/class (similiar to punbb's one) to write to the database, but all objects are destroyed before write is called. Check the first warning block: http://nl.php.net/manual/nl/function.se … andler.php. I don't really know how to solve it.
This are my session functions:
/* Session functions
---------------------------------------------------------------------------------------------*/
function start_session($db_save=true,$save_path=false)
{
// Save session in specified path or database
if ($save_path !== false)
{
ini_set('session.save_path',$save_path);
}
else if ($db_save === true)
{
session_set_save_handler(
'_open',
'_close',
'_read',
'_write',
'_destroy',
'_clean'
);
}
// Start the session
session_start();
// Regenerate session id if $_SESSION['initiated'] isn't set
if (!isset($_SESSION['initiated']))
{
session_regenerate_id();
$_SESSION['initiated'] = true;
}
// Generate a token if there isn't one
if (!isset($_SESSION['token']))
$_SESSION['token'] = sha1(md5(uniqid(rand(),true).$_SERVER['HTTP_USER_AGENT']));
}
function _open()
{
return true;
}
function _close()
{
return true;
}
function _read($id)
{
global $db;
if ($result = $db->query('SELECT data FROM %prefix%sessions WHERE id=\''.$db->escape($id).'\''))
{
if ($db->num_rows($result))
{
$row = $db->fetch($result);
return $row['data'];
}
}
return '';
}
function _write($id,$data)
{
global $db;
return $db->query('REPLACE INTO %prefix%sessions VALUES (\''.$db->escape($id).'\',\''.$db->escape(time()).'\',\''.$db->escape($data).'\')');
}
function _destroy($id)
{
global $db;
return $db->query('DELETE FROM %prefix%sessions WHERE id=\''.$db->escape($id).'\'');
}
function _clean($max)
{
global $db;
$old = time() - $max;
return $db->query('DELETE FROM %prefix%sessions WHERE access < \''.$db->escape($old).'\'');
}
And I use the first function (start_session(true);) to start it.
Can someone help me to solve this?
I'll put all this modifications in the package with the next version (1.2) and credit you ofcourse. I still have to add language support ^^ and a option to disable the search function. Also some other stuff, check the project site: http://code.google.com/p/downloadmod/ for the new features.
Oh sorry, I explained it the wrong way. You have too remove {FONT-WEIGHT: bold} from #navregister in you stylesheet.
For the register link: search for #navregister in your stylesheet and check in font-weight: bold is set. Can't help you with last post's subject on forum index, I'm tired T_T.
Netherlands, that tiny country next to germany.
The forum style look very good, I really like it . Btw, what is CFD? I saw this 'CFD info is gelieerd aan Brandpreventieforum' in the footer', is CFD something to prevent fire?
Looks good, especially the animation in the header. Btw, which style did you use?
You don't get it ? They mean your way of writing isn't really understandable. For example: you write 4 instead of for.
Cool addition , should I put it on the project website wiki?
This may help ^^:
http://wiki.punres.org/Last_post%27s_su … orum_index
##
## Mod title: Download Mod
##
## Mod version: 1.1
## Works on PunBB: 1.2.* (tested on 1.2.17)
## Release date: 2008-03-15
## Author: Frank Smit (FSX)
## Project website: http://code.google.com/p/downloadmod/
##
## Description: Adds a download section to your forum.
##
## Affects DB: Yes, the config table and the user table
##
## Affected files: functions.php, profile.php
##
## Notes: This mod only uses the database for the configuration.
## All files are fetched from the download folder.
##
## If you uninstall this mod you have to manually remove
## the downloads folder.
##
## This mod doesn't have an upload function, because it
## was orginally build for big files ( > 20Mb ).
##
## Force download is done by a .htaccess file.
## The contents of the .htaccess file are:
## <Files *.*>
## ForceType applicaton/octet-stream
## </Files>
##
## This mod has been tested on PHP5, MySQL5 and Apache2.
##
## Licence: GPL 2.0
##
## Generated By: Auto Read-Me(by Caleb Champlin) - http://www.rscheatnet.com/Auto_Readme.zip
##
## DISCLAIMER: Please note that 'mods' are not officially supported by
## PunBB. Installation of this modification is done at your
## own risk. Backup your forum database and any and all
## applicable files before proceeding.
#
#---------[ CHANGELOG 1.0 to 1.1 ]---------------------------------------------------------------
#
- Fixed bugs and typo's
- downloadfile.php removed, download file part is added in download.php
- Added log file, logs what files the user downloads (log can be viewed in the plugin)
- Added search function
- Changed category menu
- Force download is now done with a .htaccess file
- A index.html file is automaticly placed in a new category
- Filtering files is now done by one function
- files that begin with a . [dot] or _ [underscore] are handled like hidden files
Here are some screenshots:
http://code.google.com/p/downloadmod/do … Screenshot
Download at Punres:
http://www.punres.org/viewtopic.php?pid=23308#p23308
Project website:
http://code.google.com/p/downloadmod/
Ok, thanks .
So if I want to make a new section in the user profile it should look like this?:
$pun_url['profile_gallery'] = 'profile.php?section=gallery&'.$id;
pun_link($pun_url['profile_gallery'], $id);
Btw, where is $pun_url created?
PunBB Forums → Posts by FSX
Powered by PunBB, supported by Informer Technologies, Inc.