Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Closed Thread
 
Thread Tools
vBcustompage 1.0 Details »»
vBcustompage 1.0
Version: 1.00, by Velocd Velocd is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

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.

Comments
  #22  
Old 07-29-2002, 12:22 PM
DemiNeo0101's Avatar
DemiNeo0101 DemiNeo0101 is offline
 
Join Date: Feb 2002
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks hellsatan.
  #23  
Old 07-29-2002, 01:13 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Np...

Satan
  #24  
Old 07-29-2002, 01:25 PM
LouChipher LouChipher is offline
 
Join Date: Oct 2001
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

a big hole - css etc...

can somebody code a blacklist for the html code? so you can lock abject html code...
  #25  
Old 07-29-2002, 02:01 PM
DemiNeo0101's Avatar
DemiNeo0101 DemiNeo0101 is offline
 
Join Date: Feb 2002
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Lionel
I get a blank page when I click on the link in profile.

$userinfo[custompage] returns empty, but the info is in the database
i get the same exact thing. I have that getinfo_custompage template and i ran the mysql querys.

im useing vb 2.2.6
  #26  
Old 07-29-2002, 02:12 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats strange...

I am running vB 2.2.6 and everything is running fine...

Satan
  #27  
Old 07-29-2002, 03:47 PM
ripman's Avatar
ripman ripman is offline
 
Join Date: Jan 2002
Location: POLAND -> TARNOW (51'N/21'E)
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mayby it would be good make something more than simple page - eg. everyone can make his own webpage - but the full one, including :

-Hiperlinks to other private pages within one account
-Images upload
-Without forum's includes (logo,buttons,etc)

What do you think about that ?
  #28  
Old 07-29-2002, 03:50 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm...

Good, except for 2 things...

Images uploads - How do we know they wont upload p*rn?

Without forum includes - how will internet niave members get back to the forum easily?

Satan
  #29  
Old 07-29-2002, 03:53 PM
Point Blank's Avatar
Point Blank Point Blank is offline
 
Join Date: Jun 2002
Location: Milwaukee, WI
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice hack. I will be using this in the future.
  #30  
Old 07-29-2002, 03:56 PM
ripman's Avatar
ripman ripman is offline
 
Join Date: Jan 2002
Location: POLAND -> TARNOW (51'N/21'E)
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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")."\";");

  eval(
"\$custompagebit = \"".gettemplate("modifycustompage_bit")."\";");


  
$custompage=htmlspecialchars($bbuserinfo[custompage]);

  eval(
"dooutput(\"".gettemplate("modifycustompage")."\");");
}


  
// ############################### start update custompage by Velocd ###############################
  
if ($HTTP_POST_VARS['action']=="updatecustom") {
    
$templatesused 'redirect_updatethanks';
    include(
"./global.php");

    
/* ODKOMENTOWAC JESLI STRONU PRYWATNE MAJA BYC TYLKO WIDOCZNE DLA ZAREJESTROWANYCH
    if ($bbuserinfo[userid]==0) {
      show_nopermission();
    }
    */

    
$custompage censortext($custompage);
    
$custompagename censortext($custompagename);

    
$DB_site->query("UPDATE user SET custompage='".addslashes($custompage)."', custompagename='".addslashes($custompagename)."' WHERE userid='$bbuserinfo[userid]'");

    eval(
"standardredirect(\"".gettemplate("redirect_updatethanks")."\",\"usercp.php?s=$session[sessionhash]\");");


------------------------------
  #31  
Old 07-29-2002, 04:00 PM
ripman's Avatar
ripman ripman is offline
 
Join Date: Jan 2002
Location: POLAND -> TARNOW (51'N/21'E)
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by hellsatan
Hmm...

Good, except for 2 things...

Images uploads - How do we know they wont upload p*rn?

Without forum includes - how will internet niave members get back to the forum easily?

Satan
Hmm :
1. Image upload after X posts - that should prevent most people from "chating"

2. I ment that includes should be very small like a table with a theme chosen by user

3. One more thing. Every user can have pre-installed web page like.

Quote:
Hello, I'M $username. I live in $location ... etc )
P.S I could write that hack but I'm new @ VB so knowing PHP is not enought :P
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:24 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10552 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete