Loading...
 
Skip to main content

History: Random_header_images

Preview of version: 1

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
Copy to clipboard
instructions: Instructions preferences: style: $profilerequest:style$gradiant.css$ feature_iepngfix: y # prevents major ugliness in IE6 feature_topbar_custom_code: wikicontent:Random_header_images_Custom_Code 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
Copy to clipboard
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
Copy to clipboard
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



YAML
Copy to clipboard
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
Copy to clipboard
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








History

Information Version
Fri 14 of Oct, 2016 09:26 GMT-0000 Xavi (as xavidp - admin) Mass search and replace 17
View
Fri 14 of Oct, 2016 09:26 GMT-0000 Xavi (as xavidp - admin) Mass search and replace 16
View
Fri 14 of Oct, 2016 09:26 GMT-0000 Xavi (as xavidp - admin) Mass search and replace 15
View
Fri 14 of Oct, 2016 09:26 GMT-0000 Xavi (as xavidp - admin) Mass search and replace 14
View
Fri 14 of Oct, 2016 09:26 GMT-0000 Xavi (as xavidp - admin) Mass search and replace 13
View
Fri 14 of Oct, 2016 09:26 GMT-0000 Xavi (as xavidp - admin) Mass search and replace 12
View
Fri 14 of Oct, 2016 09:17 GMT-0000 Xavi (as xavidp - admin) Mass search and replace 11
View
Thu 27 of Mar, 2014 10:35 GMT-0000 Xavier de Pedro returning to the hardcoded size for the module img width in the header (max-width 100% and height auto didn't work as expected 12x nor in 13x). Thanks chibaguy anyway for the hint 10
View
Thu 27 of Mar, 2014 10:32 GMT-0000 Xavier de Pedro fgal_fix_mime_type added to attempt to fix the issue detected by Gary (Windows I guess). Also changing default params for the img plugin call in the header custom module 9
View
Wed 12 of Mar, 2014 10:34 GMT-0000 Xavier de Pedro image added 8
View
Wed 12 of Mar, 2014 10:20 GMT-0000 Xavier de Pedro added info about elFinder 7
View
Wed 12 of Mar, 2014 10:18 GMT-0000 Xavier de Pedro added prefs for elfinder 6
View
Wed 12 of Mar, 2014 10:09 GMT-0000 Xavier de Pedro updated info 5
View
Wed 12 of Mar, 2014 10:06 GMT-0000 Xavier de Pedro updated info 4
View
Wed 12 of Mar, 2014 09:59 GMT-0000 Xavier de Pedro made some settings configurtable at profile application time (requested to tiki admin) 3
View
Wed 12 of Mar, 2014 09:50 GMT-0000 Xavier de Pedro removed references to custom code 2
View
Wed 12 of Mar, 2014 09:43 GMT-0000 Xavier de Pedro first version 1
View