1
Gambero[removed]
NewBB 2 pictures improvement + edit fixed

NewBB 2 Pictures improvement

I think NewBB 2 pictures look great but only on white background. I suggest to repair those pictures to look good on a dark background too. That should be repaired in new NewBB version. Is there anyone, who can do this ? Just have to repair the transparency for dark backgrounds.

Edit fixed

Last weekend I wrote to Predator and he helped me out:

If you want only the last edit of the post to be shown, you have to do this:

Predator wrote:

In the folder newbb/class/ edit post.php

search for the function displayPOstEdit()

must be start at line 248
replace the function with this function:

function displayPostEdit()
    {
        global 
$myts$xoopsModuleConfig;

        if( empty(
$xoopsModuleConfig['recordedit_timelimit']) ) return false;

        
$post_edit '';
        
$post_edits $this->getVar('post_edit');
        if (!empty(
$post_edits)) $post_edits unserialize(base64_decode($post_edits));
        if (!isset(
$post_edits) || !is_array($post_edits)) $post_edits = array();
        if (
is_array($post_edits) && count($post_edits) > 0) {
            
$i=count($post_edits)-1;
            
$edit_time intval($post_edits[$i]['edit_time']);
            
$edit_user $myts->stripSlashesGPC($post_edits[$i]['edit_user']);
            
$post_edit .= _MD_EDITEDBY " " $edit_user " " _MD_ON " " formatTimestamp(intval($edit_time)) . "
"
;
            
            
/*
                  
            foreach($post_edits as $postedit) {
                
                $edit_time = intval($postedit['edit_time']);
                $edit_user = $myts->stripSlashesGPC($postedit['edit_user']);
                $post_edit .= _MD_EDITEDBY . " " .$edit_user . " " . _MD_ON . " " . formatTimestamp(intval($edit_time)) . "
";
            }*/
         
}
        return 
$post_edit;
    }


Now you see only the last Edit.

If someone wants to use it.

2
Mithrandir
Re: NewBB 2 pictures improvement + edit fixed

Why do you write this in the xoops.org feedback forum?

Newbb feature requests should be posted on dev.xoops.org

3
Gambero[removed]
Re: NewBB 2 pictures improvement + edit fixed

@Mithrandir

I am sorry. I posted this here because of that code to fix "Edit show". Here can be seen by many people who need this.

Sorry again. You can delete this topic ... I will post it to dev.xoops.org.

Login

Who's Online

282 user(s) are online (91 user(s) are browsing Support Forums)


Members: 0


Guests: 282


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits