ghanja.be
NederlandsEnglish
Contact Us

Ghanja
Welkom, Gast
Alstublieft Inloggen of Registreren.    Wachtwoord verloren?
Re:CB Avatar field (1 bezoeker) (1) Gast
Ga naar onderkant Reageer Favoriet: 0
TOPIC: Re:CB Avatar field
#314
rayard (Gebruiker)
Fresh Boarder
Berichten: 3
graphgraph
Gebruiker offline Klik hier om het gebruikersprofiel van deze gebruiker te zien
CB Avatar field 6 maanden, 2 weken geleden Karma: 0  
I would like my front End User Creation form to have an cb avatar field. Due to some ACL issues with cb and Joomla, my cb moderators cannot edit profiles (even with it set in cb). So instead of trying to fix that massive issue, I would just like to add the function of adding an avatar via your component. That addresses the only reason they would need to edit the profile once created anyway.

Any ideas how I could add this field? I read the other article for creating custom fields but this is a little different. Any help is MUCH appreciated.

Thanks in advance!
 
 
Laatste Wijziging: 10/11/2011 17:40 Door rayard.
  De Administrator heeft publieke schrijf toegang geblokkeerd.
#317
Webmaster (Admin)
Administrator
Berichten: 194
graph
Gebruiker offline Klik hier om het gebruikersprofiel van deze gebruiker te zien
Re:CB Avatar field 6 maanden, 1 Week geleden Karma: 1  
Well i can help you a little if you know php/html a little bit.

You should proceed like if you want to add an extra field to community builder. Like described on this page: http://www.ghanja.be/en/add-user-frontend/add-extra-fields-to-auf-for-cb.html

For your fieldname you will choose the fieldname avatar which exists in the _comprofiler table.

The database field avatar will contain the filename.
For example: 123456.jpg

CB will search for the images in:
your_public_html/images/comprofiler/

So thats were your images should be uploaded.

Now you know enough to create a file upload script which uploads the images to your server at the specified location.

The script will also need to resize the avatar and create a small version of it in the same folder with the same name but with the letter "tn" before it.

structure:
Filename:123456.jpg
Resized Filename:tn123456.jpg


I hope this will get you started.
Kim
 
  De Administrator heeft publieke schrijf toegang geblokkeerd.
Ga naar bovenkant Reageer
Powered by FireBoardbezorg de laatste berichten direct op de desktop
Ghanja Alternatief - Community voor een open wereld!
   
Copyright © 2005 - 2012 Ghanja.be - Sitemap