$forum_page['redirect_url'] = WWW.'viewtopic/'.$id;

$forum_page['form_action'] = forum_link($forum_url['login']);

$forum_page['hidden_fields'] = array(
    'form_sent'        => '<input type="hidden" name="form_sent" value="1" />',
    'forum_user'    => '<input type="hidden" name="form_user" value="'.$forum_user['username'].'" />',
    'redirect_url'    => '<input type="hidden" name="redirect_url" value="'.forum_htmlencode($forum_page['redirect_url']).'" />',
    'csrf_token'    => '<input type="hidden" name="csrf_token" value="'.generate_form_token($forum_page['form_action']).'" />'

Where i can get list of $forum_url ,or get rid off this annoying fing "Unable to confirm security token". Why the hell you really need it? Anyway $forum_url['login'] is for login form ,but i need for logout,post edit etcc.. big_smile


(60 replies, posted in PunBB 1.3 extensions)

I am getting the message Bad request. The link you followed is incorrect or outdated. while adding a new subforum.


(60 replies, posted in PunBB 1.3 extensions)

Not working!

Yes it works!
To add forum to your .htaccess ,i use this line.

RewriteRule ^forum/.* forum/rewrite.php [L]

Maybe somebody will need this smile

An error was encountered

The web server you are using is not correctly setting the REQUEST_URI variable. This usually means you are using IIS6, or an unpatched IIS7. Please either disable SEF URLs, upgrade to IIS7 and install any available patches or try a different web server.

Cant get working URL scheme!

My htaccees

RewriteEngine On
RewriteRule ^news?$ index.php?page=news [L]
RewriteRule ^chat?$ index.php?page=chat [L]

Forum location

When forum Mod rewrite is working ,the i get top error and it from punbb on my custom pages where i include
this code

    define('FORUM_ROOT', $forum_path);
    define('PUN_TURN_OFF_MAINT', 1);
    define('PUN_QUIET_VISIT', 1);
    if (!empty($_POST['noforum'])) {
        define('FORUM_DISABLE_CSRF_CONFIRM', 1);
    require FORUM_ROOT.'include/common.php';
    require FORUM_ROOT.'include/parser.php';

Where can be problem?


(24 replies, posted in News)

Can i have full change list currently hawing many custom stuff in forum so can't upgrade sad

How to stop common.php from sending header i need to set this for chat

    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT" ); 
header("Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" ); 
header("Cache-Control: no-cache, must-revalidate" ); 
header("Pragma: no-cache" );
header("Content-Type: text/xml; charset=utf-8");

Senx works  great! But still can't dig how to make box for new topics or topics that have new posts , where is this data stored cookies ,mysql?! Maybe it in $forum_user my English is not so good ,cant finde it there hmm

And what is thous G ?

    [48] => g_title
    [49] => g_user_title
    [50] => g_moderator
    [51] => g_mod_edit_users

And in PM extension

$result = mysql_query('select count("id") from '.$db_prefix.'pun_pm_messages where receiver_id = '.$forum_user['id'].' && (status = "sent" || status = "delivered");');

Why there is status sent and delivered? I miss something? hmm

I am pretty advanced in PHP ,but i cant understand some features!
This will be more related tho the portal script!

How to check  is user loged in or not?

Where are stored user dates about witch topic is reeded or not!  I want to make small block where are listed all topics that user is not reeded.