| amykhar's Hideaway A premium support forum for my vbulletin modifications. Members of this forum receive extra help, bug fixes, etc. for my code. To join, Subscribe to the Vbulletin Plan
Minor feature requests will be considered, but major mod alterations will require a special contract. |  | 
07-28-2006, 08:21 AM
|  | Forum Code Administrator | | Join Date: Jun 2000 Location: PA
Posts: 19,851
| | This mod allows your users to create a custom profile page on your site. This does NOT alter the existing member profile pages. It creates a second page.
THIS PRODUCT HAS BUGS. If you run into problems with it during your subscription period, I will happily help you resolve them. I am not planning any new features for this mod at this time.
__________________ Salt makes mistakes taste great. | 
08-03-2006, 03:40 PM
| | New Member | | Join Date: Jul 2006
Posts: 10
| | Re User Page Modification | | in the older version there was an insert image button (button with the mountain, yellow square, and sun) but in this version there is no image button. Is there anyway you can put it back in? | 
08-03-2006, 03:49 PM
|  | Forum Code Administrator | | Join Date: Jun 2000 Location: PA
Posts: 19,851
| | Re User Page Modification | | I didn't remove it. For some reason, on some installations, it disappears. We've never quite figured out why, but it seems to be related to some forum setting. It's the default vbulletin editor, and should show the button like it does for any other post.
__________________ Salt makes mistakes taste great. | 
08-03-2006, 07:17 PM
| | New Member | | Join Date: Jul 2006
Posts: 10
| | Re User Page Modification | | for some reason on this new version you can play music on it. Can you fix that please? | 
08-03-2006, 07:49 PM
|  | Forum Code Administrator | | Join Date: Jun 2000 Location: PA
Posts: 19,851
| | Re User Page Modification | | It should only allow the html tags that are allowed by vbulletin within posts. What version of vbulletin are you using?
__________________ Salt makes mistakes taste great. | 
08-03-2006, 08:10 PM
| | New Member | | Join Date: Jul 2006
Posts: 10
| | Re User Page Modification | | 3.5.4.
i also found out that you must have img enabled for your signature for the button to appear in your userpage.
Last edited by Masked; 08-03-2006 at 09:51 PM.
| 
08-28-2006, 02:43 PM
|  | Registered Member | | Join Date: Aug 2006
Posts: 11
| | Re User Page Modification | | Thanks for a great mod Amy - I just subscribed to your vBulletin plan; I've scoured vbulletin.org for a solution to my issue but cannot find one...
I just have a couple questions:
1. My user pages will have a default block that displays the user's basic info on it (User name, custom fields, etc.) I have managed to pull all of that info by using the following syntax: PHP Code: $userinfo[field9]
$userinfo[username]
$userinfo[homepage], etc.
But I can never get: PHP Code: $userinfo[avatarurl]
Any ideas? I want to include the user's avatar in their custom page and on the user page list.
2. Aslo, if you can, please send me you rates as I may be interestd in a request which may require a contract;
Thanks again. | 
08-30-2006, 12:48 PM
|  | Forum Code Administrator | | Join Date: Jun 2000 Location: PA
Posts: 19,851
| | Re User Page Modification | | This is what I use to get the avatar url Code: require_once('./includes/functions_user.php');
$userinfo[avatarurl] = fetch_avatar_url($userinfo[userid]);
if (!$userinfo[avatarurl])
{
$userinfo[avatarurl] = $stylevar['imgdir_misc'] . '/noavatar.gif';
}
else
{
$userinfo[avatarurl] = $vbulletin->options['bburl'] . '/' . $userinfo[avatarurl][0];
}
__________________ Salt makes mistakes taste great. | 
08-31-2006, 06:39 PM
|  | Registered Member | | Join Date: Aug 2006
Posts: 11
| | Re User Page Modification | | Thanks Amy!
That did the trick for my user page detail "do=main&userid=##" but I can;t figure out where exactly to put the code for it to show up in the list page...
I'm assuming it goes below the following somewhere... PHP Code: if ($_GET['do'] == 'list')
| 
08-31-2006, 06:51 PM
|  | Registered Member | | Join Date: Aug 2006
Posts: 11
| | Re User Page Modification | | Disregard, I figured it out :-)
I changed the code to read: PHP Code: $userinfo[avatarurl] = fetch_avatar_url($user[userid]);
if (!$userinfo[avatarurl])
{
$userinfo[avatarurl] = $stylevar['imgdir_misc'] . '/noavatar.gif';
}
else
{
$userinfo[avatarurl] = $vbulletin->options['bburl'] . '/' . $userinfo[avatarurl][0];
}
and put it right before: PHP Code: eval('$html .= "' . fetch_template('userpage_list_row') . '";');
Thanks  | 
08-31-2006, 08:28 PM
|  | Forum Code Administrator | | Join Date: Jun 2000 Location: PA
Posts: 19,851
| | Re User Page Modification | | Sorry I wasn't here to help out.
__________________ Salt makes mistakes taste great. | 
08-31-2006, 09:39 PM
|  | Registered Member | | Join Date: Aug 2006
Posts: 11
| | Re User Page Modification | | NP Amy,
Now I'm trying to figure out how to place a custom field: PHP Code: $userinfo[field11]
in the user list under the user name...
Any ideas or guidance would be appreciated. | 
09-01-2006, 12:07 AM
|  | Forum Code Administrator | | Join Date: Jun 2000 Location: PA
Posts: 19,851
| | Re User Page Modification | | You'll need to adjust the query I did to pull all the user's out of the userpage table. Do a left join on the userfield table on userpage.userid=userfield.userid. That will get all the fields for you.
__________________ Salt makes mistakes taste great. | 
09-01-2006, 10:43 AM
|  | Registered Member | | Join Date: Aug 2006
Posts: 11
| | Re User Page Modification | | Thank you Amy
For anyone else interested, this is what my query ended up looking like: PHP Code: $users = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "userpage, " . TABLE_PREFIX . "userfield WHERE " . TABLE_PREFIX . "userpage.userid = " . TABLE_PREFIX . "userfield.userid ORDER BY RAND() LIMIT $limitlower,$perpage");
I also modified the ORDER By to Random so that the list is different every time...
I'll post a URL to the live site when it launches so you all can see it... | 
09-01-2006, 11:03 AM
|  | Forum Code Administrator | | Join Date: Jun 2000 Location: PA
Posts: 19,851
| | Re User Page Modification | | I'm glad your having fun with this 
__________________ Salt makes mistakes taste great. | 
09-02-2006, 09:51 PM
|  | Registered Member | | Join Date: Aug 2006
Posts: 11
| | Re User Page Modification | | Hi Amy,
have another question; As an admin I have set the permissions so that admins can view, edit, create and moderate user pages; However, when I try to delete one I get n "I don;t have permission to access this page" error; Any ideas?
Thanks in advance | 
09-03-2006, 12:08 PM
|  | Forum Code Administrator | | Join Date: Jun 2000 Location: PA
Posts: 19,851
| | Re User Page Modification | | find: Code: if ($pageexists)
{
print_no_permission();
}
if ($confirm) Change to Amy
__________________ Salt makes mistakes taste great. | 
09-03-2006, 12:46 PM
|  | Registered Member | | Join Date: Aug 2006
Posts: 11
| | Re User Page Modification | | THANK YOU AMY!
That did it;
Your script really rocks; Installation was so simple and I've been able to customize it easily to fit my needs; when stuck, your help has been right on  - It has really saved me lots of time;
I'm hoping to launch in the next few days and will post the site URL so you can all check it out...
I may have one or two questions by then, but other than that it is working beautifully!!
Thanks Again. | 
09-05-2006, 12:25 PM
|  | Registered Member | | Join Date: Aug 2006
Posts: 11
| | Re User Page Modification | | OK, last one (I hope...) This one is totally eluding me - and it's probably super easy...
How do I change the window title on the user's personal page?
Thanks again... | 
09-05-2006, 01:14 PM
|  | Forum Code Administrator | | Join Date: Jun 2000 Location: PA
Posts: 19,851
| | Re User Page Modification | | Code: $locationstring = $userinfo['username'] .$vbphrase['x_personal_page'];
__________________ Salt makes mistakes taste great. | 
09-08-2006, 12:17 AM
|  | Registered Member | | Join Date: Aug 2006
Posts: 11
| | Re User Page Modification | | perfect
Also, is it possible to specify meta keywords and description for the user list - for userpage.php?do=list?
Thanks again. | 
09-13-2006, 10:46 PM
|  | Registered Member | | Join Date: Aug 2006
Posts: 11
| | Re User Page Modification | | Page is live
check it out - rfidsb.com
User pages is being used in the "Providers Directory" section. Thanks for the help Amy! | 
09-14-2006, 07:59 AM
|  | Forum Code Administrator | | Join Date: Jun 2000 Location: PA
Posts: 19,851
| | Re User Page Modification | | Way cool. I love the way that looks.
__________________ Salt makes mistakes taste great. | 
09-14-2006, 02:26 PM
|  | Registered Member | | Join Date: Aug 2006
Posts: 11
| | Re User Page Modification | | Thanks Amy - I appreciate it
I'm still trying to figure out how to figure out how to specify meta keywords and description for the user list - for userpage.php?do=list?
Any ideas?
Thanks again for all of your help... | 
10-05-2006, 03:44 AM
| | New Member | | Join Date: Oct 2006
Posts: 2
| | Re User Page Modification | | Hi Amy -
I'm running VBSeo. What in the htaccess file do I need to include in the VBseo control panel? | |