View Full Version : vBcustompage 1.0
Velocd
07-27-2002, 10:00 PM
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 :)
Radon3k
07-28-2002, 03:33 AM
Cool hack, might use it sometime, thanks! :)
Velocd
07-28-2002, 04:47 AM
I just updated the zip, fixing a small typo in the end of the install.htm, where NEW TEMPLATES was mentioned twice :rolleyes:
There are also some area's that have strange hexademical values for the colors, this is because I accidentally left { secondaltcolor} in them and it got translated by vB accidentally. But hopefully there should be no problem in figuring it out ;)
i might edit it the code a bit too customize it for my board if u dont mind?
Lionel
07-28-2002, 06:12 AM
I get a blank page when I click on the link in profile.
$userinfo[custompage] returns empty, but the info is in the database
nemesis01
07-28-2002, 10:08 AM
It's a good idea, but I think it would be better if it was based on a regular vbulletin page and editable by filling in set fields at the 'create page' stage, rather than having the user be allowed to use html. I'm sure it would be possible to do that, replacing the html part for the more limited but 'safer' VBcode. For a big board with a lot of regular users it would be very time consuming to check each members page to make sure the content was non-malicious.
Chris M
07-28-2002, 10:32 AM
Great hack Velocd!
I was thinking of making this myself, but you saved me the trouble;)
Hmmm...
Why dont you make it so that Admins can make one without needing to get a certain amount of posts?
Satan
proxyMX
07-28-2002, 01:47 PM
i am a huge fan of lesanes store hack, this could be a buy feature in it
DrkFusion
07-28-2002, 03:30 PM
Nice work man, isntalling this right now.
Drk
eXtremeTim
07-28-2002, 04:00 PM
I might install this im just not to comfortable with allowing the html.
Chris M
07-28-2002, 05:17 PM
I would prefer if it was vB code...
Also - I would prefer if Admins could use it without needing 300 posts...
Satan
ULTIMATESSJ
07-28-2002, 06:02 PM
heh i see you released it after all, nice work Velocd :)
Velocd
07-28-2002, 06:23 PM
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
Make sure you have created the template getinfo_custompage, and that it contains the following:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>$bbtitle - $userinfo[custompagename]</title>
$headinclude
<body>
$header
<br>
$userinfo[custompage]
<br>
$footer
</body>
</html>
Originally posted by proxyMX
i am a huge fan of lesanes store hack, this could be a buy feature in it
Feel free to integrate this if you like, I personally don't use Lesane store hack, but when making this hack I also thought it would make a good addition.
Originally posted by ULTIMATESSJ
heh i see you released it after all, nice work Velocd :)
Thanks ;)
Originally posted by hellsatan
I would prefer if it was vB code...
Also - I would prefer if Admins could use it without needing 300 posts...
Satan
Originally posted by eXtremeTim
I might install this im just not to comfortable with allowing the html.
Originally posted by nemesis01
It's a good idea, but I think it would be better if it was based on a regular vbulletin page and editable by filling in set fields at the 'create page' stage, rather than having the user be allowed to use html. I'm sure it would be possible to do that, replacing the html part for the more limited but 'safer' VBcode. For a big board with a lot of regular users it would be very time consuming to check each members page to make sure the content was non-malicious.
I know the idea of allowing HTML worries alot of people, and I'm personally not too fond of it, but I can never know how things turn out until I try them myself. I have it running on my forums, and those with the minimum 300 post count seem to think it's a great idea, funny thing is most these members don't even know HTML. :cheeky:
To use vBcode would seem like the most ideal way of making this hack, but then I would have to create vBcode tags for all those HTML tags, such as creating tables, embed tag, etc. And I don't have the coding experience, nor the time, to do it right now. Another way would be to have it check the HTML making sure nothing bad was being put in, but this is another thing I'm not quite sure of how to do. It has a basic checker that eliminates javascript and any other language but HTML, and thats it.
For my forums I can trust my members, mainly because my forum is relatively small, and I know all the members pretty well. Although for a forum with many many members, I know this would become a problem. You could set the enablecustompage to default off, and then if a member would like a custom page you check with them first and switch them to on. This seems even more time consuming though.
I think it would be better if it was based on a regular vbulletin page and editable by filling in set fields at the 'create page' stage
I'm not too sure what you mean by this, could you explain alittle further nemesis01? :)
proxyMX
07-28-2002, 09:29 PM
ill have a bash of integration but im more of a graphics person and im oretty clueless when it comes to php
DemiNeo0101
07-28-2002, 10:55 PM
ok when i try to find
$cpnav[7]="#1C5780";
i get nothing. Is that still in members.php?
i have vb 2.2.6
mine show up more like this
$cpnav[7]="#1C5780";
and i allready have a $cpnav[8]="{firstaltcolor}"; and $cpnav[8]="{secondaltcolor}"; from myvbpad hack by firefly.
ripman
07-29-2002, 08:49 AM
great hack :) I've installed it on 2.2.6
but the counter seems not to increment (X views)
check it out @ my test forum
http://forum.west.tarnow.pl/member.php?s=&action=getinfo&userid=1
(server may be slooooow)
Chris M
07-29-2002, 09:09 AM
@DemiNeo0101 -
Search for :
$cpnav[7]="{secondaltcolor }";
(Remeber to remove the space in {secondaltcolor })
That was only "#1C5780", because vB parses the code as that...
Satan
ripman
07-29-2002, 11:28 AM
Ok - it increments.
But how to swith off user-checjk ? I would like this page do be avaliable to all surfers - not only to the registered users.
Chris M
07-29-2002, 11:51 AM
In the member.php Modification, find (2nd instance):
if ($bbuserinfo[userid]==0) {
show_nopermission();
}
And remove it...(This removal of code refers to the :
// ############################### start getinfo custompage by Velocd ###############################
part of the hack...
Satan
ripman
07-29-2002, 12:01 PM
GREAT :) BIG THX :rambo:
DemiNeo0101
07-29-2002, 12:22 PM
thanks hellsatan.
Chris M
07-29-2002, 01:13 PM
Np...:)
Satan
LouChipher
07-29-2002, 01:25 PM
a big hole - css etc...
can somebody code a blacklist for the html code? so you can lock abject html code...
DemiNeo0101
07-29-2002, 02:01 PM
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
Chris M
07-29-2002, 02:12 PM
Thats strange...
I am running vB 2.2.6 and everything is running fine...
Satan
ripman
07-29-2002, 03:47 PM
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 ?
Chris M
07-29-2002, 03:50 PM
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
Point Blank
07-29-2002, 03:53 PM
Very nice hack. I will be using this in the future.
ripman
07-29-2002, 03:56 PM
Hmmmmmm - I've removed that part of code but the problem's still there :surprised:
------member.php--------
// ############################### start modify custompage by Velocd ###############################
if ($action=="custompage") {
$templatesused = 'error_nopermission_custompage,error_nopermission_ customposts,usercpnav,modifycustompage_bit,modifyc ustompage';
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]\");");
}
------------------------------
ripman
07-29-2002, 04:00 PM
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.
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
Chris M
07-29-2002, 04:02 PM
Im not sure I follow...
Satan
ripman
07-29-2002, 04:06 PM
I've asked how to allow non registered users to access private page - I've done what you said but still there's a LOG IN screen instead of displaying the page.
Chris M
07-29-2002, 06:35 PM
Then you obviously dont allow Guests to view User Profiles...
Satan
ripman
07-29-2002, 06:51 PM
hmmm
Can view members info (including other's profiles and members list) (*)Yes ()No
Ill take a look at it tommorow - now i'm to tired :P
Jalrock
07-29-2002, 06:54 PM
Can this be modified to use usergroups instead of post count. If so anyone want to show me how.
I am not that good with PHP but have installed many hacks with no problems. I have been trying to creat this same hack for 3 months now and all I have managed to do is destroy my user profile pages.
Jalrock
07-29-2002, 06:58 PM
Would this work?
Replace:
if ($bbuserinfo[posts]<300) {
With:
if ($bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==7 || $bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==8) {
Chris M
07-29-2002, 07:26 PM
No...
This :
if ($bbuserinfo[usergroupid]!=6 and $bbuserinfo[usergroupid]!=7 and $bbuserinfo[usergroupid]!=5 and $bbuserinfo[usergroupid]!=8) {
Satan
Jalrock
07-29-2002, 08:23 PM
Thank You.
Velocd
07-29-2002, 08:24 PM
Thanks for answering the questions HellSatan, I had no idea this hack would fill it so quickly in just a couple days. I was on a train for 12 hours yesterday up to Mt. Shasta, so I wasn't able to provide some help then.
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
Well there is no imaging upload first of all, there is just image hotlinking from another website, but I figure that's what you meant. There is no way to prevent linking adult or offensive images, but hopefully the specific rules given on the custompage screen in the user profile will make it VERY clear. Also allowing members with a certain postcount, should be high, should allow those common with the forum rules to know whats right and wrong. Just be sure you moderate the pages, maybe create a new usergroup just for moderators that check the pages, insuring the code is safe and there is no bad content.
Originally posted by ripman
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 ?
Having multiple pages might be a consideration for a future version of this hack, but I have no intention right now in adding that feature. Same goes with image upload, and actually I probably won't ever release image upload unless somebody else wants to code it out, only because your forum isn't meant to be a private Angelfire, or whatever..
For your third request, this can be done very simple.
Just replace the template getinfo_custompage with the following:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>$bbtitle - $userinfo[custompagename]</title>
</head>
$userinfo[custompage]
</html>
All I really did was remove the $header, $headinclude, and $footer. NOTICE though that I removed the <body> and </body> tags, this means in the modifycustompage screen, your users will have to add the <body></body> tags within the body content field. If you add it default like this: <body></body>, I believe your vB will modify it to it's style replacement set value. But if you specify <body bgcolor="#345678"></body>, it will set the background color to that hexadecimal value.
-------------------------------
Those still recieving a blank page when you click on the custompage link in the user profile, I'm not too sure what to say but make sure you follow the instructions exactly doing everything as told.
Thanks for all the feedback :)
Chris M
07-29-2002, 08:33 PM
Any news on the Admins dont need 300 posts front?
Satan
Velocd
07-29-2002, 10:24 PM
if ($bbuserinfo[posts]<300 && $bbuserinfo[usergroupid] != 6) {
;)
Lionel
07-29-2002, 10:31 PM
Originally posted by DemiNeo0101
i get the same exact thing. I have that getinfo_custompage template and i ran the mysql querys.
im useing vb 2.2.6
did you solve that problem?
Velocd
07-29-2002, 10:53 PM
As mentioned before, it is probably a mistake some of you are making. For some people who have installed this hack they say it works perfectly, while a few people are reporting a blank page being shown up. The instructions are quite lengthy, so just make sure you go carefully through it. I have it installed and it works fine.
I'll go through the instructions again to insure nothing is missing.
Velocd
07-29-2002, 11:11 PM
Could anybody who is recieving the blank page tell me if it is a complete blank page (pure white), or if the blank page consists only of the $header, and $footer visible elements.
Lionel
07-29-2002, 11:15 PM
Originally posted by Velocd
Could anybody who is recieving the blank page tell me if it is a complete blank page (pure white), or if the blank page consists only of the $header, and $footer visible elements.
just a blank page, no header, no footer, not even a page TITLE
Velocd
07-30-2002, 03:07 AM
Strange...I couldn't find anything wrong with the instructions either, so I'm blank on what the problem could be right now.
Jalrock
07-30-2002, 03:12 AM
just a dummy point of view but what happens if you dont remove the space from the first and second color thing?
Mithan
07-30-2002, 03:13 AM
Now for the somewhat annoying parts. Find:
$cpnav[7]="#1C5780";
And place below it:
PHP:
$cpnav[8]="#1C5780";
Sorry, bud, but I cant find a any #1c5780 in my members.php file.
This is what my one area looks like:
// draw cp nav bar
$cpnav[1]="{secondaltcolor}";
$cpnav[2]="{secondaltcolor}";
$cpnav[3]="{firstaltcolor}";
$cpnav[4]="{secondaltcolor}";
$cpnav[5]="{secondaltcolor}";
$cpnav[6]="{secondaltcolor}";
$cpnav[7]="{secondaltcolor}";
$cpmenu[9]="class=\"fjsel\" selected";
eval("\$cpnav = \"".gettemplate("usercpnav")."\";");
All mentionings of CPNav are with that secondaltcolor.
So what do I do?
Put $cpnav[8]="#1C5780"; UNDER the $cpnav[7]="{secondaltcolor}"; lines?
Thanks.
Mithan
07-30-2002, 03:40 AM
++++, nevermind... I see what you meant lol
Velocd
07-30-2002, 04:22 AM
I'll make a reminder to myself to change the instructions and make those hexidecimal values to {secondaltcolor }
See if you type {secondaltcolor } without the space in a post on vB.org, and any vBulletin forum, it will replace it with whatever color is in the replacement thingy.
As for leaving {secondalotcolor } that way, it will just screw the colors up, usually making it a neon green or something, I can't remember. So be sure to remove that space.
Mithan
07-30-2002, 04:26 AM
Ok another question.
How would I modify the code so that this will work from the postbit template? Ie- show right up on the forums itself, without requiring a user to click on your name before he can access your site?
You can see my forums here:
http://www.ac2hq.com/forum/showthread.php?s=&threadid=2286
What I would like to do is under a persons name on the left side, put the Custom Page link. If I do it now, nothing shows up.
Any tips?
ripman
07-30-2002, 07:31 AM
If you have any problems I suggest to reinstall whole hack :P Mayby you missed the instruction eg. REPLACE instead of BELOW.
At the second time everything works fine exept that damn non-registered users access. Blah...
Chris M
07-30-2002, 09:03 AM
Then...
You either havent removed that code, or you dont allow Guests to do much...
@Mithan...
Change this below, from yoursite.com/forums to the path to your boards...
<a href="http://www.yoursite.com/forums/member.php?s=&action=getcustompage&userid=$userid">Custom Page</a>
You can format it how you like:)
Then, in the posbit template, find :
$post[usertitle]
And below it add the code from above...
Satan
DemiNeo0101
07-30-2002, 01:16 PM
i have a feeling its conflicting with a hack i allready have installed. B/c i re-installed, but still a no go.
Mithan
07-30-2002, 02:35 PM
Hellsatan:
Thanks, that didnt work though. I had to change it to this:
<a href="http://www.ac2hq.com/forum/member.php?s=&action=getcustompage&userid=$post[userid]">Custom Page</a><br>
the $userid didnt work, needed to change to $post[userid]
Again, thanks.
Chris M
07-30-2002, 06:58 PM
Ah right...
I thought that wouldnt work as just $userid...
Satan
Velocd
07-30-2002, 09:07 PM
@mithan, use this if you want their page name to show up:
<a href="http://www.ac2hq.com/forum/member.php?s=&action=getcustompage&userid=$post[userid]">$post[custompagename]</a>
You can also use $post[custompageviews], to display that users hits for their page.
Originally posted by DemiNeo0101
i have a feeling its conflicting with a hack i allready have installed. B/c i re-installed, but still a no go.
The major areas that a mistake could be caused is in the members.php. So by chance in one of the areas that require you to select a large amount of code then replace it with the code I gave, you could have overwrited another hack maybe. This calls for you doing it manually then, since most of the time I only added a variable or something within the code.
Thewnagchung
07-30-2002, 09:25 PM
HEY VELOCD! its me Jeff :D
i may add this to VGT ;)
KnightDebonair
07-30-2002, 10:42 PM
well, i'm a poster at his website and I've messed with that hack first hand :D. I know nothing about html but it wasn't too hard to get the basics through a post he made, it would be awesome if that hack had a quick FAQ link to the side, just telling the basics of HTML, it didn't but luckily velocd posted them so it was ok.
anyways, thats all ^^;
Kumaro
07-31-2002, 02:42 AM
This hack is just what I have been looking for, except i stilll can't use it because none of the users know any html at all. It would be great if this hack had three different sections for the user to fill out; such as an image field, a body text 1 field, and a body 2...
just a suggestion..amazing hack.
Kenji Wing
07-31-2002, 07:19 AM
very nice hack my users love it!
Velocd
07-31-2002, 10:38 PM
Originally posted by Kumaro
This hack is just what I have been looking for, except i stilll can't use it because none of the users know any html at all. It would be great if this hack had three different sections for the user to fill out; such as an image field, a body text 1 field, and a body 2...
just a suggestion..amazing hack.
That is very well possible, and being that I am bored up here in Mt. Shasta maybe I'll do it :D
It'll make it easier for those who don't know HTML, and for those who are alittle concerned letting users have it on the forum.
The only thing is, it would be a set template that everyone would have to use, meaning..everypage would have the same layout, just different content.
Originally posted by Velocd
That is very well possible, and being that I am bored up here in Mt. Shasta maybe I'll do it :D
It'll make it easier for those who don't know HTML, and for those who are alittle concerned letting users have it on the forum.
The only thing is, it would be a set template that everyone would have to use, meaning..everypage would have the same layout, just different content.
This option would make me install it with an option that I can select which usersgroup(s) can use it or not.
Okiewan
08-20-2002, 03:56 PM
This hack caused a problem... can't update member files via ACP... acts like it's taking a change, but is not writting the info to the member table. I uploaded my original user.php to the admin directory and it fixed the problem.
Erwin
08-21-2002, 02:02 AM
Installed, and working well. I made some minor changes cosmetically. Thanks. :)
Keyser S?ze
08-25-2002, 12:00 AM
anyone help me out,
in the admin cp, i want a link that says "edit users page" in there users description, maybe right above "remove user"
and that takes u to where u can edit the page
having it under the signature looks sloppy IMO
besides that this hack ownz, only wish it could use vB code and smilies
Keyser S?ze
08-25-2002, 09:28 PM
i dont think this has been requested, but how about a top(X) pages, like by number of views, or better yet number of votes
Dean C
08-27-2002, 12:53 PM
this conflicts with firefly's vbpad hack... because i already have
$cpnav[8]="{ secondaltcolor}";
in all the things files you have to add it to...
what do i do to make it work "alongside" the vbpad :D?
- Mist
Preech
08-29-2002, 07:31 PM
I got a question. When I'm in the admin cp, when I got to edit user....It won't let me, can anyone help me with the answer.
Chris M
08-31-2002, 02:40 PM
Did you do the sql queries?
@Velo - I have an idea...
If you go to my site, and try and view a page for someone who has not got one, like userid 70, it just shows up as a Page with no Content...
Is there a way to make the page check for firstly their post count, and if it is under 300, it displays a Default Page...If it is over 300, it can check for a certain number of characters or something?
That way it would look less Blank;)
Satan
Velocd
09-06-2002, 02:40 AM
@HellSatan:
It really shouldn't be doing that...as I last recalled, I put a check in there to insure that when a member views another member page although they don't have one, it's suppose to give an error.
I don't really have the time right now to supply some of the add-ons requested, but anyone here is fully welcome to tamper with the source ofcourse and create your own add-ons. Go ahead and release them on vB.org if you like.
;)
ryans
11-07-2002, 07:30 PM
Originally posted by Velocd
As mentioned before, it is probably a mistake some of you are making. For some people who have installed this hack they say it works perfectly, while a few people are reporting a blank page being shown up. The instructions are quite lengthy, so just make sure you go carefully through it. I have it installed and it works fine.
I'll go through the instructions again to insure nothing is missing.
a blank page is from the space in the $cpnav[1]="{ secondaltcolor}";
they should remove all spaces from{ second...}
What i get is not enough post to use the system. i'm running the newest version of vbulletin. I did set the right values.
ryans
11-07-2002, 07:32 PM
ok, i fixed my permission problem. was logged in as my test user, duh! :)
wolfe
11-15-2002, 01:52 PM
have you got any previews
themonarch
11-22-2002, 03:38 AM
Nice hack Velocd!
themonarch
11-24-2002, 01:01 AM
Originally posted by Kumaro
This hack is just what I have been looking for, except i stilll can't use it because none of the users know any html at all. It would be great if this hack had three different sections for the user to fill out; such as an image field, a body text 1 field, and a body 2...
just a suggestion..amazing hack.
mmm, yeah, that's exactly what I was thinking. Still, this is one great hack! :classic:
Freestyler
12-28-2002, 09:04 PM
Is there any way to make it so that the link to the Custom Page shows in the postbit ONLY if the user actually has a Custom Page?
So that way people won't have to guess whether or not a user has a Custom Page, before they click the link?
Amazing hack btw, I love it :)
Solice
12-29-2002, 12:44 AM
awesome hack ^_^
Freestyler
12-29-2002, 08:24 AM
bump :classic:
Evil Chris
01-21-2003, 03:25 PM
Installed. Works great, and my users love it.
Thanks VeloCD.
rootnik
01-26-2003, 06:05 AM
Velocd,
Great idea! Installation was easy, thanks for the hack :)
Jmonto
02-02-2003, 12:16 PM
One questions did any one get an error with the first query?
alter table user
add custompageviews int(20) not null default'0'
Mine comes back saying the 0 isnt valid.
thanks
forumsinfo
02-02-2003, 10:41 PM
Velocd,
you helped me a lot.
GoTTi
02-03-2003, 04:31 AM
ok im getting confused...
in the help file...this info here...
Now for the somewhat annoying parts. Find:
PHP:
$cpnav[7]="#1C5780";
And place below it:
PHP:
$cpnav[8]="#1C5780";
Wherever $cpnav[7]="#1C5780"; shows up, you need to add the $cpnav[8] bit.
Do this also for MEMBER2.PHP, PRIVATE.PHP, and USERCP.php (which should all be alittle easier).
and after making the modifycustomimage_bit
MAKE SURE you modify the above template, such as the description and restrictions, to your own preference. Also where each and every { secondaltcolor} and { firstaltcolor} is, you will want to remove that space. I currently use custom replacement sets, so you will have to modify these colors to your liking, because I'm sure the default look will look very bland.
Please clear it up for me...I am not understanding what to do with these instructions..
Might be cuz I haven't got enough sleep or soemthing in past week, but it is throwing me off...lol
Colon33
02-05-2003, 01:40 AM
Hey Velo Cd. Any word on making the pages updated via Custom Fields? or something like that? 1 Image field.. an intro field and maybe a body field? With one MAIN template to edit? Doesnt matter if they all look alike. But i would really think this would go over even better.
leviw
02-06-2003, 07:57 PM
Sounds like almost exactly what I have been looking for, does anyone have it up and running that I could preview?
Im also very concerned about allowing users full html access, so if anyone has modded this to prevent certain malicious code, or more importantly to me if they have made it easier for non-code savvy users to input info, please let us know. =)
cklaszlo
02-07-2003, 01:46 PM
I'd like to see what it looks like too? Thanks
leviw
02-13-2003, 02:33 PM
Okay, downloaded it and checked the pics in the zip. For anyone else wondering what the finished board looks like, here are some examples:
www.sightunseen.org/temp/acp_shot.gif
www.sightunseen.org/temp/custompage_shot.gif
www.sightunseen.org/temp/custompage_shot2.gif
www.sightunseen.org/temp/interface_shot.gif
www.sightunseen.org/temp/userprofile_shot.gif
Any word on upgrading to vb code instead of html, or a more friendly user interface? :paranoid:
cklaszlo
02-13-2003, 03:57 PM
Thanks for posting these!!! Big help.
Floris
03-02-2003, 08:40 AM
One downside to this hack, the attachment feature is not used to let users upload their images to the server, and then use $custompage_image anywhere in their text. Now they are still required to upload it some place else :/
Or am I missing something ?
Koutaru
03-28-2003, 02:22 AM
Thanks for the screen :) now I know if I want to install. Is there any way to have this NOT in the usercp? Because my navigation in usercp is pretty full do to vbpad and I added a separate avatar and sig section too
XD
msimplay
03-28-2003, 07:46 PM
i can't seem to get it to work on version 2.3 version 3
on a clean install
blank page when i click on custom page
I got the same prob! Any hints?
MetroSports82
04-18-2003, 12:20 PM
02-02-03 at 09:16 AM Jmonto said this in Post #82 (https://vborg.vbsupport.ru/showthread.php?postid=349427#post349427)
One questions did any one get an error with the first query?
alter table user
add custompageviews int(20) not null default'0'
Mine comes back saying the 0 isnt valid.
thanks
i know i'm kinda late with this.. monto, try adding a ';' at the end of that first query. i think thats what it was missing. otherwise, i have this working well on 2.2.9. ;)
irn-bru
04-20-2003, 02:42 PM
This is about the most time consumeing hack I have
installed to date and yet so easy.
I was missing.
eval("standardredirect(\"".gettemplate("redirect_updatethanks")."\",\"usercp.php ?s=$session[sessionhash]\");");
}
Due to my own mistake and also in admin/user.php
there is 2 lines with.
makeyesnocode("Use email notification by default","emailnotification",$user[emailnotification]);
And also I have the vb members photo hack installed
and had problems with cpnav[8] I had to rename this
to cpnav[10] in all the file mods and template mods.
That did throw me off a little, but other than that the
hack works well. If I could recommend some any
thing it would be some cosmetic template changes
and also some buttons that will format the txt a wysiwyg
editer or something to that affect.
Here is s screen shot of a users page with the
cosmetic template changes.
Koutaru
04-24-2003, 11:45 PM
any updates whether it works on 2.30? I really want to check before I install it =/
Keyser S?ze
05-04-2003, 10:25 PM
any1 get this to work in 2.3.0?
Koutaru
05-05-2003, 02:32 AM
I can't believe it! I have it working in my version of 2.30 ^^;.. yes!
ryans
07-13-2003, 06:12 PM
great hack. I just installed it in 2.3.0, I was wondering how all users can view the pages. i enabled the members list. also, my page counter does not go up for some reason.
thanks!
Royal
08-02-2003, 08:52 PM
Parse error: parse error in /*******/member.php on line 1705
the last line is ?> what could be the problem ?
Royal
08-02-2003, 09:13 PM
fixed :)
Royal
08-03-2003, 02:09 PM
ok i have some suggestions on this GREAT hack
- the page viewable in profile (under the normal fields) .. or tru the link (like its now) admins can select that
- the use of bbcodes instead of HTML, i guess thats pretty easy using vbulletin
- special codes like [username] = shows the username of the user that is viewing the profile, or [hits] shows the current hits the profile had
- tagboard (ive installed profile tagboard by the_wanderer)
- image upload functions after they reach an amount of posts (eg. 1000 posts = 2 images, 3000 posts = 5 images)
hope u can add these functions very soon to this GREAT hack, thnx for making something like this i realy like it.
greets.
pucca
08-19-2003, 11:44 PM
Does anyone how to take off the header from the custom pages? :(
(edit) i got it ;)
DiscussAnything
10-23-2003, 06:44 PM
Awesome hack, just did an installation without any problems :)
One question though. I changed it so that only certain usergroups have access (as opposed to the postcount). When I try to view the custom page for a user that doesnt have one or is not allowed, it still loads everything: the header and the 'body' bit, which obviously is empty. What do I need to do to add an errormessage, that the selected user doesnt have a custom page?
Also, when I do member.php?action=getcustompage (no user is selected) you get the errormessage that that users page has been disabled due to abuse. Could that be altered to show that no userid was selected?
thanks
Rampag33
11-04-2003, 06:16 AM
If anyone got this to work on vb232 and have the change of instructions I would love to install this hacc.
bandersen
12-03-2003, 04:42 PM
I have it working, but what if a member wants to upload an image that is not on some other server... ?
mfacer
12-10-2003, 12:43 PM
i have installed the hack now - and I have changed a bit to that the user can only use VbCode, NOT html code. Any html code is not parsed, its displayed.... to do this, I change the updatecustom function bit....
above the insert to the DB, add the following line
//strip characters and do vB code
$custompage = bbcodeparse2($custompage,0,1,1,1);
that will turn the text the user enters in to the relevant code.... :)
the problem is, when the text is loaded to be edited again, I cant seem to find the function to turn it back in to vbCode.... anyone know how?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.