fantasma wrote:

up this!!!

'Bump' may be a better word/term to use next time for this purpose. big_smile big_smile

reviewum.com wrote:

Smartys,  I've been looking through some of the resolutions and this one seems easy to implement, but aslo a bit of fun:

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

If you look in one of the discussion threads for that mod, there's a multiple question/answer version of it.

1,478

(10 replies, posted in PunBB 1.2 troubleshooting)

These are JS image viewers. Tried everyone except for Thickbox, and Lytebox seems to be the most resilient and best for speed when configured correctly, in my opinion.


http://www.dolem.com/lytebox/
http://www.huddletogether.com/projects/lightbox2/
http://orangoo.com/labs/GreyBox/
http://jquery.com/demo/thickbox/

1,479

(23 replies, posted in Programming)

Lucas Malor wrote:
MattF wrote:

If you are going to open links in new tabs/windows however, I would suggest using the title= part to list that fact in the <a tag/link. At least people will be advised when they hover over the link, that way.

It's a good idea :-) But I think it's more visible a " (New Window)" at the end of the displayed text of the link ;-)

That way is even better. smile Just mentioned it because many people never mention the new window bit anywhere. smile

Can't remember which it is exactly, but look for the 'display: none' line in your stylesheet for either, (I believe), brdtitle or brdheader. Comment that out and it should appear.

Edit: I think it's this section it's in: .pun #brdtitle p {

1,481

(23 replies, posted in Programming)

Must admit, I am guilty of opening three links on the forum in new pages/tabs. big_smile The gallery, for uploading images for posting, and the two links to the articles/downloads sites. I use the JS method. Must admit, I'm not fond of the opening new windows/tabs concept myself, but trying to constantly explain to people that a right click and open in...... was all that was required ended up getting tedious after a while, so I digressed on those three. big_smile

If you are going to open links in new tabs/windows however, I would suggest using the title= part to list that fact in the <a tag/link. At least people will be advised when they hover over the link, that way.

1,482

(23 replies, posted in Programming)

JS keeps it compliant, however. smile Using Xhtml 2.0 as an argument is a bit moot, btw. smile

1,483

(10 replies, posted in PunBB 1.2 discussion)

Do I feel such a prat now you've explained it. The penny just never dropped before. big_smile Cheers for the explanation.

1,484

(10 replies, posted in PunBB 1.2 discussion)

Cheers. smile I presume that means I've misinterpreted somewhat exactly what the upper/lower do then? big_smile

1,485

(10 replies, posted in PunBB 1.2 discussion)

Apologies for keep asking questions, smile but SQL not being my strongpoint and such. Would that lookup need doing as such, in that case:

$result = $db->query('SELECT username FROM '.$db->prefix.'users WHERE UPPER(username)=UPPER(\''.$db->escape($username).'\') OR UPPER(username)=UPPER(\''.$db->escape(preg_replace('/[^\w]/', '', $username)).'\') OR LOWER(username)=LOWER(\''.$db->escape($username).'\') OR LOWER(username)=LOWER(\''.$db->escape(preg_replace('/[^\w]/', '', $username)).'\')') or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());

or is there a shorthand method, i.e: UPPER/LOWER for that query?


Thanks ever so much once again,

Matt

1,486

(7 replies, posted in PunBB 1.2 troubleshooting)

If that's your true db credentials, I would suggest editing your post to remove your password at least.

1,487

(10 replies, posted in PunBB 1.2 discussion)

That, I could live with, if needs be. I'm just unjustifiably pedantic about silly little things like case. big_smile On that note about registering, however, another question, if I may? Would replicating the username check in register.php with LOWER as well as UPPER, (running the query twice, as it were), stop that scenario arising? A double lookup there would, I assume, be negligible due to that section not being accessed too frequently?


Thanks again,

Matt

1,488

(10 replies, posted in PunBB 1.2 discussion)

Cheers. smile So actually removing the LOWER statement from that string won't cause any problems, if one is wanting to be stringent with regards to username case?


Thanks,

Matt

Nice. smile At least now you know that any viewable browser specific differences aren't caused by code errors. They're just down to quirks or browser specific requirements/interpretations. smile

Another helpful prog is the html validator plugin for FF. That will highlight the errant tags when you view source, so you have a better idea of what part of the page you're looking for errors in. Just reference which script generates that part of the page output, and you're halfway there. smile

1,491

(10 replies, posted in PunBB 1.2 discussion)

Just out of curiosity, why is the login username lowercased for the login check for every db type other than Mysql/Mysqli?


Cheers,

Matt

1,492

(26 replies, posted in PunBB 1.2 troubleshooting)

Strofanto wrote:

Once again I recommend to do it through CSS

I'd agree, but I think someone has their mind set on a specific path. big_smile

Scuga wrote:

Hmm dont really know why, but adding <br/> after the logo placement seems to solve the problem....

Now it looks right in both ie and ff ;-)

Wouldn't worry about it then. big_smile There always tends to be one browser cocks it up. (Usually IE, as a rule).

Scuga wrote:

Now, on with the validation problems. Feel free, to help out ;-)

Run it through the validator and start on the uppermost tag eror listed. You'll often find that top error may be causing several phantom erors below it in the validation list. Work on the top error shown each time, revalidate, and see which errors still exist.

Looks exactly the same in all Moz browsers compared to IE here. You should sort your html first though, then work on styling/placement specifics.

1,495

(23 replies, posted in Programming)

$pun_config['o_base_url']

sirena wrote:

But 'security' is a process and concept that may legitimately include many different forms of obscurity, and has been the case for thousands of years. Millions even.

Obscurity is one point you moot as soon as you connect a server to the internet. big_smile

1,497

(26 replies, posted in PunBB 1.2 troubleshooting)

In viewtopic.php, comment out, (as already told you by CodeXP), the first line starting:

$post_actions[] = '<li class="postreport">

Put // in front of the dollar sign.

Remove this portion of the second occurence:

<li class="postreport"><a href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>'.$lang_topic['Link separator'].'</li>

Delete the report post section of html at the bottom of misc.php.

Done.

1,498

(26 replies, posted in PunBB 1.2 troubleshooting)

oneless wrote:
CodeXP wrote:

The changes you have posted so far in this thread would have absolutely no effect on performance.

The button is removed so the server doesn`t have to display it, thus the server has less to do improving performance oh so very very slightly.

Give it ten years or so, and removing that link may have saved your system a few seconds of processing time. big_smile

sirena wrote:

Umm, do you really need all those buttons down the bottom of the forums home page etc?

Nope. big_smile I class them as a courtesy. Open Source can never be over promoted, and the fact that I use the software deserves some small token in return, in my opinion. They're only shown on the main forum and index page, btw. They're not at the bottom of all pages. smile

In web site terms I guess having those buttons there may be handy to hackers, so it's probably not completely useless smile

There are a lot of more precise ways of finding out exactly what a webserver is running, without having to look at icons. big_smile Security through obscurity is a complete and utter fallacy. Security is gained through security, and nothing more.

That <object> frame is pointing back to the forum just with it being a test forum. big_smile On the proper forum site, they link to the external, (in relation to the forum), sites, which is where Fusion and Genu come in. big_smile