Version: 1.00, by Velocd
Developer Last Online: Nov 2023
Version: 2.2.x
Rating:
Released: 07-27-2002
Last Update: Never
Installs: 44
No support by the author.
vBcustomPage Version 1.0 | A hack by Velocd :ninja:
Update - 7/27/02 - Bug fix
I accidentally forgot to add the instructions on how to allow the admin to modify the custom page name and content via ACP.
Please refer to the 7-27-02fix.txt for instructions on how to fix it.
What does this hack do?
This integrated vB add-on will allow your users to have their own custom page built on simple HTML. In addition, the admin can specifiy a minimum post count that all users must achieve before they are allowed the creation of a custom page.
Why is it useful?
More creativity and ways for the users to express themselves on your forum. Users who do not match the postcount needed to create custom pages will want to post more in order to get it. Ofcourse this isn't going to happen just because it's written here, but the possibilities are unknown until you try it out.
Features:
Via the ACP users page, the admin can toggle whether a member is allowed to use custom pages.
Via the ACP users page, the admin can also modify the users custom page name, and also the content.
Javascript code filter + offensive language block
The name of your custom page will show up in the title bar of your custom page (big wow, I know )
..more creativity for your users!
WARNINGS:
As with HTML in posts and signatures, the vulnerabilities of allowing your members to create pages using HTML could be risky. Please moderate your member custom pages (view the source) on a daily basis, insuring that no malicious code is hidden away somewhere.
Screenshots?
Screenshots are included in the zip.
Bugs?
None that I know of, but if you find any please let me know!
-----------------------------------------
Attached is the hack zip. If you use this hack on your forum, please click the install!
Suggestions and comments are always welcomed
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Hmmmmmm - I've removed that part of code but the problem's still there :surprised:
------member.php--------
PHP Code:
// ############################### start modify custompage by Velocd ###############################
if ($action=="custompage") {
$templatesused = 'error_nopermission_custompage,error_nopermission_customposts,usercpnav,modifycustompage_bit,modifycustompage';
include("./global.php");
// do modify profile form
/* ODKOMENTOWAC JESLI STRONU PRYWATNE MAJA BYC TYLKO WIDOCZNE DLA ZAREJESTROWANYCH
if ($bbuserinfo[userid]==0) {
show_nopermission();
}
*/
if ($bbuserinfo[posts]<1) {
eval("standarderror(\"".gettemplate("error_nopermission_customposts")."\");");
}
if ($bbuserinfo[enablecustompage] == 0) {
eval("standarderror(\"".gettemplate("error_nopermission_custompage")."\");");
}
// draw cp nav bar
$cpnav[1]="{secondaltcolor}";
$cpnav[2]="{secondaltcolor}";
$cpnav[3]="{secondaltcolor}";
$cpnav[4]="{secondaltcolor}";
$cpnav[5]="{secondaltcolor}";
$cpnav[6]="{secondaltcolor}";
$cpnav[7]="{secondaltcolor}";
$cpnav[8]="{firstaltcolor}";
$cpmenu[8]="class=\"fjsel\" selected";
eval("\$cpnav = \"".gettemplate("usercpnav")."\";");
$DB_site->query("UPDATE user SET custompage='".addslashes($custompage)."', custompagename='".addslashes($custompagename)."' WHERE userid='$bbuserinfo[userid]'");