changing order the link of every post dont work so you have to change also
    // Determine on what page the post is located (depending on $forum_user['disp_posts'])
    $query = array(
        'SELECT'    => 'COUNT(p.id)',
        'FROM'        => 'posts AS p',
        'WHERE'        => 'p.topic_id='.$topic_info['topic_id'].' AND p.posted<'.$topic_info['posted']
    );

in
    // Determine on what page the post is located (depending on $forum_user['disp_posts'])
    $query = array(
        'SELECT'    => 'COUNT(p.id)',
        'FROM'        => 'posts AS p',
        'WHERE'        => 'p.topic_id='.$topic_info['topic_id'].' AND p.posted>'.$topic_info['posted']
    );

2

(2 replies, posted in PunBB 1.4 additions)

just saw, thanksssss

thank you very much!

I have a PunBB 1.4.2
Is there a way to have newest posts and replies build from the top down and not placed on the bottom of the topic ?


Thanks in advanced

hi, someone have a solution for this in punBB 1.4.2? Thanks

I know it look bizarre....

I need to change the order of show of post, I need  new post & reply placed on the top of the topic

Running 1.4.2, some one can help me in code or with some additionale extension or mod?
Thanks in advanced

7

(3 replies, posted in PunBB 1.4 troubleshooting)

keeshii wrote:

Have you inserted users using gid "0" (zero)? Maybe it was this mechanism (see register.php):

        // Clean old unverified registrators - delete older than 72 hours
        $query = array(
            'DELETE'    => 'users',
            'WHERE'        => 'group_id='.FORUM_UNVERIFIED.' AND activate_key IS NOT NULL AND registered < '.(time() - 259200)
        );

Code above removes users, which gid is equal zero and are 72 hours old. It is executed when someone is registering.

How to prevent it?
a) don't set gid to zero,
b) set activate_key to something else than NULL

regards,
keeshii


Thanks for explanation, I understand  U help me so much wink

8

(3 replies, posted in PunBB 1.4 troubleshooting)

keeshii wrote:

Have you inserted users using gid "0" (zero)? Maybe it was this mechanism (see register.php):

        // Clean old unverified registrators - delete older than 72 hours
        $query = array(
            'DELETE'    => 'users',
            'WHERE'        => 'group_id='.FORUM_UNVERIFIED.' AND activate_key IS NOT NULL AND registered < '.(time() - 259200)
        );

Code above removes users, which gid is equal zero and are 72 hours old. It is executed when someone is registering.

How to prevent it?
a) don't set gid to zero,
b) set activate_key to something else than NULL

regards,
keeshii

very useful, thank you very much

9

(3 replies, posted in PunBB 1.4 troubleshooting)

Maybe i had something wrong ...
Last month I inserted manually in table users a lot of users, by inserting group_id, username, password.
Now I  control table and i found that these users was deleted sad
Someone know if there is a in PunBB some automatism that clean table user and, if this exist, how can I prevent or by which rules this is made?
Thanks in advanced

10

(1 replies, posted in PunBB 1.4 bug reports)

Maybe i had something wrong ...
Last month I inserted manually in table users a lot of users, by inserting group_id, username, password.
Now I  control table and i found that these users was deleted sad
Someone know if there is a in PunBB some automatism that clean table user and, if this exist, how can I prevent or by which rules this is made?
Thanks in advanced

keeshii wrote:

I am sure, you have already found it, but just in case I will explain this to you.

You have to make modifications in login.php, directly above the hook 'li_login_pre_redirect'. Your code should looks like that:

        $expire = ($save_pass) ? time() + 1209600 : time() + $forum_config['o_timeout_visit'];
        forum_setcookie($cookie_name, base64_encode($user_id.'|'.$form_password_hash.'|'.$expire.'|'.sha1($salt.$form_password_hash.forum_hash($expire, $salt))), $expire);

        $_POST['redirect_url'] = 'https://google.com/'; /* <-- THIS LINE I HAVE ADDED */
        ($hook = get_hook('li_login_pre_redirect')) ? eval($hook) : null;
        redirect(forum_htmlencode($_POST['redirect_url']).((substr_count($_POST['redirect_url'], '?') == 1) ? '&amp;' : '?').'login=1', $lang_login['Login redirect']);

If you want to redirect to the main page of your domain, you should use "/" as address. fe. $_POST['redirect_url'] = '/'; After redirecting the parameter "login=1" will be attached, but this doesn't disturb in anything.

regards,
keeshii

thanks Keeshi

I had installed Punbb as a part of a website, now i need that after login users will be redirected ti index of entire website, not index of direcotory forum where is installed punbb, where i can modify the redirect target after login in code?
thanks in adavnced
Luca

13

(3 replies, posted in PunBB 1.4 additions)

SuperMAG wrote:

there is an extension somewhere in this supported extensions forum, you need to search something like "post edit".

I've searched but nothing....

someone know if it is possible to set an interval time in while modify post is permitted?
I explain better, or i'll try :-), i would like that member who post something will be able to modify his post only  for one hour after he submitted post, is it possible?
thanks in advanced
Luca

KANekT wrote:

PunBB Forums → profile → Settings

Your timezone Must be set for correct time display.

when a user subscribe forum, punbb detect the correct timezone based on IP or every user must set ite?

i just uncheck legal time, now i can see new post with correct time, but other user see it with legal time (ie i see 8:32 the user see 9:32), why?

17

(115 replies, posted in Supported extensions)

i made a big mistake.... confusing poll with voting single post, sorry for this, i was lookink for vote and my bad english confused me, sorry for this

18

(1 replies, posted in PunBB 1.4 additions)

I have PunBB 1.4.2 and Pun poll  Versione 2.3 theme Oxygen  but i cant see voting on posts:
in admin -> setting ->features i have setting for polls enable revoting and enable read result both checked:
in admin -> users -> groups i have voting permission checked

just tried reinstall of extension

why it dont work?
thanks in advanced

19

(115 replies, posted in Supported extensions)

I have PunBB 1.4.2 and Pun poll • Versione 2.3 but i cant see voting on posts, in admin -> stting ->features i have setting for polls enable revoting and enable reda result both checked, why it dont work?
thanks in advanced

20

(4 replies, posted in Discussions)

Trace wrote:

What this "digest" do?

every day, or wek or month send an email with new post etc to memeber who subcribe digest

21

(4 replies, posted in Discussions)

there is a digest option in punbb?
thanks in adavnced

Kushi wrote:

Add at the end of each CSS you're using

.postfoot .post-actions >span.report-post, .postfoot .post-actions >span.quote-post {
display: none;
}

nice solution, thanks you!

There is a way to disable quote and disable report?
thanks in advanced

hcs wrote:
$query['WHERE'] = 'username=\''.$forum_db->escape($form_username).'\' or email=\''.$forum_db->escape($form_username).'\'';

solved, thank you (mine was a evry stupid mistake!)

25

(11 replies, posted in PunBB 1.4 additions)

solved! if anyone interested contact me by mail....