*

Recent

Author Topic: Myspace field  (Read 5566 times)

Adam LaCombe

  • Sr. Member
  • ****
  • Posts: 433
  • Force: +17/-0
    • My Blog
Myspace field
« on: May 30, 2009, 10:00:07 AM »
BACK UP YOUR DATA AND STUFF BEFORE EDITING!
To add a myspace field section to the profiles heres what you have to do:

SQL:
Code: [Select]
ALTER TABLE `dd_users` ADD `myspace` VARCHAR( 255 ) NOT NULL AFTER `newsletter` ;


Now go to the pages dictionary and edit the myaccount.php file and
Find:
Code: [Select]
$newsletter = clean($_POST['newsletter']);
Add after:
Code: [Select]
$myspace = clean($_POST['myspace']);


Find:
Code: [Select]
newsletter='$newsletter',
Add after:
Code: [Select]
myspace='$myspace',


find:
Code: [Select]
$newsletter = $r2['newsletter'];
add after:
Code: [Select]
$myspace = $r2['myspace'];


find:
Code: [Select]
<tr>
<td class="content">AIM:</td>
<td class="content"><input name="aim" type="text" size="50" value="'.$aim.'"></td>
</tr>
add after:
Code: [Select]
<tr>
<td class="content">Myspace:</td>
<td class="content"><input name="myspace" type="text" size="50" value="'.$myspace.'"></td>
</tr>


Now go to the pages dictionary and edit the showprofile.php file and
find:
Code: [Select]
$plays = $r2['plays'];
add after:
Code: [Select]
$myspace = $r2['myspace'];

find:
Code: [Select]
<tr>
<td class="content">Sex:</th>
<th class="content">'.$sex.'</th>
</tr>
add after:
Code: [Select]
<tr>
<td class="content">Myspace:</th>
<th class="content"><a href="http://myspace.com/'.$myspace.'">'.$myspace.'</a></th>
</tr>

And your done!
« Last Edit: May 30, 2009, 10:22:55 AM by Adam »

kurt

  • Developer
  • Hero Member
  • ******
  • Posts: 634
  • Force: +16/-1
Re: Myspace field
« Reply #1 on: May 30, 2009, 11:26:58 AM »
Good. It will be part of the official release pretty soon.

We will probably add FaceBook and Twitter to it now as well, and perhaps a few marked "Other" in case others pop up. Thanks for that idea.

Still need to add it into the admin panel under manage members, but good job. Thanks.

Adam LaCombe

  • Sr. Member
  • ****
  • Posts: 433
  • Force: +17/-0
    • My Blog
Re: Myspace field
« Reply #2 on: May 30, 2009, 11:42:25 AM »
Yep no problem!
There could be:
youtube
tagged
bebo...

but I think actually the big hit would be the twitter, everyone seems to have a twitter now.

kurt

  • Developer
  • Hero Member
  • ******
  • Posts: 634
  • Force: +16/-1
Re: Myspace field
« Reply #3 on: May 30, 2009, 11:48:19 AM »
I don't. Don't I feel old now lol.

Adam LaCombe

  • Sr. Member
  • ****
  • Posts: 433
  • Force: +17/-0
    • My Blog
Re: Myspace field
« Reply #4 on: May 30, 2009, 11:53:19 AM »
lol. dont bother getting a twitter... I checked it out one day and its really nothing.. I think its basically just some kind of blog.

kurt

  • Developer
  • Hero Member
  • ******
  • Posts: 634
  • Force: +16/-1
Re: Myspace field
« Reply #5 on: May 30, 2009, 12:41:36 PM »
You'z a smart one ain't ya? That's basicly correct. Twitter is good for advertising yourself/website/company etc, but what else? MySpace is also good for that, and it's a social network. Facebook, more of a social network but it can be useful. Tagged is even less useful in my opinion, except to find a date lol. But even then, some people use it quite well to advertise. For my purposes, I don't see a need for any of them for myself, so why bother? But having a spot to put in one's MySpace link into their profile might just attract a few extra members, which is what we are gearing this script for. More traffic can help mean more revenue potential, which is what OUR members are looking for. ;)