PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
Altes PHP-Script benötigt neue Befehle
Beitrag
<blockquote data-quote="Schaddi" data-source="post: 2055845" data-attributes="member: 416161"><p><strong>AW: Altes PHP-Script benötigt neue Befehle</strong></p><p></p><p><span style="font-family: 'Arial'"><span style="font-size: 12px"><span style="font-size: 10px">Ich nutze PHP-Version 5.2.8 bzw 5.3.2-1ubuntu4.18 auf dem neuen Webspace.</span></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 12px"><span style="font-size: 10px">es gibt keinerlei Fehlermeldungen denn die Dateien zum Anzeigen der abgefragten Inhalte "</span><span style="font-family: 'Arial'"><span style="color: #000000"><span style="color: #DD0000"><span style="font-size: 10px"><span style="color: Black">threads_like_the_same_row.htm" sowie "threads_like_the_same_no.htm" </span></span></span></span></span></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 12px"><span style="font-family: 'Arial'"><span style="color: #000000"><span style="color: #DD0000"><span style="font-size: 10px"><span style="color: Black"><span style="font-family: 'Arial'">werden erst am Ende des Scripts aufgerufen.</span></span></span><span style="font-size: 10px"></span></span></span></span></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 12px"><span style="font-family: 'Arial'"><span style="color: #000000"><span style="color: #DD0000"><span style="font-size: 10px"></span> <span style="font-family: 'Arial'"><span style="color: Black"><span style="font-size: 10px">Aber auch gerne die beiden zum einsehen:</span></span></span></span></span></span></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 12px"><span style="font-family: 'Arial'"><span style="color: #000000"><span style="color: #DD0000"><span style="font-family: 'Arial'"><span style="color: Black"></span></span></span></span></span></span></span><span style="font-family: 'Arial'"><span style="font-size: 12px"><span style="font-family: 'Arial'"><span style="color: #000000"><span style="color: #DD0000"><span style="color: Black"><span style="font-size: 10px"><span style="color: RoyalBlue">threads_like_the_same_no.htm</span></span></span></span></span></span></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 12px"><span style="font-family: 'Arial'"><span style="color: #000000"><span style="color: #DD0000"><span style="color: Black"></span></span></span></span></span></span>[HTML]<tr></p><p> <td class="highlight" align="center"></p><p> <br /></p><p> Es konnten leider keine &auml;hnlichen Themen gefunden werden.</p><p> <br /><br /></p><p> </td></p><p></tr>[/HTML]<span style="font-family: 'Arial'"><span style="font-size: 10px"><span style="color: RoyalBlue"><span style="font-family: 'Arial'">threads_like_the_same_row.htm</span></span></span></span></p><p>[HTML]<tr></p><p> <td class="$row_class"></p><p> <img src="images/dir.gif" $width_height_dir_gif alt="$cat_res[forumcat_name]" title="$cat_res[forumcat_name]" align="absmiddle" /></p><p> <a href="include.php?path=forumscategory&amp;catid=$cat_res[forumcat_id]">$cat_res[forumcat_name]</a></p><p> <img src="images/icons/notice.gif" $width_height_notice_gif alt="$threads_res[forumthread_title] - Letzte Antwort von $threads_res[forumthread_lastreply_autor] am $create_date" title="$threads_res[forumthread_title] - Letzte Antwort von $threads_res[forumthread_lastreply_autor] am $create_date" align="absmiddle" /></p><p> <a href="include.php?path=forumsthread&amp;threadid=$threads_res[forumthread_id]" title="$threads_res[forumthread_title]">$thread_title</a></p><p> <span class="small">- $threads_res[forumthread_lastreply_autor] - $create_date</span></p><p> </td></p><p></tr>[/HTML]Nochmals das alte Script mit Kopf. Es ist von 2008 und wurde seitdem nicht mehr weitergepflegt.</p><p>[PHP]<?php</p><p>################################################################################</p><p>## Ähnliche Themen für das PHPKit-Forum ##</p><p>################################################################################</p><p></p><p></p><p>if(!defined('pkFRONTEND') || pkFRONTEND!='public')</p><p> die('Direct access to this location is not permitted.');</p><p></p><p>// Wie viele Ähnliche Themen sollen angezeit werden? </p><p>$limit = 5;</p><p></p><p>// Soll eine Zufallsauswahl durch MySQL erfolgen oder soll die Sortierung anhand</p><p>// der Relevanz von MySQL erfolgen?</p><p>// 0 = Relevanzsortierung - 1 Zufallsauswahl</p><p>$fluke = 0;</p><p></p><p>$title = $DB->fetch_assoc(</p><p> $SQL->query("SELECT</p><p> forumthread_title</p><p> FROM</p><p> ".pkSQLPREFIX."_forumthread</p><p> WHERE</p><p> forumthread_id = '".intval($threadid)."'</p><p> "));</p><p></p><p>if($fluke == 1) {</p><p> $fluke = 'ORDER BY RAND()';</p><p>}else{</p><p> $fluke = '';</p><p>}</p><p></p><p>$threads_query = $SQL->query("SELECT</p><p> forumthread_id,</p><p> forumthread_catid,</p><p> forumthread_lastreply_time,</p><p> forumthread_lastreply_autor,</p><p> forumthread_title,</p><p> forumthread_autor</p><p> FROM</p><p> ".pkSQLPREFIX."_forumthread</p><p> WHERE</p><p> MATCH (forumthread_title)</p><p> AGAINST ('%".$title['forumthread_title']."%') && forumthread_id != '".intval($threadid)."'</p><p> ".$fluke."</p><p> ");</p><p></p><p>$num = $SQL->num_rows($threads_query);</p><p>if($num == '') {</p><p> eval ("\$threads_like_the_same_row.= \"".pkTpl("forum/threads_like_the_same_no")."\";");</p><p>}else{</p><p> $count = 0;</p><p> while($threads_res = $SQL->fetch_assoc($threads_query)) {</p><p> if($count < $limit) {</p><p> $cat_res = $SQL->fetch_assoc(</p><p> $SQL->query("SELECT</p><p> forumcat_id,</p><p> forumcat_name,</p><p> forumcat_rrights</p><p> FROM</p><p> ".pkSQLPREFIX."_forumcat</p><p> WHERE</p><p> forumcat_id = '".$threads_res['forumthread_catid']."'</p><p> "));</p><p> if(!getrights($cat_res['forumcat_rrights'])) {</p><p> $threads_like_the_same_row.= '';</p><p> }else{</p><p> $img_open_array = getimagesize("images/open.gif");</p><p> $width_height_open_gif = $img_open_array[3];</p><p> $img_dir_array = getimagesize("images/dir.gif");</p><p> $width_height_dir_gif = $img_dir_array[3];</p><p> $img_notice_array = getimagesize("images/icons/notice.gif");</p><p> $width_height_notice_gif = $img_notice_array[3];</p><p> $row_class = rowcolor($row_class);</p><p> $thread_title = pkStringCut($threads_res['forumthread_title'], 50);</p><p> $create_date = date("d.m.y - H:i", $threads_res['forumthread_lastreply_time']);</p><p> eval ("\$threads_like_the_same_row.= \"".pkTpl("forum/threads_like_the_same_row")."\";");</p><p> $count++;</p><p> }</p><p> }</p><p> }</p><p>}</p><p>?>[/PHP]</p></blockquote><p></p>
[QUOTE="Schaddi, post: 2055845, member: 416161"] [b]AW: Altes PHP-Script benötigt neue Befehle[/b] [FONT=Arial][SIZE=3][SIZE=2]Ich nutze PHP-Version 5.2.8 bzw 5.3.2-1ubuntu4.18 auf dem neuen Webspace. es gibt keinerlei Fehlermeldungen denn die Dateien zum Anzeigen der abgefragten Inhalte "[/SIZE][FONT=Arial][COLOR=#000000][COLOR=#DD0000][SIZE=2][COLOR=Black]threads_like_the_same_row.htm" sowie "threads_like_the_same_no.htm" [FONT=Arial]werden erst am Ende des Scripts aufgerufen.[/FONT][/COLOR][/SIZE][SIZE=2] [/SIZE] [FONT=Arial][COLOR=Black][SIZE=2]Aber auch gerne die beiden zum einsehen:[/SIZE] [/COLOR][/FONT][/COLOR][/COLOR][/FONT][/SIZE][/FONT][FONT=Arial][SIZE=3][FONT=Arial][COLOR=#000000][COLOR=#DD0000][COLOR=Black][SIZE=2][COLOR=RoyalBlue]threads_like_the_same_no.htm[/COLOR][/SIZE] [/COLOR][/COLOR][/COLOR][/FONT][/SIZE][/FONT][HTML]<tr> <td class="highlight" align="center"> <br /> Es konnten leider keine ähnlichen Themen gefunden werden. <br /><br /> </td> </tr>[/HTML][FONT=Arial][SIZE=2][COLOR=RoyalBlue][FONT=Arial]threads_like_the_same_row.htm[/FONT][/COLOR][/SIZE][/FONT] [HTML]<tr> <td class="$row_class"> <img src="images/dir.gif" $width_height_dir_gif alt="$cat_res[forumcat_name]" title="$cat_res[forumcat_name]" align="absmiddle" /> <a href="include.php?path=forumscategory&catid=$cat_res[forumcat_id]">$cat_res[forumcat_name]</a> <img src="images/icons/notice.gif" $width_height_notice_gif alt="$threads_res[forumthread_title] - Letzte Antwort von $threads_res[forumthread_lastreply_autor] am $create_date" title="$threads_res[forumthread_title] - Letzte Antwort von $threads_res[forumthread_lastreply_autor] am $create_date" align="absmiddle" /> <a href="include.php?path=forumsthread&threadid=$threads_res[forumthread_id]" title="$threads_res[forumthread_title]">$thread_title</a> <span class="small">- $threads_res[forumthread_lastreply_autor] - $create_date</span> </td> </tr>[/HTML]Nochmals das alte Script mit Kopf. Es ist von 2008 und wurde seitdem nicht mehr weitergepflegt. [PHP]<?php ################################################################################ ## Ähnliche Themen für das PHPKit-Forum ## ################################################################################ if(!defined('pkFRONTEND') || pkFRONTEND!='public') die('Direct access to this location is not permitted.'); // Wie viele Ähnliche Themen sollen angezeit werden? $limit = 5; // Soll eine Zufallsauswahl durch MySQL erfolgen oder soll die Sortierung anhand // der Relevanz von MySQL erfolgen? // 0 = Relevanzsortierung - 1 Zufallsauswahl $fluke = 0; $title = $DB->fetch_assoc( $SQL->query("SELECT forumthread_title FROM ".pkSQLPREFIX."_forumthread WHERE forumthread_id = '".intval($threadid)."' ")); if($fluke == 1) { $fluke = 'ORDER BY RAND()'; }else{ $fluke = ''; } $threads_query = $SQL->query("SELECT forumthread_id, forumthread_catid, forumthread_lastreply_time, forumthread_lastreply_autor, forumthread_title, forumthread_autor FROM ".pkSQLPREFIX."_forumthread WHERE MATCH (forumthread_title) AGAINST ('%".$title['forumthread_title']."%') && forumthread_id != '".intval($threadid)."' ".$fluke." "); $num = $SQL->num_rows($threads_query); if($num == '') { eval ("\$threads_like_the_same_row.= \"".pkTpl("forum/threads_like_the_same_no")."\";"); }else{ $count = 0; while($threads_res = $SQL->fetch_assoc($threads_query)) { if($count < $limit) { $cat_res = $SQL->fetch_assoc( $SQL->query("SELECT forumcat_id, forumcat_name, forumcat_rrights FROM ".pkSQLPREFIX."_forumcat WHERE forumcat_id = '".$threads_res['forumthread_catid']."' ")); if(!getrights($cat_res['forumcat_rrights'])) { $threads_like_the_same_row.= ''; }else{ $img_open_array = getimagesize("images/open.gif"); $width_height_open_gif = $img_open_array[3]; $img_dir_array = getimagesize("images/dir.gif"); $width_height_dir_gif = $img_dir_array[3]; $img_notice_array = getimagesize("images/icons/notice.gif"); $width_height_notice_gif = $img_notice_array[3]; $row_class = rowcolor($row_class); $thread_title = pkStringCut($threads_res['forumthread_title'], 50); $create_date = date("d.m.y - H:i", $threads_res['forumthread_lastreply_time']); eval ("\$threads_like_the_same_row.= \"".pkTpl("forum/threads_like_the_same_row")."\";"); $count++; } } } } ?>[/PHP] [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ★ = 12, ◇ = 4 und die Hälfte von ★ zu ◇ addiert wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
Altes PHP-Script benötigt neue Befehle
Oben