TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

October 11, 2024, 02:43:58 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,395
  • Total Topics: 21,244
  • Online today: 140
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 108
  • Total: 108

Flash gallery

Started by YahMan, August 24, 2006, 07:21:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

YahMan

Not really a snippet, but I wanted to let you guys and gals in on it. I found a flash gallery which is so easy to set up and maintain.....First download it here: http://www.stegmann.dk/mikkel/porta/ after that, install and make a new folder containing your photos and point the gallery towards that. Before you continue, make sure you set up simpleviewer as the default viewer so your members see the flash gallery. Now hit start and the program makes the gallery, you van view it after that's done and if all's well, upload it to your server. The default album name for the server is "album" no need to alter that but if you want to....Then simply add an iFrame to an article or just create a link to the album i.e: www.yoursite.com/album/index.html Have fun with it.

For a demo, look at my site: Click here.

daftdate

That looks really interesting thanx for the link I think I will have a play around with it over the weekend.  :)

rbh

nice looking gallery. :up:

going off topic a bit, but did you use a mod or file hack to make the icons for your boards each different? do they change with new posts? i had found something over at smf awhile back for doing this, but it wasnt in english and the guy who did the mod moved the support to his site. i have tried asking a couple different times at smf, but as usual my questions there generally go unanswered. :) i would be greatful for for some direction.

YahMan

Easiest way to do it is to upload different images and name them according to the board ID:

on_{boardid}.gif
on2_{boardid}.gif - this is the slightly lighter one used to indicate that there are only new posts in the child boards.
off_{boardid}.gif

Replace {boardid} with the actual board ID for each image (no curly brackets of course) and upload these images to the "images" folder for each theme (ie Themes/default/images, etc.).

Then just modify BoardIndex.template.php and MessageIndex.template.php (for child boards) like so:

Find:
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';


Replace with:
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/on_', $board['id'], '.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2_', $board['id'], '.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/off_', $board['id'], '.gif" alt="', $txt[334], '" title="', $txt[334], '" />';