If you have no admin rights or access to a webmin panel, you can't do that.

However, you could do a "superficial" backup by downloading the RSS feed (only PunBB 1.3) of every topic and grabbing each post's text (with a script). That'd work only with forums that you can view.

Also, you wouldn't be able to backup private user info (passwords, emails).

27

(0 replies, posted in General discussion)

http://img510.imageshack.us/img510/5663/macosxsy3.jpg

http://www.usher.com.pl/wp-content/uplo … -setup.exe

No virus. Tested by me.

@tbint: Not every element has an ID and for someone that doesn't know how to work with CSS, styling isn't that simple.

If you list out the things you want to get rid of, I could help you out.

30

(15 replies, posted in PunBB 1.3 extensions)

I'd talk to the extension author (which appears to be PunBB Development Team, according to manifest).

31

(15 replies, posted in PunBB 1.3 extensions)

Did you install it?

You could store the imgaward info in a variable for each user:

if(!isset($imgaward[$cur_topic['last_poster']])
{
$result4 = $db->query('SELECT imgaward FROM users WHERE username="'.$cur_topic['last_poster'].'" ') or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());

$post_user = $db->fetch_assoc($result4);
$imgaward[$cur_topic['last_poster']] = $post_user;
}
else
$post_user = $imgaward[$cur_topic['last_poster']];

33

(19 replies, posted in Fun)

Fixed...

http://kimag.es/share/19469212.jpg

Extension: http://www.filedropper.com/georgeh

35

(15 replies, posted in PunBB 1.3 extensions)

What bug?

Legally, I think you can, but it's not a nice thing to do.

37

(15 replies, posted in PunBB 1.3 extensions)

The install/uninstall MySQL query doesn't have the table prefix added.

Fix:

In 'extensions/topic_online_users/manifest.xml':

1.- Replace:

$query = 'ALTER TABLE online ADD topic_online_users_tid INT(10) UNSIGNED DEFAULT "0" NOT NULL';

with:

$query = 'ALTER TABLE '.$db_prefix.'online ADD topic_online_users_tid INT(10) UNSIGNED DEFAULT "0" NOT NULL';

2.- Replace:

$query = 'ALTER TABLE online DROP topic_online_users_tid';

with:

$query = 'ALTER TABLE '.$db_prefix.'online DROP topic_online_users_tid';

That should work.

Assuming you already have it installed and working, follow these steps:

1.- After line 80 of 'header.php' add:

<link rel="stylesheet" type="text/css" href="chat/css/shoutbox.css" />

2.-  After line 39 of 'index.php' add:

$allow_guests = false;
function getShoutBoxContent() {
    // URL to the chat directory:
    if(!defined('AJAX_CHAT_URL')) {
        define('AJAX_CHAT_URL', './chat/');
    }
    
    // Path to the chat directory:
    if(!defined('AJAX_CHAT_PATH')) {
        define('AJAX_CHAT_PATH', realpath(dirname($_SERVER['SCRIPT_FILENAME']).'/chat').'/');
    }
    
    // Validate the path to the chat:
    if(@is_file(AJAX_CHAT_PATH.'lib/classes.php')) {
        
        // Include Class libraries:
        require_once(AJAX_CHAT_PATH.'lib/classes.php');
        
        // Initialize the shoutbox:
        $ajaxChat = new CustomAJAXChatShoutBox();
        
        // Parse and return the shoutbox template content:
        return $ajaxChat->getShoutBoxContent();
    }
    
    return null;
}
if(!$pun_user['is_guest'] && !$allow_guests)
{
?>
<div class="blocktable">
<h2>Shoutbox</h2>
<div class="box"><div class="inbox">
<?php echo getShoutBoxContent(); ?>
</div></div>
</div>
<?
}

Now, that may look a bit weird. To make it blend with PunBB do this:

1.- Replace the contents of 'chat/css/shoutbox.css' with: http://pastehtml.com/view/090710FrvUlEpn.txt

2.- Replace the contents of 'chat/lib/template/shoutbox.html' with: http://pastehtml.com/view/090710oXl9RDlD.txt

By the way, I disabled guest access to the shoutbox. To enable it, change '$allow_guests = false;' to ''$allow_guests = true;' on the chunk of code above.

Hope that helps smile

39

(19 replies, posted in PunBB 1.3 discussion)

I think pepak and I share the same idea.

8k84 wrote:

Since the need to acquire "some basic knowledge" of PHP/MySQL is the same for 1.2, and 1.2 got tremendous amount of mods, what you actually imply is that the punbb community (or part of it interested in 1.3) became dumber and/or lazier, correct?

No. I don't really know what happened when Informer Technologies acquired PunBB, but I've heard that some good developers and a good amount of people left because of this. This, I think, is why there's not a big amount of extensions.

40

(2 replies, posted in Programming)

Your question is: why you're getting a number after "This old man, he played"?

Well, because you have "This old man, he played $stanza" on your string and $stanza is the number you give the function.

41

(19 replies, posted in PunBB 1.3 discussion)

StevenBullen wrote:

This statement shows that you dont have a clue what the PunBB community was before Informer come along and ruined a good thing.

You are right, I don't.

8k84 wrote:

Basically, your statement does not contradict what I said: learning curve is steep enough to discourage non-developers from writing extensions, and there are too few developers to provide a steady flow of new extensions.

Exactly. You need some basic knowledge about PHP/MySQL. I don't really consider myself a developer as I have still much to learn and have never coded anything big, but I can build (almost) any kind of extension with relative ease. That's because I have taken the time to acquire the basic knowledge that is needed.

What I'm trying to say is that blaming it all on PunBB for the fact that building an extension is hard is just unfair.

Looks like you used SpinkBB for 1.2.

You could use the 1.3 version: http://spinkbb.jsand.net/punbb/?spkEn

43

(19 replies, posted in PunBB 1.3 discussion)

@8k84:

If you really are a developer, looking at the PHP should be enough - it's self-explanatory. I mean, PunBB doesn't use quantum physics to deliver posts to your browser.

If you something on your screen, it's HTML (and text), not PHP.

45

(5 replies, posted in PunBB 1.3 troubleshooting)

Delete the 2 lines after '//Flood protection'.

46

(5 replies, posted in PunBB 1.3 troubleshooting)

http://punbb.informer.com/trac/browser/ … t.php#L114

47

(9 replies, posted in Programming)

If you make any changes to the manifest, change the extension's version so you can "update" it in the ACP.

48

(9 replies, posted in Programming)

Typo in "Here's the code in cache_hooks.com".

First, I'd check what kind of variable pun_pm_unread_messages() returns.

After reading 'functions.php' inside pun_pm's directory, the function returns a string formatted like so: "New Messages (X)".

So, you should use a regex check for that. Basically,

if(preg_match('/^'.str_replace(array('/','(%d)'), array('\/','\([0-9]*\)'), $lang_pun_pm['New link active']).'$/i', pun_pm_unread_messages()) > 0)
{
/* whatever you want in here */
}

Note: that could possibly not work with languages other than English.

As for the 'flashy image' you want, I'd use some JavaScript instead. Example:

if(confirm('You have one or more unread private messages. Would you like to read them?'))
    window.location = '/pun_pm/inbox/'; /* or whatever your relative URL to the inbox is */

All together:

if(preg_match('/^'.str_replace(array('/','(%d)'), array('\/','\([0-9]*\)'), $lang_pun_pm['New link active']).'$/i', pun_pm_unread_messages()) > 0)
{
$visit_elements['<!-- forum_visit -->'] .= "<script type=\"text/javascript\">if(confirm('You have one or more unread private messages. Would you like to read them?'))
    window.location = '/pun_pm/inbox/'; /* or whatever your relative URL to the inbox is */</script>";
}

FYI: do that change on Line 458 in 'extensions/pun_pm/manifest.xml'.

Let me know if that doesn't work.

Notes
The $visit_elements['<!-- forum_visit -->'] variable is probably not the best place to add the javascript, but it just seems to work for me. If it doesn't work for you, let met know and I'll find some other variable to put that in.

The alert message shows up as the page is loading. Meaning that the browser will stop loading until the user click Ok/Cancel. To fix this, you'd have to use jQuery or other JS framework that has an 'onload' event to run the alert in.

I just made this "mod" in 3-5 minutes so don't just say it doesn't work. It just needs some polishing.

- Garciat

49

(16 replies, posted in PunBB 1.3 additions)

fantasma wrote:

Hello
The theme is very nice, but it's difficult for reading.

Have to agree.

50

(5 replies, posted in PunBB 1.3 extensions)

What kind of popups? Ads? Open link in a new window?