101

(22 replies, posted in Development)

trace, it already works in 1.4, u need to change the max version to 1.4.2 in the xml file.

has anyone managed to create this.

The Currently online is showing incorrect numbers, the "guests online" part is the incorrect one.

It is always showing 1 guest online despite the forums having 25/30 people online.

How do i fix this, is it because i kept the same config file (with db name changes etc).

anyoneeeeee???

Currently Online is not working, only shows 1 guest online while there are like 25.

So far, the only thing i noticed is the Guests online is not working.

After switching my host i got this error.

This PHP environment doesn't have Improved MySQL (mysqli) support built in. Improved MySQL support is required if you want to use a MySQL 4.1 (or later) database to run this forum. Consult the PHP documentation for further assistance.

I fixed this by editing config.php and replacing "mysqli" to "mysql".

The question here is do i need to do something else too, i mean the tables in database were made by mysqli, will everything will be okay with this.

ok after 2 hrs of research and codeheadace. i finally managed to create a php code.

<?php

    define('FORUM_ROOT', '../../'); // Point to the forum directiry
    define('FORUM_PAGE', 'formation_creator');
    require FORUM_ROOT.'include/common.php';

    $forum_hooks['hd_main_elements'][] = 'unset($main_elements[\'<!-- forum_crumbs_top -->\']); unset($main_elements[\'<!-- forum_crumbs_end -->\']);';

    // Setup breadcrumbs
    $forum_page['crumbs'] = array(
    array($forum_config['o_board_title'], forum_link($forum_url['index'])),
    'Formation Creator' // Set up your page title here
    );

    require FORUM_ROOT.'header.php';

    // START SUBST - <!-- forum_main -->
    ob_start();

?>

    <div id="brd-main">
        <h1 class="main-title">Formation Creator</h1>

        <div id="brd-crumbs-top" class="crumbs">
    <p><span class="crumb crumbfirst"><a href="http://myfootballcafe.com/">MyFootballCafe.com</a></span> <span class="crumb crumblast"><span> &rarr;&#160;</span>Formation Creator</span> </p>
</div>
        
        
        <div class="main-head">
        <h2 class="hn"><span>Formation Creator</span></h2>
    </div>

    <div class="main-content main-frm">
<div style="padding:15px;">
<object width="100%" height="500px">
    <param name="allowScriptAccess" value="always" />
    <param name="wmode" value="transparent" />
    <param name='flashVars' value="send=Draw+this+11&tipText=Click+to+edit&open=open&save=save&saveAs=save+as&add=add&remove=remove&changeShirt=change+shirt&player=player&fileNameLabel=Team+name">

    <embed src="http://this11.com/files/board4.swf" AllowScriptAccess="always" width="100%" height="500px" wmode="transparent" flashVars="send=Draw+this+11&tipText=Click+to+edit&open=open&save=save&saveAs=save+as&add=add&remove=remove&changeShirt=change+shirt&player=player&fileNameLabel=Team+name"></embed>
</object>
</div>
    </div>
        
        <div id="brd-crumbs-end" class="crumbs">
    <p><span class="crumb crumbfirst"><a href="http://myfootballcafe.com/">MyFootballCafe.com</a></span> <span class="crumb crumblast"><span> &rarr;&#160;</span>Formation Creator</span> </p>
</div>
    </div>

<?php

    $tpl_temp = trim(ob_get_contents());
    $tpl_main = str_replace('<!-- forum_main -->', $tpl_temp, $tpl_main);
    ob_end_clean();
    // END SUBST - <!-- forum_main -->

    // Uncomment this if you don't want the footer
    //$tpl_main = preg_replace('#<div id="brd-about" class="gen-content">.*?</div>#us', '', $tpl_main);

    require FORUM_ROOT.'footer.php';

the problem is that i also added this page in the navlinks. now when i open the page, the navlink doesnt show its open.

i am talking about the isactive class. how do i add that rule to it that when that page is open, add the isactive to the page.

<li id="navrules" class="isactive"><a href="http://www.myfootballcafe.com/rules/">Rules</a></li>

anyone have a clue.

bump?, still havent figured out why my css and js are not gziped, the page html is gziped, just not the css and js.

i checked this forum, the gzip for css and js are working here, wth not in my forum.

Extension, you dont really need to rewrite the whole thing, this portal by daris extension has it in it, and i think it working, but it has all the other stuff that i dont want: http://punbb.wiiem.pl/download_extensio … _2.4.3.zip

You just need to dissect the code and release a separate ext.

Though thanks alot for this.

well, i did alot of stuff with my forums, some of the images (especially in the main page, those small icons), i sprited them.

i am also using gzip, but there is a problem in that as it doesnt gzip the css files.

i also used the cache through htaccess, also added the expiry header thing, and vary header (gzip or no gzip), many stuff i did through htaccess, it i thinked helped increase the forums speed alot. also shows good result now in google pagespeed.

here is what i added to my htaccess:

# Expires Headers - 2678400s = 31 days
<ifmodule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType image/gif "access plus 2678400 seconds"
  ExpiresByType image/jpeg "access plus 2678400 seconds"
  ExpiresByType image/png "access plus 2678400 seconds"
  ExpiresByType text/css "access plus 518400 seconds"
  ExpiresByType text/javascript "access plus 2678400 seconds"
  ExpiresByType application/x-javascript "access plus 2678400 seconds"
</ifmodule>

# Cache Headers
<ifmodule mod_headers.c>
  # Cache specified files for 31 days
  <filesmatch "\.(ico|flv|jpg|jpeg|png|gif|css|swf)$">
  Header set Cache-Control "max-age=2678400, public"
  </filesmatch>
  # Cache Javascripts for 31 days
  <filesmatch "\.(js)$">
  Header set Cache-Control "max-age=2678400, private"
  </filesmatch>
</ifmodule>

<FilesMatch "\.(php)$">
    <IfModule mod_headers.c>
        Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
    </IfModule>
</FilesMatch>

<IfModule mod_deflate.c>
    #The following line is enough for .js and .css
    AddOutputFilter DEFLATE js css

    #The following line also enables compression by file content type, for the following list of Content-Type:s
    AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml

    #The following lines are to avoid bugs with some browsers
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html 
</IfModule>

111

(40 replies, posted in PunBB 1.3 extensions)

I tested this with 1.4.2, it works in Chrome 21.0, IE9 and FF 15.0

SuperMAG wrote:

To any admin/mod.

Can i have the php file of the extensions page. i want to dissect its content and replace it with mine and then use it.

Bump! anyone, this place is totally dead, barley any bug/extension support, even the development on the core punbb is totally dead. the fork of fluxbb was the worst thing that happened to punbb. The devs and users have been separated into 2 places, both are almost equally dead, at least they devs who are working on new stuff.

bump?

114

(7 replies, posted in PunBB 1.4 additions)

http://i47.tinypic.com/919k43.png

http://i45.tinypic.com/i38ewx.png

http://i48.tinypic.com/11gkdio.png

Download Link: http://www.mediafire.com/?4974oaj4akwsnzp

Theme is optimised by spriteme combined images and compressed css. If you guys have any problem with the theme, please post a reply, also rate the theme.

I enabled gzip, when i look it up in http://tools.pingdom.com/fpt/ and https://developers.google.com/speed/pagespeed/

the main page is gziped, but not the css and js files. especailly the main theme css.

116

(75 replies, posted in Supported extensions)

I am having a problem with this, some users reported that the spam question is asked again and again while trying to post even though they answered the correct answers.

Same problem as mentioned there.
http://punbb.informer.com/forums/topic/ … -spam-bot/

if you are talking to me,

then no, i disibled the extensions, but i still cant uninstall it. i am also using 1.4.2.

i would really appreciate it if you find a way to fix this, i really like to have this extension working.

Caching:

Recently i went accross a google page speed test, where they tested many stuff. https://developers.google.com/speed/pagespeed

I found out that punbb doesnt do "Leverage browser caching" for css,js and img(png,jpg,gif etc) files. So i had to do that manually by putting the following code into my htaccess.

# Expires Headers - 2678400s = 31 days
<ifmodule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType image/gif "access plus 2678400 seconds"
  ExpiresByType image/jpeg "access plus 2678400 seconds"
  ExpiresByType image/png "access plus 2678400 seconds"
  ExpiresByType text/css "access plus 518400 seconds"
  ExpiresByType text/javascript "access plus 2678400 seconds"
  ExpiresByType application/x-javascript "access plus 2678400 seconds"
</ifmodule>

# Cache Headers
<ifmodule mod_headers.c>
  # Cache specified files for 31 days
  <filesmatch "\.(ico|flv|jpg|jpeg|png|gif|css|swf)$">
  Header set Cache-Control "max-age=2678400, public"
  </filesmatch>
  # Cache Javascripts for 31 days
  <filesmatch "\.(js)$">
  Header set Cache-Control "max-age=2678400, private"
  </filesmatch>
</ifmodule>

<FilesMatch "\.(php)$">
    <IfModule mod_headers.c>
        Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
    </IfModule>
</FilesMatch>

And that i think made some difference in speed as the google pagespeed doesnt show errors now.


Extensions CSS and JS files:

Most of the speed test websites showed concerns about my site multiple css and js files are being loaded because i use many extensions, i think 8css files and 6js files are loaded.

The speedtest websites wants me to merge this, which i cant because if i copyed their css code to my main theme, i still cant stop the extensions to load these files. same goes for js files.

i was thinking, is their a way for extensions to just load these codes directly into the main css / js file, likes the hooks system, adding a hook to css where you can put files, i know this sounds crazy since i am not a coder so i have no idea if this possible or not. anyway that was the idea.

although its working and showing guests the message, but i am getting this error while being logged in and viewing a topic.

Notice: Undefined index: topiccount in /home/supermag/public_html/viewtopic.php(15) : eval()'d code on line 47

120

(76 replies, posted in PunBB 1.3 extensions)

This seem to be working with 1.4.2 if you change the maxversion in the xml file.

Since there was no other sitemap extension for 1.4, i decided i try this, i donno if there is any downside to this.

To any admin/mod.

Can i have the php file of the extensions page. i want to dissect its content and replace it with mine and then use it.

I want to create pages. Daris portal used to have this, but unfortunatily it is not supported anymore and doesnt work with 1.4.

I want the page to have the top menu, with all the correct links like login, register, profile etc. And then the content in the middle and footer at the bottom.

i am willing to do this manually without extension, since i am creating few number of pages. i think this can be done by creating a php page with some php line to load the css, menu, footer etc. unfortunatily i am not a coder to i have no idea what to write.

123

(37 replies, posted in PunBB 1.4 additions)

this logo extension is not working with adsense extension as the ad is the top right side wont show if the logo is enabled.

anyway to fix this?

124

(9 replies, posted in Development)

ie6, we should remove ie7 support too. lol

125

(7 replies, posted in PunBB 1.4 additions)

Its a green version of Oxygen. Here is the OxygenGreen Version: 1.0
Also the icons are from deviantart 2cristallo.

Download Link: http://www.mediafire.com/?0x02ntm8y89gixf

Screenshoot:

http://i50.tinypic.com/mm31hl.jpg

http://i49.tinypic.com/oruuet.png