Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - diehard

Pages: [1]
1
Hi all. This is my first 4images mod. Sorry for my bad English... :)


Flash Dock slider (rotator) for 4images by Diehard and runtime  (modified by V@no)

This is random flash thumbnail slider (rotator) for 4images with image reflector v.1.2.

Works fine with v.1.7.x

DEMO: http://wallpapers.bgvest.com/categories.php?cat_id=13



The original script is taken from http://www.flashcomponents.net/component/x_treme_dock_menu_as3.html and this is free version for use !

SCREENS:



Installation

1. Upload dockmenuxml.php / AC_RunActiveContent.js / dockmenu.swf from archive in your root directory.

2. Open your template dir and add this code in header.html before closing </head> :

Code: [Select]
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
Save and close

3. Open your template dir > categories.html (or where are you want to shown rotator) and add this code:


Code: [Select]
<!-- ------------------------------------------------------------ -->
<!-- [MOD] Flash Dock rotator -------------- by Diehard & runtime -->
<!-- START ------------------------------------------------------ -->
<?php
global $site_sess;
$xml $site_sess->url(ROOT_PATH."dockmenuxml.php?xml");
?>

<script language="javascript">
    if (AC_FL_RunContent == 0) {
        alert("This page requires AC_RunActiveContent.js.");
    } else {
        AC_FL_RunContent(
            'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
            'width', '750',
            'height', '180',
            'src', 'dockmenu',
            'quality', 'high',
            'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
            'align', 'middle',
            'play', 'true',
            'loop', 'true',
            'scale', 'showall',
            'wmode', 'window',
            'devicefont', 'false',
            'id', 'dockmenu',
            'bgcolor', '#E6E6E6',
            'name', 'dockmenu',
            'menu', 'false',
        'reflectAlpha', '80',
            'allowFullScreen', 'false',
            'allowScriptAccess','sameDomain',
            'movie', 'dockmenu',
            'salign', '',
            'FlashVars', 'setupXML=<?=$xml?>'


            ); //end AC code
    }
</script>
<noscript>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="750" height="160" id="dockmenu" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="dockmenu.swf" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />    <embed src="dockmenu.swf" menu="false" quality="high" bgcolor="#cccccc" width="750" height="160" name="dockmenu" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    <param name="FlashVars" value="setupXML=<?=$xml?>" />

    </object>
</noscript>



 <br />

<!-- ------------------------------------------------------------ -->
<!-- [MOD] Flash Dock rotator -------------- by Diehard & runtime -->
<!-- END -------------------------------------------------------- -->

* You must change width="750" / height="180" if you want for your template design or other flash object settings.
Save and close


That’s all  :wink:

Alternative download: Download
Here is and attached file:

2
Hi!

you can test how much memory will need your pictures.

copy the attached file and a image called  testimg.jpg in your root and call it to "gdtest.php".
now you can see how many memory your image will need.

mfg Andi


This is result:
convert start = 65.133 kb
convert end = 22.106 mb


I found a problem. The Apache mod_qos stoped my upload request :) When i stoped it, all is OK.
Thanks V@no / Rembrandt for help...

This is config for this Apache mod:

Code: [Select]
## QoS Settings
<IfModule mod_qos.c>
    # handles connections from up to 100000 different IPs
    QS_ClientEntries 100000
    # will allow only 50 connections per IP
    QS_SrvMaxConnPerIP 50
    # maximum number of active TCP connections is limited to 256
    MaxClients              256
    # disables keep-alive when 70% of the TCP connections are occupied:
    QS_SrvMaxConnClose      180
    # minimum request/response speed (deny slow clients blocking the server, ie. slowloris keeping connections open without requesting anything):
    QS_SrvMinDataRate       150 1200
    # and limit request header and body (carefull, that limits uploads and post requests too):
    # LimitRequestFields      30
    # QS_LimitRequestBody     102400
</IfModule>

And i add local IP`s
     
Code: [Select]
QS_SrvMaxConnExcludeIP                    127.0.0.1
     QS_SrvMaxConnExcludeIP                    192.168.0.
Now everything work fine and flooders stoped and upload images is OK ;)

3
how big are the average of images, in pixel ?

1600x1200 / 1920x1200 / 1280x1024 .....


if it's exact number of images every time, then it could be some server restrictions. mod security is known on restrict nimber of POST fields

ask your host admin if anything like this installed

I`m the host admin... this is my server... I am not installed MOD SECURITY. The number of images is not exact every time but is more then 10 .
I noticed that after upload 10 photos in "Check new images log" shows 10 added but in site added 30 images hmmm....

4
...
Whats the problem ?
.....
your server has not enough memory.
check your php memory limit.
if they can, they set higher PHP memory limit.

My memory is: memory_limit = 512M
hmmm and problem stay...

5
Please provide step-by-step how you do it.
Ok! Sorry about that.

1. I uploaded almost 100 images in a folder (category) through ftp.
2. Then i clicked on Check new images in admin, and choose the folder/category in the dropdownlist, and pressed the "Check new images" button.
3. 30 of the images is shown in the results.
4. I check all images, and then press "Add". Now the problem occurs. No new images added!

No errors or other messages is shown, just No new images added!".

I have a similar problem
1.I uploaded 100-600 images in a folder through ftp.
2.Then i clicked on Check new images and choose the folder/category in the dropdownlist, and pressed the "Check new images" button.I choise  100 images to shown.
3.100 images shown in the result ... this is OK , and i check it .
4.When i click to ADD button , only 10-12 images are added of 100 checked.

Whats the problem ?
In clear instalation of 4images 1.7.8 everything is working but...

Code: [Select]
Check new images log
     Working on data/media/8/New car 08 .jpg file
File renamed from New car 08 .jpg to new_car_08_.jpg
Copied file into data/media/8/big folder.
Thumbnail created.
Image resized.
Added annotation in data/media/8/new_car_08_.jpg file.
Added annotation in data/media/8/big/new_car_08_.jpg file.
Image added: New car 08

Working on data/media/8/New car 09 .jpg file
File renamed from New car 09 .jpg to new_car_09_.jpg
Copied file into data/media/8/big folder.
Thumbnail created.
Image resized.
Added annotation in data/media/8/new_car_09_.jpg file.
Added annotation in data/media/8/big/new_car_09_.jpg file.
Image added: New car 09

Working on data/media/8/New car 10 .jpg file
File renamed from New car 10 .jpg to new_car_10_.jpg
Copied file into data/media/8/big folder.
Thumbnail created.
Image resized.
Added annotation in data/media/8/new_car_10_.jpg file.
Added annotation in data/media/8/big/new_car_10_.jpg file.
Image added: New car 10

Working on data/media/8/New car 11 .jpg file
File renamed from New car 11 .jpg to new_car_11_.jpg
Copied file into data/media/8/big folder.
Thumbnail created.
Image resized.
Added annotation in data/media/8/new_car_11_.jpg file.
Added annotation in data/media/8/big/new_car_11_.jpg file.
Image added: New car 11

Working on data/media/8/New car 12 .jpg file
File renamed from New car 12 .jpg to new_car_12_.jpg
Copied file into data/media/8/big folder.
Thumbnail created.
Image resized.
Added annotation in data/media/8/new_car_12_.jpg file.
Added annotation in data/media/8/big/new_car_12_.jpg file.
Image added: New car 12

Working on data/media/8/New car 13 .jpg file
File renamed from New car 13 .jpg to new_car_13_.jpg
Copied file into data/media/8/big folder.
Thumbnail created.
Image resized.
Added annotation in data/media/8/new_car_13_.jpg file.
Added annotation in data/media/8/big/new_car_13_.jpg file.
Image added: New car 13

Working on data/media/8/New car 14 .jpg file
File renamed from New car 14 .jpg to new_car_14_.jpg
Copied file into data/media/8/big folder.
Thumbnail created.
Image resized.
Added annotation in data/media/8/new_car_14_.jpg file.
Added annotation in data/media/8/big/new_car_14_.jpg file.
Image added: New car 14

Working on data/media/8/New car 15 .jpg file
File renamed from New car 15 .jpg to new_car_15_.jpg
Copied file into data/media/8/big folder.
Thumbnail created.
Image resized.
Added annotation in data/media/8/new_car_15_.jpg file.
Added annotation in data/media/8/big/new_car_15_.jpg file.
Image added: New car 15

Working on data/media/8/New car 16 .jpg file
File renamed from New car 16 .jpg to new_car_16_.jpg
Copied file into data/media/8/big folder.
Thumbnail created.
Image resized.
Added annotation in data/media/8/new_car_16_.jpg file.
Added annotation in data/media/8/big/new_car_16_.jpg file.
Image added: New car 16

Working on data/media/8/New car 17 .jpg file
File renamed from New car 17 .jpg to new_car_17_.jpg
Copied file into data/media/8/big folder.
Thumbnail created.
Image resized.
Added annotation in data/media/8/new_car_17_.jpg file.
Added annotation in data/media/8/big/new_car_17_.jpg file.
Image added: New car 17

Working on data/media/8/New car 18 .jpg file
File renamed from New car 18 .jpg to new_car_18_.jpg
Copied file into data/media/8/big folder.
Thumbnail created.
Image resized.
Added annotation in data/media/8/new_car_18_.jpg file.
Added annotation in data/media/8/big/new_car_18_.jpg file.
Image added: New car 18

Working on data/media/8/New car 19 .jpg file
File renamed from New car 19 .jpg to new_car_19_.jpg
Copied file into data/media/8/big folder.
Thumbnail created.
Image resized.
Added annotation in data/media/8/new_car_19_.jpg file.
Added annotation in data/media/8/big/new_car_19_.jpg file.
Image added: New car 19

Working on data/media/8/New car 20 .jpg file

Working on data/media/8/New car 20 .jpg file.... and end  :(

6
Mods & Plugins (Releases & Support) / Re: [Mod] Photo Of The Day
« on: July 29, 2010, 10:43:57 AM »
Hi all.
This is my sql query in a "photo of the day" by  postcards  sended since beginning of the day




Code: [Select]
$timestamp = strtotime(date("d-m-Y"));
$sql = "SELECT c.image_id, COUNT(c.image_id ) AS NumOccurrences, c.postcard_date, i.image_id,  i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date,  i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url,  i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes,  i.image_rating, i.image_hits, d.cat_name
FROM (".POSTCARDS_TABLE." AS c)
LEFT JOIN (".IMAGES_TABLE." AS i, ".CATEGORIES_TABLE." d) ON ( c.image_id = i.image_id )
WHERE (c.postcard_date > ".$timestamp.")
GROUP BY c.image_id
HAVING (COUNT( c.image_id ) >1)
ORDER BY NumOccurrences DESC
LIMIT 1";


7
how can I integrate into 4images?

8
Here is my Skype emoticons  :wink:

Code: [Select]
//--------------------------
//--------Smiles------------
//--------------------------
function smilies($text,$enablesmilies = 1) {
  global $smileyfromcache, $smileytocache;
  $imagesdir = TEMPLATE_PATH."/smiles";
  if(gettype($smileyfromcache) != "array") {
$smilesfrom = array(
      ":)" => "smile",
";)" => "wink",
":(" => "sad",
":D" => "laugh",
"8-)" => "calm",
":o" => "surprised",
                                   ";(" => "sob",
"(sweat)" => "sweat",
":|" => "silence",
":*" => "kiss",
":P" => "tonque",
":$" => "blush",
"(blush)" => "blush",
":^)" => "wondering",
"|-)" => "sleepy",
"|-(" => "dull",
"|(" => "dull",
"(inlove)" => "inlove",
"]:)" => "evil-grin",
"(talk)" => "talking",
"(yawn)" => "yawn",
"(puke)" => "puke",
"(doh)" => "doh",
":@" => "angry",
"(wasntme)" => "wasntme",
"(party)" => "party",
":S" => "worried",
"(mm)" => "mm",
"8-|" => "nerdy",
":x" => "lips",
":X" => "lips",
"(wave)" => "hi",
"(devil)" => "devil",
"(angel)" => "angel",
"(makeup)" => "makeup",
"(chuckle)" => "chuckle",
"(rofl)" => "rofl",
"(whew)" => "whew",
"(happy)" => "happy",
"(smirk)" => "smirk",
"(nod)" => "nod",
"(shake)" => "shake",
"(punch)" => "punch",
"(emo)" => "emo",
"(y)" => "y",
"(n)" => "n",
"(handshake)" => "handshake",
"(h)" => "heart",
"(u)" => "brocken",
"(e)" => "mail",
"(F)" => "flower",
"(rain)" => "rain",
"(sun)" => "sun",
"(o)" => "time",
"(music)" => "music",
"(~)" => "movie",
"(mp)" => "phone",
"(coffee)" => "coffee",
"(pi)" => "pizza",
                                   "(pizza)" => "pizza",
"(l)" => "heart",
"(L)" => "heart",
"(muscle)" => "muscle",
"(flex)" => "muscle",
"(cash)" => "cash",
"(^)" => "cake",
"(beer)" => "beer",
"(d)" => "drink",
"(dance)" => "dance",
"(ninja)" => "ninja",
"(*)" => "star",
"(bandit)" => "bandit",
"(bug)" => "bug",
"(drunk)" => "drunk",
"(evilgrin)" => "evilgrin",
"(finger)" => "finger",
"(flagbg)" => "flagbg",
"(fubar)" => "fubar",
"(hi)" => "hi",
"(call)" => "call",
"(envy)" => "envy",
"(wait)" => "wait",
"(clap)" => "clap",
"(think)" => "think",
"(hug)" => "bear",
"(skype)" => "skype",
"(ss)" => "skype",
"(bow)" => "bow",
"(headbang)" => "headbang",
"(mooning)" => "mooning",
"(poolparty)" => "poolparty",
"(rock)" => "rock",
"(smoke)" => "smoke",
"(tmi)" => "tmi",
"(toivo)" => "toivo",
"(yawn1)" => "yawn1",
"(swear)" => "swear"
     );
foreach ($smilesfrom as $key => $val) {
  $smileyfromcache[] ='/(((>[^<]*)|(^[^<]*))([\s\n\r]|^|<br( \/)?[>]))('.str_replace('|','\|', quotemeta(str_replace("<", "&lt;", str_replace(">", "&gt;", str_replace("\/", "\\\/", $key))))).')/s';
  $smileytocache[] = "\\1<img src=\"$imagesdir/$val.gif\" alt=\"\" border=\"0\">";
}
  }
  if ($enablesmilies) {
$text = parsesmilies($text);
  }
  return $text;
}
function parsesmilies($text) {
  global $smileyfromcache, $smileytocache;
  $oldtext = "";
  while($oldtext != $text) {
$oldtext = $text;
$text = preg_replace($smileyfromcache, $smileytocache, $text);
  }
  return $text;
}
//------End Smiles-------


 and emoticons archive ....

9
And my stars not working on IE  :? I update to ajaxrating.js v1.1 but nothing happened ....

10
Hi all ...

i tried to upload .flv file in my gallery but my file is "VP6 flash video" (encoded).
How i can create mime type for this format (flv - VP6 ) ?  :roll:

With this myme type file not working .
$mime_type_match['flv'] = array("application/x-shockwave-flash", "application/octet-stream", "video/flv");


Sorry for my bad english ...

Here is the video .flv in VP6 encoding

11
Mods & Plugins (Requests & Discussions) / Re: Postcards...
« on: September 01, 2008, 10:29:20 AM »
Yes this is mass question in the forum but not answers  :(

PLS post a exemplary code for this request .


1.Admin may upload , delete , edit - midi,mp3 files
2.Users may choice this sounds in postcards.php (drop-down form)
3.This sounds may save in data base for sended e-card

Sorry for my bad English ...  :oops:

Pages: [1]