If you do a search of the forum, I posted all the details not too long ago regarding how to convert everything to UTF-8.
1,401 2007-10-24 19:14
Re: language encoding problems (2 replies, posted in PunBB 1.2 troubleshooting)
1,402 2007-10-24 19:12
Re: Pending questions (15 replies, posted in PunBB 1.2 troubleshooting)
With regards to the title, what character encoding are you using? Is it consistent throughout?
1,403 2007-10-23 22:00
Re: OpenWings (9 replies, posted in PunBB 1.2 show off)
Just more difference between areas would work wonders. Make it so that you can see where one part begins and the other ends. I like the darker end of the spectrum, (my eyes are crap where bright/light stuff is concerned), but you need, for example, the table headers and data rows to have enough space between them, (colour scale wise), so that they dont literally meld into each other. The blue text is also a tad harsh on such a dark background.
1,404 2007-10-23 18:36
Re: I cannot login after moved forum to another server (39 replies, posted in PunBB 1.2 troubleshooting)
Some relation to cookies, yes. I'd still suggest checking if they have any of that Norton crap on the go. That gave me three days of grief with one of my users with the same problem.
1,405 2007-10-23 12:16
Re: Blank on the top of the page (15 replies, posted in PunBB 1.2 troubleshooting)
The misc.php?action=rules page. As Smarty's said, you have something before the doctype declaration.
1,406 2007-10-23 11:52
Re: I cannot login after moved forum to another server (39 replies, posted in PunBB 1.2 troubleshooting)
I'd be tempted to check they haven't, (your problem users), got an AV software like McAfee/Norton screwing around with their cookies/security.
1,407 2007-10-23 02:40
Re: Use full name (firstname lastname) as username (10 replies, posted in Programming)
Does 'db->escape' have advantages?
Not advantages, as such. It merely preps input for the db.
1,408 2007-10-23 02:37
Re: Backup Database Excluding Search Tables Restore To New Test DB (7 replies, posted in PunBB 1.2 discussion)
Any way I can clean up the above processes to create a macro / script to automatically do everything I've listed above?
It's obviously running on a *nix based system, so just write a shell script. and then pop an entry in cron for it. It's a doddle.
1,409 2007-10-23 01:07
Re: Use full name (firstname lastname) as username (10 replies, posted in Programming)
$username = '\''.$db->escape($firstname.' '.$lastname).'\'';
1,410 2007-10-23 00:24
Re: Use full name (firstname lastname) as username (10 replies, posted in Programming)
The exact same way as in the answer you were given last time you asked this question.
1,411 2007-10-23 00:06
Re: Sub domains and cookies (2 replies, posted in PunBB 1.2 discussion)
Those aren't subdomains, those are subfolders
One day, my mind and fingers will work in sync instead of conspiring against me. I knew that, honest.
You have two options, you can either keep the same cookie name and set the cookie path or keep the cookie path and set different cookie names. I would set the path for security reasons.
Cheers. I'll go for the path as you advise. Thanks again.
1,412 2007-10-22 23:06
Topic: Sub domains and cookies (2 replies, posted in PunBB 1.2 discussion)
Just a quickie. If one has forums in several sub domains, i.e:
http://example.com/forum1
http://example.com/forum2
is it merely a case of adding the subdomain name to the cookie path in config.php to stop one getting logged out of one forum, (as far as the browser is concerned), if you browse one of the other forums on that parent domain, or is something else required?
Cheers,
Matt
1,413 2007-10-21 18:18
Re: An update (124 replies, posted in News)
Why? Have you ever created or wrote a minor mod even, for PunBB? Do you have any idea how much time coding even the simplest of scripts can consume? The fact that this software ever became available at all is payment in itself for whatever donation people made. I can understand your opinion to a degree, but seriously, good intentions don't put food on the table. Dev's have families to support too.
1,414 2007-10-21 18:07
Re: Integrating with my layout? [Solved, Thanks :)) (13 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Any questions can be answered quite well on here too.
1,415 2007-10-21 18:05
Re: An update (124 replies, posted in News)
yes its end of free punbb...now it may sound too harsh....but punbb asked donations to support the project...they developed it based on those donations and now selling it off for $$$ thats too bad...why dont you refund money of those who supported the script and donated for "development"
Yes, that does sound bitter, and also wrong. I doubt anyone ever asked for donations. Accepting and asking are two very different things. As with all open source software, one should be grateful for the fact that the author and devs ever created and open sourced the software in the first place. There is no obligation. If someone donates, that is of their own volition, not due to some pre-requisite.
How tardy of the author and devs to actually wish to earn a living. How could they.............
Yes, btw, that was sarcasm.
1,416 2007-10-21 11:47
Re: Making username a link to profile on index (18 replies, posted in General discussion)
And who's trying this? What's about results?
If you want to know if it works, it's only a few minutes job to test it yourself.
1,417 2007-10-20 01:35
Re: URL format check (13 replies, posted in Programming)
What was wrong with the first piece of code you posted?
As far as I know, he merely hadn't managed to integrate the separate parts, rather than there being a problem as such.
1,418 2007-10-20 01:33
Re: URL format check (13 replies, posted in Programming)
Why not use strpos?
I find it easier to keep to a true/false setup for checks like that, than having to remember that certain functions return a number. Strpos gets used if I need a position. Stristr if I need a match. Plus, it removes the need to call strtolower, as stristr is case insensitive. What you lose one way, you gain another.
1,419 2007-10-19 19:40
Re: URL format check (13 replies, posted in Programming)
Oops. Change this line:
if (stristr($uri, 'http://'))
to:
if (!stristr($uri, 'http://'))
1,420 2007-10-19 19:02
Re: URL format check (13 replies, posted in Programming)
<?php if (isset($_POST['txturl']) && $_POST['txturl'] != null) { $uri = $_POST['txturl']; if (stristr($uri, 'http://')) { $txturl = '\''.$db->escape('http://'.$uri).'\''; } else { $txturl = '\''.$db->escape($uri).'\''; } } else { $txturl = 'null'; } // Update the database if form posted if (!empty($_POST['cmdUpdate'])) { $sql = 'UPDATE members SET url='.$txturl.' WHERE id = '.$pun_user['id']; $result = mysql_query($sql) or die("SQL Update failed"); echo "Your information has been updated. Thanks."; } $result = $db->query('SELECT * FROM members WHERE id = '.$pun_user['id']) or error('Unable to fetch user data', __FILE__, __LINE__, $db->error()); $row = $db->fetch_assoc($result); ?> <form method="post" action="<?php echo $PHP_SELF;?>"> <p>Website:<input type="text" name="txturl" size="30" value="<?php echo $row['url']; ?>" /> <p><input type="Submit" value="Update" name="cmdUpdate" /> </form>
Try that code above.
1,421 2007-10-19 18:56
Re: URL format check (13 replies, posted in Programming)
Apologies. Slight spelling error on my part there.
It's not updating because the var you are setting is $uri, but you're entering your unparsed $txturl var into the db. Change $uri to $txturl or vice versa.
1,422 2007-10-19 11:07
Re: URL format check (13 replies, posted in Programming)
You need something similar in your submitting form too. (Borrowed and altered slightly from profile.php).
<label><?php echo $lang_profile['Website'] ?><br/><input type="text" name="user_uri" value="<?php echo pun_htmlspecialchars($user['url']) ?>" size="50" maxlength="80"/><br/></label>
The $user['url'] is the users website address from their db account. You would then need to get that HTTP var:
if (isset($_POST['user_uri']) && $_POST['user_uri'] != null)
{
$uri = $_POST['user_uri'];
if (stristr($uri, 'http://'))
{
$uri = 'http://'.$uri;
}
else
{
$uri = $uri;
}
}
else
{
$uri = null;
}
Untested.
1,423 2007-10-18 21:03
Re: Opinions: Download modification (25 replies, posted in General discussion)
What was causing it?
1,424 2007-10-18 20:11
Re: Opinions: Download modification (25 replies, posted in General discussion)
Try adding this just below the include/common line at the top of the script:
require PUN_ROOT.'include/functions.php';
Edit: It doesn't need that line adding. Just checked that script with a virgin install of a standard PunBB and it works fine. The problem is at your end somewhere. Check your logs to see what they say.
1,425 2007-10-18 20:01
Re: Opinions: Download modification (25 replies, posted in General discussion)
does it have anything to do with the admin mod for the verification mod?
??
This is that same script on the test server. Just catted it from the download server file to make sure it's an exact copy: