26

(6 replies, posted in PunBB 1.3 troubleshooting)

Overflow for images:

In include/parser.php

find

        $img_tag = '<span class="postimg"><img src="'.$url.'" alt="'.htmlspecialchars($url).'" /></span>';

replace with

        $img_tag = '<div class="postimg"><img src="'.$url.'" alt="'.htmlspecialchars($url).'" /></div>';

in style/Oxygen/Oxygen.css

find

.main .entry-content blockquote {
    overflow: auto;
    width: 100%;
    max-height: 16em;
    }

after add

.main .entry-content .postimg {
    overflow: auto;
}

Have you take a look to my css changes here?

http://lucasmalor.netsons.org/forum/viewtopic.php?id=1

27

(25 replies, posted in PunBB 1.3 troubleshooting)

I noticed also in PunBB 1.3, Ajax methods are not used, in spite of they speed up and ease the navigation (not telling about bandwidth). Why this?

28

(7 replies, posted in PunBB 1.3 troubleshooting)

Rickard wrote:

I used to have it as a password field and then people complained about that.

People are not ever happy big_smile

Anyway you could add a button with a javascript function that shows password as clear text

29

(6 replies, posted in PunBB 1.3 troubleshooting)

In the meanwhile, I've changed px to em when possible, and I adjust codebox css to fit my changes:

[EDIT] code is here:
http://punbb.org/forums/viewtopic.php?p … 78#p108578

30

(4 replies, posted in PunBB 1.3 troubleshooting)

Smartys wrote:

1. Yes, you could check out a copy of the code from SVN

Ah, yes, I've found it. I'll try to use it tomorrow

Smartys wrote:

2. Making SEF URLs. So, instead of going to search.php, you would go to search/. It's just changing how the URLs work.

ah ok, now I remember. I have taken a look to the old 1.2 extension

Thank you both for all smile

31

(4 replies, posted in PunBB 1.3 troubleshooting)

No, excuse me, I want to say: I can update the code easily with some CVS software?

elbekko wrote:

2) It's for URL rewriting

Aaaaaaaah.......

and what it means? (embarrassed) tongue

32

(4 replies, posted in PunBB 1.3 troubleshooting)

1) how can I easily see if something is changed in the repository code and update my 1.3 test forum?

2) what is the .htaccess in extras folder?

Excellent.... big_smile

elbekko wrote:

Things like 'db_update.php is still in the forum root', 'you have not yet removed install.php', ...
Might be a good thing to do.

I agree! smile

35

(6 replies, posted in PunBB 1.3 troubleshooting)

@ devs: these solutions for text overflows will be added?

Anyway, I've written some css also for quote boxes. In addition to avoid overflow truncations, it limit quote max height to 205px.
Preview:
http://lucasmalor.netsons.org/forum/vie … p?pid=3#p3

[EDITED] Code is here:
http://punbb.org/forums/viewtopic.php?p … 52#p108652

36

(6 replies, posted in PunBB 1.3 troubleshooting)

This is a little workaround if text overflows the post box.

Preview:
http://lucasmalor.netsons.org/forum/vie … p?pid=2#p2



In style/Oxygen/Oxygen.css

find

.main .post-entry {
    padding: 0.3em 1em 0 1em;

after add

    overflow: auto;

find

.main .entry-content {
    padding-bottom: 0.8em;

after delete

    overflow: hidden;

find

.main .entry-content blockquote {
    overflow: hidden;
    width: 100%;
    }

replace with

.main .entry-content blockquote {
    overflow: auto;
    width: 100%;
    max-height: 16em;
    }

after add

.main .entry-content .postimg {
    overflow: auto;
}

In style/Oxygen/Oxygen_ie6.css

find:

* html .entry-content .codebox pre { /* 6 Only */
    overflow: visible;
    overflow-x:auto;
    padding-bottom: 2em;
    }

replace with

* html .entry-content .codebox pre { /* 6 Only */
    height: expression( this.scrollHeight > 465 ? "450px" : "auto" );
    overflow:auto;
    word-wrap: normal;
    padding-bottom: 2em;
    }

.main .entry-content blockquote {
    height: expression( this.scrollHeight > 225 ? "210px" : "auto" );
    overflow:auto;
    word-wrap: normal;
    }

.main .post-entry {
    word-wrap: break-word;
    }

In include/parser.php

find

        $img_tag = '<span class="postimg"><img src="'.$url.'" alt="'.htmlspecialchars($url).'" /></span>';

replace with

        $img_tag = '<div class="postimg"><img src="'.$url.'" alt="'.htmlspecialchars($url).'" /></div>';

37

(7 replies, posted in PunBB 1.3 troubleshooting)

Why passwords in the install page are not hidden with asterisks? I know password errors are common, but there's a confirm box.

If someone want to see passwords, you can add a button to show/hide them.

pogenwurst wrote:
SaucyPiaffe wrote:

have links open up in a new window

The Punres wiki (wiki.punres.org) has instructions on how to do so.

You can also try my MOD, so you'll open links in new windows only if links are not pointing to your forum:

http://www.punres.org/files.php?pid=444

Emmmhhhh...... you are right :-P
I repackaged the release. You can download only the image here:

http://www.punres.org/download.php?id=1724

I also split the update instructions from normal readme (a lot more clear now ^__^'')

AndyDeacon wrote:

I need a images for a link in mod.

I don't understand you.... you are searching a preview image of the MOD?

Good ^____^
If you want, you can post your modifies. If they are good I'll add them :-)

??? What's wrong with the new one?

43

(23 replies, posted in Programming)

It's not possible, because the truncation is before the entity conversion ;-)

in include/parser.php:

function parse_message($text, $hide_smilies)
{
    [...]
    // Convert applicable characters to HTML entities
    $text = pun_htmlspecialchars($text);

in viewtopic.php:

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

On the contrary, handle_url_tag() is called in include/parser.php, not in vietopic.php :-)

44

(23 replies, posted in Programming)

Mmmmhhhhh..... I'm starting to be very confused :-P

You wrote the text of a link could be truncated at an &, invalidating an xhtml document.

For example if I have the link

somesite.org/somepath?etc&someotherqueries

the link could be posted as

<a href="somesite.org/somepath?etc&omeotherqueries">
somesite.org/somepath?etc&
</a>

BUT! If you notice, punBB already substitutes these characters with them entities. For example, in the link in my previous post, the exit code is:

<a href="http://www.noproblemswithpunbb.com/something&end">something&</a>

So the code is valid, I don't see any problems with the truncation of the text of a link at any offset :-)

45

(23 replies, posted in Programming)

Mmmmhhhhh....... have you tried to do some test before? roll ^_____^

something&

46

(23 replies, posted in Programming)

Aaaaaaah, now it's clear! ^___^'''

Well, I think it's more simple to substitute all & chars with & in $title :-)

EDIT: obviously if they are not followed by 'amp;' :-P

yemgi wrote:

try puntoolbar

It is a WYSIWYG editor? Is it anywhere a preview?

Hello! I've done this MOD. The only difference is I used target="_blank", but it's easy to modify (even if I prefer target than javacraps! :-P)

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

49

(23 replies, posted in Programming)

Well, I have only rewritten the PunBB code in a readable look :-P and set the maximum text length for a link text from 55 to 70.

Furthermore, I have not understood what do you mean... the stripped string is the text of the link, not its url. Why this should be invalid for xthml 1.1? Maybe it's a question of printing result?

50

(23 replies, posted in Programming)

Updated! :-)

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