1
cuckston
Avatars
  • 2004/2/17 18:57

  • cuckston

  • Quite a regular

  • Posts: 268

  • Since: 2004/1/19


I have 1800 avatars, how can i upload these all to my XOOPS without having to go through each one?

2
Vargr
Re: Avatars
  • 2004/2/17 19:41

  • Vargr

  • Not too shy to talk

  • Posts: 130

  • Since: 2003/6/19


I am not sure, but I recall someone mentioning doing it through the MySQL interface by using an import-script.

Try placing your avatars in ONE directory on your harddisk. Then make a dir listing on the dir and then you get all the right names. Then you have to add some code before and after each avatar-filename which includes the path to the location where the avatars are residing on your site. This should give you an import-script for MySQL.

You could then upload one-two file and then export it from MySQL, looking at the syntax. This should give you a pointer as to what code you should have before and after each file.

The above, however, is not exact, but only how I suppose it could be done. I am sure there are others who can give you more exact directions.

But remember, if you upload 1800 avatars then it will take a long time to open the avatar list when your users want to choose an avatar.

So the question is not really HOW you import 1800 avatars but IF you really want to and if it isn't in reality an exercise in futility, waste of bandwidth and time - especially for your users.

3
Grimoire
Re: Avatars
  • 2004/2/17 20:50

  • Grimoire

  • Just popping in

  • Posts: 33

  • Since: 2003/11/18


It would be SO much easier if XOOPS took a page from myphpnuke's play book. with mpn all you do is drop the avatars in the 'avatar' folder and boom, done. The avatars are automaticly named using their filenames.

Having to import one at a time, or hacking code is a real annoyance and inefficient IMO.

4
sunsnapper
Re: Avatars

Here is a thread on the multi-avatar hack:
https://xoops.org/modules/newbb/viewtopic.php?topic_id=15945&forum=14

Here is the thread on manually creating an sql script for mass avatars.
https://xoops.org/modules/newbb/viewtopic.php?topic_id=6473&forum=20#26686

Login

Who's Online

919 user(s) are online (62 user(s) are browsing Support Forums)


Members: 0


Guests: 919


more...

Donat-O-Meter

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

Latest GitHub Commits