Thank You! smile
I've made it this way

if (!file_exists($ext_info['path'].'/css/'.$forum_user['style'].'/kt_mobile.css'))
            {
                $forum_user['style'] = 'Oxygen';
            }

in hd_pre_template_loaded and it works just fine smile

Hello there. I've got this conditional

        <hook id="hd_head"><![CDATA[
        $useragent=$_SERVER['HTTP_USER_AGENT'];
        if(preg_match('/android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i',substr($useragent,0,4)))
        {
            echo('<meta content=\'width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;\' name=\'viewport\'>');
            if ($forum_user['style'] != 'Oxygen' && file_exists($ext_info['path'].'/css/'.$forum_user['style'].'/kt_mobile.css')) {
                $forum_loader->add_css($ext_info['url'].'/css/'.$forum_user['style'].'/kt_mobile.css', array('type' => 'url', 'group' => FORUM_CSS_GROUP_SYSTEM, 'media' => 'screen'));
            }
            else {
                $forum_loader->add_css($ext_info['url'].'/css/Oxygen/kt_mobile.css', array('type' => 'url', 'group' => FORUM_CSS_GROUP_SYSTEM, 'media' => 'screen'));
            }
            
        }
        ]]></hook>

But it only adds other css in addition to default one. And it's ruining whole mobile CSS :S. I've been trying to reset default classed but it doesn't do the job.
Is there any way to load only my css if condition is TRUE , and default one if FALSE?

128

(12 replies, posted in PunBB 1.4 troubleshooting)

I'm not really good at Github stuff :-o. I will soon release extension for that and would be glad to get feedback an assistance.

129

(12 replies, posted in PunBB 1.4 troubleshooting)

I've made some progress tongue. And I've realized that it should be as simple as possible. Therefore If i ever finished it, new posts would be showed just by bolded link or changed background, no squares, no useless functions.
http://min.us/mJZDimFIK/1

130

(12 replies, posted in PunBB 1.4 troubleshooting)

It's still in development. And actually it's suspended for a while. I've got too much on my head on my studies.

131

(71 replies, posted in PunBB 1.4 additions)

I've just checked downloadable version and compared it with kushithemes version and it's the same. If you could bring me address of your forum, perhaps I would be able to tell more.

132

(71 replies, posted in PunBB 1.4 additions)

And it works fine on kushithemes.t15.org? Please try to turn off additional links in navigation for test. This may be the reason.

133

(71 replies, posted in PunBB 1.4 additions)

Strange. Arebyou sure that You have got the latest version?

134

(2 replies, posted in PunBB 1.4 troubleshooting)

What do You exactly mean by customize?

Some languages are written from right to left smile.
What I recommend You is as I said on PM, add

*{ direction: rtl !important; text-align: right !important; }

at the end of Oxygen.min.css. But it won't do all the job. Some thins are positioned absolutely. What I recommend you is to download Google Chrome, turn on Inspector ( F12 on keyboard ) and experiment. I would be glad If I could help You, cause it's not so hard to be done ( instead of fact that I'm not an expert and I've got no idea how it should look exactly ), but I've got lack of time currently.
And, btw. I think rtl support should be provided in future releases of punbb.

136

(12 replies, posted in PunBB 1.4 troubleshooting)

Sure i will :-)

137

(12 replies, posted in PunBB 1.4 troubleshooting)

I'm currently working on extension for mobile phones ;P. However it would take some time, I've got problem with forms, and little time currently.
SGS2 screens
http://i.minus.com/iblBdynNPiOyVx.png
http://i.minus.com/iVEdzdyjOYZ75.png
http://i.minus.com/iefnVsRExT9eY.png
http://i.minus.com/izlqUrbaH8L0H.png

138

(20 replies, posted in PunBB 1.4 troubleshooting)

pardon, wrong link hmm
http://dl.dropbox.com/u/56038890/punbb/fontsize.zip

139

(20 replies, posted in PunBB 1.4 troubleshooting)

http://dl.dropbox.com/u/56038890/punbb/fontsize.zip
http://i.minus.com/ip7SkgRHLaVNI.png
http://i.minus.com/iMLWRZgMz5l6N.png
http://i.minus.com/i9T1YGQns75cy.PNG

140

(71 replies, posted in PunBB 1.4 additions)

Shame on me. I've reuploaded fixed version. Also the number was changed to 1.55. I've changed font of header to Open-sans.

141

(21 replies, posted in PunBB 1.4 additions)

hoang83vu wrote:

You prolly already know this. When I tried to create one, it worked but since then users could not post, delete, or edit. You are so right, this does not work with the jquery add on because its so out-dated.

Btw, does your fancybox plugin works well with toggle_cats_hidder? Those 2 seem conflict with each other. I can only get 1 of those 2 working at the time. Any idea?

Well, my extension edit login.php CSS, so it looks compact and redirect to itself, so there would be no problems with tokens etc. However there's one thing to edit, which cannot be done by hooks, so it needs hashing one line of login.php manually. That's why I haven't released it yet. Perhaps after my exams.

142

(21 replies, posted in PunBB 1.4 additions)

Nope. I can send it to You, however, it doesn't work on old IE, there are also problems on mobile devices.

143

(71 replies, posted in PunBB 1.4 additions)

I cant see your picture @fantasma

144

(20 replies, posted in PunBB 1.4 troubleshooting)

Got it

                $pattern[] = '#\[size=([6-9]{1}|[1-40-9]{2})](.*?)\[/size\]#ms';
                $replace[] = '<span style="font-size: $1px !important; line-height: $1px !important;">$2</span>';

145

(20 replies, posted in PunBB 1.4 troubleshooting)

create /extension/fontsize folder put there this manifest.xml

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE extension SYSTEM "ext-1.0.dtd">
<extension engine="1.0">
    <id>fontsize</id>
    <title>fontsize</title>
    <description>-</description>
    <author>-</author>
    <version>1.5</version>
    <minversion>1.4</minversion>
    <maxtestedon>1.4.2</maxtestedon>
    <hooks>
        <hook id="ps_preparse_tags_start"><![CDATA[
            $tags[] = 'size';
            $tags_opened[] = 'size';
            $tags_closed[] = 'size';
            $tags_inline[] = 'size';
            $tags_trim[] = 'size';
        ]]></hook>
        <hook id="ps_do_bbcode_replace"><![CDATA[
            if (!$is_signature) {
                $pattern[] = '#\[size=([6-9]{1}|[1-40-9]{2})](.*?)\[/size\]#ms';
                $replace[] = '<span style="font-size: $1px !important; line-height: $1px !important;">$2</span>';
            }
        ]]></hook>
    </hooks>
</extension>

It shall work for [size=6] to [size=48]. But You can change it in regular expression.

Sorry, no time for creating button for pun_bbcode.

146

(2 replies, posted in PunBB 1.4 troubleshooting)

        <hook id="li_login_pre_redirect"><![CDATA[
            echo "<script>parent.$.fancybox.close(); 
parent.location.reload(true);</script>"; 
            ]]></hook> 

So the javascript cannot be preformed, while the page is redirected.

Hello,
There's a hook li_login_pre_redirect in login.php I wanna put something there AND delete line

        redirect(forum_htmlencode($_POST['redirect_url']).((substr_count($_POST['redirect_url'], '?') == 1) ? '&amp;' : '?').'login=1', $lang_login['Login redirect']);

which is after that. How can I do that?

Or stop it work somehow ( tried sending null variables, but it seemed to doesn't work ).

It's the only thing which stops me from releasing fancybox login ( demo )

148

(21 replies, posted in PunBB 1.4 additions)

Every my work is also under CC tongue. But You're right, I've mentioned license info in first post.

149

(21 replies, posted in PunBB 1.4 additions)

It might be wink. But I've been tired waiting for yours and by the time You had announced it here, I've made my own tongue. Users shall decide which they would like to use. It was necessary for me, but I'm sharing my work for anyone :-P.

150

(21 replies, posted in PunBB 1.4 additions)

Massive upgrade wink. Thanks to hoang83vu I've updated it to fancybox2. There's some known issue however - it seems to doesn't work with fancy_jquery_addons :< ( cause it's using old one ). Screens shall be added later.

- added fancyboxed help in 'edit' and 'newpost'
- upgraded fancybox to ver2
- added =nf feature