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] 2 3 4 5 ... 16
1
FAQ, Tips / Re: How can I include another PHP file in the templates?
« on: April 01, 2007, 02:07:07 PM »
We´ll I think if you want to integrate a complete new php-file you have to do:

edit: all files

categories.php
details.php
index.php
lightbox.php
member.php
postcards.php
register.php
search.php
top.php

search for this:
Code: [Select]
require(ROOT_PATH.'includes/sessions.php');
and add this after:
Code: [Select]
include(ROOT_PATH.'my_new_phpfile.php');
Upload your new phpfile in the root of your 4images installation.

There was a topic where chris has written how you can call this file in your template html-files

2
Ah ja, Xampp ist eine feine Lösung, habe damit gute Erfahrung machen können!

3
Hm, hast Du Dein Problem mitlerweile gelöst?

Ist für die "Search-Engine-Friendly-URLs" auch mod_rewrite auf dem Server installiert?

4
Im getting this error as others have

Code: [Select]
DB Error: Bad SQL Query: SELECT COUNT(pm_id) AS total FROM 4images_pm WHERE pm_from = AND (pm_type = 2 OR pm_type = 0)
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND (pm_type = 2 OR pm_type = 0)' at line 3

any help?

thanks

Which PHP Version is running on your server?

I´ll remember  :? you have to change something in pm.php when you´re running PHP5

5
Mods & Plugins (Requests & Discussions) / Re: Seite gehackt
« on: February 19, 2007, 07:59:26 PM »
Ich benutze MySqlDumper, welcher per Cronjob 2mal morgens ein Backup macht. Dieses wird auf zwei verschiedenen servern gespeichert und per FtpGetter auf meinen lokalen PC gedownloadet.

Läuft alles automatisch und ich hoffe, ich werde die Backups nie brauchen  :?

Wenn jemand nähere Infos will, kann er sich gerne melden.

6
Thanks Flo2005, this works great! Thank you very much.
Maybe you have to to specify that several steps are made several times.
Regards

which ones please ? i can see the captcha function , but i cant delete or edit any comments any more and i can post comments even without entering the code...

Logged in as admin or guest?

7
Installation, Update & Configuration / Re: Hilfe --> Auto-Thumbnailer
« on: February 11, 2007, 08:50:59 PM »
Schau mal im ACP im linken Menü unter "Einstellungen". Nun "allgemeine Einstellungen", dort musst Du ein Modul zum Erstellen der Thumbnailbilder auswählen. Probier mal mit GD Bibliothek, die müsste in den meisten Fällen auf dem Server installiert sein.

Teste mal ob´s was bringt, wenn nicht kannst Du Dir auch z.B. ImageMagic auf dem Server installieren.

Ciao by Flo

8
Hey... I think you´ve got it!

But I can´t try it now :( when I upgrade to 1.7.4 I´ll do it!

THX man!

9
Feedback & Suggestions / Re: 4images 1.7.4 - Feedback
« on: November 01, 2006, 09:32:06 PM »
Hallo zusammen,

habe ne allgemeine Frage.

Warum bekomme ich öfters in der Version diese Fehler:

Notice: Use of undefined constant big - assumed 'big' in /homepages/35/d85936339/htdocs/1images/includes/page_header.php on line 693


Habe mir hier schon nen Wolf gesucht, aber keine Lösungen derart gefunden.
Habe auch die chance.txt studiert aber nichts gefunden.

Wer weiss Rat.

Grüße Darkness  :mrgreen:

Sicher das es Zeile 693 ist? Die existiert doch gar nicht  8O

10
This tutorial explains, how to get existing keywords in searchform:

example:



1. create a new php-file called ajax-list-keywords.php in root/4images with this code in it (edit host-username-password-dbName):

Code: [Select]
<?php

$conn 
mysql_connect("host","username","password");
mysql_select_db("dbName",$conn);

if(isset(
$_GET['getKeywordsByLetters']) && isset($_GET['letters'])){
$letters $_GET['letters'];
$letters preg_replace("/[^a-z0-9 ]/si","",$letters);
$res mysql_query("select word_id,word_text from 4images_wordlist where word_text like '".$letters."%'") or die(mysql_error());
#echo "1###select word_id,word_text from 4images_wordlist where word_text like '".$letters."%'|";
while($inf mysql_fetch_array($res)){
echo $inf["word_id"]."###".$inf["word_text"]."|";
}
}

?>


2. add the following files to your gallery in root/4images/js folder
http://www.snuup.de/4img_mods/ajax-js.zip
[EDIT] zip file attached to the bottom of this post

3. edit: templates/default/header.html

find:
Code: [Select]
<link rel="stylesheet" href="{template_url}/style.css" />
add after:

Code: [Select]
<style type="text/css">

/* Big box with list of options */
#ajax_listOfOptions{
position:absolute; /* Never change this one */
width:175px; /* Width of box */
height:250px; /* Height of box */
overflow:auto; /* Scrolling features */
border:1px solid #317082; /* Dark green border */
background-color:#FFF; /* White background color */
text-align:left;
font-size:0.9em;
z-index:100;
}
#ajax_listOfOptions div{ /* General rule for both .optionDiv and .optionDivSelected */
margin:1px;
padding:1px;
cursor:pointer;
font-size:0.9em;
}
#ajax_listOfOptions .optionDiv{ /* Div for each item in list */

}
#ajax_listOfOptions .optionDivSelected{ /* Selected item in the list */
background-color:#317082;
color:#FFF;
}
#ajax_listOfOptions_iframe{
background-color:#F00;
position:absolute;
z-index:5;
}

form{
display:inline;
}

</style>
<script type="text/javascript" src="js/ajax.js"></script>
<script type="text/javascript" src="js/ajax-dynamic-list.js"></script>

4. edit: templates/default/search_form.html

find:

Code: [Select]
<input type="text" name="search_keywords" size="40" value="{search_keywords}" class="input" />
replace with:

Code: [Select]
<input type="text" name="search_keywords" size="40" value="{search_keywords}" class="input" onkeyup="ajax_showOptions(this,'getKeywordsByLetters',event)" />
you can use this searchform also in your header of 4images:



edit every toplevel html-file like details.html, home.html, register.html, lightbox.html, member.html and some more... and find:

Code: [Select]
<input type="text" name="search_keywords" size="15" class="searchinput" />
replace with:

Code: [Select]
<input type="text" name="search_keywords" size="15" class="searchinput" onkeyup="ajax_showOptions(this,'getKeywordsByLetters',event)" />
Hope it works 4you!

Cu by Flo :wink:

11
Feedback & Suggestions / Re: 4images 1.7.4 - Feedback
« on: October 28, 2006, 06:17:10 PM »
Hat jemand noch die Version 1.7.3 zum Vergleich, würde mich sonst mal an einen detaillierten Changelog machen...

Hier, ist vom 30.09.06

http://www.snuup.de/4img_mods/4images_v1.7.3.zip

Cu by Flo

12
Zu aufwendig, ich würde "[Mod] Mail Owner of image when Comment is Posted" anpassen und alle User IDs auslesen die zu der Bild ID passt...
Dabei würde man noch berücksichtigen das es ja die Einstellung "Emails von Administratoren erhalten" gibt und das wars dann schon...

Wenn mir jemand ein Testsystem mit dem oben genannten Mod zur verfügung stellt werde ich die Anpassungen vornehmen...

Ich erstelle Dir gerade einen FTP Account mit allem was dazu gehört - mehr gleich per PM!

13
Also ich teste das alles offline. Habe auch offline schon probiert wie das mit der kopierten Lightbox aussieht und funzt. Die online Version bearbeite ich erst wenns offline funzt. Ich kann aber gerne eine weitere (frische) Galerie auf den Server spielen.

Also mein Problem liegt darin, dass der Emailer ja wissen muss, welchen Usern er die Benachrichtigung zukommen lassen soll und wenn dies z.B. mit den jetzigen Favoriten Dateien der User klappt, kann man ja das komplette Lightboxsystem kopieren und ein Subscribe System daraus machen.

Cu by Flo

14
Läuft der Mod noch ohne Probleme?

Dieser MOD ja, dieser ist halt nur da, um die Eigentümer der jeweiligen Datei zu informieren, wenn ein Kommentar abgegeben wurde.
Laufen tut der ohne Probleme (meine Version ist 1.7.3)

Pages: [1] 2 3 4 5 ... 16