71
damage
Re: Profile (with portrait upload) hack finally found! Need a conversion!
  • 2005/6/10 13:52

  • damage

  • Just popping in

  • Posts: 13

  • Since: 2005/6/9 8


I just realised that I was using 2.0.9.2 not 2.0.10, I have XOOPS installed on another website and got mixed up, sorry for the prior posts, I have updated and currently rebuilding, but with 128K upload speed it is going to take me ages LOL

Thanks again m0nty

72
m0nty
Re: Profile (with portrait upload) hack finally found! Need a conversion!
  • 2005/6/10 14:58

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


ahhh glad u figured it out :)

yeah the hack is version specific.. but glad you know now :)

regarding 128k, i know how u feel, i'm still on 56k :|

my line is adsl enabled tho now, but i'm still waiting for them to send me my adsl modem.. (it's took 4 months for them to enable my line for adsl) so i'm pushing for some free subscriptions and discounts on future bills..

73
script_fu
Re: Profile (with portrait upload) hack finally found! Need a conversion!

Hi great hack and much needed m0nty!

1) I think I found a lil bug on my 2.0.10 site. I used the photo_+_profiles_hack_2010.rar and when I click on the Choose photo from the available list the window pops up and I can see some code in the upper left hand corner "_MSC_PHOTOS" of the box. Anyway to fix this error?

2) Also back a few posts a question was asked about changeing the "cats" to something different? The post wanted to know how he could change all the related info to fit an automotive website. Well I would love to be able to do this myself? I just need to change the "cats" for a gameing site. How could one do this?

3) Is there a way to add a feature for admin to change users avatars and photo?

Regards
Billy

74
m0nty
Re: Profile (with portrait upload) hack finally found! Need a conversion!
  • 2005/6/12 15:17

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


check that the _MSC_PHOTOS language definition has been entered in the language files..

what code?

2. you could easily change the cats, by altering the language files and just change them..

3. not that i'm aware of, but if any1 makes it for the avatr, it will be easy to change the hack to work with photo's too.

75
m0nty
Re: Profile (with portrait upload) hack finally found! Need a conversion!
  • 2005/6/22 0:49

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


i've now managed to do the date of birth filed, and have it automatically display the age from the given date of birth..

this functionality is included in the profile + photo's hack V2 for 2.0.10 (see news article)

i don't plan on doing a 2.0.9.3 version tho, but i will help to convert the profile fields of the older version to use the new dob function, if any1 needs it. it's not a major change to do it, and 1 db change is needed that's all and an edit on a few files (1 or 2 lines in each) + a couple of extra files..

76
m0nty
Re: Profile (with portrait upload) hack finally found! Need a conversion!
  • 2005/6/22 18:49

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


i got bored and did a 2.0.9.3 version for those that haven't upgraded to XOOPS 2.0.10.

you can download it HERE

or alternative (if link above doesn't work for you) download from HERE

77
rominus
Re: Profile (with portrait upload) hack finally found! Need a conversion!
  • 2005/6/22 21:58

  • rominus

  • Just popping in

  • Posts: 36

  • Since: 2005/2/27


cool stuff m0nty, i really wanted the dob addition.

can u tell me what files/database entries have changed so that i can manually update my hack to this version with the date of birth option? (as you may remember i have 2.0.9.3 +autologin hack)

cheers

78
m0nty
Re: Profile (with portrait upload) hack finally found! Need a conversion!
  • 2005/6/22 22:46

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


run the update.sql query in admin, this will change the old user_age row to user_birth and set it as type 'DATE'

remember to change the xoops_ prefix to match your own.

then edit the files:

edituser.php
userinfo.php
register.php

class/xoopsformloader.php

include/registerform.php

(i forgot to comment registerform.php)

so look for:

$reg_form->addElement(new XoopsFormText(_US_REALNAME, "name", 30, 60, $name));
$reg_form->addElement(new XoopsFormTextDateOfBirth(_US_BIRTH, "user_birth", 10, 10, $user_birth), true);
$reg_form->addElement(new XoopsFormText(_US_LOCATION, "user_from", 30, 60, $user_from));
$reg_form->addElement(new XoopsFormSelectGender(_US_GENDER, "user_gender"));

include/functions.php

kernel/user.php
language/english/user.php

modules/system/admin/users.php
modules/system/admin/userform.php
modules/system/templates/system_userinfo.php

modules/system/language/english/ (check em all there is a couple of edits)

then add these files:

class/xoopsform/formtextdateofbirth.php
include/dobcalendarjs (both of em)

and that should do it.. your mainly only editing the old user_age parts

79
rominus
Re: Profile (with portrait upload) hack finally found! Need a conversion!
  • 2005/6/23 1:40

  • rominus

  • Just popping in

  • Posts: 36

  • Since: 2005/2/27


hmmm that's a lot of files=a big marging of error.
what do you think is best:

-overwriting all my current files with your new photo+profile hack 2.2 and then changing the appropriate files for the autologin hack or:

-editing the files manually one by one according to what you just posted

which method is less risky?

thanks again

80
m0nty
Re: Profile (with portrait upload) hack finally found! Need a conversion!
  • 2005/6/23 1:53

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


it would probly be easier to verwrite, and then edit them to add autologin as autologin is only a small hack by comparison

Login

Who's Online

265 user(s) are online (214 user(s) are browsing Support Forums)


Members: 0


Guests: 265


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits