excellent!  thanks for the quick reply smile

don't suppose anyone knows of a site that provides UK regional weather feeds, in the same way as weatherUSA does in quaker's code?

does anyone have any idea how i could add a 5-day weather forecast to my miniportal front page?  you can see an example of what i mean here:

http://www.thebestof.co.uk/stafford/news ("Local forecast" halfway down on the right-hand side)

thanks smile

3

(5 replies, posted in PunBB 1.2 discussion)

probably just lurkers..  every forum has its fair share of people who don't post, for one reason or another..  many people register either out of habit (i.e. as soon as they visit a new site they set-up their profile) or to see if it opens up more features, even though they have no intention of posting..

my forum is probably a 60:40 ratio of posters vs. registered lurkers!

4

(4 replies, posted in PunBB 1.2 troubleshooting)

PSPpimp wrote:

i need help with finding working mod's for the 1.2.14 pnubb forum mod's

The reputation does not work for it sad

i need help with find mod's for the 1.2.14 pnubb forum smile Thank you and yes it is out smile

as with any forum, it's best to spend some time searching and browsing the existing posts before diving in with a post of your own!  for example, the answer to your question can be found in a Sticky thread at the very top of the Modifications forum:

http://punbb.org/forums/viewtopic.php?id=10518

zerok wrote:

If any dont understand
user create topic other user reply to him in this topic
I what to give user permission to delete post other users in his topic

where user is not moderator

ah right - you essentially want every user to be able to moderate their own threads?  so if JoePublic starts a thread, you want him to be able to edit/delete any posts in that thread, regardless of who the poster is?

interesting..  i'm pretty sure a mod to that effect hasn't been created, so you'll have to cross your fingers and hope someone is up for the challenge..

zerok wrote:

I want to give my register users a permission to delete post on own topic
what file I need to path ? or possible it is any mod for it ?

you'll find that option as a radio button in the Permission settings, in your Admin page..  i'm pretty sure it's there, anyway - i turned mine off the other day, so it definitely exists somewhere in the default installation..

pogenwurst wrote:

No problem.

Did you ever touch the code with MS Frontpage or another WYSIWYG editor of some sort? It might have "helped" you by doing some funky conversions.

nope..  i hate wysiwyg editors; i don't even have any installed on my machine, apart from MS Word, and it isn't associated with anything other than the usual .doc, .rtf, etc..  i use UltraEdit for all my code/raw text editing..

i really can't think how that function would have got like that neutral

well, someone just made it to my christmas card list!

thanks a lot pogenwurst - that did the trick!  i knew it didn't look right..  i may not know php, but even i could tell that

$str = str_replace(array('<', '>', '"'), array('<', '>', '"'), $str);

was basically replacing HTML tags with exactly the same things!  i just wasn't sure how to fix it..

weird thing is, i'm sure i didn't change this..  like i say, i don't know php, so i never just go messing around with code for the hell of it..  and none of the mod's i have applied have asked me to edit functions.php..  weird..

anyway - thanks to all concerned big_smile

i assume this pun_htmlspecialchars function is designed to strip html tags out of posts?  i looked it up, in functions.php, just to see if it looked ok..  unfortunately, i don't understand php enough to tell what's going on sad

does this look ok?

//
// Equivalent to htmlspecialchars(), but allows &#[0-9]+ (for unicode)
//
function pun_htmlspecialchars($str)
{
    $str = preg_replace('/&(?!#[0-9]+;)/s', '&', $str);
    $str = str_replace(array('<', '>', '"'), array('<', '>', '"'), $str);

    return $str;
}
Smartys wrote:

Removing the call to pun_htmlspecialchars is the only thing that would do it, unless you removed the call to parse_message in viewtopic.php

well, as posted above the pun_htmlspecialchars is still there - the code i posted above was a direct cut & paste from my parser.php file..  i've just checked out viewtopic.php and parse_message is only mentioned once:

    // Perform the main parsing of the message (BBCode, smilies, censor words etc)
    $cur_post['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies']);

which looks correct..  but as you can see from the link to my forum in the OP, my users can definitely use HTML at the moment sad

incidentally, it's a very new forum, only populated by my friends at present.. none of them have any degree of technical knowledge, so i'm sure it's not a deliberate "hack" attempt or anything like that by any of them..

any more suggestions?

would it be anything to do with the (albeit minor) alterations i've made to main.tpl?  like, for instance, it may not be strict xhtml anymore, even though the doctype says it is?

i know i'm clutching at straws here, but i just can't think what it might be..

Jansson wrote:

line 383 should prevent HTML:

$text = pun_htmlspecialchars($text);

well that's definitely still in there..  copy and pasted direct from my parser.php:

function parse_message($text, $hide_smilies)
{
    global $pun_config, $lang_common, $pun_user;

    if ($pun_config['o_censoring'] == '1')
        $text = censor_words($text);

    // Convert applicable characters to HTML entities
    $text = pun_htmlspecialchars($text);

and i've just checked - the only modification i have made to parser.php is from elbekko's Easy Custom Smilies..

god, i hope i can get this sorted sad

Smartys wrote:

Have you updated parser.php? If not, upload a fresh copy

yeah..  i can't remember for what reason, but i definitely modified it for one of the mod's i performed..  i think it was easy custom smilies..

what specifically in the parser.php might enable the use of HTML?

thanks for the speedy response, by the way smile

i've just realised that anybody can use HTML code on my forum!!   surely this isn't normal behaviour??

i haven't performed any mod's that enable such a feature..  but look:

http://www.staffordforum.com/viewtopic.php?id=124

as you can see, people are happily embedding youtube videos..  and elsewhere, someone used the <sub> </sub> subscript tags..

i'm running punbb 1.2.12 with the following mods:

style installer
private messaging
easy poll
easy custom smilies
calendar

has anyone seen this before?

will this mod allow me to specify an external repository for uploaded files?  i have a friend who has allowed me unlimited use of his >31gb space on his webserver, which i would like to use as the destination of uploaded images..

so basically, if my forum resides on http://www.foo.com, will this mod allow my users to upload images to http://www.bar.com?

thanks smile