|
|
Latest News |
Latest Threads |
|
 |
56.036 Posts & 4.945 Themen in 78 Foren |
|
|
|
 |
Forensuche |
|
Suchbegriff |
Benutzerauswahl |
Ergebnisse anzeigen |
 |
 |
content/news Kommentieren Link nur anzeigen wenn Kommentare möglich + Autornamelink 34 Beiträge in diesem Thema |
|
|
 |
|
 |
15.08.2012 - 12:39 Uhr |
|
|
|
Hi Leute,
danke für die Arbeit !!
Versuch mich jetzt mal am HTML Part , kucken ob ichs hinbekomm.
edit: hoff ich komm die woche dazu, freundin will ständig irgendwas unternehmen ... weiber
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von fireball1982 - 20.08.2012 - 08:43 Uhr |
|
|
|
|
|
|
|
 |
|
 |
20.08.2012 - 10:05 Uhr |
|
|
|
So,
ich hab natürlich mal wieder eine zu große Fresse gehabt mit dem html mach ich selbst 
Ohne den Code vorher angerührt zu haben häng ich schon bei anderen Sachen fest.
css (testweise)
| Quellcode
.quickcomment {
display:none;
}
.quickcommentdisplay {
padding:20px;
margin-top:10px;
} | |
Der Link zum Kommentieren ist ja im Template content/news_comment (siehe Seite 1)
Das Template schaut nun so aus
| Quellcode <a href="#$contentinfo[content_id]" class="quickcomment">Kommentieren</a> | |
im Template content/news ist der Text der beim Aufklappen erscheint
| Quellcode <div class="quickcommentdisplay"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse elementum libero dui. Aenean vel viverra nibh. Sed porta odio sit amet augue molestie aliquam. Praesent faucibus viverra neque et porta. Nunc nec magna sit amet metus congue placerat. Mauris neque nulla, vestibulum non molestie posuere, facilisis ut enim. Nulla sagittis hendrerit diam. Aenean vehicula condimentum mauris, at faucibus lorem cursus quis. Vivamus ligula nisi, egestas vitae aliquet non, scelerisque in odio. Donec sit amet nulla nulla. Aenean nulla elit, fringilla ac fermentum sit amet, feugiat vitae orci. Donec et nibh mauris, eget mollis ante.
</div> | |  |
Das Javascript schaut so aus
| Quellcode <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".quickcommentdisplay").hide();
$(".quickcomment").show();
$(".quickcomment").click(function(){
$(".quickcommentdisplay").slideToggle();
});
});
</script> | |
Hier ist auch eine Demo
Es klappt auch auf, blöderweise klappen alle Newsbeiträge auf der Seite auf -.-
Dachte es hilft wenn die News-Id hinter dem # im Link erscheint, hilft aber nicht.
Habt ihr dazu vielleicht eine Idee ?
Wenn das nur so klappt kann ich die Idee gleich wieder begraben.
|
|
|
|
|
|
|
 |
|
 |
20.08.2012 - 22:35 Uhr |
|
|
|
Guten Abend,
Zu deinen Fragen
Wenn ich dich richtig verstehe fragst du warum ich nicht alles in das Template kloppe mit dem Kommentieren Link, oder ?
Also in dem Template ist nur der Link weil dieser im news Template in einem Div steht (also die variable) welcher a) noch andere Links enthält (z.b. die Facebook Sache die wir beim validieren im andern Thread hatten) und b) der div nur eine zeile gehen soll und ne farbe gelb hat ... was laber ich rum, stells dir vor wie hier die grüne Zeile unterm antworten Fenster, wenn ich das ganze ins Template mit dem Link packen würde wäre quasi alles in der grünen Zeile -> sieht kacke aus
zu der andern Frage, nein das ist nicht was ich möchte *g*
ich möchte es gerne andersrum 
wenn ich die news einzeln aufrufe dann solls so sein wie bisher, das unter dem artikel halt das kommentarfeld kommt. ist man aber in der newsansicht wo mehrere news angezeigt werden was weiß ich bei mir isses die start.php glaub ich, da stehen halt 3 news, und da sollte halt bei klick auf kommentieren das Teil ausklappen, wie so ne Art Quickreply mit nem tollen aufklappeffekt.
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von fireball1982 - 20.08.2012 - 22:37 Uhr |
|
|
|
|
|
|
|
 |
|
 |
21.08.2012 - 19:09 Uhr |
|
|
|
Öffne die Datei content/news.php und suche das:
| PHP-Quelltext if (isset($contentid) && is_numeric($contentid) && trim($contentid)!='' && intval($contentinfo['content_comment_status'])===1)
{
$comcat='cont';
$subid=intval($contentid);
require_once ('comment/comment.php');
} | |
Und ändere dies in das um:
| PHP-Quelltext # comment at overview-list
if (intval($contentinfo['content_comment_status'])===1)
{
$comcat ='cont';
$subid =intval($contentinfo['content_id']);
require ('comment/comment.php');
}
# comment at overview-list | |
Öffne jetzt die comment/comment.php und suche das:
Hier klicken zum aufklappen 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 | | PHP-Quelltext if ($ACTION==$_POST['save']) {
if ($config['comment_register']==1 && !$USER['id']>0) {header("location: include.php?event=1session_id()); exit();}
else {
$floodcontrol=time()-($config['comment_floodctrl']*60);
$infocount=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['comment']." WHERE comment_ip='".$thisUSER['ipaddr']."' && comment_userid='".$USER['id']."' && comment_time>'".$floodcontrol."' LIMIT 1"));
if (trim($_POST['content'])=='' || trim($_POST['comment_autor'])=='') $event=12;
elseif (strlen(trim($_POST['content']))>$config['comment_maxchars']) $event=46;
elseif ($infocount[0]>0) $event=45;
elseif (!checkusername($_POST['comment_autor'],1)) $event=42;
else {
$DB->query("INSERT INTO ".$db_tab['comment']." (comment_cat,comment_subid,comment_time,comment_autor,comment_ip,comment_text, comment_userid) VALUES ('".$_POST['comcat']."','".$_POST['subid']."','".time()."','".$_POST['comment_autor']."','".$thisUSER['ipaddr']."','".addslashes($_POST['content'])."','".$USER['id']."')");
$autor=$_POST['comment_autor'];
$mail_title=$config['site_name'].' - '.$lang['new_comment'];
eval ("\$mail_text= \"".getTemplate("comment_mail_notify")."\";");
notifymail('comment',$mail_title,$mail_text);
$im_title=$lang['new_gbentry'];
eval ("\$im_text= \"".getTemplate("comment_im_notify")."\";");
notifyim('comment',$im_title,$im_text);
if ($_POST['comcat']=='gb') {
$email=$DB->fetch_array($DB->query("SELECT gbook_notify,gbook_email,gbook_autor FROM ".$db_tab['gbook']." WHERE gbook_id='".$_POST['subid']."' LIMIT 1"));
if ($email['gbook_notify']==1) {
$comment_text=$_POST['content'];
eval ("\$email_title= \"".getTemplate("guestbook/email_title")."\";");
eval ("\$email_text= \"".getTemplate("guestbook/email_text")."\";");
mailsender($email['gbook_email'],$email_title,$email_text);
}
}
# edit
$current_path
=
isset ($goTo)
&& is_string($goTo)
&& trim ($goTo)!=''
? trim ($goTo)
: $current_path
;
# edit
header("location: include.php?event=13&moveto=".urlencode($current_path)."session_id()); exit();
}
}
} | |  |
Und mach damit folgendes:
Den Part zwischen den # edit entfernen
und dann den ganzen Part wieder dahin packen, wo er war, also hier drunter:
| PHP-Quelltext if (adminaccess('comment')) {
$DB->query("DELETE FROM ".$db_tab['comment']." WHERE comment_id='".$_REQUEST['delcomment']."' LIMIT 1");
} | |  |
---
Hier klicken zum aufklappenJetzt suche weiter nach dem (Original-Zeile: 116):
| PHP-Quelltext elseif ($info['content_option']==2) {$contentid=$subid; $goTo='path=content/news.php&contentid='.$contentid; /*include("content/news.php");*/} | |
Und ändere dies in das um:
| PHP-Quelltext elseif ($info['content_option']==2) {$contentid=$subid; $contentType='news'; /*include("content/news.php");*/} | |
---
Suche weiter (Original-Zeile: 135):
| PHP-Quelltext unset($sqlcommand); | |
Und füge darunter das ein:
| PHP-Quelltext # comment at overview-list
unset($comment_hash);
# comment at overview-list | |
---
Suche weiter (Original-Zeile: 138):
| PHP-Quelltext $comment_hash[$comment['comment_id']]=$comment; | |
Und ändere dies in das um:
| PHP-Quelltext # comment at overview-list
if ($contentType==='news')
{
$comment_hash[$subid][]=$comment;
}
else
{
$comment_hash[$comment['comment_id']]=$comment;
}
# $comment_hash[$comment['comment_id']]=$comment;
# comment at overview-list | |
---
Suche weiter (Original-Zeile: 154):
| PHP-Quelltext foreach ($comment_hash as $comment) { | |
Und füge darüber das ein:
| PHP-Quelltext # comment at overview-list
if ($contentType==='news')
{
$comment_hash=$comment_hash[$subid];
}
# comment at overview-list | |
---
Suche weiter (Original-Zeile: 182):
| PHP-Quelltext eval ("\$site_body.= \"".getTemplate("comment_comments_body")."\";"); | |
Und ändere dies in das um:
| PHP-Quelltext # comment at overview-list
if ($contentType==='news')
{
eval ("\$contentNews_commentBlock[$subid]= \"".getTemplate("comment_comments_body")."\";");
}
else
{
eval ("\$site_body.= \"".getTemplate("comment_comments_body")."\";");
}
# eval ("\$site_body.= \"".getTemplate("comment_comments_body")."\";");
# comment at overview-list | |
---
Suche weiter (Original-Zeile: 205):
| PHP-Quelltext if ($config['comment_register']!=1 || ($config['comment_register']==1 && ($USER['status']=='user' || $USER['status']=='member'|| $USER['status']=='member' || $USER['status']=='admin'))) { | |
Und füge darüber das ein:
| PHP-Quelltext # comment at overview-list
unset($sign_format);
# comment at overview-list | |
---
Suche weiter (Original-Zeile: 213):
| PHP-Quelltext if ($sign_format!="") eval ("\$sign_format= \"".getTemplate("format_table")."\";"); | |
Und füge darüber das ein:
| PHP-Quelltext # comment at overview-list
if ($contentType==='news')
{
$comment_path='content/news.php&id='.$subid;
}
# comment at overview-list | |
---
Suche weiter (Original-Zeile: 224):
| PHP-Quelltext eval ("\$site_body.= \"".getTemplate("comment_writeform")."\";"); | |
Und füge darüber das ein:
| PHP-Quelltext # comment at overview-list
if ($contentType==='news')
{
eval ("\$contentNews_comment[$subid]= \"".getTemplate("comment_writeform")."\";");
}
else
{
eval ("\$site_body.= \"".getTemplate("comment_writeform")."\";");
}
# eval ("\$site_body.= \"".getTemplate("comment_writeform")."\";");
# comment at overview-list | |
---
Suche weiter (Original-Zeile: 226):
| PHP-Quelltext else eval ("\$site_body.= \"".getTemplate("comment_autorlogin")."\";"); | |
Und füge darüber das ein:
| PHP-Quelltext # comment at overview-list
#else eval ("\$site_body.= \"".getTemplate("comment_autorlogin")."\";");
else
{
if ($contentType==='news')
{
eval ("\$contentNews_comment[$subid]= \"".getTemplate("comment_autorlogin")."\";");
}
else
{
eval ("\$site_body.= \"".getTemplate("comment_autorlogin")."\";");
}
}
# comment at overview-list | |
Jetzt die Templates:
Öffne das Template content/news und füge folgenden Code 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 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function()
{
$(".quickcommentdisplay_$contentinfo[content_id]").hide();
$(".quickcomment_$contentinfo[content_id]").show();
$(".quickcomment_$contentinfo[content_id]").click(function()
{
$(".quickcommentdisplay_$contentinfo[content_id]").slideToggle();
}
);
});
</script>
<a class="quickcomment_$contentinfo[content_id]">Kommentieren</a>
<div class="quickcommentdisplay_$contentinfo[content_id]">
$contentNews_commentBlock[$subid]
$contentNews_comment[$subid]
</div> | |
Alle 3 Elemente (JavaScript, den Link mit Kommentieren und den Div-Block) an beliebiger Stelle.
Und was die Formatierung via. class="" angeht: Einfach eine neue Klasse definieren, z.B. 'test':
| Quellcode class="test quickcomment_$contentinfo[content_id]" | |
|
|
|
|
|
|
|
 |
|
 |
28.08.2012 - 13:53 Uhr |
|
|
|
So,kanns ja nicht ewig aufschieben.
Bekomme nen PHP Fehler in der comment/comment.php
Zitat Parse error: syntax error, unexpected T_ELSE in /www/htdocs/w00ef1c6/home/comment/comment.php on line 311 |
Hier klicken zum aufklappen 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 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 | | PHP-Quelltext <?php
unset($event);
if (isset($_REQUEST['comcat'])) $comcat=$_REQUEST['comcat'];
if (isset($_REQUEST['subid'])) $subid=$_REQUEST['subid'];
if (isset($_POST['action'])) $ACTION=$_POST['action'];
else $ACTION='view';
if (adminaccess('comment')) {
$DB->query("DELETE FROM ".$db_tab['comment']." WHERE comment_id='".addslashes($_REQUEST['delcomment'])."' LIMIT 1");
}
if ($ACTION==$_POST['save']) {
if ($config['comment_register']==1 && !$USER['id']>0) {header("location: include.php?event=1"); exit();}
else {
$floodcontrol=time()-($config['comment_floodctrl']*60);
$infocount=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['comment']." WHERE comment_ip='".$thisUSER['ipaddr']."' && comment_userid='".$USER
['id']."' && comment_time>'".$floodcontrol."' LIMIT 1"));
if (trim($_POST['content'])=='' || trim($_POST['comment_autor'])=='') $event=12;
elseif (strlen(trim($_POST['content']))>$config['comment_maxchars']) $event=46;
elseif ($infocount[0]>0) $event=45;
elseif (!checkusername($_POST['comment_autor'],1)) $event=42;
# KNS V2 | Idee: Onkel Hotte | Umsetzung: Headless (kitnetwork.de)
elseif(!$CAPTCHA->validCode($_POST['inputchars'])) $event=48;
# EOS
else {
$DB->query("INSERT INTO ".$db_tab['comment']." (comment_cat,comment_subid,comment_time,comment_autor,comment_ip,comment_text, comment_userid) VALUES
('".addslashes($_POST['comcat'])."','".addslashes($_POST['subid'])."','".time()."','".addslashes($_POST['comment_autor'])."','".$thisUSER
['ipaddr']."','".addslashes($_POST['content'])."','".$USER['id']."')");
$autor=$_POST['comment_autor'];
$mail_title=$config['site_name'].' - '.$lang['new_comment'];
eval ("\$mail_text= \"".getTemplate("comment_mail_notify")."\";");
notifymail('comment',$mail_title,$mail_text);
$im_title=$lang['new_gbentry'];
eval ("\$im_text= \"".getTemplate("comment_im_notify")."\";");
notifyim('comment',$im_title,$im_text);
if ($_POST['comcat']=='gb') {
$email=$DB->fetch_array($DB->query("SELECT gbook_notify,gbook_email,gbook_autor FROM ".$db_tab['gbook']." WHERE gbook_id='".addslashes($_POST
['subid'])."' LIMIT 1"));
if ($email['gbook_notify']==1) {
$comment_text=$_POST['content'];
eval ("\$email_title= \"".getTemplate("guestbook/email_title")."\";");
eval ("\$email_text= \"".getTemplate("guestbook/email_text")."\";");
mailsender($email['gbook_email'],$email_title,$email_text);
}
}
header("location: include.php?event=13&moveto=".urlencode($current_path).""); exit();
}
}
}
if ($comcat=="gb") {
$getinfo=$DB->query("SELECT * FROM ".$db_tab['gbook']." WHERE gbook_id='".addslashes($subid)."'");
while ($gbookinfo=$DB->fetch_array($getinfo)) {
$row=rowcolor($row);
if ($gbookinfo['gbook_userid']>0 && $userinfo=$DB->fetch_array($DB->query("SELECT * FROM ".$db_tab['user']." WHERE user_id='".$gbookinfo['gbook_userid']."'
LIMIT 1"))) {
eval ("\$gbook_autor= \"".getTemplate("member_showprofil_textlink")."\";");
if ($userinfo['expire']==0) eval ("\$info_os= \"".getTemplate("member_os_offline")."\";");
else eval ("\$info_os= \"".getTemplate("member_os_online")."\";");
if ($userinfo['user_emailshow']==1) eval ("\$gbook_email= \"".getTemplate("member_email_iconlink")."\";");
if ($userinfo['user_icqid']>0) eval ("\$gbook_icq= \"".getTemplate("member_icq_iconlink")."\";");
if (trim($userinfo['user_hpage'])!='') {
if (ereg("http://",$userinfo['user_hpage'])) $info_link=$userinfo['user_hpage'];
else $info_link='http://'.$userinfo['user_hpage'];
eval ("\$gbook_hpage= \"".getTemplate("member_hpage_iconlink")."\";");
}
if ($USER['sigoption']==1 && $userinfo['user_sig']!='') {
$info_sig=$PARSE->parse($userinfo['user_sig'],0,$config['text_ubb'], $config['text_smilies'], $config['text_images'],1);
eval ("\$info_sig= \"".getTemplate("member_signatur")."\";");
}
}
else {
$userinfo['user_nick']=$gbookinfo['gbook_autor'];
$gbook_autor=htmlentities($gbookinfo['gbook_autor']);
if ($gbookinfo['gbook_check']==1 && $gbookinfo['gbook_email']!='') {
$userinfo['user_email']=$gbookinfo['gbook_email'];
eval ("\$gbook_email= \"".getTemplate("member_email_iconlink")."\";");
}
if ($gbookinfo[gbook_hpage]!='') {
if (ereg('http://',$gbookinfo['gbook_hpage'])) $info_link=$gbookinfo['gbook_hpage'];
else $info_link='http://'.$gbookinfo['gbook_hpage'];
eval ("\$gbook_hpage= \"".getTemplate("member_hpage_iconlink")."\";");
}
if ($gbookinfo['gbook_icqnr']>0) {
$userinfo['user_icqid']=$gbookinfo['gbook_icqnr'];
eval ("\$gbook_icq= \"".getTemplate("member_icq_iconlink")."\";");
}
eval ("\$info_os= \"".getTemplate("guest_os_icon")."\";");
}
$gbook_title=htmlentities($gbookinfo['gbook_title']);
$gbook_text=$PARSE->parse($gbookinfo['gbook_text'],0,$config['gbook_ubb'],$config['gbook_smilies'],$config['gbook_images'],1);
$gbook_time=formattime($gbookinfo['gbook_time']);
if ($USER['status']=='admin') {
if ($gbookinfo['gbook_ip']==0) eval ("\$gbook_ip= \"".getTemplate("guestbook/gbook_ipno_iconlink")."\";");
else eval ("\$gbook_ip= \"".getTemplate("guestbook/gbook_ip_iconlink")."\";");
eval ("\$gbook_admin= \"".getTemplate("guestbook/gbook_admin_iconlink")."\";");
}
if ($config['gbook_commenteod']==1) {
$ccounter=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['comment']." WHERE comment_cat='gb' and comment_subid='".$gbookinfo
['gbook_id']."'"));
if ($ccounter[0]>1) $gbook_comment=$ccounter[0].' '.$lang['comments'];
elseif ($ccounter[0]==1) $gbook_comment='1 '.$lang['comment'];
else $gbook_comment=$lang['no_comments'];
eval ("\$gbook_comment= \"".getTemplate("guestbook/viewgb_comment_textlink")."\";");
}
eval ("\$gbook_row= \"".getTemplate("guestbook/viewgb_row")."\";");
unset($gbook_email); unset($gbook_hpage); unset($gbook_icq); unset($gbook_admin); unset($gbook_ip); unset($gbook_comment); unset($info_sig);
}
eval ("\$site_body.= \"".getTemplate("comment_gbook_body")."\";");
}
elseif ($comcat=="cont") {
$info=$DB->fetch_array($DB->query("SELECT content_option, content_status FROM ".$db_tab['content']." WHERE content_id='".addslashes($subid)."' LIMIT 1"));
if ($info['content_status']!=1) {$event=23; include("admin/config/event.php");}
else {
if ($info['content_option']==1) {$contentid=$subid; include("content/articles.php");}
//ALT elseif ($info['content_option']==2) {$contentid=$subid; include("content/news.php");}
//NEU
elseif ($info['content_option']==2) {$contentid=$subid; $contentType='news'; /*include("content/news.php");*/}
//NEU
elseif ($info['content_option']==3) {$type=3; $contentid=$subid; include("content/overview.php");}
elseif ($info['content_option']==4) {
$contentid=$subid; include("content/download.php");
}
}
}
$comment_order="DESC";
if ($comcat=="user") {
$comment_title=$lang['sign'];
$comment_type=$lang['previous_entries'];
}
else {
$comment_title=$lang['write_comment'];
$comment_type=$lang['comments'];
if ($config['comment_order']=="ASC") $comment_order=$config['comment_order'];
}
unset($sqlcommand);
//NEU
unset($comment_hash);
//NEU
$getcomment=$DB->query("SELECT * FROM ".$db_tab['comment']." where comment_subid='".addslashes($subid)."' and comment_cat='".addslashes($comcat)."' ORDER BY
comment_time ".$comment_order);
while ($comment=$DB->fetch_array($getcomment)) {
//NEU
if ($contentType==='news')
{
$comment_hash[$subid][]=$comment;
}
else
{
$comment_hash[$comment['comment_id']]=$comment;
}
//ALT $comment_hash[$comment['comment_id']]=$comment;
//NEU
if ($comment['comment_userid']!=0) {
if ($sqlcommand) $sqlcommand.=" OR user_id='".$comment['comment_userid']."'";
else $sqlcommand="SELECT user_id, user_nick FROM ".$db_tab['user']." WHERE user_id='".$comment['comment_userid']."'";
}
}
if ($sqlcommand) {
$getuserinfo=$DB->query($sqlcommand);
while ($userinfo=$DB->fetch_array($getuserinfo)) {$userinfo_hash[$userinfo['user_id']]=$userinfo;}
}
if (is_array($comment_hash)) {
unset($comment_row);
if ($comment_order=="DESC") $comment_counter=count($comment_hash);
else $comment_counter=1;
//NEU
# comment at overview-list
if ($contentType==='news')
{
$comment_hash=$comment_hash[$subid];
}
# comment at overview-list
//NEU
foreach ($comment_hash as $comment) {
$row=rowcolor($row);
if (adminaccess('comment')) {
if ($comcat=="user") {$comment_path="login/pguestbook.php";}
else {$comment_path="comment/comment.php&subid=$subid&comcat=$comcat";}
eval ("\$comment_option= \"".getTemplate("comment_delete_iconlink")."\";");
if ($comment[comment_ip]!="") {eval ("\$comment_option.= \"".getTemplate("comment_ip_iconlink","")."\";");}
else {eval ("\$comment_option.= \"".getTemplate("comment_ipno_iconlink","")."\";");}
}
if (($userinfo=$userinfo_hash[$comment['comment_userid']])!='') {
if (isonline($userinfo['user_id'])) eval ("\$comment_option.= \"".getTemplate("member_os_online")."\";");
else eval ("\$comment_option.= \"".getTemplate("member_os_offline")."\";");
eval ("\$info_nick= \"".getTemplate("member_showprofil_textlink","small")."\";");
}
else {
eval ("\$comment_option.= \"".getTemplate("guest_os_icon","")."\";");
$info_nick=htmlentities(stripslashes($comment['comment_autor']));
}
if ($comcat=='user') $comment_text=$PARSE->parse($comment['comment_text'],0,$config['text_ubb'],$config['text_smilies'],$config['text_images'],1);
else $comment_text=$PARSE->parse($comment['comment_text'], 0, $config['comment_bb'], $config['comment_smilies'],$config['comment_images'],1);
$comment_time=formattime($comment['comment_time']);
eval ("\$comment_row.= \"".getTemplate("comment_comments_row","")."\";");
if ($comment_order=="DESC") $comment_counter--;
else $comment_counter++;
unset($comment_option); unset($comment_text);
}
//NEU
eval ("\$site_body.= \"".getTemplate("comment_comments_body")."\";");
# comment at overview-list
if ($contentType==='news')
{
eval ("\$contentNews_commentBlock[$subid]= \"".getTemplate("comment_comments_body")."\";");
}
else
{
eval ("\$site_body.= \"".getTemplate("comment_comments_body")."\";");
}
# eval ("\$site_body.= \"".getTemplate("comment_comments_body")."\";");
# comment at overview-list
//NEU
}
if ($comcat=='user') {
$comment_title="Ins Gästebuch eintragen";
$comment_path="login/pguestbook.php&id=$subid";
if ($config['text_ubb']==1) {eval ("\$sign_format.= \"".getTemplate("format_text")."\";");}
if ($config['text_smilies']==1) {$smilies=new smilies(); $sign_format.=$smilies->getSmilies("1");}
if ($sign_format!="") eval ("\$sign_format= \"".getTemplate("format_table")."\";");
if ($USER['status']=='user' || $USER['status']=='member'|| $USER['status']=='member' || $USER['status']=='admin') eval ("\$comment_autorinfo=
\"".getTemplate("comment_writeform_autorinfo")."\";");
else eval ("\$comment_autorinfo= \"".getTemplate("comment_writeform_autorform")."\";");
if (isset($event)) {
if ($event==46) $commentlength=strlen($_POST['content']);
$site_body.='<br />';
include("admin/config/event.php");
}
$comment_text=$_POST['content'];
eval ("\$site_body.= \"".getTemplate("comment_writeform")."\";");
}
else {
//NEU
# comment at overview-list
unset($sign_format);
# comment at overview-list
//NEU
if ($config['comment_register']!=1 || ($config['comment_register']==1 && ($USER['status']=='user' || $USER['status']=='member'|| $USER['status']=='member'
|| $USER['status']=='admin'))) {
if ($config['comment_bb']==1) eval ("\$sign_format.= \"".getTemplate("format_text")."\";");
if ($config['comment_smilies']==1) {
$smilies=new smilies();
$sign_format.=$smilies->getSmilies(1);
}
$comment_path='comment/comment.php&subid='.$subid.'&comcat='.$comcat;
//NEU
# comment at overview-list
if ($contentType==='news')
{
$comment_path='content/news.php&id='.$subid;
}
# comment at overview-list
//NEU
if ($sign_format!="") eval ("\$sign_format= \"".getTemplate("format_table")."\";");
if ($USER['status']=='user' || $USER['status']=='member'|| $USER['status']=='member' || $USER['status']=='admin') eval ("\$comment_autorinfo=
\"".getTemplate("comment_writeform_autorinfo")."\";");
else eval ("\$comment_autorinfo= \"".getTemplate("comment_writeform_autorform")."\";");
if (isset($event)) {
if ($event==46) $commentlength=strlen($_POST['content']);
$site_body.='<br />';
include("admin/config/event.php");
}
$comment_text=$_POST['content'];
//NEU
# comment at overview-list
if ($contentType==='news')
{
eval ("\$contentNews_comment[$subid]= \"".getTemplate("comment_writeform")."\";");
}
else
{
eval ("\$site_body.= \"".getTemplate("comment_writeform")."\";");
}
# eval ("\$site_body.= \"".getTemplate("comment_writeform")."\";");
# comment at overview-list
//NEU
eval ("\$site_body.= \"".getTemplate("comment_writeform")."\";");
}
//NEU
# comment at overview-list
#else eval ("\$site_body.= \"".getTemplate("comment_autorlogin")."\";");
else
{
if ($contentType==='news')
{
eval ("\$contentNews_comment[$subid]= \"".getTemplate("comment_autorlogin")."\";");
}
else
{
eval ("\$site_body.= \"".getTemplate("comment_autorlogin")."\";");
}
}
# comment at overview-list
//NEU
else eval ("\$site_body.= \"".getTemplate("comment_autorlogin")."\";");
}
?> | |  |
wenn ich in der 3. letzten Zeile das else weg mach gehts zwar wieder aber ich bin anscheinend immer als Gast angemeldet.
Das mit dem ausklappen funktioniert nicht so richtig, bzw. garnicht da der versteckte Inhalt die ganze Zeit angezeigt wird
|
Dieser Beitrag wurde bereits 5 mal editiert, zuletzt von k!r!ka - 28.08.2012 - 16:40 Uhr |
|
|
|
|
|
|
|
 |
|
 |
28.08.2012 - 16:58 Uhr |
|
|
|
|
|
|
 |
|
 |
28.08.2012 - 17:53 Uhr |
|
|
|
Glaub jetz hab ich mir die Datei total zerballert, da sind soviele Änderungen dazu haben wir beide noch Kommentare drin die die alten Sachen auskommentieren die Zeilenangaben haun nicht mehr hin *G ich werd mir da jetzt mal bissel Zeit nehmen. 
|
|
|
|
|
|
|
 |
|
 |
28.08.2012 - 17:59 Uhr |
|
|
|
Ich hab bei meinen Codes immer das Original auskommentiert (#), damit der Original-Zustand einfacher zu erhalten ist.
|
|
|
|
|
|
|
 |
|
 |
28.08.2012 - 19:18 Uhr |
|
|
|
Das untere. Du hast es ja eh richtig in deinen Code weiter oben.
|
|
|
|
|
|
|
 |
|
 |
28.08.2012 - 19:52 Uhr |
|
|
|
Also es geht jetzt wieder ohne Fehler. Kannst du bitte trotzdem nochmal auf die Datei schauen ob ich auch wirklich alles richtig gemacht habe ?
Hier klicken zum aufklappen 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 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 | | PHP-Quelltext <?php
unset($event);
if (isset($_REQUEST['comcat'])) $comcat=$_REQUEST['comcat'];
if (isset($_REQUEST['subid'])) $subid=$_REQUEST['subid'];
if (isset($_POST['action'])) $ACTION=$_POST['action'];
else $ACTION='view';
if (adminaccess('comment')) {
$DB->query("DELETE FROM ".$db_tab['comment']." WHERE comment_id='".addslashes($_REQUEST['delcomment'])."' LIMIT 1");
}
if ($ACTION==$_POST['save']) {
if ($config['comment_register']==1 && !$USER['id']>0) {header("location: include.php?event=1"); exit();}
else {
$floodcontrol=time()-($config['comment_floodctrl']*60);
$infocount=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['comment']." WHERE comment_ip='".$thisUSER['ipaddr']."' && comment_userid='".$USER
['id']."' && comment_time>'".$floodcontrol."' LIMIT 1"));
if (trim($_POST['content'])=='' || trim($_POST['comment_autor'])=='') $event=12;
elseif (strlen(trim($_POST['content']))>$config['comment_maxchars']) $event=46;
elseif ($infocount[0]>0) $event=45;
elseif (!checkusername($_POST['comment_autor'],1)) $event=42;
# KNS V2 | Idee: Onkel Hotte | Umsetzung: Headless (kitnetwork.de)
elseif(!$CAPTCHA->validCode($_POST['inputchars'])) $event=48;
# EOS
else {
$DB->query("INSERT INTO ".$db_tab['comment']." (comment_cat,comment_subid,comment_time,comment_autor,comment_ip,comment_text, comment_userid) VALUES
('".addslashes($_POST['comcat'])."','".addslashes($_POST['subid'])."','".time()."','".addslashes($_POST['comment_autor'])."','".$thisUSER
['ipaddr']."','".addslashes($_POST['content'])."','".$USER['id']."')");
$autor=$_POST['comment_autor'];
$mail_title=$config['site_name'].' - '.$lang['new_comment'];
eval ("\$mail_text= \"".getTemplate("comment_mail_notify")."\";");
notifymail('comment',$mail_title,$mail_text);
$im_title=$lang['new_gbentry'];
eval ("\$im_text= \"".getTemplate("comment_im_notify")."\";");
notifyim('comment',$im_title,$im_text);
if ($_POST['comcat']=='gb') {
$email=$DB->fetch_array($DB->query("SELECT gbook_notify,gbook_email,gbook_autor FROM ".$db_tab['gbook']." WHERE gbook_id='".addslashes($_POST
['subid'])."' LIMIT 1"));
if ($email['gbook_notify']==1) {
$comment_text=$_POST['content'];
eval ("\$email_title= \"".getTemplate("guestbook/email_title")."\";");
eval ("\$email_text= \"".getTemplate("guestbook/email_text")."\";");
mailsender($email['gbook_email'],$email_title,$email_text);
}
}
header("location: include.php?event=13&moveto=".urlencode($current_path).""); exit();
}
}
}
if ($comcat=="gb") {
$getinfo=$DB->query("SELECT * FROM ".$db_tab['gbook']." WHERE gbook_id='".addslashes($subid)."'");
while ($gbookinfo=$DB->fetch_array($getinfo)) {
$row=rowcolor($row);
if ($gbookinfo['gbook_userid']>0 && $userinfo=$DB->fetch_array($DB->query("SELECT * FROM ".$db_tab['user']." WHERE user_id='".$gbookinfo['gbook_userid']."'
LIMIT 1"))) {
eval ("\$gbook_autor= \"".getTemplate("member_showprofil_textlink")."\";");
if ($userinfo['expire']==0) eval ("\$info_os= \"".getTemplate("member_os_offline")."\";");
else eval ("\$info_os= \"".getTemplate("member_os_online")."\";");
if ($userinfo['user_emailshow']==1) eval ("\$gbook_email= \"".getTemplate("member_email_iconlink")."\";");
if ($userinfo['user_icqid']>0) eval ("\$gbook_icq= \"".getTemplate("member_icq_iconlink")."\";");
if (trim($userinfo['user_hpage'])!='') {
if (ereg("http://",$userinfo['user_hpage'])) $info_link=$userinfo['user_hpage'];
else $info_link='http://'.$userinfo['user_hpage'];
eval ("\$gbook_hpage= \"".getTemplate("member_hpage_iconlink")."\";");
}
if ($USER['sigoption']==1 && $userinfo['user_sig']!='') {
$info_sig=$PARSE->parse($userinfo['user_sig'],0,$config['text_ubb'], $config['text_smilies'], $config['text_images'],1);
eval ("\$info_sig= \"".getTemplate("member_signatur")."\";");
}
}
else {
$userinfo['user_nick']=$gbookinfo['gbook_autor'];
$gbook_autor=htmlentities($gbookinfo['gbook_autor']);
if ($gbookinfo['gbook_check']==1 && $gbookinfo['gbook_email']!='') {
$userinfo['user_email']=$gbookinfo['gbook_email'];
eval ("\$gbook_email= \"".getTemplate("member_email_iconlink")."\";");
}
if ($gbookinfo[gbook_hpage]!='') {
if (ereg('http://',$gbookinfo['gbook_hpage'])) $info_link=$gbookinfo['gbook_hpage'];
else $info_link='http://'.$gbookinfo['gbook_hpage'];
eval ("\$gbook_hpage= \"".getTemplate("member_hpage_iconlink")."\";");
}
if ($gbookinfo['gbook_icqnr']>0) {
$userinfo['user_icqid']=$gbookinfo['gbook_icqnr'];
eval ("\$gbook_icq= \"".getTemplate("member_icq_iconlink")."\";");
}
eval ("\$info_os= \"".getTemplate("guest_os_icon")."\";");
}
$gbook_title=htmlentities($gbookinfo['gbook_title']);
$gbook_text=$PARSE->parse($gbookinfo['gbook_text'],0,$config['gbook_ubb'],$config['gbook_smilies'],$config['gbook_images'],1);
$gbook_time=formattime($gbookinfo['gbook_time']);
if ($USER['status']=='admin') {
if ($gbookinfo['gbook_ip']==0) eval ("\$gbook_ip= \"".getTemplate("guestbook/gbook_ipno_iconlink")."\";");
else eval ("\$gbook_ip= \"".getTemplate("guestbook/gbook_ip_iconlink")."\";");
eval ("\$gbook_admin= \"".getTemplate("guestbook/gbook_admin_iconlink")."\";");
}
if ($config['gbook_commenteod']==1) {
$ccounter=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['comment']." WHERE comment_cat='gb' and comment_subid='".$gbookinfo
['gbook_id']."'"));
if ($ccounter[0]>1) $gbook_comment=$ccounter[0].' '.$lang['comments'];
elseif ($ccounter[0]==1) $gbook_comment='1 '.$lang['comment'];
else $gbook_comment=$lang['no_comments'];
eval ("\$gbook_comment= \"".getTemplate("guestbook/viewgb_comment_textlink")."\";");
}
eval ("\$gbook_row= \"".getTemplate("guestbook/viewgb_row")."\";");
unset($gbook_email); unset($gbook_hpage); unset($gbook_icq); unset($gbook_admin); unset($gbook_ip); unset($gbook_comment); unset($info_sig);
}
eval ("\$site_body.= \"".getTemplate("comment_gbook_body")."\";");
}
elseif ($comcat=="cont") {
$info=$DB->fetch_array($DB->query("SELECT content_option, content_status FROM ".$db_tab['content']." WHERE content_id='".addslashes($subid)."' LIMIT 1"));
if ($info['content_status']!=1) {$event=23; include("admin/config/event.php");}
else {
if ($info['content_option']==1) {$contentid=$subid; include("content/articles.php");}
//ALT elseif ($info['content_option']==2) {$contentid=$subid; include("content/news.php");}
//NEU
elseif ($info['content_option']==2) {$contentid=$subid; $contentType='news'; /*include("content/news.php");*/}
//NEU
elseif ($info['content_option']==3) {$type=3; $contentid=$subid; include("content/overview.php");}
elseif ($info['content_option']==4) {
$contentid=$subid; include("content/download.php");
}
}
}
$comment_order="DESC";
if ($comcat=="user") {
$comment_title=$lang['sign'];
$comment_type=$lang['previous_entries'];
}
else {
$comment_title=$lang['write_comment'];
$comment_type=$lang['comments'];
if ($config['comment_order']=="ASC") $comment_order=$config['comment_order'];
}
unset($sqlcommand);
//NEU
unset($comment_hash);
//NEU
$getcomment=$DB->query("SELECT * FROM ".$db_tab['comment']." where comment_subid='".addslashes($subid)."' and comment_cat='".addslashes($comcat)."' ORDER BY
comment_time ".$comment_order);
while ($comment=$DB->fetch_array($getcomment)) {
//NEU
if ($contentType==='news')
{
$comment_hash[$subid][]=$comment;
}
else
{
$comment_hash[$comment['comment_id']]=$comment;
}
//ALT $comment_hash[$comment['comment_id']]=$comment;
//NEU
if ($comment['comment_userid']!=0) {
if ($sqlcommand) $sqlcommand.=" OR user_id='".$comment['comment_userid']."'";
else $sqlcommand="SELECT user_id, user_nick FROM ".$db_tab['user']." WHERE user_id='".$comment['comment_userid']."'";
}
}
if ($sqlcommand) {
$getuserinfo=$DB->query($sqlcommand);
while ($userinfo=$DB->fetch_array($getuserinfo)) {$userinfo_hash[$userinfo['user_id']]=$userinfo;}
}
if (is_array($comment_hash)) {
unset($comment_row);
if ($comment_order=="DESC") $comment_counter=count($comment_hash);
else $comment_counter=1;
//NEU
# comment at overview-list
if ($contentType==='news')
{
$comment_hash=$comment_hash[$subid];
}
# comment at overview-list
//NEU
foreach ($comment_hash as $comment) {
$row=rowcolor($row);
if (adminaccess('comment')) {
if ($comcat=="user") {$comment_path="login/pguestbook.php";}
else {$comment_path="comment/comment.php&subid=$subid&comcat=$comcat";}
eval ("\$comment_option= \"".getTemplate("comment_delete_iconlink")."\";");
if ($comment[comment_ip]!="") {eval ("\$comment_option.= \"".getTemplate("comment_ip_iconlink","")."\";");}
else {eval ("\$comment_option.= \"".getTemplate("comment_ipno_iconlink","")."\";");}
}
if (($userinfo=$userinfo_hash[$comment['comment_userid']])!='') {
if (isonline($userinfo['user_id'])) eval ("\$comment_option.= \"".getTemplate("member_os_online")."\";");
else eval ("\$comment_option.= \"".getTemplate("member_os_offline")."\";");
eval ("\$info_nick= \"".getTemplate("member_showprofil_textlink","small")."\";");
}
else {
eval ("\$comment_option.= \"".getTemplate("guest_os_icon","")."\";");
$info_nick=htmlentities(stripslashes($comment['comment_autor']));
}
if ($comcat=='user') $comment_text=$PARSE->parse($comment['comment_text'],0,$config['text_ubb'],$config['text_smilies'],$config['text_images'],1);
else $comment_text=$PARSE->parse($comment['comment_text'], 0, $config['comment_bb'], $config['comment_smilies'],$config['comment_images'],1);
$comment_time=formattime($comment['comment_time']);
eval ("\$comment_row.= \"".getTemplate("comment_comments_row","")."\";");
if ($comment_order=="DESC") $comment_counter--;
else $comment_counter++;
unset($comment_option); unset($comment_text);
}
//NEU
# comment at overview-list
if ($contentType==='news')
{
eval ("\$contentNews_commentBlock[$subid]= \"".getTemplate("comment_comments_body")."\";");
}
else
{
eval ("\$site_body.= \"".getTemplate("comment_comments_body")."\";");
}
# comment at overview-list
//NEU
}
if ($comcat=='user') {
$comment_title="Ins Gästebuch eintragen";
$comment_path="login/pguestbook.php&id=$subid";
if ($config['text_ubb']==1) {eval ("\$sign_format.= \"".getTemplate("format_text")."\";");}
if ($config['text_smilies']==1) {$smilies=new smilies(); $sign_format.=$smilies->getSmilies("1");}
if ($sign_format!="") eval ("\$sign_format= \"".getTemplate("format_table")."\";");
if ($USER['status']=='user' || $USER['status']=='member'|| $USER['status']=='member' || $USER['status']=='admin') eval ("\$comment_autorinfo=
\"".getTemplate("comment_writeform_autorinfo")."\";");
else eval ("\$comment_autorinfo= \"".getTemplate("comment_writeform_autorform")."\";");
if (isset($event)) {
if ($event==46) $commentlength=strlen($_POST['content']);
$site_body.='<br />';
include("admin/config/event.php");
}
$comment_text=$_POST['content'];
eval ("\$site_body.= \"".getTemplate("comment_writeform")."\";");
}
else {
//NEU
# comment at overview-list
unset($sign_format);
# comment at overview-list
//NEU
if ($config['comment_register']!=1 || ($config['comment_register']==1 && ($USER['status']=='user' || $USER['status']=='member'|| $USER['status']=='member'
|| $USER['status']=='admin'))) {
if ($config['comment_bb']==1) eval ("\$sign_format.= \"".getTemplate("format_text")."\";");
if ($config['comment_smilies']==1) {
$smilies=new smilies();
$sign_format.=$smilies->getSmilies(1);
}
$comment_path='comment/comment.php&subid='.$subid.'&comcat='.$comcat;
//NEU
# comment at overview-list
if ($contentType==='news')
{
$comment_path='content/news.php&id='.$subid;
}
# comment at overview-list
//NEU
if ($sign_format!="") eval ("\$sign_format= \"".getTemplate("format_table")."\";");
if ($USER['status']=='user' || $USER['status']=='member'|| $USER['status']=='member' || $USER['status']=='admin') eval ("\$comment_autorinfo=
\"".getTemplate("comment_writeform_autorinfo")."\";");
else eval ("\$comment_autorinfo= \"".getTemplate("comment_writeform_autorform")."\";");
if (isset($event)) {
if ($event==46) $commentlength=strlen($_POST['content']);
$site_body.='<br />';
include("admin/config/event.php");
}
$comment_text=$_POST['content'];
//NEU
# comment at overview-list
if ($contentType==='news')
{
eval ("\$contentNews_comment[$subid]= \"".getTemplate("comment_writeform")."\";");
}
else
{
eval ("\$site_body.= \"".getTemplate("comment_writeform")."\";");
}
# eval ("\$site_body.= \"".getTemplate("comment_writeform")."\";");
# comment at overview-list
//NEU
}
//NEU
# comment at overview-list
#else eval ("\$site_body.= \"".getTemplate("comment_autorlogin")."\";");
else
{
if ($contentType==='news')
{
eval ("\$contentNews_comment[$subid]= \"".getTemplate("comment_autorlogin")."\";");
}
else
{
eval ("\$site_body.= \"".getTemplate("comment_autorlogin")."\";");
}
}
# comment at overview-list
//NEU
}
?> | |  |
Eine Frage noch,
du schreibst z.b. ich soll das ersetzen
| PHP-Quelltext eval ("$site_body.= "".getTemplate("comment_writeform")."";"); | |
bei mir steht es aber so
| PHP-Quelltext eval ("\$site_body.= \"".getTemplate("comment_writeform")."\";"); | |
du läßt also diese \ weg, macht das einen Unterschied ? Nur mal aus neugier. Ich passe jetzt mal das Template an und geb dir später bescheid ob alles so hinhaut wie es soll.
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von fireball1982 - 28.08.2012 - 19:53 Uhr |
|
|
|
|
|
|
|
 |
|
 |
28.08.2012 - 20:15 Uhr |
|
|
|
Scheint alles korrekt zu sein.
Deine Frage:
Das ist wegen den PHP-Block, bzw. ein allgemeines Problem bei diesen BB-Codes für Code-Ausgabe. Mal wird das \ weggelassen, mal nicht. Muss natürlich immer mit sein, da ansonsten der Befehl eval() nicht richtig arbeitet.
Wenn du also so eine Zeile ohne die \ siehst: Immer mit.
Und wenn du danach suchst: Einfach nach dem Wort getTemplate("Der Inhalt") suchen lassen (bzw. den Teil einfach markieren).
|
|
|
|
|
|
|
 |
|
 |
29.08.2012 - 10:06 Uhr |
|
|
|
Ok, danke für die Aufklärung.
Sagmal ist es notwendig das das JS in jedem Beitrag aufgerufen wird oder könnte man nicht ein Template erstellen wo ich das einmal rein packe ? Habs schon in site probiert aber da funkt es nicht. Beim obersten News Beitrag läßt sich die Kommentieren Fläche nicht ausfahren, wenn ich drauf klicke versucht es sich nach unten zu bewegen aber es klappt nicht. Bei den anderen Beiträgen geht es. Die Pagelink Anzeige unten auf der Seite ist auch verschwunden, woran kann das liegen ? BBCode geht auch nicht, und wenn ich in den Newsbeitrag einzeln aufrufe um die andern Kommentare zu lesen habe ich ne leere Seite. Glaub das ganze Ding hat mehr Nachteile als Vorteile.
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von fireball1982 - 29.08.2012 - 10:15 Uhr |
|
|
|
|
|
|
|
 |
|
 |
29.08.2012 - 17:45 Uhr |
|
|
|
|
|
|
 |
|
|
 |
Ähnliche Themen |
|
|
|
|
|
|
|
|