This small, little mod will add a nice looking flash counter with rotating numbers to your gallery.
------- [
Features ] ----------
- multi user tracking (getting user name from 4Images)
- multi languages (English,German and Korean included)
- fully customizable (Flash fla file is included)
- shows users today's, yesterdays and total hits
- date and time
------- [
Screenshots ] ----------
check out the attachments or in action
http://www.websitdiy.com/cgi/shcounter.html------- [
spec. requirements ] ----------
important: Your server
must be capable of executing Perl scripts. Some servers only allow cgi file in specific directories like "cgi-bin".
---------- [
New files ] -----------
shcounter_multi.swf
shcounter_multi.cgi
German
English
Korean
templates/<your template>/counter.html--------- [
Changed Files ] --------
/lang/english/
main.php/includes/
page_header.php------- [
Installation in 4Images 1.7.3] ----------
Step 1)- backup your current 4Images installation
Step 2)go to your <
cgi-bin> directory:
- upload the shcounter_multi.cgi
- create a folder
log right there
permissions to be set:
log :chmod 766
shcounter.cgi :chmod 755
For additional Info's about installing read the "README_multi.txt" in the zip file...Before you continue with the next step try to get the included shcounter_multi.html to work with your web server.Step 3)
- open /lang/english/main.php and insert at the end ->
before the ?> sign//-----------------------------------------------------
//--- Counter Settings ------
//-----------------------------------------------------
$lang['counter_lang']="English";
$lang['counter_title']="your domain";
$lang['counter_pause']="3";
apply this step to all your installed language files (main.php)
Step 4)- open /include/page_header.php and search for
$site_template->register_vars(array(
and add below:
"lang_counter_lang" => $lang['counter_lang'],
"lang_counter_title" => $lang['counter_title'],
"lang_counter_pause" => $lang['counter_pause'],
insert the end of
page_header.php ->
before the ?> sign$site_template->register_vars("counter", $site_template->parse_template("counter"));
Step 5)create a new template called "
counter.html" and save it in your
templates/<your template>/insert this:
<div id="counter" style="position:relative;left:14px;">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=120 HEIGHT=40>
<PARAM NAME=movie VALUE="Counter.swf?cgilocation=http://<your domain>/cgi-bin/shcounter_multi.cgi&language={lang_counter_lang}&languageBase={template_url}/language&title={lang_counter_title}&id={current_user_name}&pauseTime={lang_counter_pause}">
<PARAM NAME=loop VALUE=false>
<PARAM NAME=menu VALUE=true>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="Counter.swf?cgilocation=http://<your domain>/cgi-bin/shcounter_multi.cgi&language={lang_counter_lang}&languageBase={template_url}/language&title={lang_counter_title}&id={current_user_name}&pauseTime={lang_counter_pause}"
loop=false menu=false quality=high
bgcolor=#FFFFFF
WIDTH=120 HEIGHT=40 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT></div>
Step 6)in your directory
templates/<your template>/ - create a folder
language- upload the files
German, English, Korean etc. to this folder
Step 7)open your templates and add the {counter} where ever you like to have your counter placed... and have fun...
Enjoy

Leh00
Important notes: this mode is based on the flash counter off Author: Seungho Choo URL:
http://tangible.new21.org all rights reside at Seungho Choo
customize:Edit the included
fla file with flash (change font, color etc.)
Known problems:- after loading the page the counter shows up - but keeps on flashing "loading..." -> probably a permission problem -> check
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213