71
jordi_rc
Re: What is this commented code in registerform.php?
  • 2006/9/27 17:34

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


More:

If I create a folder in images/ called avatar/ and save my avatars there, the list appears, an image by its side and the window buttons showing avatars work perfect.
Don't forget to make chmod 777 to all those files and folder.

NOW PLEASE how to modify the place where avatars are stored?
I will try to find it, but please tell me all the places where I should modify to not forget any... remember: I am a beginner in Xoops.

Hope all this may be valuable for someone else.
Thanks.

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



72
jordi_rc
Re: What is this commented code in registerform.php?
  • 2006/9/27 17:27

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


I discovered that if you uncomment another line that is under all these between others, avatar selection is activated on register.

But I see that it doesn't seems to work.

It appears a drop down list that contains no options, and a link that says "XOOPS". If you clic the link, it opens a window that shows avaliable avatars. (Where is the template for that?? It needs some improving)
But if you select one, and clic the button, nothing seems to happen.

Is this an experimental code or how can I activate it?

I see in the code that it refers to images/avatars. And my avatars are stored in uploads directory. How can I customize the place to save my avatars? I mean, to store them in images/avatars so they are apart from other images.

Thanks again, please say anything that may help, or any ideas.

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



73
jordi_rc
What are registerform and register.php for?
  • 2006/9/27 17:07

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Hello.

I am new in XOOPS and PHP.
I just like to know if there is some small tutorial or guide to know what are registerform.php and register.php for. What are they used for and how they work together?

Is there some guide to know what is the use for pages like that in xoops?

Thanks.

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



74
jordi_rc
What is this commented code in registerform.php?
  • 2006/9/27 16:47

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Hello!

I am customizing my register of users and I saw that the file registerform.php has this code under comments:

//$avatar_select = new XoopsFormSelect("", "user_avatar", $user_avatar);
//$avatar_array =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/images/avatar/");
//$avatar_select->addOptionArray($avatar_array);
//$a_dirlist =& XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH."/images/avatar/");
//$a_dir_labels = array();
//$a_count = 0;
//$a_dir_link = "<a href=\"javascript:openWithSelfMain('".XOOPS_URL."/misc.php?action=showpopups&type=avatars&start=".$a_count."','avatars',600,400);\">XOOPS</a>";
//$a_count = $a_count + count($avatar_array);
//$a_dir_labels[] = new XoopsFormLabel("", $a_dir_link);
//foreach ($a_dirlist as $a_dir) {
// if ( $a_dir == "users" ) {
// continue;
// }
// $avatars_array =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/images/avatar/".$a_dir."/", $a_dir."/");
// $avatar_select->addOptionArray($avatars_array);
// $a_dir_link = "<a href=\"javascript:openWithSelfMain('".XOOPS_URL."/misc.php?action=showpopups&type=avatars&subdir=".$a_dir."&start=".$a_count."','avatars',600,400);\">".$a_dir."</a>";
// $a_dir_labels[] = new XoopsFormLabel("", $a_dir_link);
// $a_count = $a_count + count($avatars_array);
//}
//$avatar_select->setExtra("onchange='showImgSelected(\"avatar\", \"user_avatar\", \"images/avatar\", \"\", \"".XOOPS_URL."\")'");
//$avatar_label = new XoopsFormLabel("", "<img src='images/avatar/blank.gif' name='avatar' id='avatar' alt='' />");
//$avatar_tray = new XoopsFormElementTray(_US_AVATAR, "&nbsp;");
//$avatar_tray->addElement($avatar_select);
//$avatar_tray->addElement($avatar_label);
//foreach ($a_dir_labels as $a_dir_label) {
// $avatar_tray->addElement($a_dir_label);
//}


What is this for??
I think it is for selecting an avatar when one registers.
But I remove the // and nothing seems to change. Why?

And if this is not for that, how will I be able to do ONE of the following:

1) TO HAVE 2 REGISTER FORMS OR PAGES. One is the neccesary fields to fill to enter the community, and the other is to fill other fields that are not necesary but helpful like avatar, hobbiens, etc.

2) Redirect the user after filling the needed fields to register to the view/edit profile page.

Any ideas? Thanks.

Jordi.
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



75
jordi_rc
Re: What is this commented code in registerform.php?
  • 2006/9/23 15:01

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Xoops 2.0.15, the last version.

By the way... what file should I edit to display my default avatar for "new members" block and others that are part of XOOPS ? I did a default avatar with name blank.gif but it is displayed in people's account and some modules but not in "new members" and other blocks that come with XOOPS core.

Thanks.

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



76
jordi_rc
What is this commented code in registerform.php?
  • 2006/9/23 12:57

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


I saw that in the file include/registerform.php there is some registered code that has been deactivated by placing // before all lines.
It is about some avatar issues.

What is this for?
I delete all the // but it seems to do nothing. Nothing changes in the register of new users.
How can I make new users to pick an avatar on register?

Thanks.

Jordi.
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



77
jordi_rc
Re: Epsilon-3.net
  • 2006/9/13 5:24

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Nice site, very interesting.

It's good to see a short description of the new before reading it all.

Have you considered just concentrate in science news?
There are many movies and computers news sites in www, but few about divulgative science.

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



78
jordi_rc
Re: Backing it all up
  • 2006/9/7 21:07

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Thanks Ghettonet!

You solved all the doubts that I had.



Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



79
jordi_rc
Re: Backing it all up
  • 2006/9/6 19:30

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Thanks for this explanation Ghettonet!

My files are in a directory inside

/opt/lampp/htdocs/

As I used XAMPP for setup my web server.

So I suppose I must do:

tar cfvz mysite.tar.gz /opt/lampp/htdocs/mysite/*

Because I have PhPMyAdmin as part of XAMPP, I can use the SQL command you gave me, or use PhPMyAdmin. I read a FAQ in XOOPS site that says this:

----
"MYSQL Backup
You will need to have access to your MySQL database via the phpMyAdmin. Under the main "Welcome to phpMyAdmin" window, you will find the "export" function.
View dump (schema) of databases:
- Select the database you want to backup
- Select SQL
- Select your compression (zipped/gzipped/bzipped)
- Press "Go"
and your database will be downloaded via your web browser to your local computer"
-----

To restore it says:

-----
"Restore your SQL database
In the new site you will need to have access to your mySQL via the "PHPMyAdmin" application again.

Upload the database by opening the "Run SQL query" window. Select the "database backup" zip file and run the query. The database will be created on the new site.
Now you have to create the same MySQL database user as in the old site and give the correct access rights to the user."
-----

Is all this right?

And now some questions more:

1) If I burn a cd with all this, may the permissions of files change to read only? Should I change them after copying from the cd to my linux hard drive. I saw that sometimes the permissions change in a file burned to a cd, and becomes "read only" or "none".
2) If I save all my website directory and the sql file, will I be able to restore it all, or I need to backup something more? I understand that not.
--------------------

Xubuntu is the best Linux I saw. It is really quick and easy. Uses Xfce as desktop and Thunar as explorer.
I tested Debian, and it was a pain to install. Then I tried Ubuntu but I downloaded a corrupted cd image. Finally I found Xubuntu, and it uses really few resources, so it is ideal for server use.
It was really easy to install, and gave no problems.
I recommend it.

Thanks Ghettonet.

Jordi

*/
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



80
jordi_rc
Re: Really need some advise to get KOIVI or FCK editor running!
  • 2006/9/4 21:15

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


I am happy you finally fixed your problem. You seemed so desperate...

I myself had been going mad until snow77 said me the problem with templates_c, that was my problem to run it.

I think the developer of XK Editor should add a simple explanation like mine to its readme note or the docs.

If not, maybe add this or a modification of this to the Q&A.

Anyway, short instructions are the better. I also get very confused when I have to read too much explanations.

Jordi.
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR




TopTop
« 1 ... 5 6 7 (8) 9 10 »



Login

Who's Online

221 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 221


more...

Donat-O-Meter

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

Latest GitHub Commits