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

Pages: 1 [2] 3 4
16
Programming / Re: Ø Falsch - Code wird falsch berechnet, Help :-(
« on: December 04, 2009, 10:47:02 PM »
Hi Andi  :D

Danke für die fixe Antwort  :)

Hab mal einen SS gemacht.
Wie man sieht sind

Ø Blütentriebe im Jahr: 3
Ø Seitentriebe im Jahr: 3

falsch.

Ich möchte nur wissen was ich ändern muss damit das funktioniert :) Möchte gerne mehrere Durchschnittsangaben hinzufügen.
Kannst du mir da weiter helfen?  :oops: :?:

Quote
stell die die sql tabellen hier rein, damit man sie selber anlegen kann
Hu?  :?:


Liebe Grüße,
Habi

17
Programming / Ø Falsch - Code wird falsch berechnet, Help :-(
« on: December 04, 2009, 08:13:48 PM »
Hi all!

original:

Code: [Select]
<?php 

/* Neue Blätter pro Jahr im Durchschnitt 1
Neue Blütentriebe pro Jahr im Durchschnitt */

$q=@mysql_query(" SELECT id FROM vio_statistik  WHERE to_id='$to_id' GROUP by jahr ");
$q1=@mysql_query(" SELECT id FROM vio_statistik  WHERE to_id='$to_id' AND eigenschaft='1' ");
$q2=@mysql_query(" SELECT id FROM vio_statistik  WHERE to_id='$to_id' AND eigenschaft='2' ");

$anz_jahre=@mysql_num_rows($q);
$anz_blx=@mysql_num_rows($q1);
$anz_bl_ent= @mysql_num_rows($q2);

if(
$anz_jahre!=0){$blx_p_jahr=$anz_blx/$anz_jahre;}
if(
$anz_jahre!=0){$bl_p_jahr=($anz_blx-$anz_bl_ent)/$anz_jahre;}

if(
$anz_jahre!=0){
echo 
'Anzahl Jahre '.@mysql_num_rows($q).'<br>';
echo 
'neue Blätter gesamt: '.@mysql_num_rows($q1).'<br>';
echo 
'Blätter entfernt gesamt: '.@mysql_num_rows($q2).'<br>';

echo 
'neue Blätter pro Jahr im Durchschnitt: '.round($blx_p_jahr,2).'<br>';
echo 
'Blätter pro Jahr im Durchschnitt: '.round($bl_p_jahr,2).'<br>';
// Blatt entfernt müssen abgezogen werden!
}
?>


Geändert auf:

Code: [Select]
<?php 

/* Neue Blätter pro Jahr im Durchschnitt 1
Neue Blütentriebe pro Jahr im Durchschnitt */

$q=@mysql_query(" SELECT id FROM vio_statistik  WHERE to_id='$to_id' GROUP by jahr ");
$q1=@mysql_query(" SELECT id FROM vio_statistik  WHERE to_id='$to_id' AND eigenschaft='3' ");
$q2=@mysql_query(" SELECT id FROM vio_statistik  WHERE to_id='$to_id' AND eigenschaft='10' ");
$q3=@mysql_query(" SELECT id FROM vio_statistik  WHERE to_id='$to_id' AND eigenschaft='4' ");
$q4=@mysql_query(" SELECT id FROM vio_statistik  WHERE to_id='$to_id' AND eigenschaft='5' ");
$q5=@mysql_query(" SELECT id FROM vio_statistik  WHERE to_id='$to_id' AND eigenschaft='6' ");

$anz_jahre=@mysql_num_rows($q);
$anz_blx=@mysql_num_rows($q1);
$anz_bl_ent= @mysql_num_rows($q2);

if(
$anz_jahre!=0){$blx_p_jahr=$anz_blx/$anz_jahre;}
if(
$anz_jahre!=0){$bl_p_jahr=($anz_blx-$anz_bl_ent)/$anz_jahre;}

if(
$anz_jahre!=0){
echo 
'Eintragen in '.@mysql_num_rows($q).' Jahr(en)<br><br>';
echo 
'Neues Herzblatt / Neuer Neutrieb gesamt: '.@mysql_num_rows($q1).'<br>';
echo 
'Blatt / Trieb entfernt gesamt: '.@mysql_num_rows($q2).'<br>';
echo 
'Kindel gesamt: '.@mysql_num_rows($q3).'<br>';
echo 
'Blütentriebe gesamt: '.@mysql_num_rows($q4).'<br>';
echo 
'Seitentriebe gesamt: '.@mysql_num_rows($q5).'
</td><td width="448">
'
;

echo 
'Ø neue Blätter / NT pro Jahr: '.round($blx_p_jahr,2).'<br>';
echo 
'Ø Blütentriebe im Jahr: '.round($blx_p_jahr,2).'<br>';
echo 
'Ø Seitentriebe im Jahr: '.round($blx_p_jahr,2).'<br>';
// echo 'Blätter pro Jahr im Durchschnitt: '.round($bl_p_jahr,2).'<br>';
// Blatt entfernt müssen abgezogen werden!

}
?>

Und zwar wird der Durchschnitt falsch berechnet  :cry:
Ich verstehe auch nicht warum der 2er dort steht? ($blx_p_jahr,2)


Vielleicht kann mir hier jemand helfen damit die Ø endlich richtig ausgewertet werden.
Komm einfach nicht drauf...  :oops:

Liebe Grüße,
Habi




18
Programming / Re: [SNIPPETS] Dropdown für Inputfelder
« on: December 03, 2009, 01:29:28 PM »
Boah ANDIIIIIIIIIIIIIII *spamdanke*  :!: :!: :!: :!:

Habs schnell auf der Arbeit ausprobiert :lol:
Dachte am Anfang "woot was is das denn - das funzt??"

Das ist GENAU das was ich brauche ^_^ und vorallem so  :arrow: einfach

Vielen lieben Dank dafür!!!! *knuddel*
*freuuuuuuuuuuuuuuuu*

19
Mods & Plugins (Releases & Support) / Help: I wanna change my smilies
« on: November 29, 2009, 01:31:58 PM »
Hi all  :D

I just cant find the right file x___x

Installed: [MOD] PMv2 Tutorial Republished
http://www.4homepages.de/forum/index.php?topic=6692.0


I want to change my smilies and after I managed that  8O I wanna add them to comments too ^_^

* add more smilies
* switch positions and
* delete some I dont need

Files I found:
smilies.php (which doesnt rly help me x.x nothing to add there  :lol: )

function.php :
Code: [Select]
function get_smiles(){
  $smilesfrom = array(
      ":)" => "happy",
      "(:" => "happy",
      ":-))" => "very_happy",
      ":lol:" => "very_happy",
      ":D" => "big_smile",
      ":O" => "surprised",
      ":o" => "surprised",
      ";)" => "wink",
      ":wink:" => "wink",
      ":(" => "sad",
      ":*(" => "very_sad",
      ":cry:" => "very_sad",
      ":confused:" => "confused",
      ":shy:" => "embarrassed",
      ":vicious:" => "vicious",
      ":|" => "undecided",
      ":P" => "tongue",
      ":p" => "tongue",
      "B)" => "cool",
      ":B" => "nerd",
      "X(" => "angry",
      ":X" => "in_love",
      "|)" => "asleep",
      "=;" => "talk_to_hand",
      "@};-" => "rose",
      "8X" => "skull",
      "=:)" => "alien",
      "0:)" => "angel",
      ":devil:" => "devil",
      "(~~)" => "pumpkin",
      "[-(" => "huff",
      "*:)" => "bulb",
      ":$" => "shhh",
      "~o)" => "cup",
      "b(" => "beat_up",
      ":E:" => "peace",
      ":&" => "sick",
      "=*" => "kiss",
      ";;)" => "flirt",
      ":?)" => "what",
      ":mad:" => "mad",
      ":R:" => "praying",
      "[-x" => "nono",
      "[:D]" => "hugging",
      ":dance:" => "dancing",
      "=D" => "applause",
      "(?)" => "thinking",
      ":^o" => "liar",
      "@)" => "hypnotized",
      "8|" => "rolleyes",
      "8}" => "crazy",
      "?|" => "tired",
      "=p~" => "drooling",
      "$)" => "money",
      ":whistle:" => "whistling",
      "#o" => "doh",
      ":S" => "scared"
  );

But when I add a new smile there I get an error - so I have to change some more file - which one :( ? javascript x_x? *cries*
Deleting worked fine  :lol:

Want me to translate it in german? Let me know  :roll:


Hope some1 can help me out, sorries for that stupid question ><  :oops:

Greetings,
Habi

20
Possible fix is remove from the new added code in includes/functions.php:
$text nl2br(trim($text)); (make sure you don't remove it from the original code that you commented out during the mod installation, other words that line should be closer to the end of the file)

My hero ^______^ *hug*
Thank you SO much!!!!! That is it ;)


21
Thanks for you quick answer V@no  :D

1. 4images version?
4images 1.7.7
2. what browser do you use and did you try different browser?
I tried both - FF at home and IE at work  :(
3. what OS do you use?
Windows Vista uhm and XP at work I guess
4. if you look in the page source, do you use two <br> tags, or one <br> at the end of a line?
uh...  8O
5. can I see it?
If you would be okay with it - I'll give you FTP access - I'm sure I can trust you, right? :wink:  :)
Let me know if you want to see it "live"
Link would be: orchids.manime.net/details.php?image_id=22 u can try a comment as guest there

That problem started with the Mod PMv2
In that thread there is already an error list:

Quote
From Kurt:
- <br> muss einwandfrei funktionieren ohne ausgabe vom code <br>    solved

english: <br> has to work faultless without adding the <br> code
(hope I translated right  :oops: )


I'm pretty sure I have to deal with the same issue, which Kurt solved


Thanks for your time!
Greetings,
Habi

22
Hi  :cry:

german

Bei PN, Kommentaren und Kategoriebeschreibung wird überall zustäzlich zum "enter" ein <br /> angegeben, wie krieg ich das wieder weg  :?: :(

zb.:
Code: [Select]
---------
Text
Text
---------

wird

---------
Text

Text
---------

english:


Can any1 help me with this problem?  :( When you use "enter" it adds <br /> again
At PN Messages, Comments or Category description.

example:

Code: [Select]
---------
Text
Text
---------

becomes

---------
Text

Text
---------

This drives me crazy  :cry: I hope some1 can help me out  :)


Liebe Grüße / Greetings,
Habi


23
Habe mich nun an eine Firma gewandt.

Danke für das Interesse.


LG,
Habi

24
Hi ^_^

german
---------------------------------------------------------------

google ist ein gutes Beispiel:
wenn man einen Buchstaben bzw. ein Wort eingibt schlägt google automatisch vor was man vielleicht sucht - also für die Faulen ;)

Ajax Autovervollständigen oder so ähnlich nennt man das.

Ich würde gerne meinen Benutzern auch die Eingabe erleichtern und zwar zb. bei der Eingabe des Bildnamens.
Mein Projekt handelt von Orchideen und da kann der eine oder andere Name schon etwas kompliziert sein :)
Leider habe ich noch keine komplette Liste aller Arten, aber bin sicher man kann das nachtragen  :wink:

Ich denke auch für die Suchfunktion wäre es interessant bzw. hätte ich noch ein paar Felder beim Upload wo man es verwenden könnte.


Würde mich super freuen wenn ich diese Funktion anbieten könnte - ich bin mir sicher auch andere könnten diesen Mod gut gebrauchen :)


english
---------------------------------------------------------------

google is a great example for that
When you enter a letter or a word, google is suggesting what you may search for, so its for the lazy ones ;)

I think its called Ajax autosuggest

I would like to help my Members with this. My homepage is about orchids so its sometimes a lil tricky with the correct names. 
I'd like to use this for image name :) also for Advanced search is it very usefull.

Can some pr0 out there code this, please? I'm sure more ppl could use this Mod ^_^ Its a nice special



Liebe Grüße / Greetings,
Habi  :D



25
Niemand interessiert ? :(  :cry:
Ist es so schwer umzusetzen oder woran liegt es  :?:

Im Anhang ein SS - so solls in etwa aussehen
(nur etwas professioneller  :lol: und auch die icons werd ich sicher noch anders gestalten)

Vielleicht meldet sich ja doch noch jemand  :)

LG,
Habi

26
freut mich das es bei dir funktioniert, ich pers. bin mit dem code nicht ganz zufrieden.

Ach was, es funktioniert doch ;) und das ist das wichtigste oder nicht  :wink:  :D
Also ich finde du hast das klasse gelöst und vorallem so schnell - hat mich sehr gefreut  :)

LG,
Habi

27
@Rembrandt Perfekt! Hat easy so gefunzt *freu* Dickesfettes Danke nochmal ^_^
jetzt muss ich nur noch diese Dropdown funktion zum laufen bringen <.< das klappt bei mir gar nicht  :evil:

*knuddel*
Habi

28
*gleich Antworten muss*

habe auch die Var. B genommen

Es klappt GRENZGENIAL vielen vielen vielen vielen vielen DANK!!  :!: :!:

hat ein bisschen gedauert bis ich gecheckt habe das
Code: [Select]
document.forms['uploadform'].elements['image_description'].value = value;ändern muss damit es dort eingegeben wird wo ich das will  :lol: aber was soll ich machen me = - NOOB -  :roll:

Jetzt muss ich nur noch versuchen wie ich mehrere solche Felder machen kann ^_^ *gleichdabeibin* sonst darf ich dich fragen ja?  :P

Liebe Grüße,
Habi


**EDIT: okay <.< hat nicht so einfach funktioniert wie geplant  :oops:

Was muss ich ändern wenn ich mehrere Felder mit dieser Funktion ausstatten will??

zb.:
Erhalten am:
Hauptbild aufgenommen am:


header.htm:
Code: [Select]
date = date + '.' + month + '.' + year;
document.forms['uploadform'].elements['image_erhaltenam'].value = date;

member_upload.htm
Code: [Select]
         <tr>
            <td class="row2"><b>{lang_image_erhaltenam}</b></td>

            <td class="row2"><input type="text" name="image_erhaltenam"  size="30" value="{image_erhaltenam}" class="input" />

<script language="JavaScript" type="text/javascript">
Calendar = new dynCalendar('Calendar', 'calendarCallback', './js/calendar/images/');
</script>

</td>

          </tr>

zusätzlich:
Code: [Select]
                  <tr>

            <td class="row2"><b>{lang_image_hauptbild}</b></td>

            <td class="row2"><input type="text" name="image_hauptbild"  size="30" value="{image_hauptbild}" class="input" />

</td>

          </tr>

Bei header muss man sicher was ändern - nur was  :?:
Die Zeile kopieren und drunter mit neuem image_hauptbild einfüge - klappte mal nicht XD  :lol:

30
Hallo,

ich gebe zu es in in Deinem Beispiel etwas irritierend. Der Grund ist, dass die Punktanzeige Dezimalwerte sind, die mit mindestens 1,0 beginnen.
Am deutlichsten wird es mit einem Beispiel:
- Füllst Du den ersten Stern halb auf, so steht dort 1,5 Punkte, obwohl eigentlich nur ein halber Stern ausgefüllt ist.
- In Deinem Beispiel sind sind genau 4 Sterne voll, also fängt der 5. Stern sich gerade an zu füllen - also steht dort eine 5,0.
- Der höchste Wert, der demnach jemals erreicht werden kann sind 5 gefüllte Sterne. Das entspricht einem Wert von 5,99.


Ich hoffe das war nun verständlich :)

Viele Grüße,
Bash-T

Achsoooooo ist das aufgebaut - klar halben stern gibts ja nicht - na hoffentlich haben meine mitglieder eine ruhige hand um 5,99 zu werten  :lol:
Ich glaub am Best ich erkläre das dann auch auf meiner Hauptseite ^_^

Danke für die schnelle Antwort und *spamhug* für den tollen Mod den du gezaubert hast :)


@winracer thanks for your answer too ^_^ sry cant help you with your problem =/ maybe you set the rights wrong in ACP for guests?



Pages: 1 [2] 3 4