You'd need to enclose it within an if clause where the link is parsed and finalised in the parser, I believe. Not sure if the one liner type entries in the array will allow that level of control, however.
901 2008-01-27 14:22
Re: Mp3 player guest restriction (16 replies, posted in PunBB 1.2 modifications, plugins and integrations)
902 2008-01-26 20:27
Re: Isnt its time for Punbb to be more SEO Friendly (36 replies, posted in General discussion)
Search. There is at least one mod already in existence.
903 2008-01-26 20:26
Re: INNER JOIN and LEFT JOIN (4 replies, posted in Programming)
Cheers. Just having a look now. Love that domain name.
904 2008-01-26 20:24
Re: INNER JOIN and LEFT JOIN (4 replies, posted in Programming)
So it basically gives a tad more versatility then, if I've understood that correctly? i.e: you can check for the absence of a match as well as an actual match?
Is it okay then to generally use left joins only for general straight match type queries? (Which I'm already guilty of doing upto just).
Thanks again Smartys,
Matt
905 2008-01-26 20:09
Re: The search function (40 replies, posted in Programming)
It's not so much a case of being wrong. There are just so many differences between languages that practically every character will have some legitimate use in some language. You do have to remember that we English are awkward devils too, due to the fact that our language consists of bits from just about every common language there is/was.
906 2008-01-26 20:05
Topic: INNER JOIN and LEFT JOIN (4 replies, posted in Programming)
Just trying to get a clearer idea of how these two actually differ. Been having a read of the pgsql docs, but I'm still very little the wiser. What exactly are the real world differences? Are there certain scenarios where one or the other should not be used? Any testing I've done always seems to work just as happily with a left join as an inner, so is there a real need to use inner, (as from what I could understand of the docs, an inner join is initially made on a left join anyhow)?
Cheers in advance for any 'drum it into the muppet explanations'.
Matt
p.s: Btw, is it just me, or do some queries really need a twisted logic to get correct?
908 2008-01-26 16:17
Re: Icons (18 replies, posted in General discussion)
Right then. I think I've drawn a blank on any other icons being upto the task, so which of the three shortlisted ones? Blackboard, (even though it's green), black and brown bound book or the gears on a blank page?
909 2008-01-26 16:12
Re: Isnt its time for Punbb to be more SEO Friendly (36 replies, posted in General discussion)
if you still dont beleave that it has nothing to do with it then fine its not my problem
Glad to know you won't be offended by my ignoring this drivel then.
but let some one else make a punbb mod for this so others can make it faster to search engines ...
You're obviously as good at using the search function on here as you are anywhere else.
910 2008-01-26 02:35
Re: Redirecting Error: Other users redirected to 'localhost' and not IP (21 replies, posted in PunBB 1.2 troubleshooting)
Use full URI's. If they're all local to the server, prepend them with pun_config['o_base_url'] in your navlink generator, if it makes things easier.
Btw, the purpose of a forum or mailing list is so that problems and answers can be archived. Using alternate communication methods does defeat the purpose somewhat.
911 2008-01-26 01:40
Re: I lost my "admin" password. (13 replies, posted in PunBB 1.2 troubleshooting)
Assuming you are the genuine owner/admin of that account/domain, contacting your host is your best course of action.
912 2008-01-26 00:34
Re: Adding to the warning mod. (12 replies, posted in General discussion)
Must admit, I've no idea. (Don't tell Elbecko, but I can hardly make head nor tail of that code).
913 2008-01-25 21:59
Re: Isnt its time for Punbb to be more SEO Friendly (36 replies, posted in General discussion)
the only reason its not its not famous because it cannot be detected in Search engine ...
What bunkum. It's a sites content that the search engines are interested in. Either that, or my Google/Yahoo/Boardreader and other search engines listings are, in fact, complete and utter illusions.
914 2008-01-25 21:54
Re: $db->query_build with or without prefix (9 replies, posted in Feature requests)
I was just making sure people were on the ball. Honest.
915 2008-01-25 19:33
Re: Adding to the warning mod. (12 replies, posted in General discussion)
Neh, doesn't work.
In what way? Same error as before?
916 2008-01-25 19:20
Re: Adding to the warning mod. (12 replies, posted in General discussion)
if((regExpFile("#install_mod.*#i", './') || regExpFile("#file_2.*#i", './') || regExpFile("#file3.*#i", './')) && $pun_user['g_id'] == PUN_ADMIN)
Try that.
917 2008-01-25 18:39
Re: $db->query_build with or without prefix (9 replies, posted in Feature requests)
Wouldn't $prefix="prefix" be better, so it's possible to set a prefix (or none) instead of the default one? Just a thought.
That's how it's done now, and I personally can't see how setting $prefix empty in any external scripts, (or to whatever prefix required), is any different to having a toggle within the query itself. I'd agree with you, personally.
918 2008-01-25 03:39
Re: Poll Mod? (8 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Please don't post if you haven't the slightest clue about an answer.
Don't judge me by your standards mate.
919 2008-01-25 03:35
Re: Adding to the warning mod. (12 replies, posted in General discussion)
Did it work okay before the alteration?
920 2008-01-24 20:18
Re: Icons (18 replies, posted in General discussion)
What's this for.. curious.
Category icons.
921 2008-01-24 16:04
Re: Icons (18 replies, posted in General discussion)
Still can't find a decent mortar board yet, but have found this:
922 2008-01-24 15:53
Re: Poll Mod? (8 replies, posted in PunBB 1.2 modifications, plugins and integrations)
If you put even the slightest bit of effort into reading threads which are stuck, (and for a very good reason, might one add), then you would know the answer to problem one. And I doubt you will find many mods which don't require some manual work editing on your part. Unless that is too much like hard work, that is.........
923 2008-01-24 13:52
Re: Icons (18 replies, posted in General discussion)
Dr J, the Tango download link is dead. Edit: Scrub that. Just twigged to check the Tango homepage.
Hob, Did find a mortar board one, but the quality was low, to put it subtly.
Shedrock, just checking the project icons out now.
I'm gonna' have Gnome and KDE icons on the brain soon at this rate.
924 2008-01-24 12:31
Re: Problem With Broadcast Email (13 replies, posted in PunBB 1.2 troubleshooting)
Nope. It has probably timed out. Check the server logs just to make sure. Check the threads for that plugin, if it is due to a timeout, and not a code error. There's a workaround for it.
925 2008-01-24 12:09
Re: Problem With Broadcast Email (13 replies, posted in PunBB 1.2 troubleshooting)
// Display the admin navigation menu
generate_admin_menu($plugin);
$preview_message_body = nl2br(pun_htmlspecialchars($_POST['message_body']));
$sql = "SELECT count (username) AS usercount FROM ".$db->prefix."users WHERE username != 'Guest'";
$result = $db->query($sql) or error('Could not get user count from database', __FILE__, __LINE__, $db->error());
$row = $db->fetch_assoc($result);