just noticed something; while everything shows as it should for admin and guests  for  user it does not

profile (profile.php?id=3)   for my test user shows normal text instead of profile icon.   
and also
the logout with  link  login.php?action=out&id ...csrf_token... etc  doesnt show icon   

what do I need to change?

1,502

(31 replies, posted in Feature requests)

Cereal; while were waiting for punbb to get back to you...

I have a question; Im not sure if this is what youre framework would allow ...
If I hover above a users name I would like information like no. of posts, registered and his/her avatar to appear in a box (on my testsite www.punbb-b.keydog.info you can see why Id need it) - which was next to post on left hand side in normal punbb.

I think this is a function your framework would allow?

Or am I talking and needing something completely different?

great thx. works!

only place left now - which might not be a bad thing - where they show in fixed size is in pun_bbcode .... quick reply..

@garciat how do i need to change this part


       

<hook id="ps_do_smilies_start"><![CDATA[
        
        //this makes the smilies 20 instead of 15 in width and height
    
        $text = ' '.$text.' ';

        foreach ($smilies as $smiley_text => $smiley_img)
        {
            if (strpos($text, $smiley_text) !== false)
                $text = preg_replace("#(?<=[>\s])".preg_quote($smiley_text, '#')."(?=\W)#m", '<img src="'.$base_url.'/img/smilies/'.$smiley_img.'" width="20" height="20" alt="'.substr($smiley_img, 0, strrpos($smiley_img, '.')).'" />', $text);
        }

           ]]></hook>

with your code

<hook id="he_new_section">
if ($section == 'smilies')
{
    $temp = forum_trim(ob_get_contents());
    ob_end_clean();
    echo str_replace('width="15" height="15" ', '', $temp);
}
</hook>

   

help shows the smilies at there real size.... but not in posts or in pun_bbcode

do I need to do that echo str_replace anywhere else? or what could be problem... ?

i have one that is 18x31  and it just gets squashed big_smile (except in help where it shows correctly)

Just changed the style.css to make the info about poster be "non-displayed",
but I could use some feedback on

a.) how to get the "usertitle" (admin, etc) to appear on that "post-author" line together with date/time....   or even better...

b.) how to get an icon ADMIN, MOD, MEMBER, SENIOR MEMBER etc to appear before name of poster....

see live example here
CLICK HERE FOR DEMO

1,506

(15 replies, posted in PunBB 1.3 extensions)

works well & useful. thx.

Two new color styles  + font size change
check them out at www.keydogbb.info  beforehand to make sure you're getting what you expect!

Blue background; White font; Red hover

BlueGrey version

White background, Blue font
Download Link latest version (fixed bug showing code box font in monospace - too small)
live at www.keydogbb.info
older version

EDIT:
added new style
base: blue white
but
changed links to white and all other fonts to grey (999999)
new name now bluegreywhite

http://rapidshare.com/files/179104953/BlueGreyWhite.rar  live at www.punbb.keydogbb.info

I'm torn now.
In first solution the crumbs  AND space where it is placed disappear
in 2nd solution there's an empty space where the crumb was before (even if it doesn't show obviously)

Changing CSS is cleaner for style modifications... but empty spaces not always ideal maybe...

What options do I have for adding this old 1.2 logintop mod to 1.3.2 or later?
It adds a div class "logintop"

This file below I had put in include/user/  and was called login.php

Are there hooks that allow such a "extension: logintop" to be implemented?
or what is best way to proceed in this case?

Thanks.

<?php
 
// Show login if not logged in
if($pun_user['is_guest'])
{
    if(!isset($focus_element) || (isset($focus_element) && !in_array('login', $focus_element)))
    {
 
    // Load the language files
    require PUN_ROOT.'lang/'.$pun_user['language'].'/common.php';
    require PUN_ROOT.'lang/'.$pun_user['language'].'/login.php';
 
    // Set the $redirect_url to this page, 
    $redirect_url = '' ;
    if(isset($_SERVER['REQUEST_URI'])) {
        $redirect_url = $_SERVER['REQUEST_URI'] ;
    }
 
    $required_fields = array('req_username' => $lang_common['Username'], 'req_password' => $lang_common['Password']);
 
?>
        <div class="logintop">
            <form id="login" name="login" method="post" action="login.php?action=in" onsubmit="return process_form(this)">
                <p>
                    <input type="hidden" name="form_sent" value="1" />
                    <input type="hidden" name="redirect_url" value="<?php echo $redirect_url ?>" />
                    <?php echo $lang_common['Username'] ?>:
                    <input type="text" name="req_username" size="16" maxlength="25" />
                    &nbsp;<?php echo $lang_common['Password'] ?>:
 
                    <input type="password" name="req_password" size="16" maxlength="16" />
                    &nbsp;<a href="#" onclick="document.login.submit(); return false"><?php echo $lang_common['Login'] ?></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="register.php"><?php echo $lang_common['Register'] ?></a>
                </p>
            </form>
        </div>
<?php
    }
}else
{
?>
        <div class="logintop">
            <p>
                <?php echo $lang_common['Logged in as'].' <strong>'.pun_htmlspecialchars($pun_user['username']).'</strong>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="login.php?action=out&amp;id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>'; ?>
            </p>
        </div>
<?php
}
?>

1,510

(31 replies, posted in Feature requests)

1. how long do you think it would take you?
2. have you got any examples of what you think it would look like (any other sites / webapplications out there using it you're thinking of)
3. have you considered it being a "fork" - kind of hard to convince punbb to say they're going to use something they haven't seen working / have no idea when would be ready? - if it's a fork and prooves popular it will be used automatically and live on.... ?

i think you should definitely go ahead!

Fantastic. Great input.
Added the above garciat code to the set...

http://rapidshare.com/files/178820939/c … lies_2.rar

This set will now work with pun_bbcode   ( and  also without  bbcode running)

showing  20x20 without any manual modification of any other files.
I tested it on trunk r1002
(important that you have latest include/parser.php )

THANKS!

EDIT: shows help correctly aswell

hosted server i'm afraid.
will contact them to find out how to get access / if it's possible (php.ini)

suppose I can live with that smile there's option to drop icons anyway in admin area of pun_attachement.

users should never be none the wiser....

of course if anyone knows why getimagesize is giving trouble - all the better....

thx

thanks, but that hasn't worked for me yet.
put that code in pun_attach.php right before

    if (!defined('FORUM')) die();

reading in other php forums...  is there some file "php.ini" - a global setting I can modify... ?

or do I need to modify another file... or put it in another place in pun_attach.php

EDIT: if I drop this code it works ... is it important? big_smile

        }
        else
        {
            list($width, $height, , ) = getimagesize($forum_config['attach_icon_folder'].$names[$i]);

            if (($width > 20) || ($height > 20))
                $pun_attach_errors['big_images'][] = '<li class="warn"><span>'.$forum_config['attach_icon_folder'].$names[$i].'</span></li>';

1,515

(2 replies, posted in General discussion)

have a great start to 2009!

Warning: getimagesize() [function.getimagesize.php]: URL file-access is disabled in the server configuration in
pun_attachment/pun_attach.php on line 30


Suddenly I am getting this warning for pun_attachment extension

Where to I enable URL file-access?
Was working fine until couple of days ago....

Operating system: FreeBSD
PHP: 5.2.8

great thanks- was looking in the .css's

is there a way to set it to display only the crumbs at bottom or top?
keep getting both on or off ....

all sorted

<div style="width: 468px; z-index: 999999; right: -200px; top: 15px; position: absolute;">

that does the trick -  the -200px big_smile

thx for help

EDIT:
<div style="width: 468px; left: 80%; top: 15px; position: absolute;">
i've done now, works better when making window smaller... the banner was just covering the forum if I made width too small of browser window

also added  /> to img tag to be w3c compliant....

cool thx

<img src="http://myforum.bla/img/mybanner.jpg">

follow up question...

it is now showing over my actual forum. as i have modified width of forum to 80% is there some way to show it next to the actual forum ?

ok, and once I have that changed (include/template/main.tpl)... how do I get my image mybanner.jpg to show?
what else do I need to do?
thanks.

/*************************************************************
B - GLOBAL STYLES
**************************************************************/

/* General Layout
-------------------------------------------------------------*/

.brd {
    padding: 1.3em 2em;
    margin: 0 auto;
    max-width: 1100px;
    min-width: 700px;
    width: 80%;
    float: left;
    }

#brd-redirect, #brd-maint, #brd-util {
    margin: 50px auto 12px auto;
    width: 60%;
    }

.brd-page { /* Confines clearing behaviour within forum wrapper */
    float: left;
    width: 90%;
    position: relative;
    }


is what I have at the moment right, but I want to

float: right;

mybanner.jpg

but I struggling to know what  .brd  thing to use... or can I add something?

I'm trying to float a skyscraper banner (Ad) on the right hand side of my forum.

How do I do so?


Thanks for any pointers.


Edit: size 120x600

It would be good if added smilies would show in actual size in help.php and parser.php and not fixed to 15x15.

I've found that lots of smilies that are out there have strange sizes like 24x18 etc etc - and I don't want all smilies at that silly size obviously.

Is there some way to auto insert the actual size of the smiley instead of using the fixed 15x15 all over the place?

thanks!

1,525

(151 replies, posted in PunBB 1.3 extensions)

EDIT :   THIS ISSUE IS NOW SOLVED
see: http://punbb.informer.com/forums/topic/ … odebarphp/
------------------------------------------------------------------------------

in help.php

<?php

    // Display the smiley set
    if (!defined('FORUM_PARSER_LOADED'))
        require FORUM_ROOT.'include/parser.php';

    $smiley_groups = array();

    foreach ($smilies as $smiley_text => $smiley_img)
        $smiley_groups[$smiley_img][] = $smiley_text;

    foreach ($smiley_groups as $smiley_img => $smiley_texts)
        echo "\t\t\t\t".'<p>'.implode(' '.$lang_common['and'].' ', $smiley_texts).' <span>'.$lang_help['produces'].'</span> <img src="'.$base_url.'/img/smilies/'.$smiley_img.'" width="15" height="15" alt="'.$smiley_texts[0].'" /></p>'."\n";

?>

  I wld like a hook as in parser.php for changing image size to match whatever set of smilies size I'm including. (20x20 instead of 15x15)
in parser.php this hook is now available :

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

also in pun_bbcode bar.php I'd like a hook for the same thing (changing size of smilies)

            <div id="pun_bbcode_smilies">
<?php

// Display the smiley set

EDIT :   THIS ISSUE IS NOW SOLVED
see: http://punbb.informer.com/forums/topic/ … odebarphp/

thx