Modules

Pictureurl V1 is out

philou  25-May-2005 20:46 5697 Reads  10
This very simple module allow to display a different picture to each page of your XOOPS website.
It adds 2 new smarty variables, including possibly a display style for the picture.

Administration
This module does not have any menu or block.
Start by uploading your pictures with admin interface, or directly by ftp in uploads/pictureurl directory of your website.

The form 'create a picture' allows to associate a picture to a page (url) of your site.

you can use 2 new smarty vars, one classic div and one with css attributes

Download the module Pictureurl

Thanks to Christian for the doc page

Installation At the module installation, a picture storage directory will be created automatically (uploads/pictureurl). To use the smarty variable, you must modify the file header.php, at your website root. Yous must paste the following code just before the line // Weird, but need extra tags for 2.0.x themes , for example. // module pictureurl Philou include_once XOOPS_ROOT_PATH.'/modules/pictureurl/include/function.php'; $xoopsTpl->assign('xoops_pictureurl', xoops_getpictureurl()); $xoopsTpl->assign('xoops_pictureurlcss', xoops_getpictureurlcss()); // end pictureurl Philou Smarty variables integration in your theme or template Edit the file theme.html for example and insert <{$xoops_pictureurl}> or <{$xoops_pictureurlcss}> at the place where your picture must be displayed. Don't forget to answer yes in admin system, preferences, general parameters, Theme, files update by themes/ directory in order to validate your modification.
Rating 0/5
Rating: 0/5 (0 votes)
Votes are disable!
Print article


Login

Username:
Password:

Lost Password? Register now!

Recent Comments

Who's Online

76 user(s) are online (1 user(s) are browsing Publisher)


Members: 0


Guests: 76


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits

Categories