LOL, of course - thanks a lot.

Hi,

I have some different categories which I would like only specific users to have access to, is this possible ? If yes, how ?

Thanks

Just installed a fresh punbb.

Never had any problems in the past installing, but this time I get:

An error was encountered
Error: Unable to insert into online list.

What can I do ?

Thanks

29

(12 replies, posted in PunBB 1.2 troubleshooting)

Should I add this somewhere in here?

// Convert BBCodes to their HTML equivalent
//
function do_bbcode($text)
{
   global $lang_common, $pun_user;

   if (strpos($text, 'quote') !== false)
   {
      $text = str_replace('[quote]', '</p><blockquote><div class="incqbox"><p>', $text);
      $text = preg_replace('#\[quote=("|"|\'|)(.*)\\1\]#seU', '"</p><blockquote><div class=\"incqbox\"><h4>".str_replace(array(\'[\', \'\\"\'), array(\'[\', \'"\'), \'$2\')." ".$lang_common[\'wrote\'].":</h4><p>"', $text);
      $text = preg_replace('#\[\/quote\]\s*#', '</p></div></blockquote><p>', $text);
   }

   $pattern = array('#\[b\](.*?)\[/b\]#s',
                '#\[i\](.*?)\[/i\]#s',
                '#\[u\](.*?)\[/u\]#s',
                '#\[url\]([^\[]*?)\[/url\]#e',
                '#\[url=([^\[]*?)\](.*?)\[/url\]#e',
                '#\[email\]([^\[]*?)\[/email\]#',
                '#\[email=([^\[]*?)\](.*?)\[/email\]#',
                '#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#s');

   $replace = array('<strong>$1</strong>',
                '<em>$1</em>',
                '<span class="bbu">$1</span>',
                'handle_url_tag(\'$1\')',
                'handle_url_tag(\'$1\', \'$2\')',
                '<a href="mailto:$1">$1</a>',
                '<a href="mailto:$1">$2</a>',
                '<span style="color: $1">$2</span>');

   // This thing takes a while! :)
   $text = preg_replace($pattern, $replace, $text);

   return $text;
}


//

30

(12 replies, posted in PunBB 1.2 troubleshooting)

Hmm, does look good, maybe someone alse that reads this knows where to put this code ?

31

(12 replies, posted in PunBB 1.2 troubleshooting)

Hmm, another approach would be to allow HTML in specific forums, but I guess that´s not a standard feature in PunBB ?

32

(12 replies, posted in PunBB 1.2 troubleshooting)

That would be perfect - is this something you could do for me ?

33

(12 replies, posted in PunBB 1.2 troubleshooting)

Well, no need to - I would like to add the size of the image when linking to it, that would be fine.

34

(12 replies, posted in PunBB 1.2 troubleshooting)

Is it possible to add a heigth and width when showing a picture in PunBB, so that the image has the correct code, like this?

<img class="postimg" src="wallpaper.jpg" alt="Wallpaper" style="height:320px;width:400px" />

Got it - it was a permission issue in the file itself.

Ok, I renamed it to

AP_News_Generator1
AP_News_Generator2

But getting this error - please note that the directory is 777 full access.

Error: Unable to write news to ./plugins/AP_News_Generator2/main.html. Please make sure PHP has write access to the directory ./plugins/AP_News_Generator2/.

I will check that - thanks.

Yeah, that would be the obvious choice, but unfortunately it doesn´t work when I rename the file.

Still the same problem as extern.php

What I need is exactly like the New Generator, just one for each section of my site.

Page 1 = News Generator 1
Page 2 = News Generator 2
Page 3 = News Generator 3
Page 4 = News Generator 4

I wouldn´t mind having to click on 4 different News Generators for my 4 pages.

So my question is - is it possible to use multiple News Generators to create 4 independant news for use in 4 non-forum pages? If yes, how?

The News Generator works great, but it would be cool to able to show different content from the forum to the website on different pages. This way, I can use Punbb as a CMS.

Any ideas on how to this? I did try to rename the plugin different names for different sections of the website, but the forum only see the plugin when it has the original name.

But the extern file can only show the titles, I need titles and text.

Ok, I´m using the news generator for my index.php file at a website I´m doing, can I add this to other pages with different content ? If yes, how?

Thanks

Thanks

How do I login again ?

Got it !

Thanks.....!

Anyone, please.....?

47

(13 replies, posted in PunBB 1.2 show off)

This is the best design I´ve seen for PunBB -no doubt.

Care to share the template files ? (just kidding).....

Ok, I got the path right, but how do I use this on my non forum index.php file ?

Thanks

Ok, I installed the news generator, and I see it just fine in the admin section, but when I click on "Generate News" it shows this:

Error: Unable to open new item template ./plugins/AP_News_Generator/news.tpl. Make sure $template_path is correct.

I haven´t edited anything, should I? If yes, what should be edited?

Thanks

Can I add a link to the header to show the recent replies? Just the same way recent posts (24 hours) works? But to only include the topics that have replies in them.

Thanks