Not had chance to do anything yet. My hands are a tad full this week, upto just. I'll mention if/when I make any headway.
Btw, on an unrelated note, have you had a play with that other code I sent you yet?
You are not logged in. Please login or register.
PunBB Forums → Posts by MattF
Not had chance to do anything yet. My hands are a tad full this week, upto just. I'll mention if/when I make any headway.
Btw, on an unrelated note, have you had a play with that other code I sent you yet?
That means you suggest me to use "nix...." , but i am using window, but not linux wo.
No, I said I personally prefer that style. I never suggested you had to.
Any advice ?
What are the conditionals you're wanting to check? If there are four or five, it obviously goes beyond merely local/external conditions. It's a bit awkward to suggest without something more specific.
Glad you're sorted.
That makes more sense. *nix type semantics refers to unix, (or any of the *nix family, i.e: Linux), type method of commenting, or creating documentation. It's not a specified format, but more of an inherited way of doing things.
I do believe there is a programme which pretty much does what you're suggesting above. Can't think of what it's called offhand, but if I can dig the info out, I'll post the link.
With regards to your comment method, if xml type commenting is what you want, there's no reason not to use it.
<?php
if ($pun_config['o_show_slider'] == '1')
{
?>
[your code here]
<?php
}
?>
Put that in a file in include/user, then use pun_include to include the file.
Other than suggesting you post your index.php for checking over, I honestly don't know what else to suggest. Are there any php errors in your logs at all?
Moot means death in Arabic , or "die" -lol-.
Oops. Not one of the best words to use in future then.
The link is in my signature now.
Cheers. What is the name of the missing forum, btw? No idea if it's visible without knowing what to look for.
And I don't see what you mean.
Example: Have you made that forum only viewable by a certain group, and you are browsing the forum as a different group member? If you're logged in as admin, obviously that question is moot.
I'm still wondering what the point of the question is, to be honest. Also, what exactly the specific question is. I mean, inline documentation commenting is still a bloody vague description.
If you are designing your own system, there is no preferred method, other than simplicity and legibility. Keep it simple. Other than that, each person on here will have their own semantic preferences for just about everything. I, for one, like, and generally use, *nix type semantics in most things. I merely adapt it slightly to blend in with whatever exists. If you're starting with a clean slate, however, then take your pick.
Forum link? You are browsing the board with suitable priviledges to see the newly added forum, I assume?
Thanks. It seems obvious, but sometimes I just don't know where to start. Posting here also helps me keep track of what I'm doing and finding solutions when I need them again later.
We've all been in the same boat at some point, so know what it's like. The devs on here are life savers when you're stuck with some coding issue.
I'll see what happens if I remove all three of these lines (and any other mentions of use_avatar I can find). I'll report back later...
As elbekko mentioned, you only need to comment out the latter of those three. The other two enable the setting anyhow, so can be left untouched.
Download the punbb package. There's a script in there to turn off maintenance mode. Upload it to the server forum dir and run it.
Hell no. I use PunBB for the simple fact that it starts as a bare bones system and you have to explicitly add what bits you require. I really dislike most other forum softwares extra features, and having to strip software is a damned sight harder than adding functionality to PunBB.
I always go through three steps on occasions like this. Flush server cache, browser cache and try a different browser. If you can't see anything then, it's definitely a dig deeper problem.
Have you edited the new forums name or description?
Grep is *nix tool.
Grep output, (your line numbering will differ):
profile.php:408: $db->query('UPDATE '.$db->prefix.'users SET use_avatar=1 WHERE id='.$id) or error('Unable to update avatar state', __FILE__, __LINE__, $db->error());
profile.php:653: $db->query('UPDATE '.$db->prefix.'users SET use_avatar=1 WHERE id='.$id) or error('Unable to update avatar state', __FILE__, __LINE__, $db->error());
profile.php:715: $db->query('UPDATE '.$db->prefix.'users SET use_avatar=0 WHERE id='.$id) or error('Unable to update avatar state', __FILE__, __LINE__, $db->error());
Edit: I've only put the db update lines up, as if you're setting this value to 1 when you add a user, they're the only parts that you should need to alter, (if any).
Working on a RBL test address: 127.0.0.2, (which will return a txt record, hence a match), the following:
gethostbyname($checkspam['Reverse DNS'])
queries the following through a DNS lookup to Spamhaus:
2.0.0.127.sbl-xbl.spamhaus.org
Try a dig or host lookup on that above and you'll see what happens. Try it then with a 3 as the first number, and you'll see how the rbl responds for a non listed address.
And what, pray, is an inline comment? Inline with what? Vague questions will receive vague, if any, answers.
Cheers for that explanation Paul. I'd always wondered what the specific usage differences were between strong and b. Never found a meaningful explanation before.
@MattF - I'm glad someone with knowledge like you is trying to find a solution.
Whomever accused me of knowing 'owt lied.
Trying to find out what is wrong... any ideas?
I may be in ball bearings for eyes mode, but what problem? All I can see is the space after index in the <a link in that screenshot.
You should use "strong", not "b". I think you should learn XHTML 1.0 Strict more.
Unless I am mistaken, <b> is perfectly valid both in Xhtml 1.0 and 1.1. Strong is suggested as preferential, but not required.
Do a grep for use_avatar. Where are you wanting to force the display of avatars? In viewtopic.php only?
Why not just alter:
$user_avatar = $lang_topic['No avatar'];
in the relevant files to supply an avatar rather than just a 'no avatar' text. Or, make the 'No avatar' entry in lang/topic.php an img entry for a default avatar?
PunBB Forums → Posts by MattF
Powered by PunBB, supported by Informer Technologies, Inc.