I'm linking to my blog

http://kushithemes.t15.org/blog/tutoria … -in-punbb/

Cause I'm not patient enough to transform it into BBcode tongue.

Unfortunately it won't work without Oxygen. Imho the better way is to block style choice than deleting Oxygen.
You can do it by adding

disabled="disabled"

in 2354 and 2363 lines of profile.php. Or delete lines that allow user to change style.

The idea of KT_Mobile is that it changes user style to Oxygen while he's on mobile so there aren't any changes of CSS different than default. There's no way of deleting CSS by forum_loader and I don't want to do it by preg_replace.

Anyway I've made very new, much better version of KT Mobile, and I'll release it soon. You can check it on http://airagh.linuxpl.info

53

(1 replies, posted in PunBB 1.4 troubleshooting)

Nevermind, I had problem in pf_change_details_settings_validation

54

(1 replies, posted in PunBB 1.4 troubleshooting)

Hello! I'm making some extension and I would like to add SELECT in profle settings. So I'm doing something like this.

    <install><![CDATA[
            $forum_db->add_field('users', 'airagh_ext_avatars', 'TINYINT(1)', false, 1);
            $forum_db->add_field('users', 'airagh_ext_link_color', 'VARCHAR(10)', false, 'Default');
    ]]>
    </install>

    <uninstall><![CDATA[
        $forum_db->drop_field('users', 'airagh_ext_avatars');
        $forum_db->drop_field('users', 'airagh_ext_link_color');
    ]]>
    </uninstall>
    <hooks>
        <hook id="pf_change_details_settings_email_fieldset_end"><![CDATA[
            if (file_exists($ext_info['path'].'/lang/'.$forum_user['language'].'/'.$ext_info['id'].'.php'))
                include $ext_info['path'].'/lang/'.$forum_user['language'].'/'.$ext_info['id'].'.php';
            else
                include $ext_info['path'].'/lang/English/'.$ext_info['id'].'.php';
            $forum_page['item_count'] = 0;
?>
                <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
                    <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
                        <div class="sf-box checkbox">
                            <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[airagh_ext_avatars]" value="1"<?php if ($user['airagh_ext_avatars'] == '1') echo ' checked="checked"' ?> /></span>
                            <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_airagh_ext['Display avatars'] ?></span> <?php echo $lang_airagh_ext['Display avatars label'] ?></label>
                        </div>
                        <div class="sf-box select">
                            <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_airagh_ext['Link colors'] ?></span></label><br />
                            <span class="fld-input">
                                <select id="fld<?php echo $forum_page['fld_count'] ?>" name="form[airagh_ext_link_color]">
                                    <option value="Default" <?php if($user['airagh_ext_link_color']=='Default') echo("selected=\"selected\"") ?>><?php echo $lang_airagh_ext['Default'] ?></option>
                                    <option value="Black" <?php if($user['airagh_ext_link_color']=='Black') echo("selected=\"selected\"") ?>><?php echo $lang_airagh_ext['Black'] ?></option>
                                </select>
                            </span>
                        </div>
                    </div>
                </fieldset>
<?php
        ]]></hook>
        <hook id="pf_change_details_settings_validation"><![CDATA[
            $form['airagh_ext_avatars'] = (!isset($_POST['form']['airagh_ext_avatars']) || $_POST['form']['airagh_ext_avatars'] != '1') ? '0' : '1';
            if (isset($form['airagh_ext_link_color']))
            {
                $form['airagh_ext_link_color'] = preg_replace('#[\.\\\/]#', '', $form['airagh_ext_link_color']);
            }
            ]]></hook>

Checkbox is working all right, but selecting anything with select form seems to doesn't make any changes.
What's wrong with my code?

:: Dependencies
- pun_pm obviously

If you're so worried about loading speed mine CSS and background idea is definitely not for you ;-).

If I were you I would use team logos as a forum background, and prepare theme like that (~25min of work, beg for forbearance)
http://i.imgur.com/ijxHr.jpg

it disrups the (new posts) and when i shrink the width of my IE/FF/GC page into like half of the screen, the long forum titles become broken in 2 lines serperated a long way with the forum description over the forum title.

Change display: block to display: inline-block;

What you're asking about, separate field next to folder icon can't be done using CSS. You'll need to write extension. What I can only give you is this short CSS example

#brd-index #forum80 .item-subject h3 > a{
    background: url(https://www.campleaders.com/html/images/footer/2012/icon_fb.png) 0px 0px no-repeat;
    padding-left: 36px;
    height: 32px;
    display: inline-block;
}
#brd-index #forum80 .item-subject > p{
   padding-left: 36px;
   margin-top: -15px;
}

#brd-index #forum82 .item-subject h3 > a{
    background: url(https://www.campleaders.com/html/images/footer/2012/icon_fb.png) 0px 0px no-repeat;
    padding-left: 36px;
    height: 32px;
    display: inline-block;
}
#brd-index #forum82 .item-subject > p{
   padding-left: 36px;
   margin-top: -15px;
}

And its effect
http://i.imgur.com/BWfUC.png

edit

I'm really tired and i've just noticed that you've written about changing folder icons to new one. I've posted solution on this forum, search mine posts.

It's just Chrome Developer Tools. Very useful.

Just add

height: 32px;

AND if you want to have title centered also

line-height: 32px;

So it would be

#brd-index #forum6 .item-subject h3 > a{
    background: url(/img/teamsicons/FC-Barcelona-icon.png) 0px 0px no-repeat;
    padding-left: 36px;
    display: block;
    height: 32px;
    line-height: 32px;
}

http://i.imgur.com/jAQat.png

Add at the end of your CSS

#brd-index #forum48 .item-subject h3 > a{
    background: url(http://punbb.informer.com/forums/img/smilies/big_smile.png) 0px 0px no-repeat;
    padding-left: 19px;
    display: block;
}

Where #forumID could be checked by viewing forum source.
Padding left is depended from image size and should be imagesize+few pixels. Like in this example 15px of smile width plus 4px to separate it.

///
Example of adding

#brd-index #forum48 .item-subject h3 > a{
    background: url(http://punbb.informer.com/forums/img/smilies/big_smile.png) 0px 0px no-repeat;
    padding-left: 19px;
    display: block;
}
#brd-index #forum23 .item-subject h3 > a{
    background: url(http://punbb.informer.com/forums/img/smilies/wink.png) 0px 0px no-repeat;
    padding-left: 19px;
    display: block;
}

On this forum
http://i.imgur.com/sdOIf.png

62

(71 replies, posted in PunBB 1.4 additions)

For instant fix add at the end of Urban.min.css

#brd-PUN_STOP_BOTS_PAGE .main-subhead .hn span {
visibility: visible;
}

For complex release with this fix you have to wait some time.

Maybe something with CHMOD? Should be 644 (rw-r--r--)

https://dl.dropbox.com/u/82283017/punbb … legend.zip

65

(17 replies, posted in PunBB 1.4 additions)

Pardon me, I haven't download this package before answering, my mistake. It seems that @hoang83vu didn't upload necessary file ( avatar.php from /include/user ), which produces avatar next to

"Logged in as <username>" in the header?

And old_fancy_jquery_addons should be renamed to fancy_jquery_addons, so should the second one. However I have no idea if they are necessary or official versions of this extensions. Maybe @hoang83vu was modifying them and that is why he has renamed it.

66

(17 replies, posted in PunBB 1.4 additions)

You didn't upload avatar.php to /include/user/, which obviously says the first error. And this 2 extensions are probably unnecessary if you've got already fancy_jquery_addons and fancy_toggle_cats in package. If not you should rename it as I mentioned. Which, btw. obviously says second error. Why not try to understand what's written?

You've changed it in your profile? It should work for you. For guest and newusers You have to change it in Administration/Settings -> Default style.
KT mobile has got already Urban support.

If you unzip Urban.zip there are 3 folders there.

-Urban
---extensions
---include
---style

You have to copy folder Urban from Urban.zip/Urban/style catalog to your /style folder on FTP.

And files (urban_1.php, etc. ) from Urban.zip/Urban/include/user to your /include/user on FTP.

IF you're using pun_bb code extension you may also want to copy folder pun_bbcode from Urban.zip/Urban/extensions to /extensions

I've got solution for You. I haven't got time to make an extension, but I will. Maybe even this week. You can do it manually ( which is very bad solution ) or wait. Or make extension by yourself.
Open post.php
Find (line 190)

    ($hook = get_hook('po_end_validation')) ? eval($hook) : null;

After paste:

    $query = array(
        'SELECT'    => 'u.num_posts',
        'FROM'        => 'users AS u',
        'WHERE'        => 'u.id='.$forum_user['id']
    );
    $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
    $user = $forum_db->fetch_assoc($result);
    $limit = 10;
    if($user['num_posts']<$limit && (preg_match('#\[url\]([^\[]*?)\[/url\]#e', $message) || preg_match('#\[url=([^\[]+?)\](.*?)\[/url\]#e', $message) || preg_match('#\[email\]([^\[]*?)\[/email\]#', $message) || preg_match('#\[email=([^\[]+?)\](.*?)\[/email\]#', $message) )) $errors[] = ('You have to write at least '.$limit.' posts to submit links.');

You can rise limit by modifying $limit variable. You can also write some other $error[] message.

Copy style to /style folder tongue

71

(17 replies, posted in PunBB 1.4 additions)

1.5 is out!

Quite dangerous don't you think?

73

(47 replies, posted in PunBB 1.4 additions)

Server is from LA smile.

//edit
Some minor update, fixing default font of navigation (#brd-navlinks) and header (#brd-head).

74

(47 replies, posted in PunBB 1.4 additions)

Maybe it was temporary problem. I'm checking it now and everything works fine.

75

(47 replies, posted in PunBB 1.4 additions)

As it is still very popular I'm releasing new version 2.0. Features are listed in the first post. Hope you'll enjoy it.