up this!!!
'Bump' may be a better word/term to use next time for this purpose.
You are not logged in. Please login or register.
PunBB Forums → Posts by MattF
up this!!!
'Bump' may be a better word/term to use next time for this purpose.
Smartys, I've been looking through some of the resolutions and this one seems easy to implement, but aslo a bit of fun:
If you look in one of the discussion threads for that mod, there's a multiple question/answer version of it.
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/
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. Just mentioned it because many people never mention the new window bit anywhere.
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 {
Must admit, I am guilty of opening three links on the forum in new pages/tabs. 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.
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.
JS keeps it compliant, however. Using Xhtml 2.0 as an argument is a bit moot, btw.
Do I feel such a prat now you've explained it. The penny just never dropped before. Cheers for the explanation.
Cheers. I presume that means I've misinterpreted somewhat exactly what the upper/lower do then?
Apologies for keep asking questions, 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
If that's your true db credentials, I would suggest editing your post to remove your password at least.
That, I could live with, if needs be. I'm just unjustifiably pedantic about silly little things like case. 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
Cheers. 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. 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.
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.
Just out of curiosity, why is the login username lowercased for the login check for every db type other than Mysql/Mysqli?
Cheers,
Matt
Once again I recommend to do it through CSS
I'd agree, but I think someone has their mind set on a specific path.
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. There always tends to be one browser cocks it up. (Usually IE, as a rule).
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.
$pun_config['o_base_url']
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.
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.
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.
Umm, do you really need all those buttons down the bottom of the forums home page etc?
Nope. 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.
In web site terms I guess having those buttons there may be handy to hackers, so it's probably not completely useless
There are a lot of more precise ways of finding out exactly what a webserver is running, without having to look at icons. 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. On the proper forum site, they link to the external, (in relation to the forum), sites, which is where Fusion and Genu come in.
PunBB Forums → Posts by MattF
Powered by PunBB, supported by Informer Technologies, Inc.