Announcement

Collapse
No announcement yet.

Is there an easier way to copy product images,ie: buttons, to all sub-styles?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is there an easier way to copy product images,ie: buttons, to all sub-styles?

    I am lucky to have root access on my webserver. What I'm doing now is uploading the graphics to a ~/uploadgraphics directory (name it as you wish) and then create a subdirectory for each product that has images (buttons, statusicon, etc).

    If anyone knows of a mod/script/whatever to do this, please let me know. It got so tedious with the 40-50 some styles I believe I have enabled that I copied and pasted a shell command to replicate those files under buttons and those files under statusicon into all the other styles online.

    Here is the script, you will need to know basic unix commands to make sense of it, but for those with limited experience "*" is all files "*.png" is all .png's, etc.

    // - command begins here (buttons)

    cp * /var/www/vhosts/your-site.com/httpdocs/images/anime/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/average/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/blaze/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_aquamarine/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_black/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_chartreusebuttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_chestnut/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_coral/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_cyan/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_db/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_gold/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_gray/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_lblue/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_lgreen/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_orange/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_orchid/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_pblue/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_pink/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_plum/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_rosybrown/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_royalblue/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_tan/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_violet/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_yellow/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo2/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo2_green/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo2_purple/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo2_red/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_cyan/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_darkblue/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_green/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_orange/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_pink/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_purple/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_red/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/Darkness2/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/deviation/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/evid_blue/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/evid_green/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/D/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/imagination/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/orange_g/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/styles/blacksmart/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/styles/desert_sand/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/styles/redbox/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/techforums/buttons && cp * /var/www/vhosts/your-site.com/httpdocs/images/variance/buttons



    ------


    Copy statusicon

    cp * /var/www/vhosts/your-site.com/httpdocs/images/anime/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/average/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/blaze/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_aquamarine/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_black/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_chartreusestatusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_chestnut/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_coral/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_cyan/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_db/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_gold/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_gray/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_lblue/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_lgreen/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_orange/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_orchid/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_pblue/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_pink/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_plum/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_rosybrown/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_royalblue/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_tan/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_violet/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_yellow/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo2/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo2_green/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo2_purple/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo2_red/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_cyan/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_darkblue/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_green/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_orange/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_pink/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_purple/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_red/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/Darkness2/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/deviation/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/evid_blue/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/evid_green/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/D/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/imagination/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/orange_g/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/styles/blacksmart/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/styles/desert_sand/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/styles/redbox/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/techforums/statusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/variance/statusicon


    -----------

    Image Root Uploads

    cp * /var/www/vhosts/your-site.com/httpdocs/images/anime && cp * /var/www/vhosts/your-site.com/httpdocs/images/average && cp * /var/www/vhosts/your-site.com/httpdocs/images/blaze && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_aquamarine && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_black && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_chartreusestatusicon && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_chestnut && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_coral && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_cyan && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_db && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_gold && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_gray && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_lblue && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_lgreen && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_orange && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_orchid && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_pblue && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_pink && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_plum && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_rosybrown && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_royalblue && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_tan && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_violet && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo_yellow && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo2 && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo2_green && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo2_purple && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_evo2_red && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_cyan && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_darkblue && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_green && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_orange && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_pink && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_purple && cp * /var/www/vhosts/your-site.com/httpdocs/images/ca_serenity_red && cp * /var/www/vhosts/your-site.com/httpdocs/images/Darkness2 && cp * /var/www/vhosts/your-site.com/httpdocs/images/deviation && cp * /var/www/vhosts/your-site.com/httpdocs/images/evid_blue && cp * /var/www/vhosts/your-site.com/httpdocs/images/evid_green && cp * /var/www/vhosts/your-site.com/httpdocs/images/D && cp * /var/www/vhosts/your-site.com/httpdocs/images/imagination && cp * /var/www/vhosts/your-site.com/httpdocs/images/orange_g && cp * /var/www/vhosts/your-site.com/httpdocs/images/styles/blacksmart && cp * /var/www/vhosts/your-site.com/httpdocs/images/styles/desert_sand && cp * /var/www/vhosts/your-site.com/httpdocs/images/styles/redbox && cp * /var/www/vhosts/your-site.com/httpdocs/images/techforums && cp * /var/www/vhosts/your-site.com/httpdocs/images/variance
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X