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 Herzlich Willkommen Botty Männlicher Benutzer 22.11.2024 - 20:45 Zeit der letzten Antwort
Letzter Beitrag Gibt es eigentlich noch jemand der PHPki.. Dooki Männlicher Benutzer 16.07.2024 - 19:47 Zeit der letzten Antwort
Letzter Beitrag PHPKit 1.6.6 WEBI Männlicher Benutzer 24.06.2024 - 12:58 Zeit der letzten Antwort
Letzter Beitrag PHPKit 1.6.6 ohne ASCE auf PHP8x Myrddin Männlicher Benutzer 22.03.2023 - 12:36 Zeit der letzten Antwort
 55.766 Posts & 4.945 Themen in 78 Foren
Forenübersicht » Support / Hilfe » PHPKit 1.6.4 & 1.6.5 & 1.6.6 » Modifikationen » Auftrag: Mobile Phpkit Version

Auftrag: Mobile Phpkit Version
158 Beiträge in diesem Thema
 Seiten (11):    <    Prev    2     3     4     5     6    Next    >  
18.10.2016 - 19:47 Uhr
Beitrag: #46
Zitat
Original geschrieben von DHH

Wenn du mal wieder ein paar Minuten Zeit hättest grosses Lachen



Genau - wenn ich mal die Zeit und Lust für finde. Müsste erstmal gucken ob das wirklich so wenig Aufwand ist .. ^^""

--

Was die Positionierung angeht ..

  1. Sorry, aber das muss sein:
    Wenn ich auf der mobilen Seite bin, und den Quelltext angucke, steht im Head-Bereich das drin:



    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
    29
    30
    31
    32
    33
    34
    35

    Quellcode

    <p align="center"><a href="http://m.deutscher-hip-hop.com/" target="_self"><img border="0" src="/bilder/logodhh.png" ></a> </p>
    <!-- 
    ONE STEP TO INSTALL PULLDOWN MENU:

       
    1.  Paste the code into the BODY of your HTML document  -->

    <!-- 
    STEP ONECopy this code into the BODY of your HTML document  -->

    <
    BODY>

    <!-- 
    Original:  Ricocheting (ricocheting@hotmail.com)  -->
    <!-- 
    Web Site:  http://free.prohosting.com/~ric  -->

    <!-- This script and many more are available free online at -->
    <!-- 
    The JavaScript Source!! http://javascript.internet.com -->

    <form name="jump">
    <
    select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
    <
    option value="http://m.deutscher-hip-hop.com/">Home</option>
    <
    option value="http://m.deutscher-hip-hop.com/?path=contentarchive&type=2">News</option>
    <
    option value="http://m.deutscher-hip-hop.com/?path=contentarchive&catid=144">Alben</option>
    <
    option value="http://m.deutscher-hip-hop.com/?path=movies">Videos</option>
    <
    option value="http://m.deutscher-hip-hop.com/?path=contentarchive&type=3">Tourdates</option>
    <
    option value="http://m.deutscher-hip-hop.com/?path=contentarchive&type=4">Downloads</option>
    <
    option value="http://m.deutscher-hip-hop.com/?path=hiphopcharts">Charts</option>
    <
    option value="http://m.deutscher-hip-hop.com/?path=rapfilme">Rapfilme</option>
    <
    option value="http://m.deutscher-hip-hop.com/?path=search">Suche</option>
    </
    select>
    </
    form>
                                     <
    div id="fsearch">
                                      <
    form method="post" action="?path=search">
                                       <
    input type="hidden" name="search" value="" />
                                   <
    input  class="search" type="text" name="search_text" size="30" value="Inhalte durchsuchen" onblur="if(value==''){value='Inhalte durchsuchen'}" onfocus="if(value=='Inhalte durchsuchen'){value =''}" />&nbsp;<input class="search" type="submit" value="Los" />
                                      </
    form>
                    </
    div>
                  </
    div>

    Ich mein, die Suche kann ich verstehen das die an der falschen Stelle steht (HTML-technisch), aber den Jumper? Steht doch in der Anleitung darüber: "into the BODY".

    Also, o.g. Code raus und innerhalb des BODY-Tag.
    Der einfachheit halber hinter bzw. eine Zeile unterhalb von:



    1

    Quellcode

    <body class="$bodyClass">

    Und wenn wir schon dabei sind:



    1
    2
    3

    Quellcode

    <!-- STEP ONECopy this code into the BODY of your HTML document  -->

    <
    BODY>

    wird zu:



    1
    2
    3

    Quellcode

    <!-- STEP ONECopy this code into the BODY of your HTML document  -->

    <!--<
    BODY>-->

    Sonst gibt es 2 BODY-Tags (erlaubt ist nur einer).


  2. Was die Position angeht:

    Probier mal das:

    • Suche das:



      1

      Quellcode

      <div id="fsearch">

      Und mache daraus das:



      1

      Quellcode

      <div id="fsearch" style="text-align: right;">

    • Suche das:



      1

      Quellcode

      <form name="jump">

      Und mache daraus das:



      1

      Quellcode

      <form name="jump" style="float: left;">

      Ging zumindest beim Live-Test auf der mobilen Seite  



  3. Die Suche muss auf "?path=search&mode=result" geleitet werden. Also wie folgt:

    Suche das:



    1

    Quellcode

    <form method="post" action="?path=search">

    Und mache daraus das:



    1

    Quellcode

    <form method="post" action="?path=search&mode=result">





 
Zum Anfang der Seite
19.10.2016 - 08:39 Uhr
Beitrag: #47
Guten morgen,

du hast natürlich vollkommen recht mit dem "Body". Ich hatte es auch erst an der richtigen stelle, doch dann erschien es immer nur im Footer, weshalb ich den Code in den Header machte.

Wenn ich dies ändere " <form name="jump" style="float: left;"> ", sieht es so aus:

Skaliert auf 550 x 343 Pixel

unbearbeitet sieht es so aus:

Skaliert auf 550 x 371 Pixel



Die Suche geht nun. Nur müsste für die Suche, die Sicherheitsgrafik deaktivieren werden. Hatte die mal über Nacht ausgeschaltet. Das Resultat, 18 neue Spam-Kommentare  

Natürlich nur wenn du Zeit und Lust hast, will da auch gar nicht stressen. Freue mich ja sehr, das du mir soviel hilfst.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von DHH - 19.10.2016 - 08:42 Uhr
 
Zum Anfang der Seite
21.10.2016 - 12:48 Uhr
Beitrag: #48
  1. Captcha in Suche deaktivieren:

    • pkinc/public/search.php
      • Öffne o.g. Datei und suche das (Zeile 42-46):



        1
        2
        3
        4
        5

        PHP-Quelltext

        if(pkGetConfig('captcha') && $ENV->_isset_post('search') && !$ENV->_isset_post(pkCAPTCHAVARNAME) && !pkCaptchaCodeValid(NULL))
            {
            
        #navbox used - redirect to the search form
            
        pkHeaderLocation('search','','search_text='.$search_text);
            }

        Und mache daraus das:



        1
        2
        3
        4
        5
        6
        7
        8
        9

        PHP-Quelltext

        # SecurityCheck Off :: Start
        /*
        if(pkGetConfig('captcha') && $ENV->_isset_post('search') && !$ENV->_isset_post(pkCAPTCHAVARNAME) && !pkCaptchaCodeValid(NULL))
            {
            #navbox used - redirect to the search form
            pkHeaderLocation('search','','search_text='.$search_text);
            }
        */
        # SecurityCheck Off :: End



  2. Was die Suche und Jumper angeht .. probier mal das:

    • Suche dies:



      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

      Quellcode

       <!-- ONE STEP TO INSTALL PULLDOWN MENU:

         
      1.  Paste the code into the BODY of your HTML document  -->

       <!-- 
      STEP ONECopy this code into the BODY of your HTML document  -->

      <!--<
      BODY>--> 

      <!-- 
      Original:  Ricocheting (ricocheting@hotmail.com)  -->
      <!-- 
      Web Site:  http://free.prohosting.com/~ric  -->

      <!-- This script and many more are available free online at -->
      <!-- 
      The JavaScript Source!! http://javascript.internet.com -->

       
      <form name="jump"
      <
      select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
      <
      option value="http://m.deutscher-hip-hop.com/">Home</option>
      <
      option value="?path=contentarchive&type=2">News</option>
      <
      option value="?path=contentarchive&catid=144">Alben</option>
      <
      option value="?path=movies">Videos</option>
      <
      option value="?path=contentarchive&type=3">Tourdates</option>
      <
      option value="?path=contentarchive&type=4">Downloads</option>
      <
      option value="?path=hiphopcharts">Charts</option>
      <
      option value="?path=rapfilme">Rapfilme</option>
      </
      select>
      </
      form>

      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
      29
      30
      31
      32
      33
      34
      35
      36
      37
      38
      39
      40

      Quellcode

      <div>
          <
      div style="float: right;">
              <
      form method="post" action="?path=search&mode=result">
                  <
      input type="hidden" name="search" value="" />
                  <
      input  class="search" type="text" name="search_text" size="30" value="" placeholder="Inhalte durchsuchen" />
                  &
      nbsp;<input class="search" type="submit" value="Los" />
              </
      form>
          </
      div>

          <
      div>
               <!-- 
      ONE STEP TO INSTALL PULLDOWN MENU:

                 
      1.  Paste the code into the BODY of your HTML document  -->

               <!-- 
      STEP ONECopy this code into the BODY of your HTML document  -->

              <!--<
      BODY>--> 

              <!-- 
      Original:  Ricocheting (ricocheting@hotmail.com)  -->
              <!-- 
      Web Site:  http://free.prohosting.com/~ric  -->

              
      <!-- This script and many more are available free online at -->
              <!-- 
      The JavaScript Source!! http://javascript.internet.com -->

              
      <form name="jump"
              <
      select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
              <
      option value="http://m.deutscher-hip-hop.com/">Home</option>
              <
      option value="?path=contentarchive&type=2">News</option>
              <
      option value="?path=contentarchive&catid=144">Alben</option>
              <
      option value="?path=movies">Videos</option>
              <
      option value="?path=contentarchive&type=3">Tourdates</option>
              <
      option value="?path=contentarchive&type=4">Downloads</option>
              <
      option value="?path=hiphopcharts">Charts</option>
              <
      option value="?path=rapfilme">Rapfilme</option>
              </
      select>
              </
      form>
          </
      div>

          <
      div style="clear: both;"></div>
      </
      div>



    Damit sollte es aber nun gehen. Sollte die Suche sich um eine Zeile verrutschen, dann einfach mal diesen Code:



    1
    2
    3
    4
    5
    6
    7

    Quellcode

        <div style="float: right;">
            <
    form method="post" action="?path=search&mode=result">
                <
    input type="hidden" name="search" value="" />
                <
    input  class="search" type="text" name="search_text" size="30" value="" placeholder="Inhalte durchsuchen" />
                &
    nbsp;<input class="search" type="submit" value="Los" />
            </
    form>
        </
    div>

    Vor diesem Code verschieben:



    1

    Quellcode

        <div style="clear: both;"></div>

  3. Was die gemeinsame Suche angeht .. Tja, da muss ich mal genauer gucken wie die vom PHPKIT funktioniert und ob ohne große Umstände das zusammengeführt werden kann. Da weiss ich aber nicht wann ich dies mal tun kann  
?path=contentarchive

 
Zum Anfang der Seite
22.10.2016 - 14:21 Uhr
Beitrag: #49
Die Suche, will trotz Änderung, immer noch den Captcha. Das andere schaue ich mir morgen mal an.

 
Zum Anfang der Seite
22.10.2016 - 20:05 Uhr
Beitrag: #50
Dann probier mal zusätzlich noch das:

  • pkinc/public/search.php
    • Öffne o.g. Datei und suche das (~ Zeile 60-63):



      1
      2
      3
      4

      PHP-Quelltext

              if($ACTION!='view' && !pkCaptchaCodeValid($ENV->_post(pkCAPTCHAVARNAME)))
                  {        
                  
      pkHeaderLocation('search','','error=securitycode_invalid&search_text='.urlencode($search_text).'&search_textoption='.$search_textoption.'&rorder='.$rorder.'&'.pkArrayUrlencode('search_type',$search_type));
                  }

      Und mache daraus das:



      1
      2
      3
      4
      5
      6
      7
      8

      PHP-Quelltext

              # SecurityCheck Off :: Start
              /*
              if($ACTION!='view' && !pkCaptchaCodeValid($ENV->_post(pkCAPTCHAVARNAME)))
                  {        
                  pkHeaderLocation('search','','error=securitycode_invalid&search_text='.urlencode($search_text).'&search_textoption='.$search_textoption.'&rorder='.$rorder.'&'.pkArrayUrlencode('search_type',$search_type));
                  }
              */
              # SecurityCheck Off :: End


 
Zum Anfang der Seite
23.10.2016 - 08:48 Uhr
Beitrag: #51
Perfekt, so hat es auf Anhieb gepasst.

Wie gesagt, wenn du das mit der Movie hinbekommst, würde ich mich sehr freuen. Aber ist auch kein muss, bzw. du musst das auch nicht bis morgen machen. Wenn du einfach mal wirklich Zeit und Lust hast. Kann mich nur immer wieder für deine tolle Hilfe bedanken



Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von DHH - 23.10.2016 - 08:50 Uhr
 
Zum Anfang der Seite
26.10.2016 - 08:18 Uhr
Beitrag: #52
Ich habe schon etwas rumprobiert, aber scheinbar bisher noch nicht die richtige stelle gefunden. Ich würde gerne alle Bilder in der Aufmacher-Grafik:

Skaliert auf 550 x 177 Pixel

in 200px*200px anzeigen lassen. Da die Bilder oft etwas größer sein werden, wäre es gut, wenn dies automatisch skaliert wird (width="200" height="200").

 
Zum Anfang der Seite
27.10.2016 - 07:34 Uhr
Beitrag: #53
  • pkinc/func/default.php
    • Wichtig:

      Bitte prüfe ob in o.g. Datei ( oder in einer anderen in diesen Ordner ) folgender Suchcode vorhanden ist:



      1

      PHP-Quelltext

      Function ImageResize

      Sollte o.g. Suchcode gefunden werden, kannste diesen mit den unten stehenden Code ersetzen ( ist dann wahrscheinlich noch eine ältere Variante von irgendwann mal ^^" ).
      Ich sage das deshalb weil ich nicht (mehr) weiß ob irgendwann die Funktion ImageResize bei dir eingebaut wurde und es sonst zu einer Fehlermeldung ( oder gar weisen Seite ) kommt.

      Kannst ja ggf. nochmal nachfragen wenn es Probleme gibt ^^"

      --

      Ansonsten, wie gehabt ..

      Öffne o.g. Datei und suche das:



      1
      2

      PHP-Quelltext

      if(!defined('pkFRONTEND'))
          die(
      'Direct access to this location is not permitted.');

      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
      26
      27
      28
      29
      30
      31
      32
      33
      34
      35
      36
      37
      38
      39
      40
      41
      42
      43
      44
      45
      46
      47
      48
      49
      50
      51
      52
      53
      54
      55
      56
      57
      58
      59
      60
      61
      62
      63
      64

      PHP-Quelltext

      # ImageResize (2014-07-20) :: Start
      Function ImageResize($Source=NULL$MaxWidth=NULL$MaxHeight=NULL)
          {
          if (!IsSet(
      $Source) || !Is_String($Source) || Trim($Source)=='' || !Is_File($Source))
              {
              Return;
              }
          List(
      $Width$Height)
              =
              
      GetImageSize($Source)
              ;
          
      $NewWidth
              
      =
                 IsSet     (
      $MaxWidth)
              && 
      Is_Numeric($MaxWidth)
              && 
      Trim      ($MaxWidth)!=''
              
      ?  Intval    ($MaxWidth)
              :  
      $Width
              
      ;
          
      $NewHeight
              
      =
                 IsSet     (
      $MaxHeight)
              && 
      Is_Numeric($MaxHeight)
              && 
      Trim      ($MaxHeight)!=''
              
      ?  Intval    ($MaxHeight)
              :  
      $Height
              
      ;


          If (
      $MaxWidth && $MaxHeight 0)
              {
              
      # MaxHöhe als MAX
              
      If ($MaxWidth $MaxHeight)
                  {
                  
      $NewWidth   =Number_Format($Width $MaxHeight $Height0',''.');
                  }
              
      # MaxBreite als MAX
              
      Else
                  {
                  
      $NewHeight  =Number_Format($Height $MaxWidth $Width0',''.');
                  }
              }
          Else
              {
              
      # Breite angegeben
              
      If ($MaxWidth 0)
                  {
                  
      $NewHeight  =Number_Format($Height $MaxWidth $Width0',''.');
                  }
              
      # Bild höher als breit (Wide Hochkannt)
              
      If ($MaxHeight 0)
                  {
                  
      $NewWidth   =Number_Format($Width $MaxHeight $Height0',''.');
                  }
              }
          Return
              Array(
              
      0       =>$NewWidth,
              
      1       =>$NewHeight,
              
      'Width' =>$NewWidth,
              
      'Height'=>$NewHeight,
              );
          }
      # ImageResize (2014-07-20) :: End



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



      1
      2
      3
      4

      PHP-Quelltext

          $contentid=$contentinfo['content_id'];
          
      $cont_title=$contentinfo['content_title'];
          
      $cont_teaser=$contentinfo['content_teaser'];
          
      $cont_related=$contentinfo['content_related'];

      Und füge darunter das ein:



      1
      2
      3
      4
      5
      6

      PHP-Quelltext

          # ImageResize -> Teaser :: Start
          
      $cont_teaser_path   ='../'.$cont_teaser;
          
      $cont_teaser_dim    =ImageResize($cont_teaser_path200200);
          
      $cont_teaser_width  =Intval($cont_teaser_dim[0]);
          
      $cont_teaser_height =Intval($cont_teaser_dim[1]);
          
      # ImageResize -> Teaser :: End



  • pkinc/admintpl/content/compose_step4.htm
    • Öffne o.g. Datei und suche das (Zeile ~12):



      1

      Quellcode

          <input type="text" name="cont_teaser" size="40" class="w90" value="$cont_teaser/>

      Und füge darunter das ein:



      1
      2
      3

      Quellcode

              <!-- # ImageResize -> Teaser :: Start -->
              
      <img src="$cont_teaser_pathwidth="$cont_teaser_widthheight="$cont_teaser_heighttitle="Aufmacher-Grafik" alt="Aufmacher-Grafik" />
              <!-- 
      # ImageResize -> Teaser :: End -->


 
Zum Anfang der Seite
28.10.2016 - 09:15 Uhr
Beitrag: #54
Hmm, hat sich irgendwie nichts verändert. Die erste Zeile ist bei mir auch nicht vorhanden.

Manche Bilder sind in der Größe 100px * 100px, die sollten aber trotzdem als 200px angezeigt werden.

 
Zum Anfang der Seite
28.10.2016 - 10:12 Uhr
Beitrag: #55
Außerdem versuche ich irgendwie, den Links aus der Überschrift zu bekommen (Artikel, Links und Downloads).



Bei News ist der gar nicht drin und so hätte ich das auch gerne.



 
Zum Anfang der Seite
28.10.2016 - 21:10 Uhr
Beitrag: #56
Zitat
Original geschrieben von DHH

Hmm, hat sich irgendwie nichts verändert. Die erste Zeile ist bei mir auch nicht vorhanden.



Von welcher nicht-vorhandenen Zeile in welcher Datei reden wir denn? 



Zitat
Original geschrieben von DHH

Manche Bilder sind in der Größe 100px * 100px, die sollten aber trotzdem als 200px angezeigt werden.



Ich hab ein bisschen probiert, und für gewöhnlich zuviel Zeit für gebraucht, und die Funktion umgeschrieben. Es sollte in der Standard-Einstellung alle Bilder auf ~200*200px bringen ( je nach Seitenverhältnis ist die Breite oder Höhe 200px, das andere drunter / drüber ). Bei bedarf kann aber auch eingestellt werden das die Bilder bis maximal bzw. ab mindestens X*X Pixel skaliert werden sollen. Mehr dazu weiter unten.


Hier erstmal die ganzen Änderungen:
  • pkinc/func/default.php
    • Öffne o.g. Datei und suche das ( ausgehend vom vorherigen Post ):



      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
      29
      30
      31
      32
      33
      34
      35
      36
      37
      38
      39
      40
      41
      42
      43
      44
      45
      46
      47
      48
      49
      50
      51
      52
      53
      54
      55
      56
      57
      58
      59
      60
      61
      62
      63
      64

      PHP-Quelltext

      # ImageResize (2014-07-20) :: Start
      Function ImageResize($Source=NULL$MaxWidth=NULL$MaxHeight=NULL)
          {
          if (!IsSet(
      $Source) || !Is_String($Source) || Trim($Source)=='' || !Is_File($Source))
              {
              Return;
              }
          List(
      $Width$Height)
              =
              
      GetImageSize($Source)
              ;
          
      $NewWidth
              
      =
                 IsSet     (
      $MaxWidth)
              && 
      Is_Numeric($MaxWidth)
              && 
      Trim      ($MaxWidth)!=''
              
      ?  Intval    ($MaxWidth)
              :  
      $Width
              
      ;
          
      $NewHeight
              
      =
                 IsSet     (
      $MaxHeight)
              && 
      Is_Numeric($MaxHeight)
              && 
      Trim      ($MaxHeight)!=''
              
      ?  Intval    ($MaxHeight)
              :  
      $Height
              
      ;


          If (
      $MaxWidth && $MaxHeight 0)
              {
              
      # MaxHöhe als MAX
              
      If ($MaxWidth $MaxHeight)
                  {
                  
      $NewWidth   =Number_Format($Width $MaxHeight $Height0',''.');
                  }
              
      # MaxBreite als MAX
              
      Else
                  {
                  
      $NewHeight  =Number_Format($Height $MaxWidth $Width0',''.');
                  }
              }
          Else
              {
              
      # Breite angegeben
              
      If ($MaxWidth 0)
                  {
                  
      $NewHeight  =Number_Format($Height $MaxWidth $Width0',''.');
                  }
              
      # Bild höher als breit (Wide Hochkannt)
              
      If ($MaxHeight 0)
                  {
                  
      $NewWidth   =Number_Format($Width $MaxHeight $Height0',''.');
                  }
              }
          Return
              Array(
              
      0       =>$NewWidth,
              
      1       =>$NewHeight,
              
      'Width' =>$NewWidth,
              
      'Height'=>$NewHeight,
              );
          }
      # ImageResize (2014-07-20) :: End

      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
      29
      30
      31
      32
      33
      34
      35
      36
      37
      38
      39
      40
      41
      42
      43
      44
      45
      46
      47
      48
      49
      50
      51
      52
      53
      54
      55
      56
      57
      58
      59
      60
      61
      62
      63
      64
      65
      66
      67
      68
      69
      70
      71
      72
      73
      74
      75
      76
      77
      78
      79
      80
      81
      82
      83
      84
      85
      86
      87
      88
      89
      90
      91
      92
      93
      94
      95
      96
      97
      98
      99
      100
      101
      102
      103
      104
      105
      106
      107
      108
      109
      110
      111
      112
      113
      114
      115
      116
      117
      118
      119
      120
      121
      122
      123
      124
      125
      126
      127
      128
      129
      130
      131
      132
      133
      134
      135
      136
      137
      138
      139
      140
      141
      142
      143
      144
      145
      146
      147
      148
      149
      150
      151
      152
      153
      154
      155
      156
      157
      158
      159
      160
      161
      162
      163
      164
      165
      166
      167
      168
      169
      170
      171
      172
      173
      174
      175
      176
      177
      178
      179
      180
      181
      182
      183
      184
      185
      186
      187
      188
      189
      190
      191
      192
      193
      194
      195
      196
      197

      PHP-Quelltext

      # ImageResize (2016-10-28) :: Start
      Function ImageResize($Source=NULL$NewWidth=NULL$NewHeight=NULL$Option=NULL)
          {
          If (!IsSet(
      $Source) || !Is_String($Source) || Trim($Source)=='' || !Is_File($Source))
              {
              Return;
              }
          List(
      $Width$Height)
              =
              
      GetImageSize($Source)
              ;
          
      $NewWidth
              
      =
                 IsSet (
      $NewWidth)
              && 
      Intval($NewWidth)>=0
              
      ?  Intval($NewWidth)
              :  
      NULL
              
      ;
          
      $NewHeight
              
      =
                 IsSet (
      $NewHeight)
              && 
      Intval($NewHeight)>=0
              
      ?  Intval($NewHeight)
              :  
      NULL
              
      ;
          
      $CurrentWidth
              
      =
                
      $NewWidth 0
              
      $NewWidth
              
      $Width
              
      ;
          
      $CurrentHeight
              
      =
                
      $NewHeight 0
              
      $NewHeight
              
      $Height
              
      ;
          If (IsSet(
      $Option) && Is_String($Option) && Trim($Option)!='')
              {
              
      $Option=StrToLower(Trim($Option));
              }


          If (
      $NewWidth && $NewHeight 0)
              {
              
      # Breite __und__ Höhe wurden gesetzt
              
      $Case
                  
      =
                  
      $NewWidth $NewHeight
                  
      21 # gesetzte Breite __größer__         als Höhe
                  
      22 # gesetzte Breite __kleiner/gleich__ als Höhe
                  
      ;
              }
          Else
              {
              
      # Breite __oder__ Höhe wurde gesetzt
              
      If ($NewWidth 0)
                  {
                  
      $Case=11# Breite wurde gesetzt
                  
      }
              If (
      $NewHeight 0)
                  {
                  
      $Case=12# Höhe wurde gesetzt
                  
      }
              }


          Switch (
      $Option)
              {
              Case 
      'min':
                  If (
      $Case===21 || $Case===22)
                      {
                      If (
      $Width $NewWidth)
                          {
                          
      $CurrentWidth   =$Width;
                          
      $CurrentHeight  =$Height;
                          }
                      Else
                          {
                          If (
      $Width $Height)
                              {
                              
      $CurrentWidth   =Number_Format($Width $NewHeight $Height0',''.');
                              
      $CurrentHeight  =$NewHeight;
                              }
                          Else
                              {
                              
      $CurrentWidth   =$NewWidth;
                              
      $CurrentHeight  =Number_Format($Height $NewWidth $Width0',''.');
                              }
                          }
                      }
                  If (
      $Case===11)
                      {
                      If (
      $Width $NewWidth)
                          {
                          
      $CurrentWidth   =$Width;
                          
      $CurrentHeight  =$Height;
                          }
                      Else
                          {
                          
      $CurrentWidth   =$NewWidth;
                          
      $CurrentHeight  =Number_Format($Height $NewWidth $Width0',''.');
                          }
                      }
                  If (
      $Case===12)
                      {
                      If (
      $Height $NewHeight)
                          {
                          
      $CurrentWidth   =$Width;
                          
      $CurrentHeight  =$Height;
                          }
                      Else
                          {
                          
      $CurrentWidth   =Number_Format($Width $NewHeight $Height0',''.');
                          
      $CurrentHeight  =$NewHeight;
                          }
                      }
                  Break;

              Case 
      'max':
                  If (
      $Case===21 || $Case===22)
                      {
                      If (
      $Width $NewWidth)
                          {
                          If (
      $Width $Height)
                              {
                              
      $CurrentWidth   =$NewWidth;
                              
      $CurrentHeight  =Number_Format($Height $NewWidth $Width0',''.');
                              }
                          Else
                              {
                              
      $CurrentWidth   =Number_Format($Width $NewHeight $Height0',''.');
                              
      $CurrentHeight  =$NewHeight;
                              }
                          }
                      Else
                          {
                          
      $CurrentWidth   =$Width;
                          
      $CurrentHeight  =$Height;
                          }
                      }
                  If (
      $Case===11)
                      {
                      If (
      $Width $NewWidth)
                          {
                          
      $CurrentWidth   =$NewWidth;
                          
      $CurrentHeight  =Number_Format($Height $NewWidth $Width0',''.');
                          }
                      Else
                          {
                          
      $CurrentWidth   =$Width;
                          
      $CurrentHeight  =$Height;
                          }
                      }
                  If (
      $Case===12)
                      {
                      If (
      $Height $NewHeight)
                          {
                          
      $CurrentWidth   =Number_Format($Width $NewHeight $Height0',''.');
                          
      $CurrentHeight  =$NewHeight;
                          }
                      Else
                          {
                          
      $CurrentWidth   =$Width;
                          
      $CurrentHeight  =$Height;
                          }
                      }
                  Break;

              Default:
                  If (
      $Case===21)
                      {
                      
      $CurrentWidth   =Number_Format($Width $NewHeight $Height0',''.');
                      }
                  If (
      $Case===22)
                      {
                      
      $CurrentHeight  =Number_Format($Height $NewWidth $Width0',''.');
                      }
                  If (
      $Case===11)
                      {
                      
      $CurrentHeight  =Number_Format($Height $NewWidth $Width0',''.');
                      }
                  If (
      $Case===12)
                      {
                      
      $CurrentWidth   =Number_Format($Width $NewHeight $Height0',''.');
                      }
                  Break;
              }
          Return
              Array(
              
      0       =>$CurrentWidth,
              
      1       =>$CurrentHeight,
              
      'Width' =>$CurrentWidth,
              
      'Height'=>$CurrentHeight,
              );
          }
      # ImageResize (2016-10-28) :: End



  • Optional ( damit das Bild unterhalb des Eingabefeld steht ):

    pkinc/admintpl/content/compose_step4.htm
    • Öffne o.g. Datei und suche das (Zeile ~12):



      1
      2
      3

      Quellcode

              <!-- # ImageResize -> Teaser :: Start -->
              
      <img src="$cont_teaser_pathwidth="$cont_teaser_widthheight="$cont_teaser_heighttitle="Aufmacher-Grafik" alt="Aufmacher-Grafik" />
              <!-- 
      # ImageResize -> Teaser :: End -->

      Und mache daraus das:



      1
      2
      3
      4

      Quellcode

              <!-- # ImageResize -> Teaser :: Start -->
              
      <br />
              <
      img src="$cont_teaser_pathwidth="$cont_teaser_widthheight="$cont_teaser_heighttitle="Aufmacher-Grafik" alt="Aufmacher-Grafik" />
              <!-- 
      # ImageResize -> Teaser :: End -->



  • pkinc/admin/contentcompose.php
    • In o.g. Datei ist ja jetzt dieser Code zu finden:



      1
      2
      3
      4
      5
      6

      PHP-Quelltext

          # ImageResize -> Teaser :: Start
          
      $cont_teaser_path   ='../'.$cont_teaser;
          
      $cont_teaser_dim    =ImageResize($cont_teaser_path200200);
          
      $cont_teaser_width  =Intval($cont_teaser_dim[0]);
          
      $cont_teaser_height =Intval($cont_teaser_dim[1]);
          
      # ImageResize -> Teaser :: End

      Und mache daraus das:



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

      PHP-Quelltext

          # ImageResize -> Teaser :: Start
          
      $cont_teaser_path   ='../'.$cont_teaser;
          
      $cont_teaser_dim
              
      =
              
      ImageResize(
              
      $cont_teaser_path,  # Pfad zum Bild
              
      200,                # Breite in px
              
      200,                # Höhe in px
              
      NULL                # Optional: NULL  = Bilder auf o.g. Breite*Höhe setzen
                                  #           'max' = Bilder auf maximal o.g. Breite und oder Höhe setzen
                                  #           'min' = Bilder auf mind. o.g. Breite und oder Höhe setzen
              
      );
          
      $cont_teaser_width  =Intval($cont_teaser_dim[0]);
          
      $cont_teaser_height =Intval($cont_teaser_dim[1]);
          
      # ImageResize -> Teaser :: End

      Ich hab in oberen Code per # TEXT ein paar Kommentare hinterlassen. Ich denke aber nicht das du irgendwie nochmal ran wollen würdest - höchstens zum rumprobieren ;p



--


Zitat
Original geschrieben von DHH

Außerdem versuche ich irgendwie, den Links aus der Überschrift zu bekommen (Artikel, Links und Downloads).



Bei News ist der gar nicht drin und so hätte ich das auch gerne.





Was das angeht:
  • Artikel:
    • pkinc/publictpl/content/articles_textlink_head.htm
      • Öffne o.g. Datei und suche das:



        1

        Quellcode

        <class="heads" href="?path=content&contentid=$contentinfo[content_id]&catid=$contentinfo[content_cat]&themeid=$contentinfo[content_themeid]"$content_title</a>
        Und mache daraus das:



        1
        2

        Quellcode

        <!--<class="heads" href="?path=content&contentid=$contentinfo[content_id]&catid=$contentinfo[content_cat]&themeid=$contentinfo[content_themeid]"$content_title</a>-->
        $content_title



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



        1

        Quellcode

        <class="heads" href="?path=download&contentid=$contentinfo[content_id]&catid=$contentinfo[content_cat]&themeid=$contentinfo[content_themeid]"$contentinfo[content_title]</a>
        Und mache daraus das:



        1
        2

        Quellcode

        <!--<class="heads" href="?path=download&contentid=$contentinfo[content_id]&catid=$contentinfo[content_cat]&themeid=$contentinfo[content_themeid]"$contentinfo[content_title]</a>-->
        $contentinfo[content_title]



  • Links / Tourdates:
    • Keine Ahnung - gibt es dort ein Problem? 


 
Zum Anfang der Seite
30.10.2016 - 09:16 Uhr
Beitrag: #57
Hat das bei dir funktioniert, mit der Aufmachhergrafik?
Auch bei der neuesten Änderung, bleiben sie bei 100*100  

Mit dem Link entfernen hat geklappt.

Mit "Links" meinte ich, dass auch dort der Link weg soll, sowie die Überschrift:

Skaliert auf 550 x 75 Pixel

1. Link aus der Überschrift
2. Komplett weg

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von DHH - 30.10.2016 - 09:19 Uhr
 
Zum Anfang der Seite
30.10.2016 - 15:37 Uhr
Beitrag: #58
Zitat
Original geschrieben von DHH

Hat das bei dir funktioniert, mit der Aufmachhergrafik?



Naja, ich würds ja nicht posten wenn es nicht klappen würde ^^" Hab jeden möglichen Fall ( alle drei Optionen [ max, mind., neu skalieren ] mit vier verschiedenen großen Bildern durchgegangen ) bei mir lokal getestet ( weswegen der Code etwas größer wurde )  



Zitat
Original geschrieben von DHH

Auch bei der neuesten Änderung, bleiben sie bei 100*100  



Wenn du diese Stelle hier ..



1
2
3
4
5
6
7
8
9
10

PHP-Quelltext

    $cont_teaser_dim
         =
         
ImageResize(
         
$cont_teaser_path,  # Pfad zum Bild
         
200,                # Breite in px
         
200,                # Höhe in px
         
NULL                # Optional: NULL  = Bilder auf o.g. Breite*Höhe setzen
                             #           'max' = Bilder auf maximal o.g. Breite und oder Höhe setzen
                             #           'min' = Bilder auf mind. o.g. Breite und oder Höhe setzen
         
);
.. in Zeile 5 und 6 nicht angepasst hast, dann sollte es eigentlich auf die ~200*200px neu skaliert werden.

Wie sieht denn die Bildgröße von dir aus? Ist es denn 100*100px?

Du könntest ja mal folgendes probieren:
  • pkinc/admin/contentcompose.php
    • Öffne o.g. Datei und suche das:



      1
      2

      PHP-Quelltext

          $cont_teaser_width  =Intval($cont_teaser_dim[0]);
          
      $cont_teaser_height =Intval($cont_teaser_dim[1]);

      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

      PHP-Quelltext

          Echo '<div style="padding: 5px; margin: 5px; border: 5px solid green; white-space: pre; font-family: \'Courier New\'">';
          Echo 
      'Test-Script:';
          Echo 
      '<br>';
          Echo 
      '------------';
          Echo 
      '<br>';
          Echo 
      'GetImageSize() ....... = ';
          Echo 
      '<br>';
          
      Var_dump(GetImageSize($acont_teaser_path));
          Echo 
      '<br>';
          Echo 
      '$cont_teaser_path .... = '.$cont_teaser_path;
          Echo 
      '<br>';
          Echo 
      '$cont_teaser_dim ..... = ';
          Echo 
      '<br>';
          
      print_r($cont_teaser_dim);
          Echo 
      '$cont_teaser_dim[0] .. = '.$cont_teaser_dim[0].' // Variable'.(IsSet($cont_teaser_dim[0]) ? NULL ' NICHT').' vorhanden -- Typ ist'.(IsSet($cont_teaser_dim[0]) && Is_Numeric($cont_teaser_dim[0]) ? NULL ' NICHT').' Zahl';
          Echo 
      '<br>';
          Echo 
      '$cont_teaser_dim[1] .. = '.$cont_teaser_dim[1].' // Variable'.(IsSet($cont_teaser_dim[1]) ? NULL ' NICHT').' vorhanden -- Typ ist'.(IsSet($cont_teaser_dim[1]) && Is_Numeric($cont_teaser_dim[1]) ? NULL ' NICHT').' Zahl';
          Echo 
      '<br>';
          Echo 
      '$cont_teaser_width ... = '.$cont_teaser_width;
          Echo 
      '<br>';
          Echo 
      '$cont_teaser_height .. = '.$cont_teaser_height;
          Echo 
      '<br>';
          Echo 
      '</div>';


    Wenn du dann im AdminCenter > Inhalte > *Inhalt wo Aufmacher-Grafik sein soll öffnen* > zu Step 4 gehen bist sollte in etwa sowas erscheinen ( in grünen Rahmen ):



    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
    29
    30
    31
    32
    33

    Quellcode

    Test-Script:
    ------------
    GetImageSize() ....... = 
    array(
    7) {
      [
    0]=>
      
    int(12)
      [
    1]=>
      
    int(15)
      [
    2]=>
      
    int(1)
      [
    3]=>
      
    string(22"width="12" height="15""
      
    ["bits"]=>
      
    int(2)
      [
    "channels"]=>
      
    int(3)
      [
    "mime"]=>
      
    string(9"image/gif"
    }

    $cont_teaser_path .... = ../images/movie/info.gif
    $cont_teaser_dim 
    ..... = 
    Array
    (
        [
    0] => 200
        
    [1] => 250
        
    [Width] => 200
        
    [Height] => 250
    )
    $cont_teaser_dim[0] .. = 200 // Variable vorhanden -- Typ ist Zahl
    $cont_teaser_dim[1] .. = 250 // Variable vorhanden -- Typ ist Zahl
    $cont_teaser_width ... = 200
    $cont_teaser_height 
    .. = 250

    Sollte z.B. im unteren Bereich das Wort NICHT erscheinen - tja .. das hätte so nicht sein sollen und so ^^"



Zitat
Original geschrieben von DHH

Mit "Links" meinte ich, dass auch dort der Link weg soll, sowie die Überschrift:

Skaliert auf 550 x 75 Pixel

1. Link aus der Überschrift
2. Komplett weg



Ah, achso.

Öhm .. Könntest da mal die Templates pkinc/publictpl/content/overview_links_linkbox.htm posten? Hab das grad nicht parat mit den Änderungen von damals  


 
Zum Anfang der Seite
31.10.2016 - 08:12 Uhr
Beitrag: #59
Werde nachher mal ein wenig rumprobieren.

 
Zum Anfang der Seite
01.11.2016 - 20:34 Uhr
Beitrag: #60
  • pkinc/publictpl/content/overview_links_linkbox.htm
    • Öffne o.g. Datei und suche folgendes:



      1

      Quellcode

      <font class="big"><a href="$link"><b>$contentinfo[content_title]</b></a></font>




      1

      Quellcode

      <font class="big">$contentinfo[content_title]</font><br />

      Und entferne beides, oder mache daraus das (auskommentieren):



      1

      Quellcode

      <!--<font class="big"><a href="$link"><b>$contentinfo[content_title]</b></a></font>-->




      1

      Quellcode

      <!--<font class="big">$contentinfo[content_title]</font><br />-->



Was die Inhalts-/ Video-Suche angeht .. Ich konnt es bei mir im Prinzip zusammenführen. Im Grunde werden einfach die gefundenen Videos unterhalb ( oder oberhalb, je nachdem was im Template zuerst positioniert wird ) angefügt. Sofern jetzt noch relevant sein sollte ( ich geh von aus ) müsste man nochmal wegen der Seitenanzeige gucken - weiss noch gar nicht wie man das ab blödestens machen könnte ^^"


 
Zum Anfang der Seite
 Seiten (11):    <    Prev    2     3     4     5     6    Next    >  

Ähnliche Themen
 
Support Support » Uhr für version 1.6.1 - Letzte Antwort von gigammc am 03.05.09, 10:46 Uhr für version 1.6.1  (03.05.09, 10:46)
Support Support » Steckbrief für die Kit Version 1.6.4 - Letzte Antwort von Asche Sturm am 31.12.07, 13:10 Steckbrief für die Kit Version 1.6.4  (31.12.07, 13:10)
Support Support » steckbrief addon für php Version 1.6.03 - Letzte Antwort von WEBI am 18.06.07, 16:02 steckbrief addon für php Version 1.6.03  (18.06.07, 16:02)
Support Support » werber upgrate für die version 1603 - Letzte Antwort von DON am 17.12.07, 22:15 werber upgrate für die version 1603  (17.12.07, 22:15)
Modifikationen Modifikationen » Neue Build Version des ASCE Pluginsystems - Letzte Antwort von DustFireSky am 31.05.13, 07:56 Neue Build Version des ASCE Pluginsystems  (31.05.13, 07:56)

HTH-C.com - Webmedien & Community