You could make a 'structure.css' and then just add

<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $base_url ?>/style/common.css" />

to every 'style/{style-id}/{style-id}.php'.

Now, I wouldn't know which stylesheet gets overridden by the other, so just place that on the bottom of 'style/{style-id}/{style-id}.php' and see if it works.

Thanks smile

478

(10 replies, posted in PunBB 1.3 extensions)

You know some PHP, don't you? Why don't you help the community and make the extension? smile

479

(21 replies, posted in PunBB 1.3 extensions)

Updated to 1.1. It doesn't use FTP or SSH file upload because I don't really know how to do it smile If you show me some examples, I could give it a try.

Who the hell said I was too lazy to add a filter? I just didn't add it because I didn't think it was necessary.

If anyone wants to  patch its extension, they are free to do so.

I'm so sorry for trusting people...

481

(21 replies, posted in PunBB 1.3 extensions)

I'll see what I can do about all that smile

482

(21 replies, posted in PunBB 1.3 extensions)

What other way could the file be uploaded?

483

(21 replies, posted in PunBB 1.3 extensions)

Yes, I'm aware of it not selecting extensions and extensions_hooks. I don't see why they need to be backed up.

I don't have experience with encodings so I just used htmlentities() to keep the XML valid and then html_entity_decode(). What should I use instead?

484

(21 replies, posted in PunBB 1.3 extensions)

NOTE: THE EXTENSION IS IN BETA STATE! IF YOU WANT TO USE IT, FIRST TRY IT ON A TEST FORUM AND SEE IF IT WORKS PROPERLY. EITHER WAY, POST YOUR RESULTS HERE. Thanks! smile

Allows the creation of database backups in XML format. (Only for MySQL and MySQLi)

The Backup Control Panel can be found on Administration » Start » Backup (If you think it should be placed somewhere else, let me know)

Download Link: http://punbb.informer.com/unofficial/pu … backup.zip

If you find any bugs or have any tips, please post them here.

Updates

  • 1.2.1: Fixed small bugs.

  • 1.2: Added UTF-8 support (to be tested), made some fixes, and more.

  • 1.1: Added local backups

  • 1.0: First release

485

(9 replies, posted in PunBB 1.3 extensions)

Ok, download it again and see if that works.

Yep, that's better.

487

(9 replies, posted in PunBB 1.3 extensions)

Ok, I changed some stuff, redownload the ZIP.

If you want to use a variable, just put it in brackets. Like this: {$forum_user['username']}.

488

(9 replies, posted in PunBB 1.3 extensions)

Oh... you want to use PHP on it... let me see what I can do.

Can I have a link to your forum?

490

(2 replies, posted in Programming)

Of course, I could've Google'd it, but I was hoping you could explain me what it is with your own words.

491

(2 replies, posted in Programming)

One question: What is Joomla?

492

(9 replies, posted in PunBB 1.3 extensions)

Enjoy! http://garciat.us.to/code/before_body.zip

493

(4 replies, posted in PunBB 1.3 additions)

What black border?

494

(9 replies, posted in PunBB 1.3 extensions)

Garciat wrote:

You can add set your default avatar on Administration » Settings » Features » User Avatars

495

(9 replies, posted in PunBB 1.3 extensions)

It does...

496

(9 replies, posted in PunBB 1.3 extensions)

Allows the use of a default avatar in case an avatar is not set.

You can add set your default avatar on Administration » Settings » Features » User Avatars

Download Link: http://punbb.informer.com/unofficial/pu … avatar.zip

If you find any bugs or have any tips, please post them here.

Updates

  • 1.0: First release

If the posts table is empty, the function will send this error:

The error occurred on line 325 in E:\home\forums\admin\db_update.php

Database reported: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 1 (Errno: 1064).

Because the resulting query is:

SELECT p.message, p.poster, t.subject, f.forum_name FROM punbb_posts AS p INNER JOIN punbb_topics AS t ON t.id = p.topic_id INNER JOIN punbb_forums AS f ON f.id = t.forum_id WHERE p.id >= LIMIT 1 

There is no 'id' to use.

So, my "fix" would be:

    if(!$min_id && !$max_id)
    {
        $result = $forum_db->query("SHOW TABLE STATUS LIKE '{$forum_db->prefix}posts'") or error(__FILE__, __LINE__);
        $table = $forum_db->fetch_assoc($result);

        return (substr($table['Collation'], 0, 4) == 'utf8') ? true : false;
    }

after

list($min_id, $max_id) = $forum_db->fetch_row($result);

I don't know if this will work on all db types.

498

(14 replies, posted in PunBB 1.3 extensions)

Someday, maybe...

499

(14 replies, posted in PunBB 1.3 extensions)

If you want Reinvigorate, replace:
'extensions/easy_google_analytics/manifest.xml' with this file
'extensions/easy_google_analytics/lang/English/easy_google_analytics.php' with this file

I'm not the best at SQL, but if you'd like to get an extra column from the table, you could do something like:

$query['SELECT'] .= ', c.something';

Notice the dot before the =, that means the string will be added to the end of the existing string smile