Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: My Simple Gallery (first version)  (Read 4092 times)

Ramn

  • Newbie
  • *
  • Karma: 0
  • Posts: 3
My Simple Gallery (first version)
« on: February 14, 2009, 10:21:06 AM »

Hello, if I write on wrong forum let me know or move my topic to correct place :)
Sorry for my english.

It's my first mod for great cms snews.

My Simple Gallery (first version)
It's photo gallery for you site. Lightbox, very customizable and with image upload function from administration page. Thumbnails created automatically.
After uploading, opens new page with image preferences (it's redirect you to admin page after 1 sec)

Gallery:


And administration:



Archive:
/Gallery/
msgallery.php
msgalleryup.php
msgalleryup2.php

Installing:
1. Upload this files in your Snews
2. Open snews.php
Paste this function:

Code: [Select]
function mysimplegallery() {
include('msgallery.php');
}

Find this:
Code: [Select]
echo html_input('fieldset', '', '', '', '', '', '', '', '', '', '', '', '', '', l('login_status'));
echo '<p><a href="logout/">'.l('logout').'</a></p></fieldset></div>';

Paste after (not replace!!):

Code: [Select]
echo html_input('fieldset', '', '', '', '', '', '', '', '', '', '', '', '', '', l('msgallery'));


include('msgalleryup.php');

3. Create new page (or article) and write this function:

Code: [Select]
[func]mysimplegallery:|:[/func]

4. OPTIONAL: Open msgallery.php in your favourite editor, and make this preferences:

$galtitle = ""; - Your gallery name
$_Nocoloumns = 3; - Number of picture colums
$_Borders = 0; - Gallery border
$_Bcolors = "#ffcc44"; - Colours
$_headerfontcolor = "#339966"; - Colours
$_tableBgcolor = "#ffffff"; - Colours


PS: It's my first addon, i test it only in localhost not in the web:)

In New version: Multiple file uploads, Albums, preferences editing at admin page and more..:))

Download here: I found a bug, wait new version soon

« Last Edit: February 15, 2009, 01:01:17 PM by Ramn »
Logged

Nicu Alecu

  • Full Member
  • ***
  • Karma: 12
  • Posts: 224
    • BLUEBYTE.ro // IT consultant
Re: My Simple Gallery (first version)
« Reply #1 on: February 14, 2009, 10:55:57 AM »

A working online demo (maybe with admin access) would be nice.
Logged

asundrus

  • Newbie
  • *
  • Karma: 1
  • Posts: 20
Re: My Simple Gallery (first version)
« Reply #2 on: April 25, 2009, 04:13:40 AM »

Any updates coming soon? i'd love to try this out.
Logged

mantra

  • Newbie
  • *
  • Karma: 0
  • Posts: 16
Re: My Simple Gallery (first version)
« Reply #3 on: February 19, 2010, 01:58:30 AM »

Any change yet .. ??
Logged