HTH-C.com - Forum
Latest News Latest Threads
Neuerung: Persönliche Galerie
Informationen zur Übernahme der Erweite..
HTH Blog - Version 2.0
#HTH.Systems - Betatester gesucht
Neueröffnung - PHPKit-Award.de
HTH Webchat v3
Letzter Beitrag Happy Birthday Bottyline Weiblicher Benutzer Heute, 0:00 Zeit der letzten Antwort
Letzter Beitrag PHPKit 1.6.6 Treffnix Männlicher Benutzer 14.03.2024 - 06:20 Zeit der letzten Antwort
Letzter Beitrag Gibt es eigentlich noch jemand der PHPki.. Treffnix Männlicher Benutzer 14.03.2024 - 06:19 Zeit der letzten Antwort
Letzter Beitrag Herzlich Willkommen Botty Männlicher Benutzer 22.02.2024 - 13:50 Zeit der letzten Antwort
Letzter Beitrag PHPKit 1.6.6 ohne ASCE auf PHP8x Myrddin Männlicher Benutzer 22.03.2023 - 13:36 Zeit der letzten Antwort
 53.545 Posts & 4.945 Themen in 78 Foren
Forenübersicht » Support / Hilfe » PHPKit 1.6.4 & 1.6.5 & 1.6.6 » Modifikationen » Kommentare / Bewertung

Kommentare / Bewertung
41 Beiträge in diesem Thema
 Seiten (3):    1     2     3    Next    >  
12.06.2016 - 11:30 Uhr
Beitrag: #1
So, ich frage nun doch wieder nach eurer Hilfe ^^

Unzwar hatte ich ja schon im letzten Post erwähnt, dass ich die Bewertung gerne überarbeitet hätte.

Bewertung:

Skaliert auf 550 x 421 Pixel

und würde gerne das sie so aussieht:

Skaliert auf 550 x 128 Pixel

Ich brauche auch keine 1-10, sondern nur 1-5 Sterne, die gleich zusehen sind, ohne das man es erst aufklappen muss.



Kommentare:

Ich versuche seit heute die Kommentare direkt auf der Artikel Seite anzeigen zu lassen, ohne vorher erst in den "http://deutscher-hip-hop.com/include.php?path=comment&comcat=cont&subid=5942#write" Link zu wechseln.

Hoffe habt wieder eine Lösung für mich.  Glücklich

 
Zum Anfang der Seite
13.06.2016 - 11:07 Uhr
Beitrag: #2
Nummero 1, Voting (für Artikel):

--
  • pkinc/public/content.php
    • Öffne o.g. Datei und suche das (Zeile 109):



      1

      PHP-Quelltext

      $contentvote=(isset($_REQUEST['content_vote']) && intval($_REQUEST['content_vote'])>=&& intval($_REQUEST['content_vote'])<=10) ? intval($_REQUEST['content_vote']) : 0;

      Und mache daraus das:



      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11

      PHP-Quelltext

              # ContentVoteAsStars::Start
              #$contentvote=(isset($_REQUEST['content_vote']) && intval($_REQUEST['content_vote'])>=1 && intval($_REQUEST['content_vote'])<=10) ? intval($_REQUEST['content_vote']) : 0;
              
      If (IsSet($_GET['type']) && Intval($_GET['type'])===1)
                  {
                  
      $contentvote=(isset($_REQUEST['content_vote']) && intval($_REQUEST['content_vote'])>=&& intval($_REQUEST['content_vote'])<=5) ? intval($_REQUEST['content_vote']) : 0;
                  }
              Else
                  {
                  
      $contentvote=(isset($_REQUEST['content_vote']) && intval($_REQUEST['content_vote'])>=&& intval($_REQUEST['content_vote'])<=10) ? intval($_REQUEST['content_vote']) : 0;
                  }
              
      # ContentVoteAsStars::Start



  • pkinc/publictpl/content/articles_rating_link.htm
    • Öffne o.g. Datei und suche das (Zeile 11-23):



      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13

      PHP-Quelltext

           <select name="content_vote" size="1">
            <
      option value="-1">Bewerten</option>
            <
      option value="1">1 schlecht</option>
            <
      option>2</option>
            <
      option>3</option>
            <
      option>4</option>
            <
      option>5</option>
            <
      option>6</option>
            <
      option>7</option>
            <
      option>8</option>
            <
      option>9</option>
            <
      option value="10">10 sehr gut</option>
           </
      select>

      Und mache daraus das (o.g. Code ist ausgeklammert):



      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      21
      22
      23
      24

      PHP-Quelltext

      <!--# ContentVoteAsStars::Start-->
      <!--
           <
      select name="content_vote" size="1">
            <
      option value="-1">Bewerten</option>
            <
      option value="1">1 schlecht</option>
            <
      option>2</option>
            <
      option>3</option>
            <
      option>4</option>
            <
      option>5</option>
            <
      option>6</option>
            <
      option>7</option>
            <
      option>8</option>
            <
      option>9</option>
            <
      option value="10">10 sehr gut</option>
           </
      select>
      -->
      <
      div class="VoteRating">
          <
      input type="submit" class="Star" name="content_vote" value="5" title="Mit 5 Sterne bewerten" />
          <
      input type="submit" class="Star" name="content_vote" value="4" title="Mit 4 Sterne bewerten" />
          <
      input type="submit" class="Star" name="content_vote" value="3" title="Mit 3 Sterne bewerten" />
          <
      input type="submit" class="Star" name="content_vote" value="2" title="Mit 2 Sterne bewerten" />
          <
      input type="submit" class="Star" name="content_vote" value="1" title="Mit 1 Sterne bewerten" />
      </
      div>
      <!--
      # ContentVoteAsStars::End-->


    • Suche weiter:



      1
      2
      3

      PHP-Quelltext

          <td>
           <
      input type="submit" name="action" value="Go" />
          </
      td>

      Und mache daraus das:



      1
      2
      3
      4
      5
      6
      7

      PHP-Quelltext

      <!--# ContentVoteAsStars::Start-->
      <!--
          <
      td>
           <
      input type="submit" name="action" value="Go" />
          </
      td>
      -->
      <!--
      # ContentVoteAsStars::End-->


  • Gehe nun in das AdminCenter > Sonstiges > Designs > *Dein Design* wählen > Optionale Angaben
    • In o.g. Feld kommt dieser Code rein:



      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      21

      PHP-Quelltext

      .VoteRating
          
      {
          
      DirectionRTL;
          
      Text-AlignCenter;
          }
      .
      VoteRating > .Star
          
      {
          
      Border0;
          
      DisplayInline-Block;
          
      Margin0px;
          
      Padding0px;
          
      BackGroundURL('images/vote_star_rate.gif'No-Repeat 0px 0px;
          
      Width16px;
          
      Height16px;
          
      ColorTransparent;
          }
      .
      VoteRating > .Star:hover,
      .
      VoteRating > .Star:hover ~ .Star
          
      {
          
      BackGround-Position0px -17px;
          }



  • images/
    • In o.g. Ordner kommt dieses Bild:
      Datei-Name: vote_star_rate.gif


 
Zum Anfang der Seite
13.06.2016 - 11:07 Uhr
Beitrag: #3
Nummero 2, Kommentare (für Artikel):

Info:
Im AdminCenter, wenn man einen Artikel* verwaltet kann man nun auch einstellen ob man Kommentare wie gewohnt zulassen möchte, oder nur ansehen.

Blöderweise habe ich gerade gemerkt, daß das so oder so absolut sinnlos ist, da das supi PHPKIT das sowieso absolut ignoriert ..

Wenn du diese "Änderung" nicht willst bzw. weils ja eh Sinnlos ist, dann beachte einfach den 1. Part mit den pkinc/admin*** nicht.


*Würde, weil ich dahingehend jetzt nicht wirklich aufgepasst habe, auch in den anderen Typen angezeigt (News, Downloads etc.).


--
  • pkinc/admin/contentcompose.php
    • Öffne o.g. Datei und suche das (Zeile 321-322):



      1
      2

      PHP-Quelltext

              if($contentinfo['content_comment_status']==1)
                  
      $option5=" checked";

      Und füge darunter das ein:



      1
      2
      3
      4
      5
      6

      PHP-Quelltext

              # CommentAtArticle::Start
              
      If (Intval($contentinfo['content_comment_status'])==2)
                  {
                  
      $option7=' checked';
                  }
              
      # CommentAtArticle::End



  • pkinc/admintpl/content/compose_step3.htm
    • Öffne o.g. Datei und suche das (Zeile 76):



      1

      PHP-Quelltext

      <input type="checkbox" name="cont_comment" value="1" $option5> <font class="small">Kommentare m&ouml;glich***</font><br />

      Und mache daraus das (o.g. Code ist ausgeklammert):



      1
      2
      3
      4
      5

      PHP-Quelltext

              <!--# CommentAtArticle::Start-->
              
      <!--<input type="checkbox" name="cont_comment" value="1" $option5> <font class="small">Kommentare m&ouml;glich***</font><br />-->
              <
      input type="radio" name="cont_comment" value="1" $option5> <font class="small">Kommentare m&ouml;glich***</font><br />
              <
      input type="radio" name="cont_comment" value="2" $option7> <font class="small">Kommentare nur sehen (nur für Artikel)</font><br />
              <!--
      # CommentAtArticle::End-->



  • pkinc/public/article.php
    • Öffne o.g. Datei und suche das (Zeile 244-249):



      1
      2
      3
      4
      5
      6

      PHP-Quelltext

              if($contentinfo['content_comment_status']==1)
                  {
                  list(
      $content_comment_count) = $SQL->fetch_row($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_COMMENT." WHERE comment_cat='cont' AND comment_subid='".$contentinfo['content_id']."'"));
                  
                  eval(
      "\$content_comment= \"".pkTpl("content/articles_comment_link")."\";");
                  }

      Und füge darunter das ein:



      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20

      PHP-Quelltext

              # CommentAtArticle::Start
              
      If ($contentinfo['content_comment_status']==|| $contentinfo['content_comment_status']==2)
                  {
                  list(
      $content_comment_count) = $SQL->fetch_row($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_COMMENT." WHERE comment_cat='cont' AND comment_subid='".$contentinfo['content_id']."'"));

                  eval(
      "\$content_comment= \"".pkTpl("content/articles_comment_link2")."\";");

                  
      $comcat='cont';
                  
      $subid=Intval($contentinfo['content_id']);

                  
      # load comment file
                  
      Require_Once(pkDIRPUBLIC.'comment'.pkEXT);

                  
      # transfer value in var $Comments
                  
      $Comments=$site_body;

                  
      # reset var $site_body
                  
      unset($site_body);
                  }
              
      # CommentAtArticle::End



  • pkinc/public/comment.php
    • Öffne o.g. Datei und suche das (Zeile 308-312):



      1
      2
      3
      4
      5

      PHP-Quelltext

              if($info['content_option']==1
                  {
                  
      $contentid=$subid;
                  include(
      pkDIRPUBLIC.'article'.pkEXT);
                  }

      Und mache daraus das (o.g. Code ist teilweise ausgeklammert):



      1
      2
      3
      4
      5
      6
      7
      8
      9

      PHP-Quelltext

              if($info['content_option']==1
                  {
                  
      # CommentAtArticle::Start
                  /*
                  $contentid=$subid;
                  include(pkDIRPUBLIC.'article'.pkEXT);
                  */
                  # CommentAtArticle::End
                  
      }

    • Suche weiter nach dem (Zeile 499-500):



      1
      2

      PHP-Quelltext

          if($config['comment_register']!=|| ($config['comment_register']==&& pkGetUservalue('id')))
              {

      Und füge darüber das ein:



      1
      2
      3
      4
      5
      6

      PHP-Quelltext

          # CommentAtArticle::Start
          
      If ($info['content_option'] && $contentinfo['content_comment_status']==2)
              {
              Return;
              }
          
      # CommentAtArticle::End



  • pkinc/publictpl/content/articles_comment_link2.htm
    • Erstelle o.g. Datei (vorhandene HTM-Datei kopieren, als kopie einfügen, wie oben umbenennen) und füge folgenden Inhalt ein:



      1
      2
      3
      4
      5

      PHP-Quelltext

       <tr>
        <
      td width="100%" align="right" nowrap="nowrap"><font class="small"><class="small" href="?path=article&contentid=$contentinfo[content_id]#write"><b>$content_comment_count Kommentar(e)</b></a></font></td>
        <
      td>&nbsp;</td>
        <
      td><a href="?path=article&contentid=$contentinfo[content_id]#write"><img border="0" alt="kommentieren" height="16" width="20" src="images/comment.gif" /></a></td>
       </
      tr>



  • pkinc/publictpl/content/articles.htm
    • Öffne o.g. Datei und packe ganz am Ende (58 und aufwärts) das ein:



      1

      PHP-Quelltext

      $Comments


 
Zum Anfang der Seite
13.06.2016 - 11:41 Uhr
Beitrag: #4
Sehr cool!!!

Nur zwei Sachen würde ich gerne anders haben.

1. Bewertung

Kann man das auch als Sterne anzeigen

"Wertung ø 6,00
1 Stimme(n)"


2. Kommentare:

Wenn man ein Kommentar schreibt, landet man hier:

http://deutscher-hip-hop.com/include.php?path=comment&subid=7063&comcat=cont

Besser wäre es aber, wenn man wieder auf der Seite landet:

http://deutscher-hip-hop.com/include.php?path=article&contentid=7063

Besten Dank schon mal !!!

 
Zum Anfang der Seite
13.06.2016 - 15:46 Uhr
Beitrag: #5
Bist aber auch nie zufrieden, hm?  Bääääh


Für die Sternchen-Sache:
  • pkinc/public/article.php
    • Öffne o.g. Datei und suche das (Zeile 255-256):



      1
      2

      PHP-Quelltext

                      $content_rating_d=number_format($contentinfo['content_rating'],2,",",".");
                      
      $content_rating_votes=$contentinfo['content_rating_total'];

      Und füge darunter das ein:



      1
      2
      3
      4

      PHP-Quelltext

                      # ContentVoteAsStars::Start
                      
      $Round          =Round($contentinfo['content_rating']);
                      
      $Rating[$Round] =' Rating';
                      
      # ContentVoteAsStars::End


  • pkinc/publictpl/content/articles_rating_link.htm
    • Öffne o.g. Datei und suche das:



      1
      2
      3
      4
      5
      6
      7

      PHP-Quelltext

      <div class="VoteRating">
          <
      input type="submit" class="Star" name="content_vote" value="5" Title="Mit 5 Sterne bewerten" />
          <
      input type="submit" class="Star" name="content_vote" value="4" Title="Mit 4 Sterne bewerten" />
          <
      input type="submit" class="Star" name="content_vote" value="3" Title="Mit 3 Sterne bewerten" />
          <
      input type="submit" class="Star" name="content_vote" value="2" Title="Mit 2 Sterne bewerten" />
          <
      input type="submit" class="Star" name="content_vote" value="1" Title="Mit 1 Sterne bewerten" />
      </
      div>

      Und mache daraus das:



      1
      2
      3
      4
      5
      6
      7

      PHP-Quelltext

      <div class="VoteRating">
          <
      input type="submit" class="Star $Rating[5]name="content_vote" value="5" Title="Mit 5 Sterne bewerten" />
          <
      input type="submit" class="Star $Rating[4]name="content_vote" value="4" Title="Mit 4 Sterne bewerten" />
          <
      input type="submit" class="Star $Rating[3]name="content_vote" value="3" Title="Mit 3 Sterne bewerten" />
          <
      input type="submit" class="Star $Rating[2]name="content_vote" value="2" Title="Mit 2 Sterne bewerten" />
          <
      input type="submit" class="Star $Rating[1]name="content_vote" value="1" Title="Mit 1 Sterne bewerten" />
      </
      div>



  • Gehe nun ins AdminCenter > Sonstiges > Designs > *Dein Design* > Optionale Angaben
    • In o.g. Feld kommt das hinter den Änderungen von heut morgen:



      1
      2
      3
      4
      5

      PHP-Quelltext

      .VoteRating > .Rating,
      .
      VoteRating > .Rating ~ .Star
          
      {
          
      BackGround-Position0px -34px;
          }



Es wird immer entsprechend Auf- oder Abgerundet.
Also z.B.
4,5 sind 5
2,6 sind 3
1,1 sind 1
4,2 sind 4


--


Für die Kommentare:
  • pkinc/public/comment.php
    • Öffne o.g. Datei und suche das (Zeile 504-509):



      1
      2
      3
      4
      5
      6

      PHP-Quelltext

          # CommentAtArticle::Start
          
      If ($info['content_option'] && $contentinfo['content_comment_status']==2)
              {
              Return;
              }
          
      # CommentAtArticle::End

      Und mache daraus das (kleiner Fix):



      1
      2
      3
      4
      5
      6

      PHP-Quelltext

          # CommentAtArticle::Start
          
      If ($info['content_option']==&& $contentinfo['content_comment_status']==2)
              {
              Return;
              }
          
      # CommentAtArticle::End

    • Suche weiter (Zeile ~524-525):



      1
      2
      3
      4

      PHP-Quelltext

              if($comcat=='vote')
                  
      $form_action=pkLink('pollarchive','','vid='.$subid.'&comcat='.$comcat);
              else
                  
      $form_action=pkLink('comment','','subid='.$subid.'&comcat='.$comcat);

      Und füge darunter das ein:



      1
      2
      3
      4
      5
      6

      PHP-Quelltext

              # CommentAtArticle::Start
              
      If ($comcat=='cont' && $info['content_option']==1)
                  {
                  
      $form_action=pkLink('article','','contentid='.$subid);
                  }
              
      # CommentAtArticle::End


 
Zum Anfang der Seite
13.06.2016 - 16:57 Uhr
Beitrag: #6
Doch, heute bin ich sehr schnell zufrieden grosses Lachen
Perfekt umgesetzt, vielen Dank wieder  Glücklich


Ist oben auch alles Editiert? Dann würde ich es so wie oben abspeichern.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von DHH - 13.06.2016 - 16:57 Uhr
 
Zum Anfang der Seite
13.06.2016 - 19:28 Uhr
Beitrag: #7
Zitat
Original geschrieben von DHH

Ist oben auch alles Editiert? Dann würde ich es so wie oben abspeichern.



Jetzt hab dich mal nicht so - soviel Änderung ists ja nicht. Selbst ist der User  Bääääh

 
Zum Anfang der Seite
05.09.2016 - 16:45 Uhr
Beitrag: #8
Hey, das mit den Kommentaren finde ich echt gut und ich würde es gerne auf die News, Tourdates (Links), Downloads und wenn es geht, auch für die Movie Station von Kit-Coding erweitern. Bei der Movie Station am besten unter "Beschreibung".

Würde mich freuen, wenn du mir wieder mal helfen könntest.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von DHH - 05.09.2016 - 16:46 Uhr
 
Zum Anfang der Seite
06.09.2016 - 17:47 Uhr
Beitrag: #9
  • pkinc/public/comment.php
    • Öffne o.g. Datei und suche das:



      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16

      PHP-Quelltext

              elseif($info['content_option']==2)
                  {
                  
      $contentid=$subid;
                  include(
      pkDIRPUBLIC.'news'.pkEXT);
                  }
              elseif(
      $info['content_option']==3)
                  {
                  
      $type=3;
                  
      $contentid=$subid;
                  include(
      pkDIRPUBLIC.'contentarchive'.pkEXT);
                  }
              elseif(
      $info['content_option']==4)
                  {
                  
      $contentid=$subid;
                  include(
      pkDIRPUBLIC.'download'.pkEXT);        
                  }

      Und mache daraus das:



      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      21
      22
      23
      24
      25
      26
      27
      28

      PHP-Quelltext

              elseif($info['content_option']==2)
                  {
                  
      # CommentAtNews::Start
                  /*
                  $contentid=$subid;
                  include(pkDIRPUBLIC.'news'.pkEXT);
                  */
                  # CommentAtNews::End
                  
      }
              elseif(
      $info['content_option']==3)
                  {
                  
      # CommentAtLinks::Start
                  /*
                  $type=3;
                  $contentid=$subid;
                  include(pkDIRPUBLIC.'contentarchive'.pkEXT);
                  */
                  # CommentAtLinks::End
                  
      }
              elseif(
      $info['content_option']==4)
                  {
                  
      # CommentAtDownloads::Start
                  /*
                  $contentid=$subid;
                  include(pkDIRPUBLIC.'download'.pkEXT);        
                  */
                  # CommentAtDownloads::End
                  
      }

    • Suche weiter:



      1
      2
      3
      4
      5
      6

      PHP-Quelltext

          # CommentAtArticle::Start
          
      If ($info['content_option']==&& $contentinfo['content_comment_status']==2)
              {
              Return;
              }
          
      # CommentAtArticle::End

      Und füge darunter das ein:



      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20

      PHP-Quelltext

          # CommentAtNews::Start
          
      If ($info['content_option']==&& $contentinfo['content_comment_status']==2)
              {
              Return;
              }
          
      # CommentAtNews::End

          # CommentAtLinks::Start
          
      If ($info['content_option']==&& $contentinfo['content_comment_status']==2)
              {
              Return;
              }
          
      # CommentAtLinks::End

          # CommentAtDownloads::Start
          
      If ($info['content_option']==&& $contentinfo['content_comment_status']==2)
              {
              Return;
              }
          
      # CommentAtDownloads::End

    • Suche weiter:



      1
      2
      3
      4
      5
      6

      PHP-Quelltext

              # CommentAtArticle::Start
              
      If ($comcat=='cont' && $info['content_option']==1)
                  {
                  
      $form_action=pkLink('article','','contentid='.$subid);
                  }
              
      # CommentAtArticle::End

      Und füge darunter das ein:



      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20

      PHP-Quelltext

              # CommentAtNews::Start
              
      If ($comcat=='cont' && $info['content_option']==2)
                  {
                  
      $form_action=pkLink('news','','contentid='.$subid);
                  }
              
      # CommentAtNews::End

              # CommentAtLinks::Start
              
      If ($comcat=='cont' && $info['content_option']==3)
                  {
                  
      $form_action=pkLink('contentarchive&type=3','','contentid='.$subid);
                  }
              
      # CommentAtLinks::End

              # CommentAtDownloads::Start
              
      If ($comcat=='cont' && $info['content_option']==4)
                  {
                  
      $form_action=pkLink('download','','contentid='.$subid);
                  }
              
      # CommentAtDownloads::End



  • pkinc/public/news.php
    • Öffne o.g. Datei und suche das:



      1
      2
      3
      4
      5
      6
      7
      8
      9
      10

      PHP-Quelltext

              if($contentinfo['content_comment_status']==1)
                  {
                  list(
      $commentcount)=$SQL->fetch_row($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_COMMENT." WHERE comment_subid='".$contentinfo['content_id']."' AND comment_cat='cont'"));

                  
      $news_comments=pkGetSpecialLang('comment',$commentcount);
                  }
              else
                  {
                  
      $news_comments='';
                  }

      Und füge darunter das ein:



      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      21
      22
      23
      24
      25

      PHP-Quelltext

              # CommentAtNews::Start
              
      If ($contentinfo['content_comment_status']==|| $contentinfo['content_comment_status']==2)
                  {
                  list(
      $content_comment_count) = $SQL->fetch_row($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_COMMENT." WHERE comment_cat='cont' AND comment_subid='".$contentinfo['content_id']."'"));

                  
      $news_comments=pkGetSpecialLang('comment'$content_comment_count);
                  eval(
      "\$news_comments= \"".pkTpl("content/news_comment_link")."\";");


                  If (
      $contentid 0)
                      {
                      
      $comcat='cont';
                      
      $subid=Intval($contentinfo['content_id']);

                      
      # load comment file
                      
      Require_Once(pkDIRPUBLIC.'comment'.pkEXT);

                      
      # transfer value in var $Comments
                      
      $Comments=$site_body;

                      
      # reset var $site_body
                      
      unset($site_body);
                      }
                  }
              
      # CommentAtNews::End



  • pkinc/publictpl/news.htm
    • Öffne o.g. Datei und suche das:



      1

      PHP-Quelltext

      <a href="include.php?path=comment&comcat=cont&subid=$contentinfo[content_id]">$news_comments</a>

      Und mache daraus das:



      1
      2
      3
      4
      5
      6
      7
      8

      PHP-Quelltext

              <!--
              
      # CommentAtNews::Start
              
      <a href="include.php?path=comment&comcat=cont&subid=$contentinfo[content_id]">$news_comments</a>
              -->
              
      $news_comments
              
      <!--
              
      # CommentAtNews::End
              
      -->

    • Suche weiter (ganz unten):



      1
      2
      3
      4
      5

      PHP-Quelltext

      <table border="0" cellspacing="0" cellpadding="0">
       <
      tr>
        <
      td><img border="0" height="5" width="1" alt="" src="images/blank.gif" /></td>
       </
      tr>
      </
      table>

      Und füge darunter das ein:



      1
      2
      3
      4
      5
      6
      7

      PHP-Quelltext

      <!--
      # CommentAtNews::Start
      -->
      $Comments
      <!--
      # CommentAtNews::End
      -->



  • pkinc/publictpl/news_comment_link.htm
    • Erstelle o.g. Datei (vorhandene HTM-Datei kopieren, als kopie einfügen, wie oben umbenennen) und füge folgenden Inhalt ein:



      1

      PHP-Quelltext

      <a href="include.php?path=news&contentid=$contentinfo[content_id]#write">$news_comments</a>



  • pkinc/public/download.php
    • Öffne o.g. Datei und suche das:



      1
      2
      3
      4
      5
      6

      PHP-Quelltext

      if($contentinfo['content_comment_status']==1)
          {
          
      $counter=$SQL->fetch_array($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_COMMENT." WHERE comment_cat='cont' AND comment_subid='".$contentinfo['content_id']."'"));
          
          eval(
      "\$content_comment= \"".pkTpl("content/download_comment_link")."\";");
          }

      Und füge darunter das ein:



      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20

      PHP-Quelltext

      # CommentAtDownloads::Start
      If ($contentinfo['content_comment_status']==|| $contentinfo['content_comment_status']==2)
          {
          list(
      $content_comment_count) = $SQL->fetch_row($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_COMMENT." WHERE comment_cat='cont' AND comment_subid='".$contentinfo['content_id']."'"));

          eval(
      "\$content_comment= \"".pkTpl("content/download_comment_link2")."\";");

          
      $comcat='cont';
          
      $subid=Intval($contentinfo['content_id']);

          
      # load comment file
          
      Require_Once(pkDIRPUBLIC.'comment'.pkEXT);

          
      # transfer value in var $Comments
          
      $Comments=$site_body;

          
      # reset var $site_body
          
      unset($site_body);
          }
      # CommentAtDownloads::End



  • pkinc/publictpl/download.htm
    • Öffne o.g. Datei und suche das (ganz unten):



      1
      2
      3
      4
      5
      6
      7
      8
      9
      10

      PHP-Quelltext

          <table border="0" cellspacing="0" cellpadding="1" width="100%">
           <
      tr>
            <
      td width="100%">&nbsp;</td>
            <
      td><font class="headssmall"><class="headssmall" href="#head"><b>Seitenanfang</b></a></font></td>
            <
      td><a href="#head"><img src="images/pageup.gif" border="0" alt="nach oben" width="20" height="16" align="top" /></a></td>
           </
      tr>
          </
      table>
        </
      td>
       </
      tr>
      </
      table>

      Und füge darunter das ein:



      1
      2
      3
      4
      5
      6
      7

      PHP-Quelltext

      <!--
      # CommentAtDownloads::Start
      -->
      $Comments
      <!--
      # CommentAtDownloads::End
      -->



  • pkinc/publictpl/download_comment_link2.htm
    • Erstelle o.g. Datei (vorhandene HTM-Datei kopieren, als kopie einfügen, wie oben umbenennen) und füge folgenden Inhalt ein:



      1
      2
      3
      4

      PHP-Quelltext

       <tr>
        <
      td><font class="small"><b><class="small" href="?path=download&contentid=$contentinfo[content_id]#write">Kommentare</a></b></font></td>
        <
      td align="right"><font class="small">$counter[0]</font></td>
       </
      tr>



  • pkinc/public/contentarchive.php
    • Öffne o.g. Datei und suche das:



      1
      2
      3
      4
      5
      6

      PHP-Quelltext

                  if($contentinfo['content_comment_status']==1)
                      {
                      
      $ccounter=$SQL->fetch_array($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_COMMENT." WHERE comment_cat='cont' AND comment_subid='".$contentinfo['content_id']."'"));
                  
                      eval(
      "\$content_comment= \"".pkTpl("content/link_comment_link")."\";");
                      }

      Und füge darunter das ein:



      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      21
      22
      23
      24

      PHP-Quelltext

                  # CommentAtLinks::Start
                  
      If ($contentinfo['content_comment_status']==|| $contentinfo['content_comment_status']==2)
                      {
                      list(
      $content_comment_count) = $SQL->fetch_row($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_COMMENT." WHERE comment_cat='cont' AND comment_subid='".$contentinfo['content_id']."'"));

                      eval(
      "\$content_comment= \"".pkTpl("content/link_comment_link2")."\";");


                      If (
      $contentid 0)
                          {
                          
      $comcat='cont';
                          
      $subid=Intval($contentinfo['content_id']);

                          
      # load comment file
                          
      Require_Once(pkDIRPUBLIC.'comment'.pkEXT);

                          
      # transfer value in var $Comments
                          
      $Comments=$site_body;

                          
      # reset var $site_body
                          
      unset($site_body);
                          }
                      }
                  
      # CommentAtLinks::End



  • pkinc/publictpl/link_comment_link2.htm
    • Erstelle o.g. Datei (vorhandene HTM-Datei kopieren, als kopie einfügen, wie oben umbenennen) und füge folgenden Inhalt ein:



      1
      2
      3
      4
      5
      6
      7
      8
      9
      10

      PHP-Quelltext

      <tr>
       <
      td colspan="2">
          <
      table border="0" cellspacing="0" cellpadding="0" width="100%">
           <
      tr>
            <
      td align="left"><class="small" href="?path=contentarchive&type=3&contentid=$contentinfo[content_id]#write"><b>Kommentare</b></a></td>
            <
      td align="right"><font class="small">$ccounter[0]</font></td>
           </
      tr>
          </
      table>
        </
      td>
       </
      tr>



  • pkinc/publictpl/overview_page3.htm
    • Öffne o.g. Datei und suche das (ganz unten):



      1
      2
      3
      4
      5
      6
      7
      8
      9

      PHP-Quelltext

          <table border="0" cellspacing="0" cellpadding="0" width="100%">
           <
      tr>
            <
      td align="left"><font class="headssmall">$content_side</font></td>
            <
      td align="right" nowrap="nowrap"><font class="heads">$counter $content_type</font></td>
           </
      tr>
          </
      table>
        </
      td>
       </
      tr>
      </
      table>

      Und füge darunter das ein:



      1
      2
      3
      4
      5
      6
      7

      PHP-Quelltext

      <!--
      # CommentAtLinks::Start
      -->
      $Comments
      <!--
      # CommentAtLinks::End
      -->



Bei obligatorischen Tests ging alles.

Was die Video-Ecke angeht:
Kannst mal die pkinc/public/movie_details.php hier posten oder schicken? Ich glaub das ist die Datei für den Bereich (zumindest was die URL sagt).

Können den Kommentare in den Video-Bereich gemacht werden? Wenn ja, dann müsste man die pkinc/public/comment.php wahrscheinlich nochmal anpassen. Oder wird das über einen eigenen Kommentar-Bereich geregelt? 


 
Zum Anfang der Seite
07.09.2016 - 09:23 Uhr
Beitrag: #10
Hey,

danke dir wieder für deine Mühe.

Ich glaube du hast oft das "content" vergessen, aber ich habe mal mitgedacht grosses Lachen

Bei pkinc/public/download.php finde ich kein:

<!--
# CommentAtDownload::Start
-->
$Comments
<!--
# CommentAtDownload::End
-->

in deiner Beschreibung, habe das dann mal selber eingefügt (von der news.php übernommen und "Download" reingeschrieben).

Ansonsten scheint aber alles auf Anhieb zu funktionieren  Glücklich

Können den Kommentare in den Video-Bereich gemacht werden? Wenn ja, dann müsste man die pkinc/public/comment.php wahrscheinlich nochmal anpassen. Oder wird das über einen eigenen Kommentar-Bereich geregelt?

Die Movie Station hat leider keine eigene Übersicht der Kommentare. Ich habe dir mal die movie_details und comment mit hochgeladen.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von DHH - 07.09.2016 - 09:24 Uhr
 
Zum Anfang der Seite
07.09.2016 - 17:08 Uhr
Beitrag: #11
Zitat
Original geschrieben von DHH

Ich glaube du hast oft das "content" vergessen, aber ich habe mal mitgedacht grosses Lachen


Das ist schön .. Dann kann ich ja demnächst nur halbe Sachen machen


--

Zitat
Original geschrieben von DHH

Bei pkinc/public/download.php finde ich kein:




1
2
3
4
5
6
7

PHP-Quelltext

<!--
# CommentAtDownload::Start
-->
$Comments
<!--
# CommentAtDownload::End
-->


In der pkinc/public/download.php soll o.g. Code auch gar nicht gesucht werden - sondern dieser:
Zitat
  • pkinc/public/download.php
    • Öffne o.g. Datei und suche das:



      1
      2
      3
      4
      5
      6

      PHP-Quelltext

      if($contentinfo['content_comment_status']==1)
          {
          
      $counter=$SQL->fetch_array($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_COMMENT." WHERE comment_cat='cont' AND comment_subid='".$contentinfo['content_id']."'"));
          
          eval(
      "$content_comment= "".pkTpl("content/download_comment_link")."";");
          }



Und darunter sollte ja dieser Code:
Zitat
Und füge darunter das ein:



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

PHP-Quelltext

# CommentAtDownloads::Start
If ($contentinfo['content_comment_status']==|| $contentinfo['content_comment_status']==2)
    {
    list(
$content_comment_count) = $SQL->fetch_row($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_COMMENT." WHERE comment_cat='cont' AND comment_subid='".$contentinfo['content_id']."'"));

    eval(
"$content_comment= "".pkTpl("content/download_comment_link2")."";");

    
$comcat='cont';
    
$subid=Intval($contentinfo['content_id']);

    
# load comment file
    
Require_Once(pkDIRPUBLIC.'comment'.pkEXT);

    
# transfer value in var $Comments
    
$Comments=$site_body;

    
# reset var $site_body
    
unset($site_body);
    }
# CommentAtDownloads::End



Hast dich da irgendwie verguckt?;p


--

Zitat
Original geschrieben von DHH

Ansonsten scheint aber alles auf Anhieb zu funktionieren  Glücklich


So, dann kann ich erstmal bis Ende des Jahres Urlaub machen ..


--

Zitat
Original geschrieben von DHH

Die Movie Station hat leider keine eigene Übersicht der Kommentare. Ich habe dir mal die movie_details und comment mit hochgeladen.



Okay, ich gucke mal die Tage rein. Wenn alles gut läuft ists eh kein großer Aufwand  


 
Zum Anfang der Seite
08.09.2016 - 10:06 Uhr
Beitrag: #12
In der Download war es drin, nur wird es trotzdem nicht angezeigt, daher dachte ich, das du es dort vergessen hast. Wenn ich den bearbeiteten Code nämlich einfüge, ist es auch sichbar, die Kommentarfunktion.

 
Zum Anfang der Seite
08.09.2016 - 13:55 Uhr
Beitrag: #13
Hab die Download mal hochgeladen

 
Zum Anfang der Seite
08.09.2016 - 20:05 Uhr
Beitrag: #14
Zitat
Original geschrieben von DHH

In der Download war es drin, nur wird es trotzdem nicht angezeigt, daher dachte ich, das du es dort vergessen hast.


Dafür ist ja dieser Part relevant:
Zitat
  • pkinc/publictpl/download.htm
    • Öffne o.g. Datei und suche das (ganz unten):



      1
      2
      3
      4
      5
      6
      7
      8
      9
      10

      PHP-Quelltext

          <table border="0" cellspacing="0" cellpadding="1" width="100%">
           <
      tr>
            <
      td width="100%">&nbsp;</td>
            <
      td><font class="headssmall"><class="headssmall" href="#head"><b>Seitenanfang</b></a></font></td>
            <
      td><a href="#head"><img src="images/pageup.gif" border="0" alt="nach oben" width="20" height="16" align="top" /></a></td>
           </
      tr>
          </
      table>
        </
      td>
       </
      tr>
      </
      table>

      Und füge darunter das ein:



      1
      2
      3
      4
      5
      6
      7

      PHP-Quelltext

      <!--
      # CommentAtDownloads::Start
      -->
      $Comments
      <!--
      # CommentAtDownloads::End
      -->




Das einzige wo ich jetzt vielleicht einen "Fehler" gesehen habe, ist dies:
  • pkinc/public/download.php
    • Öffne o.g. Datei und suche das:



      1

      PHP-Quelltext

          list($content_comment_count) = $SQL->fetch_row($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_COMMENT." WHERE comment_cat='cont' AND comment_subid='".$contentinfo['content_id']."'"));

      Und mache daraus das:



      1

      PHP-Quelltext

          $counter $SQL->fetch_row($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_COMMENT." WHERE comment_cat='cont' AND comment_subid='".$contentinfo['content_id']."'"));


  • pkinc/public/contentarchive.php
    • Öffne o.g. Datei und suche das:



      1

      PHP-Quelltext

                      list($content_comment_count) = $SQL->fetch_row($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_COMMENT." WHERE comment_cat='cont' AND comment_subid='".$contentinfo['content_id']."'"));

      Und mache daraus das:



      1

      PHP-Quelltext

                      $ccounter $SQL->fetch_row($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_COMMENT." WHERE comment_cat='cont' AND comment_subid='".$contentinfo['content_id']."'"));


Das obige betreffe aber nur den Counter bei Kommentare XX im Template pkinc/publictpl/content/download_comment_link2.htm und pkinc/publictpl/content/link_comment_link2.htm (falscher Variablenname in der .php-Datei).


Sollte die Kommentar-Übersicht noch immer nicht erscheinen - vielleicht ist die Einstellung im AdminCenter > Inhalte > Übersicht > Inhalt mit Download wählen > Kommentare möglich*** bzw. Kommentare nur sehen (nur für Artikel) nicht ausgewählt. Ist mir auch grad selber erst aufgefallen ^^""
In diesen Fall:
  • pkinc/admin/contentcompose.php
    • Öffne o.g. Datei und suche das (ganz unten):



      1
      2
      3
      4
      5
      6

      PHP-Quelltext

              # CommentAtArticle::Start
              
      If (Intval($contentinfo['content_comment_status'])==2)
                  {
                  
      $option7=' checked';
                  }
              
      # CommentAtArticle::End

      Und mache daraus das:



      1
      2
      3
      4
      5
      6
      7
      8
      9
      10

      PHP-Quelltext

              # CommentAtContent::Start
              
      If (Intval($contentinfo['content_comment_status'])==2)
                  {
                  
      $option52=' checked';
                  }
              If (
      Intval($contentinfo['content_comment_status'])==0)
                  {
                  
      $option51=' checked';
                  }
              
      # CommentAtContent::End


  • pkinc/admintpl/content/compose_step3.htm
    • Öffne o.g. Datei und suche das (ganz unten):



      1
      2
      3
      4
      5

      PHP-Quelltext

              <!--# CommentAtArticle::Start-->
              
      <!--<input type="checkbox" name="cont_comment" value="1" $option5> <font class="small">Kommentare m&ouml;glich***</font><br />-->
              <
      input type="radio" name="cont_comment" value="1" $option5> <font class="small">Kommentare m&ouml;glich***</font><br />
              <
      input type="radio" name="cont_comment" value="2" $option7> <font class="small">Kommentare nur sehen (nur für Artikel)</font><br />
              <!--
      # CommentAtArticle::End-->

      Und mache daraus das:



      1
      2
      3
      4
      5
      6
      7
      8

      PHP-Quelltext

              <!--# CommentAtContent::Start-->
              
      <!--<input type="checkbox" name="cont_comment" value="1" $option5> <font class="small">Kommentare m&ouml;glich***</font><br />-->
              
      Kommentar-Optionen*** sind
                  <
      input type="radio" name="cont_comment" value="0" $option51> <font class="small">nicht m&ouml;glich</font>
                  <
      input type="radio" name="cont_comment" value="1" $option5> <font class="small">m&ouml;glich</font>
                  <
      input type="radio" name="cont_comment" value="2" $option52> <font class="small">nur Kommentare sehen</font>
              <
      br />
              <!--
      # CommentAtContent::End-->



Dadurch wird im AdminCenter bei den Inhalten die Kommentar-Option auf
- Kommentare sind nicht möglich
- Kommentare sind möglich
- nur Kommentare sehen

umgestaltet, wo auch entsprechende Auswahl ausgewählt ist.


In die Video-Ecke versuche ich am Wochenende mal zu gucken  


 
Zum Anfang der Seite
09.09.2016 - 10:39 Uhr
Beitrag: #15
Geht nun  
Danke

Mit der Movie wäre cool  



PS: Wenn ein Kommentar abgegeben wurde, lande ich aus dem ACP dort:

http://deutscher-hip-hop.com/include.php?path=comment&subid=7185&comcat=cont

besser wäre es aber, wenn ich in diesem Fall dort lande:

http://deutscher-hip-hop.com/?path=article&contentid=7185

Sonst ist es schwer für mich nach zu verfolgen, wo ein Kommentar abgegeben wurde.

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von DHH - 09.09.2016 - 10:43 Uhr
 
Zum Anfang der Seite
 Seiten (3):    1     2     3    Next    >  

Ähnliche Themen
 
Plauderecke Plauderecke » [ Bewertung ] HTH-C.com - Letzte Antwort von Gash am 27.05.07, 23:17 [ Bewertung ] HTH-C.com  (27.05.07, 23:17)
Modifikationen Modifikationen » Modifikation der Bewertung - Letzte Antwort von Nueschtmanescht am 15.09.08, 10:06 Modifikation der Bewertung  (15.09.08, 10:06)
Lob und Kritik Lob und Kritik » Bewertung durch User - Letzte Antwort von WEBI am 09.04.10, 19:08 Bewertung durch User  (09.04.10, 19:08)
Support Support » Artikel und Kommentare - Letzte Antwort von SoSweet am 14.08.08, 10:47 Artikel und Kommentare  (14.08.08, 10:47)
Support Support » Kommentare überprüfen - Letzte Antwort von Sumale.nin am 29.06.11, 15:54 Kommentare überprüfen  (29.06.11, 15:54)

HTH-C.com - Webmedien & Community