Does the same happen with the extension on first post here --> 1.3 as with 1.3.6
And what version of PunBB are you using?
476 2010-09-07 07:56
Re: [release] Impoved online list (61 replies, posted in PunBB 1.3 extensions)
477 2010-09-07 03:50
Re: [release] Impoved online list (61 replies, posted in PunBB 1.3 extensions)
Re-download from here, clear cache, delete current online_plus you have and then re-upload, re-install.
478 2010-09-06 20:45
Topic: Simple jQuery form validation (1 replies, posted in PunBB 1.3 discussion)
Wondering if this would be handy to integrate into an extension...
http://www.willjessup.com/sandbox/jquer … idate.html
The existing extension http://forum.lluga.net/jquery.tar.gz allows the code below to be implemented without adding all the jquery libraries again....
[code=javascript]
$.fn.copyTo = function(to) {
var to = $(to);
for ( var i = 1; i < arguments.length; i++ )
to.set( arguments[i], this.get(0)[ arguments[i] ] );
return this;
};
new function() {
// $.fn.validate = validate() {};
$.fn.validate = {
init: function(o) {
if(o.name == 'username') { this.username(o) };
if(o.name == 'password') { this.password(o) };
if(o.name == 'email') { this.email(o) };
if(o.name == 'dob') { this.dob(o) };
},
username: function(o) {
var user = /[(\*\(\)\[\]\+\.\,\/\?\:\;\'\"\`\~\\#\$\%\^\&\<\>)+]/;
if (!o.value.match(user)) {
doValidate(o);
} else {
doError(o,'no special characters allowed');
};
},
password: function(o) {
var pass = /[(\*\(\)\[\]\+\.\,\/\?\:\;\'\"\`\~\\#\$\%\^\&\<\>)+]/;
if (!o.value.match(pass)) {
doValidate(o);
} else {
doError(o,'no special characters allowed');
};
},
email: function(o) {
var email = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (o.value.match(email)) {
doSuccess(o);
} else {
doError(o,'not a valid email');
};
},
dob: function(o) {
var dob = /(0[1-9]|1[012])+\/(0[1-9]|[12][0-9]|3[01])+\/(19|20)\d\d/;
if (o.value.match(dob)) {
doSuccess(o);
} else {
doError(o,'not a valid date');
};
}
};
function doSuccess(o) {
$('#' + o.id + '_img').html('<img src="images/accept.gif" border="0" style="float:left;" />');
$('#' + o.id + '_li').removeClass("error");
$('#' + o.id + '_msg').html("");
$('#' + o.id + '_li').addClass("success");
}
function doError(o,m) {
$('#' + o.id + '_img').html('<img src="images/exclamation.gif" border="0" style="float:left;" />');
$('#' + o.id + '_li').addClass("error");
$('#' + o.id + '_msg').html(m);
$('#' + o.id + '_li').removeClass("success");
}
//private helper, validates each type after check
function doValidate(o) {
$('#' + o.id + '_img').html('<img src="images/loading.gif" border="0" style="float:left;" />');
$.post('ajax.php', { id: o.id, value: o.value }, function(json) {
eval("var args = " + json);
if (args.success == true)
{
doSuccess(args);
}
else
{
doError(args,args.msg);
}
});
};
};
$.fn.match = function(m) {
$('#' + this.get(0).id + '_img').html('<img src="images/loading.gif" border="0" style="float:left;" />');
if ($(this).get(0).val() == $(m.match).val()) {
$('#' + this.get(0).id + '_img').html('<img src="images/accept.gif" border="0" style="float:left;" />');
$(m.error).removeClass("error");
$(m.error).addClass("success");
$('#' + this.get(0).id + '_msg').html("");
} else {
$('#' + this.get(0).id + '_img').html('<img src="images/exclamation.gif" border="0" style="float:left;" />');
$(m.error).addClass("error");
$(m.error).removeClass("success");
$('#' + this.get(0).id + '_msg').html("The passwords don't match, please try again");
};
};
$(document).ready(function()
{
$("//[@class=validated]/input").blur(function() {
$(this).validate.init(this);
});
$("#confirmpass").blur(function() {
$(this).match({match: '#password', error: '#confirmpass_li'});
});
$("#password").keyup(function() {
$(this).copyTo("#password_copy","value");
});
// This Used To Be HOVER, But I.E. Didnt Like It
//$(".form li").hover(function(){$(this).addClass("selected");},function(){$(this).removeClass("selected");});
$(".form li").mouseover(function() {
$(this).addClass("selected");
});
$(".form li").mouseout(function() {
$(this).removeClass("selected");
});
});
[/code]
479 2010-09-06 18:06
Re: [Solved] Removing Hyperlink (6 replies, posted in PunBB 1.3 troubleshooting)
You saw that it's repeated a few times, for guests, logged in users etc....
480 2010-09-06 16:40
Re: [Solved] Removing Hyperlink (6 replies, posted in PunBB 1.3 troubleshooting)
Well this is the hyperlink part of that
'<a title="'.sprintf($lang_topic['Go to profile'], forum_htmlencode($cur_post['username'])).'" href="'.forum_link($forum_url['user'], $cur_post['poster_id']).'">'.forum_htmlencode($cur_post['username']).'</a>'
if taking out that is too much how about just the href="...."
481 2010-09-06 16:26
Re: [Solved] Removing Hyperlink (6 replies, posted in PunBB 1.3 troubleshooting)
you'll need to go to
viewtopic.php
and search for
// Generate author identification
change below
and manually delete the link you don't want...
482 2010-09-06 08:06
Re: relative url as forum_root ? (5 replies, posted in PunBB 1.3 bug reports)
I've added the relative url theme to trac
http://punbb.informer.com/trac/ticket/356
hopefully alexp, slavok will comment...
483 2010-09-05 21:52
Re: Extension update question (4 replies, posted in PunBB 1.3 extensions)
Is what you've added not something that is of interest to the community and therefor could be built into that official extension as an option?
Doesn't disabling, clearing cache and enabling again work in your case though?
484 2010-09-05 15:33
Re: pun_stop_bots (20 replies, posted in PunBB 1.3 extensions)
I think I may have been testing it while testing something else that was giving warnings.
Let me know if you do hear anything from users about it though.
Thanks.
485 2010-09-05 14:53
Re: css discussions (5 replies, posted in Discussions)
From a user standpoint (not developer) so my opinion:
If you can make a new css which is faster loading and doesn't require rewriting of the php files (core) - that would be great. Or is it necessary to change lots of php files?
486 2010-09-05 14:37
Re: [Extension release] PunBB WYSIWYG - using TinyMCE (49 replies, posted in PunBB 1.3 extensions)
Great stuff
One small idea; on line 2 of ui.css in tiny_mce\themes\advanced\skins\default
set color to #fff instead of #000 - like that the line on the left side disappears for smoother look
487 2010-09-05 13:32
Re: [Style Release] - Tutobd_fb style [facebook color] (9 replies, posted in PunBB 1.3 additions)
488 2010-09-05 13:18
Re: pun_stop_bots (20 replies, posted in PunBB 1.3 extensions)
Well you were able to post here without being asked a question right?
So it's working.
489 2010-09-05 12:09
Re: [Style Release] - Tutobd_fb style [facebook color] (9 replies, posted in PunBB 1.3 additions)
Did you change anything else to get the images aligned correctly?
490 2010-09-05 11:51
Re: [Style Release] - Tutobd_fb style [facebook color] (9 replies, posted in PunBB 1.3 additions)
Just installed it on a testboard aswell, but your images aren't included?!
491 2010-09-05 11:47
Re: how does banning work? (2 replies, posted in PunBB 1.3 discussion)
If you ban by default all three will need to be matched to block him registering again.
If you ban the IP he can try with other email addresses and usernames but won't succeed.
If you ban just the email address that will stop that email being used from any IP or with any username.
492 2010-09-05 10:09
Re: Submit User Data To Stopforumspam (in progress) (6 replies, posted in PunBB 1.3 extensions)
made some more progress; but stuck with how to submit from profile
what I've added
// users.php line added ~353
[code=php]
$forum_page['mod_options']['sfs'] = '<span class="submit'.((empty($forum_page['mod_options'])) ? ' first-item' : '').'"><input type="submit" name="submit_sfs" value="'.$lang_sfssubmit['SFS Admin'].'" /></span>';
[/code]
// profile.php line added ~2512
[code=php]
$forum_page['user_management']['sfs'] = '<div class="ct-set set'.++$forum_page['item_count'].'">'."\n\t\t\t\t".'<div class="ct-box">'."\n\t\t\t\t\t".'<h3 class="ct-legend hn">'.$lang_sfssubmit['SFS'].'</h3>'."\n\t\t\t\t".'<p><a href="'.forum_link($forum_url['submit_sfs'], $id).'">'.$lang_sfssubmit['Submit user to SFS'].'</a></p>'."\n\t\t\t\t".'</div>'."\n\t\t\t".'</div>';
[/code]
//language file of extension - lang/sfssubmit.php
[code=php]
<?php
if (!defined('FORUM')) die();
$lang_sfssubmit = array(
'SFS' => 'Submit to SFS',
'Submit user to SFS' => 'Submit this user to Stopforumspam.com',
'SFS Admin' => 'Add to SFS',
);
?>
[/code]
todo:
need to add sfssubmit action to profile.php like on line 843
else if (isset($_POST['ban'])) etcalso need to add those two first lines above via correct way in the extension
493 2010-09-05 08:56
Re: Sitespeedforum.com (3 replies, posted in PunBB show off)
PunBB is the perfect forum for that sites' theme.
BTW: Have you ever tried getting your forum posts (recent/active) to show on your WP blog/site?
494 2010-09-05 05:13
Re: PunBB Unverified Users Problem (19 replies, posted in Discussions)
You're right of course
495 2010-09-04 20:30
Re: [Extension release] PunBB WYSIWYG - using TinyMCE (49 replies, posted in PunBB 1.3 extensions)
btw @ rs324; added the info to the official tinyMCE forum board (which runs PunBB 1.2 )
http://tinymce.moxiecode.com/punbb/view … hp?id=1323
496 2010-09-04 19:18
Re: Allows to control all new posts and registrations and approve them (1 replies, posted in PunBB 1.3 troubleshooting)
Pun_approval covers your needs
You got to
Administration » Start » Forums
and edit which you want approval activated for
in your case untick the box everywhere....
497 2010-09-04 16:28
Topic: Submit User Data To Stopforumspam (in progress) (6 replies, posted in PunBB 1.3 extensions)
Hey anyone, could just use a bit of help with the adding of api key
This is what I've got till now:
Installing the stopforumspam API key field into config
[code=xml]
<install>
<![CDATA[
if (defined('EXT_CUR_VERSION'))
{
// you can make special update code for each previous extension version
}
else
{ // it's a fresh install
$forum_db->query('INSERT INTO '.$forum_db->prefix.'config VALUES (\'stopforumspam_apikey\', \'\')') or error(__FILE__, __LINE__);
}
]]>
</install>
[/code]
uninstalling of the stopforumspam API key
[code=xml]
<uninstall>
<![CDATA[
$sql = array(
'DELETE' => 'config',
'WHERE' => 'conf_name IN (\'stopforumspam_apikey\')'
);
$forum_db->query_build($sql) or error(__FILE__, __LINE__);
]]>
</uninstall>
[/code]
add a field to administration where APIkey can be entered - aop_features_general_fieldset_end
[code=xml]
<hook id="aop_features_general_fieldset_end">
<![CDATA[
if (file_exists($ext_info['path'].'/lang/'.$forum_user['language'].'.php')){
include $ext_info['path'].'/lang/'.$forum_user['language'].'.php';
}else{
include $ext_info['path'].'/lang/English.php';
}
?>
<div class="content-head">
<h2 class="hn"><span>Stopforumspam</span></h2>
</div>
<fieldset class="sf-set group-item<?php echo ++$forum_page['group_count'] ?>">
<legend><span>Stopforumspam:</span></legend>
<div class="sf-box text">
<label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_recaptcha['public_key'];?></span></label>
<span class="fld-input"><input size="25" type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[stopforumspam_apikey]" value="<?php echo $forum_config['stopforumspam_apikey'];?>" /></span>
</div>
</fieldset>
<?php
]]>
</hook>
[/code]
add to administration - aop_features_validation
[code=xml]
<hook id="aop_features_validation">
<![CDATA[
if (!isset($form['stopforumspam_apikey']) || empty($form['stopforumspam_apikey']))
$form['stopforumspam_apikey'] = '';
]]>
</hook>
[/code]
Add to admin section - aop_pre_update_configuration
[code=xml]
<hook id="aop_pre_update_configuration">
<![CDATA[
if (isset($form['stopforumspam_apikey']))
{
if ($form['stopforumspam_apikey'] != $forum_config['stopforumspam_apikey'])
$forum_db->query('UPDATE '.$forum_db->prefix.'config SET conf_value = \''.$forum_db->escape($form['stopforumspam_apikey']).'\' WHERE conf_name = \'stopforumspam_apikey\'', true) or error(__FILE__, __LINE__);
}
]]>
</hook>
[/code]
=================================
todo:
add button in User management between Ban User & Delete user: Delete & Report To SFS
add option in profile.php
so in admin/user.php lines 343-358
[code=php]
// Setup control buttons
$forum_page['mod_options'] = array();
if ($forum_page['num_users'] > 0)
{
if ($forum_user['g_id'] == FORUM_ADMIN || ($forum_user['g_moderator'] == '1' && $forum_user['g_mod_ban_users'] == '1'))
$forum_page['mod_options']['ban'] = '<span class="submit'.((empty($forum_page['mod_options'])) ? ' first-item' : '').'"><input type="submit" name="ban_users" value="'.$lang_admin_users['Ban'].'" /></span>';
if ($forum_user['g_id'] == FORUM_ADMIN)
{
$forum_page['mod_options']['delete'] = '<span class="submit'.((empty($forum_page['mod_options'])) ? ' first-item' : '').'"><input type="submit" name="delete_users" value="'.$lang_admin_common['Delete'].'" /></span>';
$forum_page['mod_options']['change_group'] = '<span class="submit'.((empty($forum_page['mod_options'])) ? ' first-item' : '').'"><input type="submit" name="change_group" value="'.$lang_admin_users['Change group'].'" /></span>';
}
}
($hook = get_hook('aus_show_users_pre_moderation_buttons')) ? eval($hook) : null;
[/code]
profile.php lines 2512-2523
[code=php]
// Setup ban and delete options
$forum_page['user_management'] = array();
if ($forum_user['g_moderator'] == '1')
$forum_page['user_management']['ban'] = '<div class="ct-set set'.++$forum_page['item_count'].'">'."\n\t\t\t\t".'<div class="ct-box">'."\n\t\t\t\t\t".'<h3 class="ct-legend hn">'.$lang_profile['Ban user'].'</h3>'."\n\t\t\t\t".'<p><a href="'.forum_link($forum_url['admin_bans']).'?add_ban='.$id.'">'.$lang_profile['Ban user info'].'</a></p>'."\n\t\t\t\t".'</div>'."\n\t\t\t".'</div>';
else if ($forum_user['g_moderator'] != '1' && $user['g_id'] != FORUM_ADMIN )
{
$forum_page['user_management']['ban'] = '<div class="ct-set set'.++$forum_page['item_count'].'">'."\n\t\t\t\t".'<div class="ct-box">'."\n\t\t\t\t\t".'<h3 class="ct-legend hn">'.$lang_profile['Ban user'].'</h3>'."\n\t\t\t\t".'<p><a href="'.forum_link($forum_url['admin_bans']).'?add_ban='.$id.'">'.$lang_profile['Ban user info'].'</a></p>'."\n\t\t\t\t".'</div>'."\n\t\t\t".'</div>';
$forum_page['user_management']['delete'] = '<div class="ct-set set'.++$forum_page['item_count'].'">'."\n\t\t\t\t".'<div class="ct-box">'."\n\t\t\t\t\t".'<h3 class="ct-legend hn">'.$lang_profile['Delete user'].'</h3>'."\n\t\t\t\t".'<p><a href="'.forum_link($forum_url['delete_user'], $id).'">'.$lang_profile['Delete user info'].'</a></p>'."\n\t\t\t\t".'</div>'."\n\t\t\t".'</div>';
}
($hook = get_hook('pf_change_details_admin_pre_header_load')) ? eval($hook) : null;
[/code]
498 2010-09-04 15:03
Re: New slogan? PunBB - The Lightweight PHP-Based Forum. (9 replies, posted in Discussions)
Instead of the old matrix line mashup used here
(Unfortunately no one can be told what PunBB is - you have to see it for yourself.)
Don't know if you call it slogan or if you have another name for that
499 2010-09-04 14:54
Re: [Style Release] - Tutobd_fb style [facebook color] (9 replies, posted in PunBB 1.3 additions)
Good work Just gave you the "title" Style Creator... as you've added your own images and changed an existing theme....
500 2010-09-04 13:47
Re: [Extension] DivX Adding BBCode (9 replies, posted in PunBB 1.3 extensions)
Introducing DivX HiQ - An Alternative to Flash on Popular Video Sites
We've been busy working on DivX Plus Web Player over the last few months, and we've made progress on a ton of new features that we're excited to share with you. Our favorite new feature is called DivX HiQ, and it helps boost web video performance on your favorite video sites like YouTube, Vimeo and DailyMotion by using DivX Plus Web Player instead of the native video player. DivX HiQ is only one of the new things we're rolling out in this Beta release, so check it out for yourself on DivX Labs.
Download the new DivX Plus Web Player v2.1 Beta for Windows.
New Features:DivX HiQ: Higher Quality Web Video, One Click at a Time
DivX HiQ boosts web video playback performance by switching to DivX Plus Web Player instead of the lower performance native players on popular video sites like YouTube, Vimeo and DailyMotion. Check out the full list of supported sites on DivX Labs.
After installation the "DivX HiQ" button will appear beneath a supported site's player
(Here is how it looks on YouTube).
New Formats: Native MP4 and MOV SupportIn addition to DivX (.divx, .avi) and DivX Plus (.mkv) video formats, DivX Plus Web Player 2.1 Beta now includes native support for MP4 and MOV videos.
HTML5 <VIDEO> Tag Support
Our new HTML5 implementation makes it easy to embed the DivX Plus Web Player elegantly with the new <VIDEO> tag for uniform .divx, .avi, .mkv, .mp4 and .mov support across multiple browsers. Check out our HTML5 demo to learn more.
DXVA Hardware Acceleration
The DivX Plus Web Player 2.1 Beta now supports DXVA hardware acceleration, so you can offload all of your H.264 video decoding to your GPU.
Feedback:
Have you experienced any problems using this beta? Did you find a bug? Want to share your DivX-related poetry? Share your feedback and/or poetry to tell us what you think in the forums:
DivX HiQ Forum
HTML5 Forum