View Full Version : Give Your Users a Custom Page on Your Site
amykhar
07-09-2005, 10:00 PM
This Extension for Vbulletin 3.5 offers forum members the ability to create a custom profile page (or pages) on your site.
Current Features
List of Members with Personal Pages
Individual Shoutbox/Guestbook on Each User's Personal Page
An Archive of "Shouts" for Each User
Moderators Can Delete Offensive Shouts
Moderators Can Delete Personal Pages
Users Can Report Offensive Pages
Tracks Page Views to Each Personal Page
Indicates When the Page Was Last Updated
Usergroup based permissions
Uses the VBulletin Editors. Understands BBCode and HTML.
Planned Features
Show Users Currently Browsing User Pages
Allow Users to Have More Than One Page
Allow Users to Upload Files
A File Manager for User Pages
The Ability to Search User Page Content
Links to Featured User Pages on Forum Home
FAQ
How do I configure what forum report threads should go to?
At the top of userpage.php, there are several clearly documented variables that you can edit. One of these establishes the forumid that you want reported pages to be reported to.
Demonstration
http://www.eaforums.com/forums/userpage.php?do=list
http://www.eaforums.com/forums/userpage/amykhar.html
http://www.eaforums.com/forums/userpage/thinkerlady.html
Updates: https://vborg.vbsupport.ru/showpost.php?p=911906&postcount=970
-------------
This hack will always be free, however your donations are kindly accepted and will help towards further development. If you donate, please leave me some info (either your forum site or username at vB.org) so that I can thank you. :)
https://vborg.vbsupport.ru/external/2010/02/12.gif (https://www.paypal.com/xclick/business=amykhar%40yahoo.com&item_name=UserPage+Donation&no_shipping=1&cn=Your+Comments&tax=0¤cy_code=USD)
sirbutts
07-10-2005, 12:57 AM
Sweet hack. I won't download it now - but give me a pm when you got it fully done :)
Christine
07-10-2005, 01:15 AM
Amy -- this is sweet! An awesome addon for donating members. :D
I have no suggestions as I just glanced at the screen shots, but am getting ready to roll my 3.5 test site out to the subscribers to play with. I will load this and get their feedback for you (once it is filtered for reasonableness, of course :p )
Edit -- I guess that is the first request, to make it a usergroup specific permission. :)
amykhar
07-10-2005, 01:19 AM
Amy -- this is sweet! An awesome addon for donating members. :D
I have no suggestions as I just glanced at the screen shots, but am getting ready to roll my 3.5 test site out to the subscribers to play with. I will load this and get their feedback for you (once it is filtered for reasonableness, of course :p )
Edit -- I guess that is the first request, to make it a usergroup specific permission. :)
It already is, Christine. You can control in the admincp who can create, view and moderate them.
twoseven
07-10-2005, 01:48 AM
one thing maybe you want to print an error or something if one goes to a page where a user hasnt set up their page i was going to random pages and seeing no data like "this user hasnt set up a page yet" type of error.
i'm working on getting my production server back up with 3.5 will be able to help once thats up and kicking
amykhar
07-10-2005, 01:50 AM
one thing maybe you want to print an error or something if one goes to a page where a user hasnt set up their page i was going to random pages and seeing no data like "this user hasnt set up a page yet" type of error.
Good idea. I put in a basic message and updated the zip.
amykhar
07-10-2005, 02:34 AM
I thought I was done with this for a while, but I seem to be in a coding frenzy today. I have added the ability to moderate the content of the pages.
I have also added basic WOL functionality.
If you have already installed, upgrading is simple:
1. Import the plugin
2. Replace the contents of the userpage template with:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr><td class="alt1" width="100%" >
$pagedata
</td>
</tr><tr><td align="right" class="tcat">
<if condition="$showeditlink"><a href="userpage.php?do=edit">Edit Your Page</a><br /></if>
<if condition="$showmodlink"><a href="userpage.php?do=moderate&userid=$userid">Moderate This Page</a></if>
</td></tr></table>
3. Reupload the userpage.php file.
The zip file includes the latest version.
Nordinho
07-10-2005, 02:54 AM
looks good, anyway of getting a guestbook in??
amykhar
07-10-2005, 03:01 AM
looks good, anyway of getting a guestbook in??
Yes. I think it's doable as an addon. Let me think about the best way to implement it.
Amy
ranger2kxlt
07-10-2005, 03:01 AM
Will this only work for beta? has it been tested on 3.0.x?
amykhar
07-10-2005, 03:02 AM
Will this only work for beta? has it been tested on 3.0.x?
This is the 3.5 mod section. Nothing here works on 3.0.x. I generally code for the most recent release only, and only do work on older versions when filling service requests.
Sorry.
Amy
COBRAws
07-10-2005, 03:26 AM
would it be possible to access user custom pages as this:
members.yoursite.com/user
It would be AWESOME, willing to pay if so.
twoseven
07-10-2005, 03:27 AM
that is possable with a modrewrite rule
MediaHound
07-10-2005, 04:19 AM
Seems cool - I'm looking for something like this for my 3.5, but with a photo gallery for the users as well.
Any suggestions?
Kirk Y
07-10-2005, 04:27 AM
I like the idea and will install on my forum! Nice job, god you're pumping out a lot of hacks!
amykhar
07-10-2005, 05:07 AM
that is possable with a modrewrite rule
Yep, and that will be one of the next steps I work on.
amykhar
07-10-2005, 05:08 AM
I like the idea and will install on my forum! Nice job, god you're pumping out a lot of hacks!
I tend to code in spurts - especially when I'm overhauling my own site. I just share what I do for me with you guys.
Dream
07-10-2005, 06:56 AM
uhm just thinking out loud, showing a list of users with pages, like userpage.php?do=list or something, sorting by name or last updated...
awww this alter tables :( nice job though
Nordinho
07-10-2005, 11:14 AM
Yes. I think it's doable as an addon. Let me think about the best way to implement it.
Amy
great ;)
Bad Bunny
07-10-2005, 12:37 PM
This is amazing. I used to have something like this for vb2 but nowhere near as amazing!
I might be throwing this in for people who buy stuff from our little "store"!
amykhar
07-10-2005, 02:45 PM
Teaser: I have rewrite working
http://www.eaforums.com/forums/emeleel
Amy
Christine
07-10-2005, 03:10 PM
Amy,
Color me stupid here, but I can't find the links to create the page while logged in as a user who has permission to do so. I likely missed a step somewhere multi-tasking last night.
I have updated for the new zip this morning but still am not seeing this.
Where should I be looking and what step did I miss?
amykhar
07-10-2005, 03:19 PM
Amy,
Color me stupid here, but I can't find the links to create the page while logged in as a user who has permission to do so. I likely missed a step somewhere multi-tasking last night.
I have updated for the new zip this morning but still am not seeing this.
Where should I be looking and what step did I miss?
If the user goes to their own page, there is an edit link. I need to change that a bit though so it only shows for users who have permission to create a page.
Amy
bigcurt
07-10-2005, 03:29 PM
Sup amy, great feature. If I had 3.5 I would install right away, I am actully looking for it for 3.0.X. If you get it ported over ( I know you only code for recent things I know ) but it is worth a shot, so if ya get it ported over please tell me or release it or anything u want.
Thanks
Big curt
Christine
07-10-2005, 03:32 PM
Oh! So you access it through your profile.
Can you add a link to the UserCP for them to setup/edit?
Also, the Moderate link is not caching the templates. (9 queries for uncached templates)
Uncached templates: editor_clientscript (1)
Uncached templates: editor_jsoptions_font (1)
Uncached templates: editor_jsoptions_size (1)
Uncached templates: editor_smilie (28)
Uncached templates: editor_smiliebox (1)
Uncached templates: editor_smiliebox_row (7)
Uncached templates: editor_toolbar_on (1)
Uncached templates: newpost_disablesmiliesoption (1)
Uncached templates: userpage_edit (1)
One other request if I can. :) Would there be a way to add a notify mod on this so that our users can let the mod team know if there is something not appropriate or of concern?
Thanks so much for this mod. :)
twoseven
07-10-2005, 04:12 PM
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/eaforums/public_html/forums/userpage.php on line 304 thats what i got when going to the mod rewrite page (of course you probably know) just a heads up
strange it worked the 2nd time... you must be working on it worked 1/5 times(i even tryed the old way of going directly to the username and same error
amykhar
07-10-2005, 04:35 PM
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/eaforums/public_html/forums/userpage.php on line 304 thats what i got when going to the mod rewrite page (of course you probably know) just a heads up
strange it worked the 2nd time... you must be working on it worked 1/5 times(i even tryed the old way of going directly to the username and same error
Yeah. I am working on the list of users who have pages. I think I've just about got that done.
Christine, I'll get the templates cached. And, sure, we can put links to edit in the usercp.
And, if you wanted to, you could probably run the content through the naughty words filter and bleep them out.
Amy
amykhar
07-10-2005, 04:37 PM
I have a basic list going:
http://www.eaforums.com/forums/userpage.php?do=list
It allows you to set how many to show per page by simply changing one line of code in the init section.
Should anything else be on this page?
Christine
07-10-2005, 05:07 PM
Thanks Amy!
Would a 'date page last updated' be a possibility?
Dream
07-10-2005, 05:15 PM
on the list, last update date... on the page itself, views, rating, send a pm link, let the user upload files... just suggesting
amykhar
07-10-2005, 05:21 PM
on the list, last update date... on the page itself, views, rating, send a pm link, let the user upload files... just suggesting
Some good ideas. Some, I can do right away. Others, will take some time.
amykhar
07-10-2005, 07:54 PM
For those of you who haven't clicked the install button, you missed the update email. ;)
dreck
07-10-2005, 08:29 PM
NICE!!!.... *install*
amykhar
07-10-2005, 08:31 PM
NICE!!!.... *install*
Please let me know how this round of installation went. I just updated the install file and want to make sure all is well.
Amy
Christine
07-10-2005, 10:04 PM
And then some of us did click install but never check our emails. Heh.
Updated just fine and working with no problems!
Dream
07-10-2005, 10:05 PM
another... spiderable by google if it isnt already, dunno how
amykhar
07-10-2005, 10:09 PM
I think the short urls will handle Google.
You would just need to tinker with your template in the list to use the short urls instead of the dynamic ones I used. Next update, I'll have the short urls in that list.
amykhar
07-10-2005, 10:09 PM
And then some of us did click install but never check our emails. Heh.
Updated just fine and working with no problems!
Christine, do you feel like sharing a url or two that I can use in the examples list in the first post?
justindwhite
07-11-2005, 01:44 AM
Everything seems to be working good, except when I try to s et the permissions, this is what im getting.
Christine
07-11-2005, 01:46 AM
Hi Amy,
I am moving servers in another week and the test site is using a temp domain. When I get moved and DNS is propogated, I will send them over.
amykhar
07-11-2005, 01:53 AM
Everything seems to be working good, except when I try to s et the permissions, this is what im getting.
The phrases didn't install to the language you are using. Go to the phrase manager and copy them over.
Also, make sure to update the bitfields or the edits won't stick.
Sovereign
07-11-2005, 02:19 AM
Excellent hack! I had the "phrases AWOL from Admin CP" issue, fixed that. Unfortunately, the SQL quieries were not executed, and I had to manually add "ALTER TABLE ".TABLE_PREFIX."usergroup ADD userpagepermissions INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ;" myself.
The Avatar
07-11-2005, 05:15 AM
Could you include an un-installer script in this hack?
It would be a good feature and I would probably install it if it had this function.
shiva
07-11-2005, 09:12 AM
Looks very cool. :)
Be sure to install this one when I get my new server in a couple months.
File uploading would be very nice, I have a lot of people who need some space, and when I told them about some of the new features with VB and "additions", this was one they really wanted.
By the way, I noticed that there's a blog type listing on your forum home, is this part of the extension, or is that manually added?
amykhar
07-11-2005, 11:00 AM
Looks very cool. :)
Be sure to install this one when I get my new server in a couple months.
File uploading would be very nice, I have a lot of people who need some space, and when I told them about some of the new features with VB and "additions", this was one they really wanted.
By the way, I noticed that there's a blog type listing on your forum home, is this part of the extension, or is that manually added?
Those are links to my members external blogs and predate what I'm working on now.
I have file uploading working with another script I'm working on. I'll see about pulling it into this one. But, I have a couple more things I want to add to it first.
Amy
amykhar
07-11-2005, 11:02 AM
Could you include an un-installer script in this hack?
It would be a good feature and I would probably install it if it had this function.
Yeah, the installer needs work. I'll be improving that and adding updrade and uninstall stuff as I go. This is the first time I've ever included an installer with my stuff. I usually make y'all go through the contortions of adding all the phrases, queries and templates manually. I'm evil like that. :D
dreck
07-12-2005, 08:20 PM
Please let me know how this round of installation went. I just updated the install file and want to make sure all is well.
AmySorry I have been very busy! I just got time to install this & I am not sure where I went wrong? I was trying to do too many things at once. :rolleyes:
When I goto Permissions I don't see anything for "userpage", But their is 4 check boxes at the bottom that are blank? I am guessing this is the "userpage" permissions? But ofcourse if I select them I still get the error I dont have permission. :(
I will look around & see if I can find out what I did wrong.
Thanks!
amykhar
07-12-2005, 08:27 PM
Sorry I have been very busy! I just got time to install this & I am not sure where I went wrong? I was trying to do too many things at once. :rolleyes:
When I goto Permissions I don't see anything for "userpage", But their is 4 check boxes at the bottom that are blank? I am guessing this is the "userpage" permissions? But ofcourse if I select them I still get the error I dont have permission. :(
I will look around & see if I can find out what I did wrong.
Thanks!
The phrases for some reason were screwy with that install file. I uploaded another one. A few posts up, I outlined how to fix the problem by searching for one of the phrases and resaving it.
Chris M
07-12-2005, 09:06 PM
A couple of feature requests here amy :)
Perhaps a bbcode that can control what usergroups can see what content ;)
Let me explain:
I used to like this feature back in Logician's vB2 hack to create custom pages :)
So you can put like:
Only moderators, super mods, admins and subscribing members can see this
You don't have to have multiple groups - You can have singular groups as well :)
Also - Not sure if you have any idea of doing this, but a "comment" feature could be good, and also a "report" feature to report pages which have bad content :speechless:
Satan
The phrases didn't install to the language you are using. Go to the phrase manager and copy them over.
Also, make sure to update the bitfields or the edits won't stick.
What are the phrase names? I don't see any in the phrase manager. Can you post the phrases so I can do them manually? Thanks.
Sovereign
07-13-2005, 01:33 AM
is it possible to expand the hack? As in allowing users a free webpage, geocities like thing? I mean, more than one page.
Sovereign
07-13-2005, 01:44 AM
Is anyone else having install trouble? The hack idea is great, but I'm having to run all queries manually because of
"CREATE TABLE ".TABLE_PREFIX." `userpage` (
`userid` INT( 15 ) UNSIGNED NOT NULL ,
`pagedata` TEXT NOT NULL ,
`rating` INT NOT NULL ,
`dateline` INT( 10 ) NOT NULL ,
`username` VARCHAR(255) NOT NULL,
PRIMARY KEY ( `userid` )
);
the "`"s around the vars, I'm getting SQL errors. If I delet them, (username instead of `username`) it runs fine.
amykhar
07-13-2005, 01:46 AM
A couple of feature requests here amy :)
Perhaps a bbcode that can control what usergroups can see what content ;)
Let me explain:
I used to like this feature back in Logician's vB2 hack to create custom pages :)
So you can put like:
You don't have to have multiple groups - You can have singular groups as well :)
Also - Not sure if you have any idea of doing this, but a "comment" feature could be good, and also a "report" feature to report pages which have bad content :speechless:
Satan
Regarding the BB codes, any code that works on your board works on these pages.
I am going to do a guestbook and a ranking feature. The report button is a nice idea. Will do.
I am also going to add file uploads in the next release.
amykhar
07-13-2005, 01:47 AM
Is anyone else having install trouble? The hack idea is great, but I'm having to run all queries manually because of
"CREATE TABLE ".TABLE_PREFIX." `userpage` (
`userid` INT( 15 ) UNSIGNED NOT NULL ,
`pagedata` TEXT NOT NULL ,
`rating` INT NOT NULL ,
`dateline` INT( 10 ) NOT NULL ,
`username` VARCHAR(255) NOT NULL,
PRIMARY KEY ( `userid` )
);
the "`"s around the vars, I'm getting SQL errors. If I delet them, (username instead of `username`) it runs fine.
The install script ran fine on my test board, but I'll go through and tweak it to get rid of those.
Amy
amykhar
07-13-2005, 01:48 AM
is it possible to expand the hack? As in allowing users a free webpage, geocities like thing? I mean, more than one page.
I am considering that as a separate release as an option instead of this one.
Chris M
07-13-2005, 01:51 AM
Regarding the BB codes, any code that works on your board works on these pages.
I am going to do a guestbook and a ranking feature. The report button is a nice idea. Will do.
I am also going to add file uploads in the next release.
You mis-understand - This isn't a bbcode that you can add via the manager - It would be one you add to this hack to include in these pages and the forum;)
Satan
amykhar
07-13-2005, 01:53 AM
You mis-understand - This isn't a bbcode that you can add via the manager - It would be one you add to this hack to include in these pages and the forum;)
Satan
I'll put that one on the maybe list then.
Sovereign
07-13-2005, 02:00 AM
OK, the install script kept hitting SQL errors, so I ran it manually. No offense, but the script is really buggy, at least on my server.
Chris M
07-13-2005, 02:10 AM
I'll put that one on the maybe list then.
Thanks :)
Satan
theArchitect
07-13-2005, 03:36 AM
Thanks :)
Satan
I am having a sligh issue with setting the usergroup permissions.
I have gone to the user group page and scrolled to the bottom, but all of the options are blank (i.e. no text). I think I must have done something wrong.
Also, there was no .httaccess file in the folder I downloaded.
amykhar
07-13-2005, 11:22 AM
The .htaccess file is most definitely in the zip. I just checked. Regarding the phrases, the installer has a glitch. I haven't got time to redo it this morning, but hopefully will this afternoon.
theArchitect
07-13-2005, 11:28 AM
The .htaccess file is most definitely in the zip. I just checked. Regarding the phrases, the installer has a glitch. I haven't got time to redo it this morning, but hopefully will this afternoon.
Maybe it is a Mac thing i.e. .httaccess is being read as a hidden file and therefore not being displayed. Because I just downloaded the zip file again and I can't see it.
amykhar
07-13-2005, 11:38 AM
Maybe it is a Mac thing i.e. .httaccess is being read as a hidden file and therefore not being displayed. Because I just downloaded the zip file again and I can't see it.
Try setting your machine to show hidden files. :) I don't know how that's done on a mac, but there must be a setting somewhere. :)
twoseven
07-13-2005, 02:15 PM
there is i dont even know where its at on a mac (and i use one). just upload the zip to the server and unzip it there. thats quicker anyhow than uploading independant files
Bad Bunny
07-13-2005, 03:46 PM
Maybe it is a Mac thing i.e. .httaccess is being read as a hidden file and therefore not being displayed. Because I just downloaded the zip file again and I can't see it.
I have the same issue. You need Tinker Tool to view hidden files. All files that start with . are hidden.
It's a very easy to use tool. I turn the "view hidden files" on to edit htaccess, and then back off.
theArchitect
07-13-2005, 08:37 PM
I have the same issue. You need Tinker Tool to view hidden files. All files that start with . are hidden.
It's a very easy to use tool. I turn the "view hidden files" on to edit htaccess, and then back off.
Thanks. Worked like a charm.
Now, to get the hack working. :-)
GamerzWorld
07-14-2005, 06:46 AM
Hello, i recently tryed to imnstall your hack however was met with problems (it just didnt work). I decided i no longer wanted to try and uninstalled the hack. Yesterday i upgraded by boards to beta 4 and now when trying to change usergroups i have this error
MySQL Error : Unknown column 'userpagepermissions' in 'field list'
Error Number : 1054
Date : Thursday, July 14th 2005 @ 08:43:27 AM
Script : http://www.mirzone.net/forum/admincp/usergroup.php
Referrer : http://www.mirzone.net/forum/admincp/usergroup.php?do=edit&usergroupid=2
Username : Merlin
Classname : vb_database
Its related to this hack, and i presume i have to undo the sql changes? Anyone able to help please?
fpouk
07-14-2005, 07:26 AM
Hello, i recently tryed to imnstall your hack however was met with problems (it just didnt work). I decided i no longer wanted to try and uninstalled the hack. Yesterday i upgraded by boards to beta 4 and now when trying to change usergroups i have this error
MySQL Error : Unknown column 'userpagepermissions' in 'field list'
Error Number : 1054
Date : Thursday, July 14th 2005 @ 08:43:27 AM
Script : http://www.mirzone.net/forum/admincp/usergroup.php
Referrer : http://www.mirzone.net/forum/admincp/usergroup.php?do=edit&usergroupid=2
IP Address : 86.131.18.250
Username : Merlin
Classname : vb_database
Its related to this hack, and i presume i have to undo the sql changes? Anyone able to help please?
same here... i looked in the install file for this modification to see what database changes to drop and i dropped everything that i seen that this hack added... also i uploaded a clean usergroup.php and still get the error. Cannot change any usergroup settings and submit it without getting that error.
I couldnt get the hack working right for some reason thats why i wanted to uninstall it.
amykhar
07-14-2005, 02:08 PM
This is why I hate freaking install files. It takes all the control and common sense out of the process. I've removed the zip file because people don't seem to be reading that the install file had a glitch that I didn't have time to work on at the moment.
You need to delete the bitfield_userpage.xml file.
Amy
GamerzWorld
07-14-2005, 02:34 PM
MySQL Error : Unknown column 'userpagepermissions' in 'field list'
Error Number : 1054
Date : Thursday, July 14th 2005 @ 04:32:28 PM
Script : http://www.mirzone.net/forum/admincp/usergroup.php
Referrer : http://www.mirzone.net/forum/admincp/usergroup.php?do=edit&usergroupid=2
Username : Merlin
Classname : vb_database
amykhar
07-14-2005, 02:36 PM
MySQL Error : Unknown column 'userpagepermissions' in 'field list'
Error Number : 1054
Date : Thursday, July 14th 2005 @ 04:32:28 PM
Script : http://www.mirzone.net/forum/admincp/usergroup.php
Referrer : http://www.mirzone.net/forum/admincp/usergroup.php?do=edit&usergroupid=2
Username : Merlin
Classname : vb_database
Try rebuilding your bitfields the way you did when you first installed it. First remove the bitfield_userpage.xml, then rebuild bitfields.
GamerzWorld
07-14-2005, 02:39 PM
That worked, id upgraded as well which i think caused problems. For anyone else having problem run
admincp/index.php?do=buildbitfields
Ron1n
07-14-2005, 02:56 PM
this is a great hack concept, a realy great mod
amykhar
07-14-2005, 04:11 PM
OK. I have redone the installation script. It's working fine on my test board. I uploaded version 1.1b which only contains an updated installation script. If 1.1 installed fine for you, you don't need to get or install this version.
Hopefully, I will be able to release another update this weekend that will contain:
a) Page Views
b) A report button people can use to report naughty content to the admins.
c) File uploads
d) Page ratings
Amy
mrgizmo
07-15-2005, 11:37 AM
Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 1006
Unable to add cookies, header already sent.
File: /home/****/public_html/forums/includes/class_core.php
Line: 2651
:ermm:
Everything was running fine until I started the admincp/index.php?do=buildbitfields. Now I am unable to access the forum index or acp index. I keep getting those errors.
I've deleted the cookies and now I see a "login" screen, however everything is mirrored and will not allow me to login. This is the same with the acp.
tomjinx1
07-15-2005, 11:47 AM
This is a really great and helpful hack for me. I was wondering one thing though. I have only 1 group that I'm allowing to create a custom page. Is there a way that you can code in a little something so that a link doesn't show on users that do not have permissions to create a page? Just to clarify what I'm asking, if I go into a user's profile, there is a link to their personal page. I would like to have this link only display for someone that has permissions to have one and not display for those that do not have permissions.
Would this be something easily done?
Tom
amykhar
07-15-2005, 12:33 PM
This is a really great and helpful hack for me. I was wondering one thing though. I have only 1 group that I'm allowing to create a custom page. Is there a way that you can code in a little something so that a link doesn't show on users that do not have permissions to create a page? Just to clarify what I'm asking, if I go into a user's profile, there is a link to their personal page. I would like to have this link only display for someone that has permissions to have one and not display for those that do not have permissions.
Would this be something easily done?
Tom
I have that in the new version.
amykhar
07-15-2005, 12:34 PM
Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 1006
Unable to add cookies, header already sent.
File: /home/****/public_html/forums/includes/class_core.php
Line: 2651
:ermm:
Everything was running fine until I started the admincp/index.php?do=buildbitfields. Now I am unable to access the forum index or acp index. I keep getting those errors.
I've deleted the cookies and now I see a "login" screen, however everything is mirrored and will not allow me to login. This is the same with the acp.
Not sure what's happening for you. I have not seen that error nor has anybody else reported it.
mrgizmo
07-15-2005, 12:56 PM
I ended up fixing it with a forum upgrade (beta 4). I do believe the issue was related to the bitfield command and beta 3. I am not 100% sure the relation, but the upgrade fixed it (thank god). *does db backup* LOL.
tomjinx1
07-15-2005, 01:31 PM
Does this newest version fix the missing text in the group permissions? I have looked everywhere through this thread and can't find how to fix that problem.
amykhar
07-15-2005, 02:52 PM
Does this newest version fix the missing text in the group permissions? I have looked everywhere through this thread and can't find how to fix that problem.
The missing text was an installer problem and yes, I believe the new installer handles that.
tomjinx1
07-15-2005, 02:55 PM
Great Thanks...
Martin
07-15-2005, 08:56 PM
The missing text was an installer problem and yes, I believe the new installer handles that.
No, it doesn't. My usergroup permissions are all blank :ermm:
I just installed this like 10 minutes ago. I had all kinds of problems.
The "admincp" folder is called "adminp"
The instructions call for "install_userpage.php". It's "installuserpage.php" in the zip file
I got a database error creating the table. I finally just created it manually and removed the query from the installer.
There is no mention of what the "userpageupdate.php" is for. No instructions on whether or where to upload it. I would assume, since you used a folder structure, it goes in the forum root, but that's just a guess. Does it need to be uploaded at all?
No text in the Usergroup Permissions
This has the potential to be a GREAT addon for boards. Keep up the good work :)
amykhar
07-15-2005, 09:00 PM
No, it doesn't. My usergroup permissions are all blank :ermm:
I just installed this like 10 minutes ago. I had all kinds of problems.
The "admincp" folder is called "adminp"
The instructions call for "install_userpage.php". It's "installuserpage.php" in the zip file
I got a database error creating the table. I finally just created it manually and removed the query from the installer.
There is no mention of what the "userpageupdate.php" is for. No instructions on whether or where to upload it. I would assume, since you used a folder structure, it goes in the forum root, but that's just a guess. Does it need to be uploaded at all?
No text in the Usergroup Permissions
This has the potential to be a GREAT addon for boards. Keep up the good work :)
The userpageupdate.php was for an earlier upgrade. Ignore it.
I think I am going to bail on using install files. The damn things are more trouble than they are worth. I'll rewrite the installation instructions so that y'all can manually add the phrases, templates and queries.
Amy
Martin
07-15-2005, 09:17 PM
The userpageupdate.php was for an earlier upgrade. Ignore it.
I think I am going to bail on using install files. The damn things are more trouble than they are worth. I'll rewrite the installation instructions so that y'all can manually add the phrases, templates and queries.
Amy
Thanks :)
I wasn't ragging on you, I promise. Just pointing out the problems I had. I do think this is a great addon :)
amykhar
07-15-2005, 09:20 PM
I redid the zip file. No more install file. Real coders don't need no stinkin install file to tweak their boards anyway, right? :D
ThePimp
07-16-2005, 11:10 AM
Does this newest version fix the missing text in the group permissions? I have looked everywhere through this thread and can't find how to fix that problem.
I upgraded to Beta4, and the blank Usergroup permission settings are working now.
jesus likes pie
07-16-2005, 06:59 PM
Query
CREATE TABLE userpage (
vBulletin Message
An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
help please.
dreck
07-16-2005, 07:11 PM
I redid the zip file. No more install file. Real coders don't need no stinkin install file to tweak their boards anyway, right? :Dhehe..
Dream
07-16-2005, 09:21 PM
cool working fine
do I need to link "userpage.php" somewhere for people to create their pages?
attaching the userpage templates xml file to use with the template manager (https://vborg.vbsupport.ru/showthread.php?t=91038) if anyone need
edit: and what is that .htaccess for?
jesus likes pie
07-16-2005, 09:56 PM
post # 88 please...
Dream
07-16-2005, 10:03 PM
post # 88 please...
how did you run that query? that doesnt seem to be the full query in the install.txt
amykhar
07-16-2005, 10:12 PM
help please.
That's not the full query. You only copied the first portion. Get it all on one line, copy and paste.
Dream
07-17-2005, 08:07 AM
let me suggest a link in the userpage.php?do=list "create your page", cause im not finding it anywhere... and then you can just use the list as a link to the pages
also in the list there seems to be an empty row in the bottom of the list.
<tr>
<td class="tcat" align="left"></td>
<td class="tcat" align="right"></td>
</tr>
oh thats the userpage_list_bottom template, $prevlink/$nextlink are empty for me
im gonna use it to put the "create your page" link
another minor issue, "Users With Personal Pages" used as title is hardcoded, also "Page Last Updated on", also you should use "vbdate($vbulletin->options['dateformat'], $lastupdate, true)" instead 'Y-m-d' format, "'s Personal Page" is hardocoded, maybe a phrase in the format "Editing {1}'s Personal Page", also if you leave your page empty it should consider you dont have a page (i was thinking about a "delete page" but then i had the idea to check that)
sorry if i sound annoying :P just giving feedback
oh and it really hurt you replied jesus like pie but not me
edit: and wol plugin is creating the wrong userpage link for me, seems $seeuserid doesnt exist
edit2: heres the userpage_list_bottom im using
<if condition="$show['member']">
<tr>
<td class="tcat" colspan="2" align="right"><a href="userpage.php?$session[sessionurl]">Go to my page</a></td>
</tr>
</if>
</table>
amykhar
07-17-2005, 03:06 PM
The link in the usercp is in the next version. I just don't feel like creating a new release and all the problems that entails for such a minor change.
Sovereign
07-17-2005, 03:25 PM
The link in the User CP is just a template edit. I even put it into the navbar under "Quick Links" too... Regsiter at my forums if you want, and see.
Dream
07-17-2005, 04:59 PM
is that .htaccess for modrewrite
amykhar
07-17-2005, 05:04 PM
is that .htaccess for modrewrite
Yes. It is.
amykhar
07-17-2005, 05:04 PM
The link in the User CP is just a template edit. I even put it into the navbar under "Quick Links" too... Regsiter at my forums if you want, and see.
In my version, there is a check to see if the user has permission to create a member page before it shows the link.
jesus likes pie
07-17-2005, 06:48 PM
That's not the full query. You only copied the first portion. Get it all on one line, copy and paste.
O.K but you should have but it all on one line then...not divided it into like 8 different lines...
amykhar
07-17-2005, 07:00 PM
O.K but you should have but it all on one line then...not divided it into like 8 different lines...
It was a pasting error. But, I'll admit it does require some common sense on the installer's part. I should never count on you guys to have that, I guess. ;)
Dream
07-17-2005, 07:31 PM
edited
jesus likes pie
07-17-2005, 07:32 PM
nope :P
I'm very new to SQL queries and try to avoid (nice job vbulletin by scarying me when putting "THIS CANNOT BE REVERTED in big bold letters) *shudders*
O.K I'll try again this time.
jesus likes pie
07-17-2005, 07:40 PM
bla
ok i tried running this query and it didnt work either....as i said, i suck at queries..
CREATE TABLE userpage (userid INT( 15 ) UNSIGNED NOT NULL ,
*sigh*
Can you just give it to me without pasting errors?
sorry for my disability on this area.....
amykhar
07-17-2005, 07:49 PM
Dream, please don't release mods to this code here. I already have many new features added to the code. I am just working toward the next release. Views is already added in, and it ensures the user's views of their own page aren't counted.
Amy
jesus likes pie
07-17-2005, 07:55 PM
*sniff*
I really want this!
xxskullxx
07-17-2005, 07:59 PM
Pie
Run this whole block
CREATE TABLE userpage (
userid INT( 15 ) UNSIGNED NOT NULL ,
pagedata TEXT NOT NULL ,
rating INT NOT NULL ,
dateline INT( 10 ) NOT NULL ,
username VARCHAR(255) NOT NULL,
PRIMARY KEY ( userid ))
then run
ALTER TABLE usergroup ADD userpagepermissions INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL
Amy has written it standard, there is nothing confusing about it.
womensden
07-18-2005, 05:55 PM
looks to me that there are some things missing. I have to go into my profile to even get to my page to edit it. Did I miss something or is this just incomplete?
amykhar
07-18-2005, 06:18 PM
All you have to do is go to your page. The edit link is on the lower right corner.
womensden
07-18-2005, 06:35 PM
I know. But I would like a link that takes users to their page without having to go into their profile.
womensden
07-18-2005, 06:36 PM
Ok... I added a link to my navbar
amykhar
07-18-2005, 07:04 PM
ah. I just have a link to the list of members who have user pages on my nav menu. Then, people can see all the pages from there.
womensden
07-18-2005, 07:08 PM
what is that link?
amykhar
07-18-2005, 07:08 PM
<a href="http://www.eaforums.com/forums/userpage.php?do=list" target="_blank">http://www.eaforums.com/forums/userpage.php?do=list</a>
womensden
07-18-2005, 07:12 PM
ahh.. thanks! I couldn't find the link to list them all. That works better.
amykhar
07-20-2005, 01:58 AM
Another Teaser: Personal Shoutboxes.
http://www.eaforums.com/forums/userpage.php?do=main&userid=22
aethro
07-20-2005, 05:50 AM
oh that is a big teaser ^^ Looks great gonna install this :)
shiva
07-20-2005, 06:58 AM
Looks very nice, but I'm wondering on the server load with a shoutbox.
Also, I see a update 2 days ago, but I couldn't find info on what was updated?
Just curious anyway, I'm ordering my new server, so by the time I have it ready, maybe you will have file support by then?
This looks great, very nice, I'm sure my supporting members will like it as well.
amykhar
07-20-2005, 02:55 PM
An update is coming out soon. I have added:
1. User Shoutboxes/Guestbooks.
2. An archive of Shouts so that only the 10 most recent show on the user page.
3. The ability to report pages for bad content. Reports are posted to the forum of your choice. (Feel free to change that on your own to use email or PM)
4. Page Views
5. The ability for mods to delete shouts.
6. The ability for mods to delete user pages.
What's not there yet - file uploads.
Right now, I have to go through and phrase the code, which is going to take some time. Then, I have to write up the upgrade and install info. So, expect the release out tonight or tomorrow. But don't nag if it's not :D
Amy
amykhar
07-20-2005, 02:57 PM
Looks very nice, but I'm wondering on the server load with a shoutbox.
Also, I see a update 2 days ago, but I couldn't find info on what was updated?
Just curious anyway, I'm ordering my new server, so by the time I have it ready, maybe you will have file support by then?
This looks great, very nice, I'm sure my supporting members will like it as well.
The update two days ago wasn't to the code. I was adding a link to the member list in the first post.
Regarding the shoutboxes, the way these are done on the page, they are more like Guestbooks. And, you could call them that. They add one query to the page on a view and one if somebody shouts.
shiva
07-20-2005, 10:35 PM
Okay thanks for the answers. I won't nag either. :)
arurcard
07-20-2005, 11:19 PM
I have no link in my profile to create my page, nor any edit links for anyone else's pages. Yes i set the permissions. What'd i miss? :disappointed:
Here is a screen hsot of my page (admin)
http://uploads.drift-forums.com/files/123456.jpg
amykhar
07-20-2005, 11:23 PM
I'm not seeing two things on your page. The default phrase that your page isn't created yet and the footer with the create and moderate link.
Did you add all the phrases and templates?
arurcard
07-20-2005, 11:24 PM
I'm not seeing two things on your page. The default phrase that your page isn't created yet and the footer with the create and moderate link.
Did you add all the phrases and templates?
yes i did
amykhar
07-20-2005, 11:34 PM
For the record, you picked a lousy time to do a fresh install. I'm preparing the upgrade as we speak. ;)
Did you change any code in userpage.php?
arurcard
07-20-2005, 11:35 PM
For the record, you picked a lousy time to do a fresh install. I'm preparing the upgrade as we speak. ;)
Did you change any code in userpage.php?
no i did'nt
What will i have to change to do the upgrade?
Aslo, i saw you on my forums ill add you to a usergroup with permission
amykhar
07-20-2005, 11:40 PM
Thank you. I'll try to see what I can see on your site. A lot of phrases are added in the upgrade, and more templates and changes to the old templates. Don't bother editing your existing templates. The new ones should replace them.
arurcard
07-20-2005, 11:40 PM
Thank you. I'll try to see what I can see on your site. A lot of phrases are added in the upgrade, and more templates and changes to the old templates. Don't bother editing your existing templates. The new ones should replace them.
ok i'll sit tight and wait for the upgrade
amykhar
07-20-2005, 11:48 PM
I resolved Rob's problem. He hadn't added all the templates. One was skipped.
arurcard
07-20-2005, 11:51 PM
I resolved Rob's problem. He hadn't added all the templates. One was skipped.
yeah thanks alot, possible ETA on the upgraded version? Im going to wait for it before i announce the current one on my forum
amykhar
07-21-2005, 12:33 AM
I am trying to put together an install script that will work on the darn phrases. There are just too darn many of them to ask y'all to do them manually.
I'll be working throughout the night. Not sure when it will be done.
Amy
Sovereign
07-21-2005, 02:31 AM
YAY! Improved hack! Prepares to upgrade!
amykhar
07-21-2005, 02:43 AM
OK. I need a couple of brave souls to try out the new upgrade and install scripts before I announce this update to the general world please.
Amy
arurcard
07-21-2005, 03:10 AM
OK. I need a couple of brave souls to try out the new upgrade and install scripts before I announce this update to the general world please.
Amy
ill try out an install on my test site
arurcard
07-21-2005, 04:29 AM
i get a 404 error when i click upgrade and i get the following sql error when i click on user profile (goes with 404)
Database error in vBulletin 3.5.0 Beta 4:
Invalid SQL:
SELECT * FROM usershout WHERE ownerid = 1 ORDER BY shoutid DESC LIMIT 5;
MySQL Error : Table 'vb.usershout' doesn't exist
Error Number : 1146
Date : Thursday, July 21st 2005 @ 12:28:28 AM
Script : http://forums.drift-forums.com/userpage.php?userid=1
Referrer : http://forums.drift-forums.com/member.php?u=1
IP Address : 69.152.227.1
Username : Rob
Classname : vb_database
john1744
07-21-2005, 05:22 AM
I do not see an option in the Usergroup manager to allow access to the page. When I try to manually access the page: http://www.yoursite.com/forum/userpage.php?userid=1
then it gives me the old, "You do not have permission to access this page" error.
cecdah
07-21-2005, 12:01 PM
How do I rebuild/update the bitfields?
cecdah
07-21-2005, 12:27 PM
I figured it out. :)
Sovereign
07-21-2005, 12:29 PM
The upgrade script (upgradeuserpage.php) calls to installuserpage.php! This was not mentioned in the directions for upgrading, you might want to change that. I get SQL errors because the upgrade script does not install the shout tables, nor does it install some phrases. Thus, I had to do more manual queries! Also, you may want to create a dynamic link that can tell whether a user has a userpage or not. The link is userpage.php?do=create, which causes a DB error if you already have a userpage. Is there a way to tell (maybe based off userpage.php?do=list) whether a user has a page? If they do, display "Edit Userpage," but if they do not, display "Create Userpage?" Other than that, good work!
cecdah
07-21-2005, 12:34 PM
The upgrade script (upgradeuserpage.php) calls to installuserpage.php! This was not mentioned in the directions for upgrading, you might want to change that. I get SQL errors because the upgrade script does not install the shout tables. Also, you may want to create a dynamic link that can tell whether a user has a userpage or not. The link is userpage.php?do=create, which causes a DB error if you already have a userpage. Is there a way to tell (maybe based off userpage.php?do=list) whether a user has a page? If they do, display "Edit Userpage," but if they do not, display "Create Userpage?" Other than that, good work!
I was about to ask the same. I cannot edit my personal page after creating it, get a databaseerror. The link points to userpage.php?do=create, which causes a DB error if you already have a userpage. I cannot access my userpage after creating it because there are no link to the personal page exept for this. Furthermore, how to access other members userpages?
Sovereign
07-21-2005, 01:02 PM
Oh and one more thing: the installer script is full of duplicate phrases. I don't know why they are there as they cause duplicate key names etc. Like:
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', -1, 'kill_userpage', 'Delete This User\'s Page',1 ,'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 1, 'kill_userpage', 'Delete This User\'s Page',1 ,'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', -1, 'shoutbox_archive', 'Shoutbox Archive',1 ,'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 1, 'shoutbox_archive', 'Shoutbox Archive',1 ,'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 1,'page_reported', 'Page Reported', 1, 'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 0, 'page_reported','Page Reported', 1, 'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 1, 'shouts_deleted','Shouts Deleted', 1, 'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 0, 'shouts_deleted','Shouts Deleted', 1, 'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 1, 'shout_posted','Shout Posted', 1, 'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 0, 'shout_posted','Shout Posted', 1, 'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 1, 'page_views','Page Views', 1, 'vbulletin')");
$db->query_write("INSERT INTO ".TABLE_PREFIX."phrase VALUES ('', 0, 'page_views','Page Views', 1, 'vbulletin')");
Every one is duplicated. I have to reinstall cause the upgrade did not work. So for my own sanity I am rewriting the queries in the install script so that I can run them. In addition, the phrase deletion queries in the installer are incomplete, they leave phrases behind!
amykhar
07-21-2005, 01:51 PM
ok hold up a bit. Let me fix the upgrade script errors and move on to the other problems.
amykhar
07-21-2005, 01:59 PM
Sovereign, the phrases are duplicated for a reason. One is the default language. One is English. They will run as written.
amykhar
07-21-2005, 02:01 PM
I do not see an option in the Usergroup manager to allow access to the page. When I try to manually access the page: http://www.yoursite.com/forum/userpage.php?userid=1
then it gives me the old, "You do not have permission to access this page" error.
There is no access in the usergroup manager to the pages. There will not be because that would require code mods because there are no hooks in the admincp.
Put a link somewhere on your site to the list of personal pages. Where you put the link to the list is up to you.
amykhar
07-21-2005, 02:20 PM
I was about to ask the same. I cannot edit my personal page after creating it, get a databaseerror. The link points to userpage.php?do=create, which causes a DB error if you already have a userpage. I cannot access my userpage after creating it because there are no link to the personal page exept for this. Furthermore, how to access other members userpages?
I fixed the usercp link so that if you have a page, it shows the edit link. If you don't have a page, it shows the create link.
I fixed the upgrade script and updated the install and upgrade instructions as well.
If you have already installed last night's version, all you need to do is re-import the plugin and make the usercpshell template edit again.
Later today, I will put a wrapper around the query so that if you have already created the page, it won't try to do it again. That will stop that one database error.
john1744
07-21-2005, 03:15 PM
Hmm, I must not understand, I cannot access any Userpages, or the list of pages, as it gives me an error that I the admin cannot access the page due to insufficient privelages.
*Goes to install update*
amykhar
07-21-2005, 03:26 PM
NO! If you have done a fresh install, don't try to install the update. Hold on a minute and let's try to figure out what you are missing.
john1744
07-21-2005, 03:29 PM
haha ok Amy.
john1744
07-21-2005, 03:30 PM
I'm really not sure what the deal could be, as it seems the features are all there, and it was a very simple install, I just am not able to access these features.
amykhar
07-21-2005, 03:31 PM
Send me a link to your site please. I hate trying to debug in the dark. But, if I had to guess, I'd say you didn't update the bitfields. That would make the usergroup permissions not stick.
amykhar
07-21-2005, 04:02 PM
OK. We got John sorted out. :) He forgot to upload bitfield_userpage.xml and set his permissions.
Sovereign
07-21-2005, 04:26 PM
Sovereign, the phrases are duplicated for a reason. One is the default language. One is English. They will run as written.
I always get "Duplicate Key" even when I uninstalled everything...
amykhar
07-21-2005, 04:38 PM
If you have a problem with them, just zap one instance.
Amy
Sovereign
07-21-2005, 04:42 PM
I did, I know what you're doing (languages) but MySQL on my server keeps whining about duplicate keys.
amykhar
07-21-2005, 04:45 PM
I did, I know what you're doing (languages) but MySQL on my server keeps whining about duplicate keys.
In the next release, I'll just stick with the default language.
Amy
arurcard
07-21-2005, 08:02 PM
When i get to the upgrade i get to the step "The next step is to perform the necessary queries." I click proceed and get a 404 not found.
amykhar
07-21-2005, 08:06 PM
When i get to the upgrade i get to the step "The next step is to perform the necessary queries." I click proceed and get a 404 not found.
Redownload the zip. Get the update script, upload it and run it again with do=queries
arurcard
07-21-2005, 08:12 PM
found the problem, it goes to upgraduserpage.php instead of upgradeuserpage.php
arurcard
07-21-2005, 08:15 PM
Database error in vBulletin 3.5.0 Beta 4:
Invalid SQL:
ALTER TABLE usergroup ADD userpagepermissions INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL;
MySQL Error : Duplicate column name 'userpagepermissions'
Error Number : 1060
Date : Thursday, July 21st 2005 @ 04:14:55 PM
Script : http://forums.drift-forums.com/admincp/upgraduserpage.php
Referrer : http://forums.drift-forums.com/admincp/upgradeuserpage.php
IP Address : 69.153.2.97
Username : Rob
Classname : vb_database
amy help!1
amykhar
07-21-2005, 08:26 PM
No problem. You already ran that query. Just skip it. Do these manually and you're done. Fix the table prefix part, of course, before you run them. I'm updating the zip now.
$db->query_write("ALTER TABLE ".TABLE_PREFIX."userpage ADD rating INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ");
$db->query_write("ALTER TABLE ".TABLE_PREFIX."userpage ADD views INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ");
$db->query_write("ALTER TABLE ".TABLE_PREFIX."userpage ADD numvotes INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ");
$db->query_write("ALTER TABLE ".TABLE_PREFIX."userpage ADD votetotal INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ");
arurcard
07-21-2005, 08:27 PM
No problem. You already ran that query. Just skip it. Do these manually and you're done. Fix the table prefix part, of course, before you run them. I'm updating the zip now.
$db->query_write("ALTER TABLE ".TABLE_PREFIX."userpage ADD rating INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ");
$db->query_write("ALTER TABLE ".TABLE_PREFIX."userpage ADD views INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ");
$db->query_write("ALTER TABLE ".TABLE_PREFIX."userpage ADD numvotes INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ");
$db->query_write("ALTER TABLE ".TABLE_PREFIX."userpage ADD votetotal INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ");
great thanks ill let you knowhow it works out
arurcard
07-21-2005, 08:28 PM
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem
ERROR: Unknown Punctuation String @ 10
STR: ->
SQL: $db->query_write("ALTER TABLE ".TABLE_PREFIX."userpage ADD rating INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ")
SQL-query:
$db->query_write("ALTER TABLE ".TABLE_PREFIX."userpage ADD rating INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ")
MySQL said: Documentation
#1064 - You have an error in your SQL syntax near '$db->query_write("ALTER TABLE ".TABLE_PREFIX."userpage ADD rating INT( 10 ) UNSI' at line 1
arurcard
07-21-2005, 08:31 PM
it seems to work but i seem to have some template screw ups http://forums.drift-forums.com/userpage.php?do=list
yeah now that i look at it theres no user cp link, and the link in their profile causes a db error likey because of the above post
amykhar
07-21-2005, 08:47 PM
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem
ERROR: Unknown Punctuation String @ 10
STR: ->
SQL: $db->query_write("ALTER TABLE ".TABLE_PREFIX."userpage ADD rating INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ")
SQL-query:
$db->query_write("ALTER TABLE ".TABLE_PREFIX."userpage ADD rating INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ")
MySQL said: Documentation
#1064 - You have an error in your SQL syntax near '$db->query_write("ALTER TABLE ".TABLE_PREFIX."userpage ADD rating INT( 10 ) UNSI' at line 1
Ron, as I said, you have to alter the table prefix part. You need to get rid of the ".TABLE_PREFIX." in each query and put in the table prefix that you actually use.
Amy
arurcard
07-21-2005, 09:27 PM
Ron, as I said, you have to alter the table prefix part. You need to get rid of the ".TABLE_PREFIX." in each query and put in the table prefix that you actually use.
Amy
oh yeah lol, whats default?
btw, its Rob
arurcard
07-21-2005, 09:48 PM
nvm found it, i dont have one
arurcard
07-21-2005, 09:50 PM
ok so if i was to run this queries in phpmyadmin what would i put?
Sovereign
07-21-2005, 10:36 PM
The WOL is messed up, I'm shown as "Unknown Location
/vb/userpage.php?do=main&userid=1"...
cecdah
07-21-2005, 11:51 PM
I updated and now there are no links in usercpmenu. Tested with a new user, and even the create personal page is gone. The USERCP_SHELL update:
<if condition="$show['createuserpagelink']">
<tr>
<td class="$navclass[signature]" nowrap="nowrap"><a class="smallfont" href="userpage.php?$session[sessionurl]do=create">Create Your Userpage</a></td>
</tr>
</if>
<if condition="$show['edituserpagelink']">
<tr>
<td class="$navclass[signature]" nowrap="nowrap"><a class="smallfont" href="userpage.php?$session[sessionurl]do=edit">Edit Your Userpage</a></td>
</tr>
</if>
is not working. I have gone through the steps and nothing brings new links in the usercp menu.
I can access my personal page via url, and also get a listing via url, have added a link in the navbar using :
<if condition="$show['member']">
<td class="vbmenu_control"><a href="userpage.php?$session[sessionurl]do=list">$vbphrase[users_blog]</a></td>
</if>
, but I dont want both edit and create personal page in my navbar.
How do I add the links to usercp?
amykhar
07-22-2005, 12:19 AM
cecdah, did you install the plugin? That sets it up so the links will show in the usercp.
Regarding the who's online I may need to add more locations in the plugin. I'll look into it, Sovereign.
cecdah
07-22-2005, 12:22 AM
It was the userpage-plugins.xml right? Not the userpage.xml located in the admincpfolder?
amykhar
07-22-2005, 12:36 AM
Right. and if you look in your plugin manager, you should see a plugin for Userpage usercp link
arurcard
07-22-2005, 12:42 AM
no help for me? :(
amykhar
07-22-2005, 01:25 AM
no help for me? :(
Sorry, I missed your question.
$db->query_write("ALTER TABLE userpage ADD rating INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ");
$db->query_write("ALTER TABLE userpage ADD views INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ");
$db->query_write("ALTER TABLE userpage ADD numvotes INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ");
$db->query_write("ALTER TABLE userpage ADD votetotal INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ");
As I said before - zap the ".TABLE_PREFIX." I did it for you in the code block above.
arurcard
07-22-2005, 01:46 AM
Sorry, I missed your question.
$db->query_write("ALTER TABLE userpage ADD rating INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ");
$db->query_write("ALTER TABLE userpage ADD views INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ");
$db->query_write("ALTER TABLE userpage ADD numvotes INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ");
$db->query_write("ALTER TABLE userpage ADD votetotal INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ");
As I said before - zap the ".TABLE_PREFIX." I did it for you in the code block above.
thanks
arurcard
07-22-2005, 01:48 AM
Error
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem
ERROR: Unknown Punctuation String @ 4
STR: ->
SQL: $db->query_write("ALTER TABLE userpage ADD rating INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ")
SQL-query:
$db->query_write("ALTER TABLE userpage ADD rating INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ")
MySQL said: Documentation
#1064 - You have an error in your SQL syntax near '$db->query_write("ALTER TABLE userpage ADD rating INT( 10 ) UNSIGNED DEFAULT '0'' at line 1
im using phpmyadmin btw
amykhar
07-22-2005, 02:03 AM
ALTER TABLE userpage ADD rating INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL;
ALTER TABLE userpage ADD views INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL;
ALTER TABLE userpage ADD numvotes INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL;
ALTER TABLE userpage ADD votetotal INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL;
arurcard
07-22-2005, 02:23 AM
thanks again
arurcard
07-22-2005, 02:28 AM
that fixed it works perfectly, excpet i see no link in the user cp
arurcard
07-22-2005, 02:49 AM
Also I have a few ideas for your next release.
I see we both use coppermine. I was thinking of having a navigation box like you have on your forum, but only appears on the user's page. They can put whatever links they want in there, but also it has a link to their coppermine image gallery.
Also the ability to create more than one page. Like they can have an option to "add new page" or something (which also adds to the navigation box).
Just a few ideas.
Heres a ++++ty photoshop of my idea http://uploads.drift-forums.com/files/cappyps.jpg
chanhlinh
07-22-2005, 04:28 AM
Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 598
I can not set permission for usergroup :( and how to rebuild bitfields?
Thanks in advanced!
Chanhlinh
Annapurna
07-22-2005, 06:53 AM
They can put whatever links they want in there, but also it has a link to their coppermine image gallery.
Also the ability to create more than one page. Like they can have an option to "add new page" or something (which also adds to the navigation box).I also would appreciate this. Multiple pages and the shout box / guestbook should be on an extra page too.
One more thing: Users should be able to delete / alter shouts in their shoutbox, so that there is no need to contact the mods/admins.
Andreas
cecdah
07-22-2005, 08:19 AM
I have the pluginlink, but still no link in usercp.
I might go around this by adding a link in the navbar named "Blog", and place submenus with "Users with blog" + Edit blog + create blog
cecdah
07-22-2005, 08:22 AM
I can not set permission for usergroup :( and how to rebuild bitfields?
Thanks in advanced!
Chanhlinh
To rebuid bitfields change the domainname in this link to your domain and paste it into your browser, hit enter and your done.:
http://yourforum.com/forum/admincp/index.php?do=buildbitfields
:)
cecdah
07-22-2005, 08:31 AM
I can not set permission for usergroup :( and how to rebuild bitfields?
Thanks in advanced!
Chanhlinh
You have to translate the phrases to your boards mainlanguage.
Go to admincp, languages and phrases, phraseadministration I think (have another translation). Check page by page that every phrase has a translation in your default language.
This worked for me when I couldnt see the alternatives for permissions.
cecdah
07-22-2005, 08:48 AM
Amykhar: I finally got it right, deleted the links in pluginpage, and imported the xmlfile fresh!
Everything is working like a charm.
http://72.34.32.133/~hemmelig/forum/images/smilies/lykkelig.gif
chanhlinh
07-22-2005, 09:40 AM
Thank you very much. It's done :)
cecdah
07-22-2005, 02:44 PM
Personalpagetip for inserting images:
I find no IMG tag in the editbox, but basic html works great.
Like this:
<img src="http://www.swapmeetdave.com/Humor/Blonde.jpg">
:)
amykhar
07-22-2005, 02:47 PM
The img tag is there for me. :confused: Which style of editor are you using in your account? I am using the WYSIWYG.
cecdah
07-22-2005, 02:52 PM
I am using the WYSIWYG, but no IMG tag.
cecdah
07-22-2005, 02:59 PM
:ermm:
amykhar
07-22-2005, 03:10 PM
OK. Let me look at the parameters passed into the editor again. BRB.
amykhar
07-22-2005, 03:18 PM
Dumb question, does the img tag show up for you on your posting and PM templates? From what I've read in the code, it checks to see if you have img bbcode enabled and then shows the button.
Amy
sabret00the
07-22-2005, 03:34 PM
this is a very sweet mod and open to expansion too :)
amykhar
07-22-2005, 03:35 PM
this is a very sweet mod and open to expansion too :)
Thank you :)
cecdah
07-22-2005, 03:39 PM
Dumb question, does the img tag show up for you on your posting and PM templates? From what I've read in the code, it checks to see if you have img bbcode enabled and then shows the button.
Amy
Yes, I naturally thought of that because this is a brand new install of vb. ;)
However, I will check some more before blaiming it on the hack. :)
amykhar
07-22-2005, 04:20 PM
Is there anywhere that you don't allow images? signatures, private messages, etc?
arurcard
07-22-2005, 06:14 PM
yo amy did you read my ideas? I'm interested to know what you think.
arurcard
07-23-2005, 10:55 PM
are you supposed to delete the old plugin before you run the new one?
Dream
07-23-2005, 11:18 PM
are you supposed to delete the old plugin before you run the new one?
yes, vBulletin doesnt ovewrite plugins
arurcard
07-24-2005, 02:17 AM
yes, vBulletin doesnt ovewrite plugins
i still don't have a link in my user cp
Dream
07-24-2005, 04:40 AM
i still don't have a link in my user cp
have you edited the usercp templates
Injektilo
07-24-2005, 03:12 PM
PROBLEM... Installed fine, everything ok, but when i am on usergroup permitions, i update permitions but when the page reloads, permitions are still the same (like i havent changed anything) ... Anyone?
amykhar
07-24-2005, 03:55 PM
You didn't update your bitfields. When you add a new permissions file, you MUST update your bitfields for each and every mod.
Injektilo
07-24-2005, 03:56 PM
You didn't update your bitfields. When you add a new permissions file, you MUST update your bitfields for each and every mod.
sorry man, but how do i update bitfields? :p
admincp/index.php?do=buildbitfields
arurcard
07-24-2005, 08:10 PM
have you edited the usercp templates
no Ill revert it anyways and see what happens
would you be able to build in a style editor into this so users canchange the colour of there bg etc add some images effects etc
amykhar
07-25-2005, 07:06 PM
would you be able to build in a style editor into this so users canchange the colour of there bg etc add some images effects etc
It's a decent idea for an add-on, but it's not what I envision for this mod. I want the user pages to match my site in look and feel. It's not something I need, so I'm sorry, but I won't be spending any time on that at this point.
thats cool, you know with regards to file uploads hows this gonna work.... are admins gonna have options like allow file upload file types, number of files, file sizes etc and how are they going to be displayed im thinking of using this as a kinda music profile for bands...
Martin
07-25-2005, 09:30 PM
This keeps getting better and better. Good stuff Amy :)
amykhar
07-26-2005, 01:16 AM
thats cool, you know with regards to file uploads hows this gonna work.... are admins gonna have options like allow file upload file types, number of files, file sizes etc and how are they going to be displayed im thinking of using this as a kinda music profile for bands...
I'm envisioning that the admins can determine allowable file types and set up per-user quota. Users and admins will have a file manager interface as well.
Amy
zeropaid
07-26-2005, 02:11 AM
what happens if i install this mod on 3.0
amykhar
07-26-2005, 02:24 AM
It doesn't work because it was written for 3.5
Neutral Singh
07-26-2005, 04:48 AM
Gr8 hack!! I think admin should have a option for adding userpages on behalf of members. I find out that admin/moderators can operate only on those userpages which have been created. How about an option allowing admin to create a userpage on behalf of members?
Cheers!!
Sovereign
07-26-2005, 02:51 PM
You have to set usergroup permissions. Then users can make their own pages. Example page made by user (http://alliancemodding.com/vb/bazookaman) at my forum. And how does that "mod_rewrite" thing work anyway? Just curious how the username is translated into the userid.
amykhar
07-26-2005, 03:15 PM
You have to set usergroup permissions. Then users can make their own pages. Example page made by user (http://alliancemodding.com/vb/bazookaman) at my forum. And how does that "mod_rewrite" thing work anyway? Just curious how the username is translated into the userid.
The Mod rewrite essentially looks for any word after your forum url that is not followed by a backslash. It checks to see if the word is a valid username (and isn't a filename). If it is, you get the user's page. If it isn't, you get an error.
One thing to note. If you have things like a gallery installed under your forum directory, you need to make sure your links to those scripts have the trailing slash. Like:
http://www.eaforums.com/forums/gallery/
instead of
http://www.eaforums.com/forums/gallery
Amy
Sovereign
07-26-2005, 04:10 PM
I see, thanks
any ideas on the release date of the next version (hopfully with the file upload section :lol:) :rolleyes:
Neutral Singh
07-27-2005, 12:48 PM
You have to set usergroup permissions. Then users can make their own pages. Example page made by user (http://alliancemodding.com/vb/bazookaman) at my forum. And how does that "mod_rewrite" thing work anyway? Just curious how the username is translated into the userid.
No, let me make myself more clear, i think, admin should also have the option of creating Userpages for members, who somehow cannot do it themselves or request an admin to do them a favour... Presently, only after a member clicks on "Edit/Create Your Userpage" in 'Edit Profile' section under UserCP and saves that an admin can view the page in the Userpages drop-down under UserCP and from there admin can edit the pages. Otherwise, there is no option to directly create a page for a member ??
Secondly, unless a member goes to UserCp --> Userpages "by chance", there is absolutely no visual indicator in the Public Profile section, where a member can click to view the userpage. It can be simply like "View My Webpage" anywhere along with the name of person whose public profile we are viewing. A Link to the Userpage directly from a members public profile would really make this Extension Rock.
Regards
amykhar
07-27-2005, 12:53 PM
No, let me make myself more clear, i think, admin should also have the option of creating Userpages for members, who somehow cannot do it themselves or request an admin to do them a favour... Presently, only after a member clicks on "Edit/Create Your Userpage" in 'Edit Profile' section under UserCP and saves that an admin can view the page in the Userpages drop-down under UserCP and from there admin can edit the pages. Otherwise, there is no option to directly create a page for a member ??
Secondly, unless a member goes to UserCp --> Userpages "by chance", there is absolutely no visual indicator in the Public Profile section, where a member can click to view the userpage. It can be simply like "View My Webpage" anywhere along with the name of person whose public profile we are viewing. A Link to the Userpage directly from a members public profile would really make this Extension Rock.
Regards
Any links you want can easily be added by you wherever you want them.
I'll look into letting an admin create a page for the user. Here's the thing though. Creating a page isn't rocket science. Click a link, write some content, save it. It's no harder than posting - and intentionally so.
Amy
Neutral Singh
07-28-2005, 12:51 AM
Any links you want can easily be added by you wherever you want them.
OK!! That part is done. I managed to create a link on public profile.
I'll look into letting an admin create a page for the user. Here's the thing though. Creating a page isn't rocket science. Click a link, write some content, save it. It's no harder than posting - and intentionally so.
Dear, think about the perspective of a member... and as i am an admin, i should be able to do anything. You can not limit the super powers of am admin. ;) Please do something in this direction.
Cheers
dieselpowered
07-28-2005, 01:48 AM
That is odd...when I attempt to import the userpage_plugin.xml I get the error:
"Invalid File Specified"
arurcard
07-28-2005, 03:47 AM
still no feedback on my ideas :(
Annapurna
07-28-2005, 04:18 AM
OK!! That part is done. I managed to create a link on public profile.Fine ;) , please give us a hint, which file has to be changed.
Andreas
amykhar
07-28-2005, 11:34 AM
still no feedback on my ideas :(
Rob, I am not being paid for this work. Right now, I am concentrating on some paid work I am doing. You have to remember that this is a hobby for me and you are not going to get instant answers unless you happen to be here while I am working on the mod anyway.
Job73
07-28-2005, 10:03 PM
Is there any news on this? I have the same problem as Sovereign.
Otherwise a realy nice mod!
The WOL is messed up, I'm shown as "Unknown Location
/vb/userpage.php?do=main&userid=1"...
amykhar
07-28-2005, 11:35 PM
That will be fixed in the next release.
Job73
07-28-2005, 11:38 PM
Thx for the info..
Mr Chad
07-29-2005, 12:10 AM
Im new can i install this hack on a 3.0.8 board?
amykhar
07-29-2005, 12:12 AM
no. you can not.
dieselpowered
07-29-2005, 12:20 AM
Amy, any idea why this is happening?
That is odd...when I attempt to import the userpage_plugin.xml I get the error:
"Invalid File Specified"
Thanks!
amykhar
07-29-2005, 01:10 AM
Amy, any idea why this is happening?
Thanks!
No. Try redownloading the zip.
dieselpowered
07-29-2005, 01:17 AM
Ok I will try it again...thanks :)
Neutral Singh
07-29-2005, 01:36 AM
Fine ;) , please give us a hint, which file has to be changed.
Andreas
Yeah! Sure
Edit Template: MEMBERINFO
Find :
<tr>
<td class="tcat">$vbphrase[view_profile]<span class="normal">: $userinfo[username]</span></td>
</tr>
Replace with:
<tr>
<td class="tcat"><div style="float:$stylevar[left]; padding:4px">$vbphrase[view_profile]<span class="normal">: $userinfo[username]</span></div>
<div style="float:$stylevar[right]; padding:4px">
<strong>(<a href="userpage.php?do=main&userid=$userinfo[userid]">View My Personal Webpage</a>)</strong></div></td>
</tr>
Guess what?? You are Done!! ;)
dieselpowered
07-29-2005, 03:36 AM
No. Try redownloading the zip.
Ok everything installed alright, however, when in the usergroup manager...I see some permissions at the bottom, however, there are no descriptions...just buttons??
Any thoughts?
amykhar
07-29-2005, 04:05 AM
Ok everything installed alright, however, when in the usergroup manager...I see some permissions at the bottom, however, there are no descriptions...just buttons??
Any thoughts?
If you read the very first post of the thread, you will see that you need to open a phrase and save it again. Any phrase will do.
dieselpowered
07-29-2005, 04:11 AM
Thank you Amy...I am sorry!!
Annapurna
07-29-2005, 04:31 AM
Yeah! Sure
Edit Template: MEMBERINFO
Find :
<tr>
<td class="tcat">$vbphrase[view_profile]<span class="normal">: $userinfo[username]</span></td>
</tr>
Replace with:
<tr>
<td class="tcat"><div style="float:$stylevar[left]; padding:4px">$vbphrase[view_profile]<span class="normal">: $userinfo[username]</span></div>
<div style="float:$stylevar[right]; padding:4px">
<strong>(<a href="userpage.php?do=main&userid=$userinfo[userid]">View My Personal Webpage</a>)</strong></div></td>
</tr>
Guess what?? You are Done!! ;)Just perfect :up: :)
Andreas
bgtking
07-29-2005, 02:49 PM
Nice hack. Installed.
amykhar
08-01-2005, 03:23 PM
Anybody have any ideas on how to get the short urls (http://www.eaforums.com/forums/amykhar for example) to show up properly on who's online?
ThePimp
08-01-2005, 04:53 PM
Anybody have any ideas on how to get the short urls (http://www.eaforums.com/forums/amykhar for example) to show up properly on who's online?
Couldn't you do this with .htaccess?
amykhar
08-01-2005, 05:04 PM
htaccess creates the short urls. What I need is for who's online to show the user page the viewer is looking at.
EasyTarget
08-01-2005, 05:40 PM
I'd like the ability to enable/disable shouts if you're still working on stuff to add. I can't remember if this was included or not (I had this installed on a 3.5b4 test board), if it already is.. disregard this :D
great hack.
another idea.. maybe get together with zero tolerance and implement his ajax shoutbox for the userpages as well.
Sovereign
08-01-2005, 05:47 PM
Well, you can do template replace but it only replaces URLs, so you have to then let your users see the exact location of everyone, and it still says Unknown Location above which is teh suck.
ExpertDomino
08-02-2005, 01:18 AM
Im kinda stuck on this step, can you help... what does rebuild your bitfields mean? thanks
3. Upload bitfield_userpage.xml to your includes/xml directory. Rebuild your bitfields.
amykhar
08-02-2005, 01:19 AM
Expert, it explains how to do that in the first post of the thread.
ExpertDomino
08-02-2005, 05:15 AM
Im getting this in my Usergroup Manager when I try to change the permissions,
Im on this step:
4. In your admincp usergroup manager, set permissions for each of your user groups.
To be honest, I dont think I "rebuild bitfields" correctly or whatever that means because I executed that link in your FAQ in the first post and it just linked me to my Admin CP (basically the index.php in admincp) without the Navgation Menu on the left. Hmmm *thinking*......
Marco van Herwaarden
08-02-2005, 06:15 AM
Your screenshot indicate that phrases are missing.
About the rebuild bitfields, yes it don't produce any visible output, i already posted that in teh bugtracker at vb.com, but it wasn't seen as a problem.
ExpertDomino
08-02-2005, 06:42 AM
How do I get the "phrases" there?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.