51

(3 replies, posted in PunBB 1.3 extensions)

All manifest.xml are different for each extension so... no.

If it's doing that, then just remove a line break on the template where that happens.

There's probably a fix to be applied to the code but for the moment that's the best thing to do.

Yeah, the processor sucks.

I'd rather buy a netbook.

What are the specs?

Edit:

Engadget wrote:

The AspireRevo is debuting today alongside a plethora of other Acer wares, boasting a 1.6GHz Intel Atom 230 processor, up to 4GB of RAM, up to 250GB of HDD space, a 4-in-1 card reader, HDMI / VGA outputs, gigabit Ethernet, six USB 2.0 sockets, audio in / out, Windows Vista Home Premium / Basic and a svelte black and white enclosure that measures just 7.1- x 7.1- x 1.2-inches.

Correct.

56

(1 replies, posted in PunBB 1.3 troubleshooting)

I don't think there's full rtl support, yet.

Try using cURL:

<?php

$url = 'http://google.com/';

if (function_exists('curl_init')) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $content = curl_exec($ch);
    curl_close($ch);
    
    echo $content;
}
else echo 'No cURL library!';

?>

Cool.

A great place to start is http://fluxbb.org/wiki/v1.3:developing_extensions, then I'd recommend reading other extension's code to familiarize yourself with the extension system.

Find this line (should be #114) in 'post.php':

// Flood protection

Before, add:

    $days = 3;
    if (!$forum_user['is_guest'] && !$forum_page['is_admmod'] && $forum_user['registered']>(time() - 60*60*24*$days))
        message('You must wait '.$days.' day'.($days==1?'':'s').' before being able to post.');

Replace the value of '$days = 3' with the number of days you want new users to wait.

This worked for me:

UPDATE pun_forums AS f SET num_posts=(SELECT SUM(num_replies) FROM pun_topics WHERE forum_id=f.id)+(SELECT count(id) FROM pun_topics WHERE forum_id=f.id)

Replace the 'pun_' prefix with your tables' prefix.

It'll work as long as the forums have 1 or more topics.

Nope, sorry.

I'm in school now, so I'm quite busy.

They work on my test board.

64

(22 replies, posted in PunBB 1.3 extensions)

You may use the same extension id to add your changes (same SVN folder), if you want. I don't mind.

Create a new file on the same directory of your 'index.php' with the following code in it

<?php
if(chmod("./extensions", 0777))
echo 'Success';
?>

and name it 'chmod.php'.

Then, just access the file with your browser (i.e. www.example.com/forums/chmod.php).

If you get "Success", then you're good to go.

66

(22 replies, posted in PunBB 1.3 extensions)

There you go http://punbb.informer.com/forums/topic/ … ine-today/

67

(22 replies, posted in PunBB 1.3 extensions)

Shows today's online users on the forum index.

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

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

Updates

  • 1.0.0: First release

That'd be possible, but posts created before the extension wouldn't display the old avatars.

69

(22 replies, posted in PunBB 1.3 extensions)

You do realize that by just getting that info from the database you're not changing the $forum_user variable at all, don't you? There's only one guest user account and its last_visit is never updated, so there's no need to add a check for $forum_user['is_guest'].

Also, not everyone has $lang_index['Today online'], so they're gonna get "Undefined index".

The only thing wrong with my code would be the table prefix. And here it's fixed:

$todays_users = array();
$result = $forum_db->query("SELECT id,username FROM ".$db_prefix."users WHERE last_visit>'".strtotime(gmdate("M d Y"))."' ORDER BY last_visit DESC");
while(list($id, $username) = $forum_db->fetch_row($result)) $todays_users[] = '<a href="'.forum_link($forum_url['user'], $id).'">'.$username.'</a>';
if(!empty($todays_users))
echo '<h3 class="hn"><span>Online today: '.implode(', ', $todays_users).'</span></h3>';

70

(5 replies, posted in PunBB 1.3 additions)

Use the search form.

http://punbb.informer.com/forums/topic/ … tory-beta/

71

(5 replies, posted in PunBB 1.3 additions)

Sort of.

72

(5 replies, posted in PunBB 1.3 additions)

You can't.

73

(22 replies, posted in PunBB 1.3 extensions)

Well, I think the problem is that the last_visit value is updated only when you log in (not when you visit the site).

74

(22 replies, posted in PunBB 1.3 extensions)

Use this instead:

$todays_users = array();
$result = $forum_db->query("SELECT id,username FROM pun_users WHERE last_visit>'".strtotime(gmdate("M d Y"))."' ORDER BY last_visit DESC");
while(list($id, $username) = $forum_db->fetch_row($result)) $todays_users[] = '<a href="'.forum_link($forum_url['user'], $id).'">'.$username.'</a>';
if(!empty($todays_users))
echo '<h3 class="hn"><span>Today\'s users: '.implode(', ', $todays_users).'</span></h3>';

75

(22 replies, posted in PunBB 1.3 extensions)

Find

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

on 'index.php' and paste the code next to it.

$result = $forum_db->query("SELECT id,username FROM pun_users WHERE last_visit>'".strtotime(gmdate("M d Y"))."' ORDER BY last_visit DESC");
while(list($id, $username) = $forum_db->fetch_row($result)) $todays_users[] = '<a href="'.forum_link($forum_url['user'], $id).'">'.$username.'</a>';
echo '<h3 class="hn"><span>Today\'s users: '.implode(', ', $todays_users).'</span></h3>';