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 - Flo2005

Pages: 1 ... 3 4 5 6 [7] 8 9 10 11 ... 16
91
Discussion & Troubleshooting / Re: Admin area very slow to load
« on: February 26, 2006, 11:15:49 PM »
With
Quote
return 0;

the index of ACP is loading faster, but the thumbnail-check takes much of time - creating of thumbails takes only a few seconds...

Is it possible to check thumbnails faster?

PLZ Help :o

92
Discussion & Troubleshooting / Repeat email when register
« on: February 26, 2006, 11:01:20 PM »
Sometimes I get failure notice when somebody´s register to my site.

How can I do this that user must repeat their email address when they register?

THX by Flo


93
Mods & Plugins (Requests & Discussions) / Random gallery banner 2006
« on: February 25, 2006, 09:57:32 PM »
I have found a script which can be very usefull for your website.

The following MOD looks like "random-image" on your gallery but it works with your gallery-banner

Each refresh on your page loads new banner with different urls -> you can try this here http://www.snuup.de/lite

1. Create a new file e.g. banner_2006.php and paste this code into it -> save it in root of 4images gallery

1b. Define the path of $base_dir & $img_url

Code: [Select]
<?php

/* Banner Simple, Version 1.0
 * by Dan Kaplan <dan@abledesign.com>
 * Last Modified: January 10, 2003
 * --------------------------------------------------------------------
 *
 * USE THIS LIBRARY AT YOUR OWN RISK; no warranties are expressed or
 * implied. You may modify the file however you see fit, so long as
 * you retain this header information and any credits to other sources
 * throughout the file.  If you make any modifications or improvements,
 * please send them via email to Dan Kaplan <dan@abledesign.com>.
 * --------------------------------------------------------------------
*/

$base_dir '/path/to/www/';
$img_url 'http://www.mysite.com/4images/templates/default/images/banner';

// add any banner sizes (width x height) that you will use:
// IAB Standards & Guidelines:  http://www.iab.net/standards/adunits.asp
$banner_sizes = array ("468x60""100x60""405x60""100x38""300x250""250x250""240x400""336x280""180x150""234x60""88x31""120x90""120x60""120x240""125x125""160x600""120x600");

$srand_called FALSE;
$last_file '';
$array '';

function 
get_banner($size='') {
global $base_dir$img_url$banner_sizes$srand_called$last_file$array;

if (empty($size) || !in_array($size$banner_sizes)) {
$size "468x60";
}

$size_split explode("x"$size);
$width $size_split[0];
$height $size_split[1];

if (empty($last_file) || ($size != $last_file) || !is_array($array)) {
// if calling muliple banners on one page, no need to read in the same file repeatedly.  so,
// if the last banner file read in is the next one called, pull the $array array from memory.

$file $base_dir."/templates/default/images/banner/banner_".$size.".txt";
if (!file_exists($file)) {
// could not load the banner file, so create a default blank image and exit
$banner "<img src=\"\" width=\"$width\" height=\"$height\" border=\"0\" alt=\"broken image\">";
return $banner;
}
$array file($file); // read $file into an array
$last_file $size; // save the last read-in file into memory
}

if (!$srand_called) {
// slightly less random without this; srand() should only be called once for multiple banners
mt_srand ((double) microtime() * 1000000);
$srand_called TRUE;
}

$rand mt_rand(1count($array)-1); // start at 1 to ignore comment line
$line chop($array[$rand]);

# URL | target="_blank" (1/0) | off-site image (1/0) | image | Alt text
$banner_split explode("|"$line);
$URL $banner_split[0];
$blank $banner_split[1];
$off_site $banner_split[2];
$image $banner_split[3];
$alt $banner_split[4];

if ($blank == 1) {
$target "target=\"_blank\"";
} else {
$target "";
}

if ($off_site == 1) {
$image $image;
} else {
$image "$img_url/$image";
}

$banner "<a href=\"$URL\" $target><img src=\"$image\" width=\"$width\" height=\"$height\" border=\"0\" alt=\"$alt\"></a>";
return $banner;
}

?>

2. Create a new folder templates/default/images/banner

3. Create a new txt file called banner_405x60.txt and paste this line into it
Code: [Select]
# URL | target="_blank" (1 = Yes, 0 = No) | off-site image (1 = Yes, 0 = No) | image | Alt text
4. Now you can add your banner and define url, target, image,... (off-site image 1 -> image is remote linked)
Code: [Select]
# URL | target="_blank" (1 = Yes, 0 = No) | off-site image (1 = Yes, 0 = No) | image | Alt text
http://www.mysite.com/4images/index.php|0|0|gallery_home.gif|Welcome to our gallery

5. Edit the following files:

categories.php
details.php
guestbook.php*
index.php
lightbox.php
member.php
memberlist.php*
pm.php*
postcards.php
register.php
search.php
top.php

*when you have installed this mod

Note: If you have installed other MODs - you have also edit these "TopLevel PHP" files!

Search in every file which is listed above:

Code: [Select]
require(ROOT_PATH.'includes/sessions.php');
Add below:

Code: [Select]
include(ROOT_PATH.'banner_2006.php');
6. Open your templates/default/

categories.html
details.html
guestbook.html*
home.html
lightbox.html
member.html
memberlist.html*
pm.html*
postcards.html
register.html
search.html
top.html

Find:
Code: [Select]
<img src="{template_url}/images/header_logo.gif" width="405" height="60" alt="" />
Replace:
Code: [Select]
<?php
echo 
get_banner("405x60");
?>

If you have installed a Template from Bali-Webdesign you have only edit header.html

*when you have installed this mod

The positive effect of this script is that you can call banner with different sizes with the same banner_2006.php

e.g.
Code: [Select]
<?php
echo 
get_banner("88x31");
?>

Now I hope I´ve nothing forget to explain! Good luck! :wink:

94
Chit Chat / Re: Keep gallery clean / Galerie sauber halten
« on: February 21, 2006, 08:03:32 PM »
Ja, den Link für den MOD hab ich auch irgendwo rumfliegen, hab halt nur gedacht, dass hier irgendwer ein paar gute Tipps/Tricks auf Lager hat, was sonst noch geht...

95
Chit Chat / Re: Keep gallery clean / Galerie sauber halten
« on: February 21, 2006, 01:10:02 PM »
Benutze 1.7.1

Mir fällt es schwer Dateien zu sortiren und teilweise weiß man nicht, was man schon in der Galerie hat und was nicht  :?

ggf. könnten User vorschlagen ob dieses Bild in dieser Kategorie gut aufgeheben ist oder vorschlagen es in eine andere Kategorie zu verschieben.

Halt, das die Galerie nicht an Übersicht verliert.

96
Can anyone tell me for what is this exactly
Code: [Select]
#40;&#41
I´ve also include some php-files and for me it works fine, but on my friends pc it doesn´t work yesterday :|

Is that the reason of a slow working apache ? How I said: For me it works...!

He´s getting this message of error:

Quote
Fatal error: Call to undefined function: get_banner()
in /var/www/..../..../httpdocs/..../includes/template.php
(101) : eval()'d code on line 53

97
Chit Chat / Keep gallery clean / Galerie sauber halten
« on: February 21, 2006, 08:22:09 AM »
Hy @ all!

Has somebody a good idea to keep the gallery clean?
Or a good method to sort categories?

---------------------------------------------------------------------------------------------

Hat jemand eine gute Idee wie man die Galerie sauber halten kann?
Oder eine gute Methode um die Kategorien zu sortieren?

98
Mods & Plugins (Requests & Discussions) / Re: Chars Limit For Comments?
« on: February 19, 2006, 04:08:15 PM »
I´ve got a question about this...

Some users write a very long username... e.g. Flo  :mrgreen: so my table will explode :roll:



Now when I set a limit of characters e.g. in field user_name what will happened when a reigistered with a long user name write a comment.

Will it be a problem or is it possible to set this limit... well I´ll try it...

99
My zip-download also doesn´t work for large files, but I don´t get a error message - there´s only a blank page on FireFox with url:
http://www......../download.php?action=zip&image_id=3206.

The size of the tested file = 8.5 MB

my php.ini
Code: [Select]
memory_limit = 32M
-------------------------------------------------------------------------------------------------------------------------------------------

Mein Zip-Download funktioniert bei großen Dateien auch nicht, aber ich bekomme keine Fehlermeldung, sondern nur eine weiße Seite im FireFox mit der URL
http://www......../download.php?action=zip&image_id=3206.

Meine php.ini
Code: [Select]
memory_limit = 32M
-------------------------------------------------------------------------------------------------------------------------------------------

Somebody knows why :?: / Jemand eine Idee :?:

100
Now it works! Thanks Timo J. for the solution :wink:

open details.php (& also in guestbook.php) find:
Code: [Select]
$comment_sicherheit = str_replace('=', '´|´', base64_encode(base64_encode($comment_sicherheit)));
add after:
Code: [Select]
$sicherheit_code = $_POST['sicherheit_code'];
$sicherheit_dec = $_POST['sicherheit_dec'];

He said the error causes on some config of php... *much thanks*

101
It works on localhost and also on my old server...

Perhaps some special modules for php are necessary?  :roll: I really don´t know where I have to search for...

102
Quote
what if you replace it with :
Code: [Select]
/* ## Safety script ## */
$comment_sicherheit = mt_srand((double)microtime()*1000000);
$comment_sicherheit .= (isset($comment_sicherheit)) ? mt_rand(000001,999999) : "";
$comment_sicherheit .= (isset($comment_sicherheit)) ? str_replace('=', '´|´', base64_encode(base64_encode($comment_sicherheit))) : "";
/* ## Safety script ## */

No, now it shows me an empty field without numbers :(

103
I´ve changed my server and now it won´t work :(

Quote
Installed the script but it keeps saying that the security code was inputted wrong...

104
Does anybody know the system requirements of this MOD? e.g. php-version - perhaps my new server doesn´t support this:!::?:

105
ok *thx*

but for a:

I have the unknown symbol on my localhost and also when I´m online...

Pages: 1 ... 3 4 5 6 [7] 8 9 10 11 ... 16