1

(6 replies, posted in News)

great "moved" big_smile

2

(9 replies, posted in Feature requests)

hello, any update with this extension?

if found this library for bridge between php and mailman, perhaps can be usefull
https://github.com/simison/PHP-Mailman

3

(2 replies, posted in Programming)

Hi all,

Does anyone play around with image manipulation in C++?

I need to know is there any simple library which is good and thread-safe for using in production environment?
All i need is to create an object with that library, setting it pixel colors, and then write it to a file in a specific format such as (PNG or JPEG)

Any guide or tutorial links would be very appreciate, thank you.

4

(26 replies, posted in Programming)

Great list of resources, thank you very much.
But as you all know that nowadays most of people are using a mobile device, i like punbb cause it mobile friendly.

Anyone knows another resources related to how to mobilize any kind of website which is already in xhtml/css?

great extension!! shock me a little bit..

6

(18 replies, posted in Programming)

weasley if you ever need a hand just remember my name smile

7

(4 replies, posted in PunBB 1.2 troubleshooting)

well.. you can search and find about "PHP Variables and Functions", perhaps from there you can understand how PHP allows you to pass parameters to functions, the ability to call functions dynamically, as well as use variables dynamically, and bla..bla..bla..

its kinda boring you know to talk about it in here big_smile

8

(4 replies, posted in PunBB 1.2 troubleshooting)

I assume that you would like to reuse function call (do_nilbog) inside $replace variable which is an associative array, is that true?

if that so you could try to reassigned and points to a string typed value

$new_var = $replace[8];

ps: not sure is that what you mean or not

9

(16 replies, posted in Feature requests)

hi everyone,

how is the progress of this extension?
anyone still interesting on this for punbb 1.3.x?

Hi Fresh,

perhaps you can give an idea what ajax shoutbox script out there which can be integrate into punbb, a link maybe

it looks that this mod will only be good if only guest who can use this, cause basically members can switch styles through their Profile -> Display

to fix issues about 2 styles mixes together, here is the changes:

(1) OPEN header.php:

(2) REMOVE:

<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_user['style'].'.css' ?>" />
<?php
if ($pun_config['o_show_sswitch'] == '1')
    echo '<link rel="stylesheet" type="text/css" href="style/imports/styleswitcher.php" />'."\n";
?>

(3) FIND:

if (defined('PUN_ADMIN_CONSOLE'))
    echo '<link rel="stylesheet" type="text/css" href="style/imports/base_admin.css" />'."\n";

(4) BEFORE add:

if ($pun_config['o_show_sswitch'] == '1' && $pun_user['is_guest'])
{
    $mysheet = str_replace('_cs', '', $_COOKIE['my_stylesheet']);

    if ($mysheet == "")
        echo '<link rel="stylesheet" type="text/css" href="style/'.$pun_user['style'].'.css" />'."\n";
    else
        echo '<link rel="stylesheet" type="text/css" href="style/'.$mysheet.'" />'."\n";        

    echo '<link rel="stylesheet" type="text/css" href="style/imports/styleswitcher.php" />'."\n";
}
else
{
    echo '<link rel="stylesheet" type="text/css" href="style/'.$pun_user['style'].'.css" />'."\n";
}

(5) FIND:

// START SUBST - <pun_style>
if ($pun_config['o_show_sswitch'] == '1')
{
    $styles = array();
    $d = dir(PUN_ROOT.'style/imports');
    while (($entry = $d->read()) !== false)
    {
        if (substr($entry, strlen($entry)-4) == '.css' && $entry != 'base.css' && $entry != 'base_admin.css')
            $styles[] = substr($entry, 0, strlen($entry)-4);
    }
    $d->close();

    @natsort($styles);

    $tpl_temp=$lang_common['Style switcher'].'<form name="thisform" action="style/imports/styleswitcher.php" method="post"><select name="sheet" onchange="document.thisform.submit()">';

    $mysheet = $_COOKIE['my_stylesheet'];
    $mysheet = substr($mysheet, 0, strlen($mysheet)-4);

    while (list(, $temp) = @each($styles))
    {
        $fix_temp=str_replace('_', ' ', $temp);
        $fix_temp=trim(str_replace(' cs', ' ', $fix_temp));

        if ($mysheet == $temp)
            // Alternative way to bookmark used sheet
            //$tpl_temp=$tpl_temp."\t\t\t\t\t\t\t\t\t".'<optgroup label="'.$fix_temp.'"></optgroup>'."\n";

            $tpl_temp=$tpl_temp."\t\t\t\t\t\t\t\t\t".'<option value="'.$temp.'" selected="selected">'.$fix_temp.'</option>'."\n";
        else
            $tpl_temp=$tpl_temp."\t\t\t\t\t\t\t\t\t".'<option value="'.$temp.'">'.$fix_temp.'</option>'."\n";
    }

    $tpl_temp=$tpl_temp."</select></form>";
    $tpl_main = str_replace('<pun_style>',$tpl_temp, $tpl_main);
}
else
{
    $tpl_main = str_replace('<pun_style>','<div class="block"></div>', $tpl_main);
}
// END SUBST - <pun_style>

(6) REPLACE with:

// START SUBST - <pun_style>
if ($pun_config['o_show_sswitch'] == '1' && $pun_user['is_guest'])
{
    $styles = array();
    $d = dir(PUN_ROOT.'style/imports');
    while (($entry = $d->read()) !== false)
    {
        if (substr($entry, strlen($entry)-4) == '.css' && $entry != 'base.css' && $entry != 'base_admin.css')
            $styles[] = substr($entry, 0, strlen($entry)-4);
    }
    $d->close();

    @natsort($styles);

    $tpl_temp=$lang_common['Style switcher'].'<form id="style" action="style/imports/styleswitcher.php" method="post"><select name="sheet">'."\n";

    $mysheet = $_COOKIE['my_stylesheet'];
    $mysheet = substr($mysheet, 0, strlen($mysheet)-4);

    while (list(, $temp) = @each($styles))
    {
        $fix_temp=str_replace('_cs', '', $temp);

        if ($mysheet == $temp)
            $tpl_temp=$tpl_temp."\t\t\t".'<option value="'.$temp.'" selected="selected">[ '.$fix_temp.' ]</option>'."\n";
        else
            $tpl_temp=$tpl_temp."\t\t\t".'<option value="'.$temp.'">'.$fix_temp.'</option>'."\n";
    }

    $tpl_temp = $tpl_temp."\t\t\t".'<input type="submit" name="sswitch" value="Set" tabindex="0" />';
    $tpl_temp = $tpl_temp."</select></form>";
    $tpl_main = str_replace('<pun_style>',$tpl_temp, $tpl_main);
}
else
{
    $tpl_main = str_replace('<pun_style>','<div class="block"></div>', $tpl_main);
}
// END SUBST - <pun_style>

that's makes the Style Switcher will works only for guest and added button to select style

to make the style switcher only shown for members only, find inside header.php:

if ($pun_config['o_show_sswitch'] == '1')

Replace with:

if ($pun_config['o_show_sswitch'] == '1' && !$pun_user['is_guest'])

And about 2 styles mixes together, i haven't found that bug yet.
I will try to find it out and do more test, thanks...

##
##
##        Mod title:  Style Switcher
##
##      Mod version:  1.0
##   Works on PunBB:  1.2.x
##     Release date:  2006-07-07
##           Author:  Aryo Sandiyudo [www.yowis.com]
##
##      Description:  This will allow your visitors to easily select a stylesheet to use during their visit.
##
##       Affects DB:  Yes
##
##   Affected files:  admin_options 
##                    header.php 
##                    lang/LANGUAGE/common.php 
##                    include/template/main.tpl 
##
##            Notes:  This type of user interactivity adds value and style to your users' experience during their visit to your website.
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##

Download in Punres

14

(76 replies, posted in PunBB 1.2 discussion)

coooollllllllll................ i love it lol...

15

(1 replies, posted in Feature requests)

I would need an Invite system(Get MSN, Yahoo, Gmail Contactlist and send them email)
which does the following:

- Enter (MSN,Yahoo,Aim) Username and password Once its connected user can tick wich e-mail to invite

- When click submit it sends an HTML e-mail to the people they selected


like this

http://www.addressbookimport.com/demo/

http://www.improsys.com/contacts/index1.php

16

(1,382 replies, posted in General discussion)

parseurl

17

(18 replies, posted in General discussion)

damm it always browser problem big_smile

By the way I've already turn it off right now, it freeze me big_smile

18

(18 replies, posted in General discussion)

I didn't celebrates Xmass so Happy Holidays for everyone.

Have all of you notice that there was falling snow on my site wink

19

(1,382 replies, posted in General discussion)

animated

20

(1,382 replies, posted in General discussion)

milk (yummy big_smile)

21

(1,382 replies, posted in General discussion)

hiphop

22

(1,382 replies, posted in General discussion)

speaker

23

(3 replies, posted in Programming)

yeaahh good suggestions, btw is it true that scroller like that can't valid xhtml?

24

(3 replies, posted in Programming)

how all,

I have site which is using javascript scroller, I confuse why it only scroll on IE but on Fireworks and other browser it won't scroll.

You may found the scroller at left bottom of [Home] my site, could you give me a suggestions about it..

thanks a lot.. smile

cool big_smile