Search

How to set default image , either using the front end event or from from the back end

am using version 2.1.2

while user registration the user should have default image stored in the database how to achieve this in symphony ?

You could set the path to this image in the event that creates a new member. But storing the default seems kind of redundant. In the past I have opted to check for existence of an image using XSLT and then show a default if none exists.

ok thanks nick

another help how to store image with random name in symphony ?

a random filename? check out michael's unique upload field if you're looking to avoid name conflicts. otherwise, his code could easily be modified to do what you're looking for.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details