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

Pages: 1 [2] 3 4
16
:flag-de:  Kommentar posten u. Bewerten mit einem Klick...? Habe die Lösung gefunden...!
:flag-en:  Comment and rate with one Click...?  I found the Answer...!



 :flag-de: Folgender Code ist von V@no: http://www.4homepages.de/forum/index.php?topic=4023.0
 :flag-en: The following code is from V@no: http://www.4homepages.de/forum/index.php?topic=4023.0

Schritt 1.  /  Step 1.

 :flag-de: Öffne details.php und finde:
 :flag-en: Open details.php and find:

      $sql "INSERT INTO ".COMMENTS_TABLE."



 :flag-de: Füge davor folgenden Code ein:
 :flag-en: Insert above following Code:

//-----------------------------------------------------
//--- Save Rating -------------------------------------
//-----------------------------------------------------
if (intval($HTTP_POST_VARS['rating']) != "") {
  
$rating intval($HTTP_POST_VARS['rating']);
  
$cookie_name = (defined("COOKIE_NAME")) ? COOKIE_NAME "4images_";
  
$cookie_rated = isset($HTTP_COOKIE_VARS[$cookie_name.'rated']) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$cookie_name.'rated'])) : array();
  if (
$rating && $rating <= MAX_RATING && $id) {
    if (!isset(
$session_info['rated_imgs'])) {
      
$session_info['rated_imgs'] = $site_sess->get_session_var("rated_imgs");
    }
    
$split_list = array();
    if (!empty(
$session_info['rated_imgs'])) {
      
$split_list explode(" "$session_info['rated_imgs']);
    }
    if (!
in_array($id$split_list) && !in_array($id$cookie_rated)) {
      
$session_info['rated_imgs'] .= " ".$id;
      
$session_info['rated_imgs'] = trim($session_info['rated_imgs']);
      
$site_sess->set_session_var("rated_imgs"$session_info['rated_imgs']);
      
$cookie_rated[] = $id;
      
$cookie_expire time() + 60 60 24 4;
      
setcookie($cookie_name.'rated'serialize($cookie_rated), $cookie_expireCOOKIE_PATHCOOKIE_DOMAINCOOKIE_SECURE);
      
update_image_rating($id$rating);
      
$msg_color 1;
      
$msg $lang['voting_success'];
    }
    else {
      
$msg $lang['already_voted'];
    }
  }
  else {
    
$msg $lang['voting_error'];
  }
}
//////////////////////////////////////////


Schritt 2.  /  Step 2.

 :flag-de: Das ist der Code meiner comment_form.html.  Die Optik ist Deine Sache.
 :flag-en: This is the Code of my comment_form.html.  Visually it is your affair.


Code: [Select]
<table width="100%" border="0" cellspacing="0" cellpadding="1" align="center">
  <tr>
    <td valign="top" class="head1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tr>
          <td valign="top" class="head1">{lang_post_comment}</td>
        </tr>
        <tr>
          <td valign="top" class="row1">
         
         
          <form name="commentform" action="{self}" method="post" onsubmit="postbutton.disabled=true;">
                    <input type="hidden" name="id" value="{image_id}" />
              <input type="hidden" name="action" value="postcomment" />
                         
                           <input type="hidden" name="action" value="rateimage" />
              <table cellpadding="4" cellspacing="0" border="0">
                <tr>
                  <td width="90" height="31"><b>{lang_name}</b></td>
                  <td height="31"><input type="text" name="user_name" size="30" value="{user_name}" class="commentinput" /></td>
                </tr>
                <tr>
                  <td width="140" valign="top"><b>{lang_comment}</b></td>
                  <td valign="top">&nbsp;<table border="0" width="100%">
<tr>
<td width="301" valign="top"><textarea name="comment_text"  id="content" cols="35" rows="10"         maxlength="500" OnFocus="CountMax();" OnClick="CountMax();"
                  ONCHANGE="CountMax();" onKeydown="CountMax();" onKeyup="CountMax();"           wrap="soft" class="commenttextarea" onFocus=myselection(this) onclick=myselection(this) onChange=myselection(this)>{comment_text}</textarea></td>
<td>
              <table cellpadding="4" cellspacing="0" border="0" width="384">
                <tr>
                  <td width="58%" valign="bottom">{if rate_form}<p>&nbsp;</p>
<p><input type="radio" name="rating" value="5">+5 Punkte&nbsp;
<br>
<input type="radio" name="rating" value="4">+4 Punkte&nbsp;&nbsp; <br>

<input type="radio" name="rating" value="3">+3 Punkte&nbsp;&nbsp; <br>
<input type="radio" name="rating" value="2">+2 Punkte&nbsp;&nbsp;&nbsp; <br>
<input type="radio" name="rating" value="1">+1 Punkte&nbsp;&nbsp; <br>
<input type="radio" name="rating" value="0" checked="">Keine Wertung {endif rate_form}<br>
<br>
                         
                         <input type="submit" name="postbutton" value="Kommentar posten" class="button" /></td>
 
 
 
                </tr>
              </table>
            </td>
</tr>
</table>
<p>&nbsp;{bbcode}</td>
 
 
 
   
  </td>
 
 
 
                </tr>
                <tr>
                  <td width="90" valign="top" height="53">&nbsp;</td>
                  <td height="53">
                </td>
                </tr>
                <tr>
{if captcha_comments}
                <tr>
                  <td width="90" valign="top"><b>{lang_captcha}</b></td>
                  <td>
                    <a href="javascript:new_captcha_image();"><img src="{url_captcha_image}" border="0" id="captcha_image" /></a>
                    <br />
                    <input type="text" name="captcha" size="30" value="" class="commentinput" id="captcha_input" />&nbsp;&nbsp;

                    <br />
                    {lang_captcha_desc}
                  <table border="0" cellspacing="0" cellpadding="3" class="row1">
<tr>

</tr>
</table>
                  </td>
                </tr>
                {endif captcha_comments}
                  <td width="90" valign="top">&nbsp;</td>
                  <td>
                    <input type="hidden" name="action" value="postcomment" />
                    <input type="hidden" name="id" value="{image_id}" />
                 
<p>
               <input type="hidden" class="button" name="submit">
              &nbsp;</td>
                </tr>
              </table>
            </form>

          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>




 :flag-de: Bei mir funzt es einwandfrei...!
 :flag-en: It works on my Site

Gruß
Ralf
           

17
Mods & Plugins (Releases & Support) / Re: [MOD] Votes saved in DB
« on: November 02, 2009, 04:40:59 PM »
Thx for this Mod,
it works great on my Site. :D

Ralf

18
Thx, some of the Mod´s are included in my Site.

   
Here's another:
I have a different details.html in the Cat: Wettbewerbe


[Mod] Different cat templates / Verschiedene Kategorie Templates

http://www.4homepages.de/forum/index.php?topic=1847.msg7781


Ralf

19
Hallo zusammen...!

Genau so eine MOD habe ich gesucht.

Kann es sein, das es mit 1.7.7 nicht läuft......oder bin ich einfach zu blöd...????

Gruß
Ralf

 :idea: Ich war zu blöd...!

20
Discussion & Troubleshooting / Re: Nur direkter Upload geht...!
« on: October 30, 2009, 03:17:51 PM »
DANKE, der Ordner war wirklich nicht da.

Das Uploadproblem war ein Fehler in der member.php...!!!

Gruß
Ralf

21
Discussion & Troubleshooting / Nur direkter Upload geht...!
« on: October 30, 2009, 01:26:10 PM »
Hallo zusammen.

In meiner Galerie www.TopFoto24.com  fuktioniert nur der direkte Upload.
Sobald ich eine Kategorie ändere in:

- direkter upload: Administratoren
 - upload           :  registrierte User


kommt die Fehlermeldung: An unexpected error occured. Please try again later.

Als Admin erhalte ich dann zwar die Mail dass ein neues Bild freigeschaltet werden muss, es ist aber kein neues Bild vorhanden..!
Wenn ich im ACP auf "Neue Bilder checken" klicke, bekomme ich edie Fehlermeldung:
Warning: opendir(./../data/media/1) [function.opendir]: failed to open dir: No such file or directory in /home/webpages/lima-city/topfoto24/html/admin/checkimages.php on line 876

Habe mal die checkimages.php als Anhang beigefügt.

 Ich hoffe, dass mir jemand helfen kan..!

Gruß
Ralf

22
Hab ich auch schon 2 Posts zu geschrieben...!
Leider kann es niemand beantworten.

http://www.4homepages.de/forum/index.php?topic=25550.0

http://www.4homepages.de/forum/index.php?topic=26098

Ich würde mich mal mit dem Admin von www.hobby-fotografen.com in Verbindung setzten,
vielleicht hast Du mehr Glück als ich!?!

Gruß
Ralf

23
Besten Dank...!
Ich hatte auch eine Idee wie man die Blder in einer scrollbaren Zelle einer Tabelle anzeigen lassen kan.

in der details.html

Code: [Select]
<p align="center">{if image_group}</p>
<table cellSpacing="0" cellPadding="4" border="1" width="100%" style="border-collapse: collapse; border: 1px solid #C0C0C0; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px">
<tr class="head1">
<th width="50%" >
<p align="left"><b>Weitere Fotos aus dieser Serie:</b></th>
<th width="48%" >
<p align="right"><span style="font-weight: 400"><font style="font-size: 8pt">{if is_admin} Bildergruppe: {image_group} {endif is_admin}</font></span></th>
</tr>
<tr>
<td colspan="2">
<div style="OVERFLOW: auto; WIDTH: 100%; HEIGHT: 195px">
<p align="center">{group_preview}</div>
</td>
</tr>
</table>
<p align="center">{endif image_group}</p></div>

DEMO: http://topfoto24.lima-city.de/details.php?image_id=163

Vielleicht kann es jemand gebrauchen...!?!

Gruß
Ralf



24
Hallo Andi.

Danke für die schnelle Antwort, klappt prima.

http://topfoto24.lima-city.de/details.php?image_id=213


Gruß
Ralf
___________________________________________________________

Eine Frage hab ich noch...
Ist es möglich in der Tabelle nach "xx" Einträgen einen Zeilenumbruch zu erzwingen???
Bei mehr als 5 Bildern sprengt es mein Layout.

Hier zu sehen: http://topfoto24.lima-city.de/details.php?image_id=213

Danke schon mal.

Gruß
Ralf

25
Hallo zusammen..!

Hab es eingebaut und es ist ein super MOD..!

Ich habe {group_preview} unter dem Hauptbild in der details.html gesetzt.
Die Gruppenbilder werden untereinander angezeigt, ich möchte sie aber nebeneinander anzeigen lassen.

Ich schätze, dass ich die details.php ändern muss.  ABER WIE..???

Kann mir jemand helfen?

Gruß
Ralf

26
Programming / Html Experte gesucht!
« on: October 17, 2009, 05:01:38 PM »
Hallo zusammen...!

Ich möchte gerne mit einem Klick Voten und Kommentieren.
Habe das schon auf einigen Websites gesehen, bekomme es aber nicht hin.
Bei mir wird nur der Kommentar gesendet, das Voting bleibt aus...!

Das Layout sieht wie auf dem Bild aus.

Vielleicht kann mir hier jemand helfen wie ich die comment_form.html ändern muss.

Danke im Voraus
RALF

____________________________________________________________________________

Hello together ...!

I would like with one click  Vote and comment.
Have seen this on some sites, but it doesnt work on my Site.
In my case, only the comment will be sent.
The voting  do nothing..!

The layout looks like in the picture.

Maybe someone can help me how i must change the comment_form.html .

Thanks in advance
RALF




(wie kann ich die Daten aus dem Textfeld und aus den Radiobuttons mit nur einem Absende-Button verschicken?)

27
Hi, V@no..!

Thx for your fast Answer.
Any Idea, how i can schow the Pic in comment_bit smaller then the original Size???

So that also  IE displays The Pic.

28
Klappt prima und sieht gut aus..!

Aber ein Problem:
Firefox und Opera zeigen alles an, nur im Internet-Explorer wird das Pic
in der comment_bit  nicht angezeigt

Zu sehen auf:  http://topfoto24.lima-city.de/details.php?image_id=163

Kann mir jemand helfen???

Gruß
Ralf


29
...works it with 1.7.7..???

the variables {lang_last_user} and {last_user} gives no output on member_profile.html.

thanks for answer...!
ralf


30
Habe die Radiobuttons wieder entfernt....!
Scheint, als wenn mir wohl neimand helfen kann.....SCHADE... :(...!

Gruß
Ralf

Pages: 1 [2] 3 4