Icons, Smiles & Avatars in ocPortal
http://blog.arvixe.com/icons-smiles-ava ... -ocportal/
Icons in ocPortal
This addon is called ocIcon and was made by the main programmer behind ocPortal, Chris Graham.
To install this addon
Log in to your adminzone
Navigate to the structure and then addons section of the Adminzone
Scroll down to and click import non bundled addons
On the next screen select the download check box an expand the Graphical addons section of the tree
Select ocIcons and click the Import Non-Bundled addons button
The next screen will show you which files will be update as the addon is installed. It is important you check this list carefully if you have changed any templates on your site or any of the other coding. There should only be around 5 or 6 files for this addon
Once you are happy click proceed which is found in the bottom right
If you would like to edit the files yourself via FTP you can find them in your FTP in the Themes > Default > images > bigicons folder. Take care if you change the icons to make sure you don’t upload any files of different pixel sizes as this will likely break your theme.
Smilies in ocPortal
add emoticonLike Icons, there is a ready-made addon to add extra Smilies or emoticons to your ocPortal website. This is called ocSmilies and can be installed in the normal way of installing an addon as above. Just make sure you choose ocSmilies instead of ocIcons. There is also an emoticons section to the adminzone where you can add and edit smilies for your website. This section can be found in the style section of the adminzone and then choose Emoticons.
You have three options:
Import Emoticons which allows you to upload a zipped file of multiple images which will be added to the emoticons list
Add emoticon which allows you to add single emoticons or add the cod for the emoticons you uploaded through the import Emoticons option
Edit Emoticon allows you to edit all of the Emoticons you have added
If you would like to add the files via FTP you can find them in your FTP in the Themes > Default > images > ocf_emoticons folder.
Avatars in ocPortal
ocPortal comes with a range of example or default Avatars included but you may want to upload your own set or even delete the default ones completely. If you would like to edit the files via FTP you can find them in your FTP in the Themes > Default > images > ocf_default_avatars folder
- See more at:
http://blog.arvixe.com/icons-smiles-ava ... -ocportal/
http://ocportal.com/docs9/tut_members.htm#title__14
ocPortal provides two sets of default avatars for inartistic/uninspired members to choose from (or possibly, if they just love our default avatars!). However, members may also upload their own avatars, or link to an avatar elsewhere.
If there is a theme image with the name ocf_default_avatars/default then this will be used as the default avatar a member gets when the join, otherwise default avatars will be picked randomly.
Avatar size is limited by the maximum size determined by any of their usergroups. 80x80 pixels is the size ocPortal uses by default.
It is beyond the scope of this tutorial how to create avatars. However, avatars are images no different than the theme images in ocPortal (and the default avatars are theme images), so whatever applies to editing theme images also applies to avatars.
Our default avatars may not be appropriate for some sites, but they can be changed. This can be done using the theme image manager. To actual get rid of the existing default avatars, you will need to delete the files from your web-space using an FTP program, and then to clear the theme image cache using the ocPortal Website cleanup tools module in the Admin Zone.
To add new avatars, you need to add new theme images. You can add whole sets of avatar this way. The easiest way to add theme images in bulk is just to use FTP, uploading them to:
themes/default/images/ocf_default_avatars/<packname>
You can also do it using the Theme management tools, making sure the theme image names have a prefix of ocf_default_avatars/<packname>.