Author Topic: [MOD] Commentbox v0.2  (Read 27697 times)

0 Members and 1 Guest are viewing this topic.

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [MOD] Commentbox v0.2
« Reply #15 on: November 14, 2010, 05:55:21 PM »
ich glaube es liegt an Step #4
Schau dir den Code nochmal an, ich habe den gerade geändert!

Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
Re: [MOD] Commentbox v0.2
« Reply #16 on: November 14, 2010, 06:05:10 PM »
ich glaube es liegt an Step #4
Schau dir den Code nochmal an, ich habe den gerade geändert!

Hi,

wo ist denn die Änderung?

Code: [Select]
« Letzte Änderung: Heute um 12:55:03 von Benny »

Gruß Jens

Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [MOD] Commentbox v0.2
« Reply #17 on: November 14, 2010, 06:05:58 PM »
Online:
http://scripts.benny-boehnke.info/4images/commentbox_v02/

if($config['comment_popup_onoff'] == 0)  {
   
$comment_form $site_template->parse_template("comment_form");
   }
   if(
$config['comment_popup_onoff'] == 1)  {
       
$comment_form " <script src=\"".ROOT_PATH."comment_popup/jquery.js\" type=\"text/javascript\"></script>\n";
       
$comment_form .= " <script src=\"".ROOT_PATH."comment_popup/popup.js\" type=\"text/javascript\"></script>\n";
       
$comment_form .= " <script type=\"text/javascript\">\n";
       
$comment_form .= "     jQuery(document).ready(function($) {\n";
       
$comment_form .= "       $('a[rel*=facebox]').facebox({\n";
       
$comment_form .= "         loading_image : '".ROOT_PATH."comment_popup/loading.gif',\n";
       
$comment_form .= "         close_image   : '".ROOT_PATH."comment_popup/closelabel.gif'\n";
       
$comment_form .= "       }) \n";
       
$comment_form .= "     })\n";
       
$comment_form .= " </script>";
       
$comment_form .= " <a href=\"#info\" rel=\"facebox\">".$lang['post_comment']."</a>\n";
       
$comment_form .= " ".$site_template->parse_template("comment_popup_form")."\n";
       }

Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
Re: [MOD] Commentbox v0.2
« Reply #18 on: November 14, 2010, 06:14:14 PM »
Online:
http://scripts.benny-boehnke.info/4images/commentbox_v02/

Hi,

kein Erfolg.

Ich glaube die if Schleife wird nie getriggert, ich nehm mal das if raus mal sehen...

EDIT:

Ich hab mal:

Code: [Select]
if($config['comment_popup_onoff'] == 0)  {
   $comment_form = $site_template->parse_template("comment_form");
   }
       $comment_form = " <script src=\"".ROOT_PATH."comment_popup/jquery.js\" type=\"text/javascript\"></script>\n";
       $comment_form .= " <script src=\"".ROOT_PATH."comment_popup/popup.js\" type=\"text/javascript\"></script>\n";
       $comment_form .= " <script type=\"text/javascript\">\n";
       $comment_form .= "     jQuery(document).ready(function($) {\n";
       $comment_form .= "       $('a[rel*=facebox]').facebox({\n";
       $comment_form .= "         loading_image : '".ROOT_PATH."comment_popup/loading.gif',\n";
       $comment_form .= "         close_image   : '".ROOT_PATH."comment_popup/closelabel.gif'\n";
       $comment_form .= "       }) \n";
       $comment_form .= "     })\n";
       $comment_form .= " </script>";
       $comment_form .= " <a href=\"#info\" rel=\"facebox\">".$lang['post_comment']."</a>\n";
       $comment_form .= " ".$site_template->parse_template("comment_popup_form")."\n";

...versucht da taucht auch nichts auf... verdammt


Gruß Jens

Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [MOD] Commentbox v0.2
« Reply #19 on: November 14, 2010, 06:16:49 PM »
Generell muss der Code so aussehen:
if($config['comment_popup_onoff'] == 0)  {
   
$comment_form $site_template->parse_template("comment_form");
   }
   if(
$config['comment_popup_onoff'] == 1)  {
       
$comment_form " <script src=\"".ROOT_PATH."comment_popup/jquery.js\" type=\"text/javascript\"></script>\n";
       
$comment_form .= " <script src=\"".ROOT_PATH."comment_popup/popup.js\" type=\"text/javascript\"></script>\n";
       
$comment_form .= " <script type=\"text/javascript\">\n";
       
$comment_form .= "     jQuery(document).ready(function($) {\n";
       
$comment_form .= "       $('a[rel*=facebox]').facebox({\n";
       
$comment_form .= "         loading_image : '".ROOT_PATH."comment_popup/loading.gif',\n";
       
$comment_form .= "         close_image   : '".ROOT_PATH."comment_popup/closelabel.gif'\n";
       
$comment_form .= "       }) \n";
       
$comment_form .= "     })\n";
       
$comment_form .= " </script>";
       
$comment_form .= " <a href=\"#info\" rel=\"facebox\">".$lang['post_comment']."</a>\n";
       
$comment_form .= " ".$site_template->parse_template("comment_popup_form")."\n";
       }


Das kannst du auf jeden Fall so lassen.

Komisch das der Link nicht zu sehen ist.

Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
Re: [MOD] Commentbox v0.2
« Reply #20 on: November 14, 2010, 06:24:05 PM »
Komisch das der Link nicht zu sehen ist.

Genauso ist das ja bei mir eingebaut, wo soll der Link denn auf der Seite auftauchen?


Gruß Jens

Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [MOD] Commentbox v0.2
« Reply #21 on: November 14, 2010, 06:24:50 PM »
Der Link soll da zu sehen sein, wo eigentlich das Kommentar- Formular zu sehen ist!

Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
Re: [MOD] Commentbox v0.2
« Reply #22 on: November 14, 2010, 06:31:20 PM »
Der Link soll da zu sehen sein, wo eigentlich das Kommentar- Formular zu sehen ist!

Hi,

dass will ich doch die ganze Zeit von dir wissen ob das irgendwovon abhängig ist,
schau dir mal meinen details.html code weiter oben an, da ist kein Kommentar-Formular
mehr drin. ;)


Gruß Jens

Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [MOD] Commentbox v0.2
« Reply #23 on: November 14, 2010, 06:39:42 PM »
Wenn das Popup eingeschaltet wird, wird das Kommentarformular ausgeblendet und dafür der Link eingeblendet!

Wenn du es ausschaltest, ist aber das Formular zu sehen oder?

Schick mir mal deine details.php

Ps.: Bist du dir auch sicher das du die bearbeitete details.php in dem richtigen Projekt hochgeladen hast? Ist alles möglich ;)

Edit://
In deinem Quelltest ist auch absolut nichts davon zu sehen. Selbst das Javascript ist nicht zu sehen was ich auch nicht verstehe. Jetzt bin ich mir nicht mehr sichher ob der Fehler bei mir liegt.

Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
Re: [MOD] Commentbox v0.2
« Reply #24 on: November 14, 2010, 06:48:59 PM »
Wenn das Popup eingeschaltet wird, wird das Kommentarformular ausgeblendet und dafür der Link eingeblendet!

Wenn du es ausschaltest, ist aber das Formular zu sehen oder?

Schick mir mal deine details.php

Ps.: Bist du dir auch sicher das du die bearbeitete details.php in dem richtigen Projekt hochgeladen hast? Ist alles möglich ;)

Edit://
In deinem Quelltest ist auch absolut nichts davon zu sehen. Selbst das Javascript ist nicht zu sehen was ich auch nicht verstehe. Jetzt bin ich mir nicht mehr sichher ob der Fehler bei mir liegt.

Hi,

wenn das hier meine details.html ist:

Code: [Select]
{header}

<div class="header"></div>

<table width="100%"  border="0" cellspacing="0" cellpadding="0">

<td width="100%" valign="top">

<table align="center" border="0" width="100%" cellspacing="0" cellpadding="0" id="table1">
<tr>
<td>{if prev_image_name}<a href="{prev_image_url}" title="{prev_image_name}"><img border="0" src="{template_url}/images/prev.png"></a>{endif prev_image_name}</td>
<td><div align="center" id="imagebg"><br>{ms_style}<br></div></td>
<td>{if next_image_name}<a href="{next_image_url}" title="{next_image_name}"><img border="0" src="{template_url}/images/next.png"></a>{endif next_image_name}</td>
</tr>
</table>

<br>

    <table align="center" cellspacing='1' cellpadding="0" border='0'>
        <tr>
            <td width='12' height='12' bgcolor='#000' style="border: 1px solid #828282;" onmouseover=bg('#000')></td>
            <td width='12' height='12' bgcolor='#171717' style="border: 1px solid #828282;" onmouseover=bg('#171717')>&nbsp;</td>
            <td width='12' height='12' bgcolor='#2E2E2E' style="border: 1px solid #828282;" onmouseover=bg('#2E2E2E')>&nbsp;</td>
            <td width='12' height='12' bgcolor='#464646' style="border: 1px solid #828282;" onmouseover=bg('#464646')>&nbsp;</td>
            <td width='12' height='12' bgcolor='#5D5D5D' style="border: 1px solid #828282;" onmouseover=bg('#5D5D5D')>&nbsp;</td>
            <td width='12' height='12' bgcolor='#747474' style="border: 1px solid #828282;" onmouseover=bg('#747474')>&nbsp;</td>
            <td width='12' height='12' bgcolor='#8B8B8B' style="border: 1px solid #828282;" onmouseover=bg('#8B8B8B')>&nbsp;</td>
            <td width='12' height='12' bgcolor='#A2A2A2' style="border: 1px solid #828282;" onmouseover=bg('#A2A2A2')>&nbsp;</td>
            <td width='12' height='12' bgcolor='#B9B9B9' style="border: 1px solid #828282;" onmouseover=bg('#B9B9B9')>&nbsp;</td>
            <td width='12' height='12' bgcolor='#D1D1D1' style="border: 1px solid #828282;" onmouseover=bg('#D1D1D1')>&nbsp;</td>
            <td width='12' height='12' bgcolor='#E8E8E8' style="border: 1px solid #828282;" onmouseover=bg('#E8E8E8')>&nbsp;</td>
            <td width='12' height='12' bgcolor='#FFFFFF' style="border: 1px solid #828282;" onmouseover=bg('#FFFFFF')>&nbsp;</td>
        </tr>
    </table>

<br>

<div align="center">{if details}{lightbox_button}&nbsp;&nbsp;{postcard_button}&nbsp;&nbsp;{if has_rss}<a href="{rss_url}"><img src="{template_url}/images/rss.png" title="{rss_title}" border="0" alt="{rss_title}" />&nbsp;&nbsp;</a>{endif has_rss}{download_button}&nbsp;&nbsp;{download_zip_button}{endif details}</div>

<map name="navi">
{if prev_image_name}
  <area shape="rect" coords="0,0,150,{height}"
   href="{prev_image_url}" alt="{prev_image_name}">
{endif prev_image_name}
{if next_image_name}
  <area shape="rect"  coords="{navi},0,{width},{height}"
   href="{next_image_url}" alt="{next_image_name}">
   {endif next_image_name}
</map>

{if msg}
{msg}
{endif msg}

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

...kann das die Commentbox überhaupt funktionieren?
Darin fehlt der Kommentarbereich (vorhandene Kommentare und Kommentar schreiben)
komplett, muss das wieder rein damit das überhaupt funktionieren kann?

Bzgl. dem Code im Quelltext das ist mir ja auch selbst schon aufgefallen ist sollte unter
"facebox" was finden sofern das funktioniert ;)

Jetzt brauch ich ne klarte Antwort von dir ob das nur klappen kann wenn in der details.html
noch der ganze Kommentar kram vorhanden ist?

Ich bin die Änderungen noch einige male durchgegangen es ist alles da wos hin soll :)

EDIT:

Das hier hat in meiner details.html gefehlt:

Code: [Select]
Photo Comments

<a name="comments"></a>
<table width="100%" border="0" cellpadding="3" cellspacing="1">
<tr>
<td valign="top"><strong>{lang_author}</strong></td>
<td valign="top"><strong>{lang_comment}</strong></td>
</tr>
{comments}
</table>

{comment_form}

{endif allow_comments}

Danke für deine Mühe :)


Gruß Jens

Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [MOD] Commentbox v0.2
« Reply #25 on: November 14, 2010, 06:52:57 PM »
Hallo,

ja ist ja logisch!
Das muss wieder rein:
Code: [Select]
{if allow_comments}
<a name="comments"></a>
<br />
                  <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                    <tr>
                      <td class="head1" valign="top">
                        <table width="100%" border="0" cellpadding="3" cellspacing="1">
                          <tr>
                            <td valign="top" class="head1">{lang_author}</td>
                            <td valign="top" class="head1">{lang_comment}</td>
                          </tr>
                          {comments}
                        </table>
                      </td>
                    </tr>
                  </table>
                  <br />
                  {comment_form} {endif allow_comments} <br />
                  <br />

Des weiteren, gucke dir bitte noch einmal Step #4 an :D
Musste noch etwas korrigieren. Aber nur der obere Teil

Somit muss:
"captcha_comments" => (bool)$captcha_enable_comments
mit das hier ersetzt werden:
   "captcha_comments" => (bool)$captcha_enable_comments,
"comment_popup_close" => $lang['comment_popup_close'],
"comment_popup_height" => $config['comment_popup_height'],
"comment_popup_width" => $config['comment_popup_width']
   


Dann sollte auch alles funktionieren!

Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
Re: [MOD] Commentbox v0.2
« Reply #26 on: November 14, 2010, 07:10:55 PM »
Hallo,

ja ist ja logisch!
Das muss wieder rein:

Des weiteren, gucke dir bitte noch einmal Step #4 an :D
Musste noch etwas korrigieren. Aber nur der obere Teil

Somit muss:
"captcha_comments" => (bool)$captcha_enable_comments
mit das hier ersetzt werden:
   "captcha_comments" => (bool)$captcha_enable_comments,
"comment_popup_close" => $lang['comment_popup_close'],
"comment_popup_height" => $config['comment_popup_height'],
"comment_popup_width" => $config['comment_popup_width']
   


Dann sollte auch alles funktionieren!


Hi,

das ist mir jetzt auch klar ;)
So nochmal überarbeitet, funzt  :thumbup:

Danke für den MOD und die nette Beta-Phase ;)
Das nächste mal kannste gleich via Team-Viewer dazukommen das geht
schneller und wir reden nicht aneinander vorbei hehe...


Gruß Jens

Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [MOD] Commentbox v0.2
« Reply #27 on: November 14, 2010, 07:18:05 PM »
Na endlich :D
Ich wusste nicht mehr weiter ^^

Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
Re: [MOD] Commentbox v0.2
« Reply #28 on: November 14, 2010, 08:19:36 PM »
Hi,
Na endlich :D
Ich wusste nicht mehr weiter ^^

Hi,

war auch kurz vorm kapitulieren ;) konnte ja nicht ahnen das der MOD
die Tags für die Kommentare vorraussetzt.


MfG Jens

Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [MOD] Commentbox v0.2
« Reply #29 on: November 14, 2010, 08:22:19 PM »
Und ich konnte mir ja nicht denken das du die rausnimmst :P

Naja nun geht ja alles ^^