I would change edit.php to offer the checkbox and not update the edited time, then you won't need to change viewtopic.php.
See also: Edit Grace Period
You are not logged in. Please login or register.
PunBB Forums → Posts by guardian34
I would change edit.php to offer the checkbox and not update the edited time, then you won't need to change viewtopic.php.
See also: Edit Grace Period
6. I can't seem to get the time correctly... It's really off!
Did you set both the server timezone and the timezone in your profile?
Comment out this section in index.php
if ($cur_forum['moderators'] != '')
{
$mods_array = unserialize($cur_forum['moderators']);
$moderators = array();
while (list($mod_username, $mod_id) = @each($mods_array))
$moderators[] = '<a href="profile.php?id='.$mod_id.'">'.pun_htmlspecialchars($mod_username).'</a>';
$moderators = "\t\t\t\t\t\t\t\t".'<p><em>('.$lang_common['Moderated by'].'</em> '.implode(', ', $moderators).')</p>'."\n";
}
Are there any Windows editors that can easily validate PHP code?
greatcan, look at this page: http://punbb.org/download/hdiff/hdiff-1 … .2.13.html
You just need to add the first set of blue lines and change the first set of green lines.
1.2.12 to 1.2.13 code changes ?
Rickard linked to them in the first post.
Edit: The changes are also linked in the downloads page.
And if i get the admin password from the db, is there a way i can decode it?
No. However, you could encrypt a new password yourself and put that value in the db.
Open include/parser.php and find the arrays `$pattern` and `$replace` inside the `do_bbcode` function; You'll need to add an item to each of these arrays.
Find?
'#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#s');
?replace with:
'#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#s',
'#\[verse\](.*?)\[/verse\]#');
Find?
'<span style="color: $1">$2</span>');
?replace with:
'<span style="color: $1">$2</span>',
'<a href="http://www.biblegateway.com/passage/?search=$1&version=60">$1</a>');
Find this in viewtopic.php?
if ($pun_user['g_id'] < PUN_GUEST)
{
$user_info[] = '<dd>IP: <a href="moderate.php?get_host='.$cur_post['id'].'">'.$cur_post['poster_ip'].'</a>';
if ($cur_post['admin_note'] != '')
$user_info[] = '<dd>'.$lang_topic['Note'].': <strong>'.pun_htmlspecialchars($cur_post['admin_note']).'</strong>';
}
?and replace it with something like this:
if ($pun_user['g_id'] == PUN_ADMIN) // mod
$user_info[] = '<dd>IP: <a href="moderate.php?get_host='.$cur_post['id'].'">'.$cur_post['poster_ip'].'</a>';
if ($pun_user['g_id'] < PUN_GUEST && $cur_post['admin_note'] != '')
$user_info[] = '<dd>'.$lang_topic['Note'].': <strong>'.pun_htmlspecialchars($cur_post['admin_note']).'</strong>';
Heh? Read better next time, elbekko.
No apostrophe is used in the following possessive pronouns and adjectives: yours, his, hers, ours, its, theirs, and whose.
*checks a dictionary* ? No, Kevin is right.
Maybe a column in the User list denoting group_id status?
I just edited the `get_title` function that userlist.php uses to include something like this:
else if ($user['g_id'] == '' || $user['g_id'] == PUN_UNVERIFIED)
$user_title = 'Unverified';
Try something like this: Edit Grace Period
But modifications require a GPL licensed software to run, therefor he have to release them as GPL as well. This also goes for future extensions.
What if, hypothetically, I made my own software that was (technically) compatible with (but in no way derived from) PunBB's extension system, and that extensions worked as intended with either software. Where would the the deriving/modification/including-of-code occur in the actual extension file?
Would extensions be a derivative work?
I know someone who has used the method that Dr. Jeckly mentioned, and they had excellent results. However, we did occasionally have people ask why they couldn't post (legitimate) links.
Why would you have to? Sounds more like a mod request.
What do you mean by flag? An icon?
This is what I've been using: Unordered List BBCode
<menu> isn't valid XHTML, nor is the <li> when it isn't closed.
Neo, extensions aside, do you really expect this to be an added feature. Where do you stop? I've edited the bbcode and generate_navlinks functions, should I put those in a different file? And what about this? and that? and another thing?
[This glyph didn't display right.]
Why not seperate your smiley array into a different file, and then have the parser include that file?
Look in "include/functions.php" for the function `generate_navlinks`.
If you want to add your own links there, check out the "Additional menu items" area in the admin options.
Code blocks?
Edit:
foo 123
bar 456
I don't think so; That could be a security issue.
PunBB Forums → Posts by guardian34
Powered by PunBB, supported by Informer Technologies, Inc.