This profile adds a module in the top zone that displays a random image from a File Gallery. You can see a working demo in profile 'Easy GeoBlog', which also includes sample images:
- default configuration uses images at 800x150px, resized at 980px wide by the header module
- a different random image is shown at each page load
- tweak the module and file gallery defaults as needed for your needs
Pages in profiles.t.o involved:
6 pages found for title search '
Random_header_images'
Introduction
Features (Quick List)
- Random header image from files included in a file gallery
Features & Settings (YAML)
YAML
instructions: Instructions
preferences:
style: $profilerequest:style$gradiant.css$
feature_iepngfix: y # prevents major ugliness in IE6
header_custom_css: wikicontent:Random_header_images_Custom_CSS
feature_top_bar: y
feature_file_galleries: y
sitemycode_publish: y
feature_layoutshadows: y
feature_jquery: y
User Interface (YAML)
Modules
YAML
objects:
-
type: module
ref: module_header_pics
data:
name: Header Pictures
position: top
order: 2
groups: [ Anonymous, Registered ]
mode: create_or_update
params:
notitle: y
nobox: y
custom: "{CENTER()}{img randomGalleryId="$profileobject:header_pictures_gallery_id$" stylebox="border" width="980"}{CENTER}"
parse: y
Object Creation (YAML)
Wiki Pages
YAML
objects:
-
type: wiki_page
ref: random_header_images_instructions_include
data:
name: Instructions for Random Header Images
description: Profile Instructions
lang: en
mode: create_or_update
content: wikicontent:Random_header_images_Instructions
File Gallery
YAML
objects:
-
type: file_gallery
ref: header_pictures_gallery_id
data:
name: Header Pictures
description: Images for the header at 800 x 150 px that will be resized to 980px in the header module
owner: admin
archives: 0
flags: [ public, visible, lockable ]
column: [ icon, name, created, creator, files ]
init_files:
- http://tiki.org/display505
- http://tiki.org/display507
- http://tiki.org/display508
- http://tiki.org/display509
- http://tiki.org/display510
- http://tiki.org/display511
Header images are derived from the ones taken by Jean-Marc Libs (jyhem) in Barcelona during the
TikiFestBarcelona2 in 2010.
Groups & Permissions (YAML)
Name | Description
|
Anonymous | Anonymous users can read blog posts and add comments
|
Registered | Standard registered users
|
Editors | Can upload new images to file galleries
|
YAML
permissions:
Anonymous:
allow:
- download_files
- list_file_galleries
- view_file_gallery
description: Already exists
Editors:
description: Can approve & delete
allow:
- view_fgal_explorer
- view_fgal_path
- upload_files
- upload_picture
- admin_file_galleries
- clean_cache
include: Registered
RandomHeaderImages |
Random Header Images |
RandomHeaderImage |
Random_Header_Image |
RandomImages |
RandomImage |
RandomHeader |
Random Header