Go Back   EA Forums > Hideaway Forums > amykhar's Hideaway

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.

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 07-28-2006, 08:21 AM
amykhar's Avatar
Forum Code Administrator
 
Join Date: Jun 2000
Location: PA
Posts: 19,851
amykhar has a spectacular aura aboutamykhar has a spectacular aura about
User Page Modification

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.
 
Attached Files
File Type: zip userpage 1.2.2.zip (15.8 KB, 5 views)
__________________
Salt makes mistakes taste great.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 08-03-2006, 03:40 PM
New Member
 
Join Date: Jul 2006
Posts: 10
Masked is on a distinguished road
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?
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 08-03-2006, 03:49 PM
amykhar's Avatar
Forum Code Administrator
 
Join Date: Jun 2000
Location: PA
Posts: 19,851
amykhar has a spectacular aura aboutamykhar has a spectacular aura about
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 08-03-2006, 07:17 PM
New Member
 
Join Date: Jul 2006
Posts: 10
Masked is on a distinguished road
Re User Page Modification

for some reason on this new version you can play music on it. Can you fix that please?
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 08-03-2006, 07:49 PM
amykhar's Avatar
Forum Code Administrator
 
Join Date: Jun 2000
Location: PA
Posts: 19,851
amykhar has a spectacular aura aboutamykhar has a spectacular aura about
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 08-03-2006, 08:10 PM
New Member
 
Join Date: Jul 2006
Posts: 10
Masked is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 08-28-2006, 02:43 PM
maniac's Avatar
Registered Member
 
Join Date: Aug 2006
Posts: 11
maniac is on a distinguished road
question 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.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 08-30-2006, 12:48 PM
amykhar's Avatar
Forum Code Administrator
 
Join Date: Jun 2000
Location: PA
Posts: 19,851
amykhar has a spectacular aura aboutamykhar has a spectacular aura about
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 08-31-2006, 06:39 PM
maniac's Avatar
Registered Member
 
Join Date: Aug 2006
Posts: 11
maniac is on a distinguished road
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'
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 08-31-2006, 06:51 PM
maniac's Avatar
Registered Member
 
Join Date: Aug 2006
Posts: 11
maniac is on a distinguished road
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
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11  
Old 08-31-2006, 08:28 PM
amykhar's Avatar
Forum Code Administrator
 
Join Date: Jun 2000
Location: PA
Posts: 19,851
amykhar has a spectacular aura aboutamykhar has a spectacular aura about
Re User Page Modification

Sorry I wasn't here to help out.
 
__________________
Salt makes mistakes taste great.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12  
Old 08-31-2006, 09:39 PM
maniac's Avatar
Registered Member
 
Join Date: Aug 2006
Posts: 11
maniac is on a distinguished road
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.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13  
Old 09-01-2006, 12:07 AM
amykhar's Avatar
Forum Code Administrator
 
Join Date: Jun 2000
Location: PA
Posts: 19,851
amykhar has a spectacular aura aboutamykhar has a spectacular aura about
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14  
Old 09-01-2006, 10:43 AM
maniac's Avatar
Registered Member
 
Join Date: Aug 2006
Posts: 11
maniac is on a distinguished road
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...
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15  
Old 09-01-2006, 11:03 AM
amykhar's Avatar
Forum Code Administrator
 
Join Date: Jun 2000
Location: PA
Posts: 19,851
amykhar has a spectacular aura aboutamykhar has a spectacular aura about
Re User Page Modification

I'm glad your having fun with this
 
__________________
Salt makes mistakes taste great.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16  
Old 09-02-2006, 09:51 PM
maniac's Avatar
Registered Member
 
Join Date: Aug 2006
Posts: 11
maniac is on a distinguished road
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
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17  
Old 09-03-2006, 12:08 PM
amykhar's Avatar
Forum Code Administrator
 
Join Date: Jun 2000
Location: PA
Posts: 19,851
amykhar has a spectacular aura aboutamykhar has a spectacular aura about
Re User Page Modification

find:
Code:
  if ($pageexists)
  {
      print_no_permission();
  }

  if ($confirm)
Change
Code:
  if ($pageexists)
to
Code:
  if (!$pageexists)
Amy
 
__________________
Salt makes mistakes taste great.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18  
Old 09-03-2006, 12:46 PM
maniac's Avatar
Registered Member
 
Join Date: Aug 2006
Posts: 11
maniac is on a distinguished road
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.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19  
Old 09-05-2006, 12:25 PM
maniac's Avatar
Registered Member
 
Join Date: Aug 2006
Posts: 11
maniac is on a distinguished road
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...
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20  
Old 09-05-2006, 01:14 PM
amykhar's Avatar
Forum Code Administrator
 
Join Date: Jun 2000
Location: PA
Posts: 19,851
amykhar has a spectacular aura aboutamykhar has a spectacular aura about
Re User Page Modification

Code:
    $locationstring = $userinfo['username'] .$vbphrase['x_personal_page'];
 
__________________
Salt makes mistakes taste great.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #21  
Old 09-08-2006, 12:17 AM
maniac's Avatar
Registered Member
 
Join Date: Aug 2006
Posts: 11
maniac is on a distinguished road
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.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22  
Old 09-13-2006, 10:46 PM
maniac's Avatar
Registered Member
 
Join Date: Aug 2006
Posts: 11
maniac is on a distinguished road
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!
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23  
Old 09-14-2006, 07:59 AM
amykhar's Avatar
Forum Code Administrator
 
Join Date: Jun 2000
Location: PA
Posts: 19,851
amykhar has a spectacular aura aboutamykhar has a spectacular aura about
Re User Page Modification

Way cool. I love the way that looks.
 
__________________
Salt makes mistakes taste great.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24  
Old 09-14-2006, 02:26 PM
maniac's Avatar
Registered Member
 
Join Date: Aug 2006
Posts: 11
maniac is on a distinguished road
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...
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25  
Old 10-05-2006, 03:44 AM
New Member
 
Join Date: Oct 2006
Posts: 2
amnesia623 is on a distinguished road
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?
 
Digg this Post!