Boardregeln Hackv3

maxi_s
Hallo

Ich hoffe das mir hier jemand helfen kann.
Leider komme ich irgendwie nicht weiter.
Ich habe alles installiert, bekomme aber nun folgende Fehlermeldung wenn ich den Hack im ACP bearbeiten will.

" template "rules" doesnt exist "

MfG. maxi_s
Chakotey
Hast Templates importiert im acp + cached?
maxi_s
HUhu

Danke für die ANtwort.
Ja, habe ich gemacht.

MfG. Maxi_s
Sommer
bei mir wird im acp auch angezeigt das die rules htm nicht existiert! wie cache ich die acp templates???
GLURAK
steht alles in der readme in den acp/templates ordner die template hochladen und die acp_tpl.php ausführen die findest du im wbb archiv im ordner extra und die ladest du im acp ordner hoch
maxi_s
Hallo

Auch wenn es jetzt dumm erscheint.

"und die acp_tpl.php ausführen die findest du im wbb archiv im ordner extra und die ladest du im acp ordner hoch
"

Davon steht nichts in der Readme, die übrigens eine "liesmich.htm" ist.

Falls ich hierzu noch Infos bekommen könnte wäre ich Euch sehr dankbar.

MfG. maxi_s
GLURAK
Habe es wohl vergessen und anderes kann ich es dir auch nicht sagen hast du mal von der acp_tpl gehört?
damit cacht man die templates des admin centers..
genau wie das cachen der normalen templates..
oder was genau verstehst du nichts?!
und wo ist da der unterschied ob sie readme heißt oder liesmich?
naja danke komischerweiße hat mir das keiner gesagt....
maxi_s
Hallo

Es war nicht bös gemeint.
Es hätte, meiner Meinung nach, vieleicht sein können, das ich einen anderen Hack mit gleichem Namen benutz habe.

Ich (absoluter Neuling) habe unter Cachen bisher den Menuepunkt im ACP und dessen Ausführung verstanden.

MfG. maxi_s
GLURAK
Zitat:
Original von maxi_s
Hallo

Es war nicht bös gemeint.
Es hätte, meiner Meinung nach, vieleicht sein können, das ich einen anderen Hack mit gleichem Namen benutz habe.

Ich (absoluter Neuling) habe unter Cachen bisher den Menuepunkt im ACP und dessen Ausführung verstanden.

MfG. maxi_s

hast es jetzt hinbekommen?
maxi_s
Danke.
Habe mich noch nicht daran begeben.
Ich denke ich sollte mich erstmal mit den Sachen den "Extra Ordner" betreffend auseinandersetzen.

Werde dann hier darüber berichten.

MfG. maxi_s

PS.

Hat alles bestens funktioniert.
Vielen Dank nochmal für die Hilfe.

MfG. maxi_s
Ne0
ähm, in der readme steht ich soll in der index.tpl im acp
code:
1:
<a href="search.php?action=24h&sid=$session[hash]">{$lang->items['LANG_START_CURRENT_THREADS']}</a> |

suchen.

nix der gleichen find ich unglücklich
GLURAK
wetten doch wenn du die index.tpl postest kann ich es dir enfügen.
oder du kannst auf ein link im header mit einem button machen misc.php?action=rules
Ne0
Zitat:
Original von GLURAK
wetten doch wenn du die index.tpl postest kann ich es dir enfügen.
oder du kannst auf ein link im header mit einem button machen misc.php?action=rules


Habs schon hinbekommen

Improvisation lohnt sich immer :lol
GLURAK
Zitat:
Original von Ne0
Zitat:
Original von GLURAK
wetten doch wenn du die index.tpl postest kann ich es dir enfügen.
oder du kannst auf ein link im header mit einem button machen misc.php?action=rules


Habs schon hinbekommen

Improvisation lohnt sich immer :lol

wenn du mir erklären kannst was das heißt kann ich viellecith auch mitlachen
Ne0
Zitat:
Original von GLURAK
Zitat:
Original von Ne0
Zitat:
Original von GLURAK
wetten doch wenn du die index.tpl postest kann ich es dir enfügen.
oder du kannst auf ein link im header mit einem button machen misc.php?action=rules


Habs schon hinbekommen

Improvisation lohnt sich immer :lol

wenn du mir erklären kannst was das heißt kann ich viellecith auch mitlachen


Habs einfach oben bei "Willkommen bla" links neben das "Neue Beiträge" gemacht

http://006.findernetwork.de/g-v/wbb213/
GLURAK
ok gut
Ne0
pfff
wieder ein Problem

jetzt wird für die FAQ nur eine Leere Weise Seite angezeigt.
Tidus
Danke klappt Süperp ^^
GLURAK
@ne0 zeig mir mal deine misc.php Augen rollen
Ne0
Mauer

php:
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:

<?php
$filename="misc.php";

require("./global.php");
require("./acp/lib/class_parse.php");

if(isset($_REQUEST['action'])) $action=$_REQUEST['action'];
if($action=="rules") {
$lang->load("RULES");
$s_rules=$db->query_first("SELECT rules FROM bb".$n."_acprules");
eval("\$tpl->output(\"".$tpl->get("rules")."\");");
}
else $action="";
    
if($action=="finduser") {
 $lang->load("MISC");
 $options="";
 if(isset($_POST['send'])) {
  $result=$db->unbuffered_query("SELECT username FROM bb".$n."_users WHERE username LIKE '%".addslashes(wbb_trim($_POST['username']))."%'");    
  while($row=$db->fetch_array($result)) {
   $row['username']=htmlconverter($row['username']);
   $options.=makeoption($row['username'],$row['username']);    
  }
 }
 
 eval("\$tpl->output(\"".$tpl->get("finduser")."\");");    
}

if($action=="moresmilies") {
 $lang->load("MISC");
 $rightorleft "left";
 if($showsmiliesrandom==1$result $db->unbuffered_query("SELECT smiliepath, smilietitle, smiliecode FROM bb".$n."_smilies ORDER BY RAND()");
 else $result $db->unbuffered_query("SELECT smiliepath, smilietitle, smiliecode FROM bb".$n."_smilies ORDER BY smilieorder ASC");
 $j=0;
 $popup_smiliesbits="";
 while($row $db->fetch_array($result)) {
  $row['smilietitle']=getlangvar($row['smilietitle'], $lang);
  $row['smiliename']=htmlconverter($row['smiliecode']);
  $row['smiliecode']=addcslashes($row['smiliecode'], "'\\");
  $row['smiliepath'] = replaceImagefolder($row['smiliepath']);
  
  eval ("\$popup_smiliesbits .= \"".$tpl->get("popup_smiliesbits")."\";");
   
  if ($rightorleft == "left") {
   $j++;
   $rightorleft "right";
  }
  else $rightorleft "left";
 }
 
 if($rightorleft == "right"$popup_smiliesbits .= "<td>&nbsp;</td><td>&nbsp;</td></tr>";    
 
 eval("\$tpl->output(\"".$tpl->get("popup_smilies")."\");");    
}

if($action=="whoposted") {
 if(!isset($threadid)) eval("error(\"".$lang->get4eval("LANG_GLOBAL_ERROR_FALSELINK")."\");");
 $lang->load("MISC");
  
 $posts $db->unbuffered_query("SELECT
  COUNT(p.postid) AS posts, p.userid, u.username
  FROM bb".$n."_posts p
  LEFT JOIN bb".$n."_users u USING (userid)
  WHERE threadid='$threadid'
  GROUP BY p.userid
  ORDER BY posts DESC, u.username ASC");
 $posters="";
 $counter=0;
 $totalposts=0;
 while ($post $db->fetch_array($posts)) {
  $totalposts += $post['posts'];
  if($post['userid']) {
   $authorname makehreftag("profile.php?userid=$post[userid]&amp;sid=$session[hash]","<b>".htmlconverter($post['username'])."</b>","_blank");
   $post['posts'] = makehreftag("thread.php?threadid=$threadid&amp;sid=$session[hash]&amp;hilightuser=$post[userid]","<b>$post[posts]</b>","_blank");
  }
  else $authorname $lang->items['LANG_MISC_WHOPOSTED_GUESTS'];
  eval("\$posters .= \"".$tpl->get("whopostedbit")."\";");
  $counter++;
 }

 if($totalposts>=1000$totalposts number_format($totalposts0""$lang->get("LANG_GLOBAL_THOUSANDS_SEP"));    
 eval ("\$lang->items['LANG_MISC_WHOPOSTED_POSTS_TOTAL'] = \"".$lang->get4eval("LANG_MISC_WHOPOSTED_POSTS_TOTAL")."\";");
 eval("\$tpl->output(\"".$tpl->get("whoposted")."\");");    
}

if($action=="viewip") {
 if(!isset($postid)) eval("error(\"".$lang->get4eval("LANG_GLOBAL_ERROR_FALSELINK")."\");");
 if($wbbuserdata['a_can_view_ipaddress']!=1access_error();
 $lang->load("MISC");

 $navbar=getNavbar($board['parentlist']);
 eval ("\$navbar .= \"".$tpl->get("navbar_board")."\";");
 $post['host']=htmlconverter(@gethostbyaddr($post['ipaddress']));
 
 $moreips="";
 if($post['userid']) {
  $result=$db->unbuffered_query("SELECT DISTINCT ipaddress FROM bb".$n."_posts WHERE userid='$post[userid]' AND ipaddress<>'".addslashes($post['ipaddress'])."' ORDER BY posttime DESC",0,10);
  while($row=$db->fetch_array($result)) $moreips.=htmlconverter($row['ipaddress'])."<br />";
 }
 
 $thread['topic']=htmlconverter(textwrap($thread['topic']));
 $post['username']=htmlconverter($post['username']);
 $post['ipaddress']=htmlconverter($post['ipaddress']);
 
 eval ("\$lang->items[LANG_MISC_VIEWIP_POSTED_BY] = \"".$lang->get4eval("LANG_MISC_VIEWIP_POSTED_BY")."\";");
 eval("\$tpl->output(\"".$tpl->get("viewip")."\");");    
}

if($action=="faq") {
 $lang->load("FAQ");
 
 eval("\$tpl->output(\"".$tpl->get("faq")."\");");
}

if($action=="faq2") {
 $lang->load("FAQ");
 
 eval ("\$lang->items[LANG_FAQ_EMAIL_EXP] = \"".$lang->get4eval("LANG_FAQ_EMAIL_EXP")."\";");
 eval ("\$lang->items[LANG_FAQ_PM_EXP] = \"".$lang->get4eval("LANG_FAQ_PM_EXP")."\";");
 eval ("\$lang->items[LANG_FAQ_CALENDAR_EXP] = \"".$lang->get4eval("LANG_FAQ_CALENDAR_EXP")."\";");
 eval ("\$lang->items[LANG_FAQ_MEMBERLIST_EXP] = \"".$lang->get4eval("LANG_FAQ_MEMBERLIST_EXP")."\";");
 
 eval("\$tpl->output(\"".$tpl->get("faq2")."\");");
}

if($action=="faq3") {
 $lang->load("FAQ");
 
 eval ("\$lang->items[LANG_FAQ_FORMAT_EXP] = \"".$lang->get4eval("LANG_FAQ_FORMAT_EXP")."\";");
 eval ("\$lang->items[LANG_FAQ_SMILIES_EXP] = \"".$lang->get4eval("LANG_FAQ_SMILIES_EXP")."\";");
 eval ("\$lang->items[LANG_FAQ_NOTIFICATION_EXP] = \"".$lang->get4eval("LANG_FAQ_NOTIFICATION_EXP")."\";");
 eval ("\$lang->items[LANG_FAQ_EDIT_EXP] = \"".$lang->get4eval("LANG_FAQ_EDIT_EXP")."\";");
 eval("\$tpl->output(\"".$tpl->get("faq3")."\");");
}

if($action=="faq1") {
 $lang->load("FAQ");
 $count=0;
 $rankbit="";
 $result=$db->unbuffered_query("SELECT r.*, g.title FROM bb".$n."_ranks r LEFT JOIN bb".$n."_groups g USING(groupid) ORDER BY r.groupid DESC, r.needposts ASC");
 while($row=$db->fetch_array($result)) {
  $tdclass=getone($count,"tablea","tableb");
  
  $row['title']=getlangvar($row['title'], $lang);
  $row['ranktitle']=getlangvar($row['ranktitle'], $lang);
  
  $row['rankimages']=formatRI($row['rankimages']);
  eval ("\$rankbit .= \"".$tpl->get("faq1_rankbit")."\";");    
  $count++;    
 }
 
 eval ("\$lang->items[LANG_FAQ_COOKIES_EXP] = \"".$lang->get4eval("LANG_FAQ_COOKIES_EXP")."\";");
 eval ("\$lang->items[LANG_FAQ_PROFILE_EXP] = \"".$lang->get4eval("LANG_FAQ_PROFILE_EXP")."\";");
 eval ("\$lang->items[LANG_FAQ_PASSWORD_EXP] = \"".$lang->get4eval("LANG_FAQ_PASSWORD_EXP")."\";");
 eval ("\$lang->items[LANG_FAQ_SIGNATUR_EXP] = \"".$lang->get4eval("LANG_FAQ_SIGNATUR_EXP")."\";");
 eval ("\$lang->items[LANG_FAQ_BUDDY_EXP] = \"".$lang->get4eval("LANG_FAQ_BUDDY_EXP")."\";");
 eval ("\$lang->items[LANG_FAQ_FAVORITES_EXP] = \"".$lang->get4eval("LANG_FAQ_FAVORITES_EXP")."\";");
 eval("\$tpl->output(\"".$tpl->get("faq1")."\");");    
}

if($action=="userrating") {
 $lang->load("MISC");
 if(isset($_GET['userid'])) $userid=intval($_GET['userid']);
 elseif(isset($_POST['userid'])) $userid=intval($_POST['userid']);
 else {
  eval("\$tpl->output(\"".$tpl->get("userrating_error")."\");");
  exit();
 }
 
 if($wbbuserdata['can_rate_users']==|| $userid==$wbbuserdata['userid']) {
  eval("\$tpl->output(\"".$tpl->get("userrating_error")."\");");
  exit();    
 }
 
 if($wbbuserdata['userid']) $result=$db->query_first("SELECT id FROM bb".$n."_votes WHERE id='$userid' AND votemode=3 AND userid='$wbbuserdata[userid]'");
 else $result=$db->query_first("SELECT id FROM bb".$n."_votes WHERE id='$userid' AND votemode=3 AND ipaddress='".addslashes($REMOTE_ADDR)."'");
 if($result['id']) {
  eval("\$tpl->output(\"".$tpl->get("userrating_error")."\");");
  exit();    
 }
 
 $user=$db->query_first("SELECT userid, username FROM bb".$n."_users WHERE userid='$userid'");
 if(!$user['userid']) {
  eval("\$tpl->output(\"".$tpl->get("userrating_error")."\");");
  exit();    
 }
 
 if(isset($_POST['send'])) {
  $ratingpoints=intval($_POST['ratingpoints']);
  
  if($ratingpoints>=&& $ratingpoints<=10) {
   $db->unbuffered_query("UPDATE bb".$n."_users SET ratingcount=ratingcount+1, ratingpoints=ratingpoints+'$ratingpoints' WHERE userid='$userid'",1);    
   $db->unbuffered_query("INSERT INTO bb".$n."_votes (id,votemode,userid,ipaddress) VALUES ('$userid','3','$wbbuserdata[userid]','".addslashes($REMOTE_ADDR)."')",1);
  }
  eval("\$tpl->output(\"".$tpl->get("window_close")."\");");
  exit();    
 }
 
 $user['username']=htmlconverter($user['username']);
 eval("\$tpl->output(\"".$tpl->get("userrating_window")."\");");
}

if($action=="showsmilies") {
 $lang->load("FAQ");
 if($showsmiliesrandom==1$result $db->unbuffered_query("SELECT smiliepath, smilietitle, smiliecode FROM bb".$n."_smilies ORDER BY RAND()");
 else $result $db->unbuffered_query("SELECT smiliepath, smilietitle, smiliecode FROM bb".$n."_smilies ORDER BY smilieorder ASC");
 
 $smiliebit="";    
 while($row=$db->fetch_array($result)) {
  $row['smilietitle']=getlangvar($row['smilietitle'], $lang);
  $row['smiliecode']=htmlconverter($row['smiliecode']);
  $row['smiliepath'] = replaceImagefolder($row['smiliepath']);
  
  eval ("\$smiliebit .= \"".$tpl->get("faq_showsmiliesbit")."\";");    
 }
 eval("\$tpl->output(\"".$tpl->get("faq_showsmilies")."\");");
}

if($action=="bbcode"){
 $lang->load("FAQ");
 $parse = new parse(0,75,1,"",0);
 $count=1;
 $faq_bbcode_links_bit="";
 $faq_bbcode_content="";
 $result $db->query("SELECT bbcodeexample, bbcodeexplanation FROM bb".$n."_bbcodes ORDER BY bbcodeid");
 while($row=$db->fetch_array($result)){
  $name getlangvar($row['bbcodeexample'], $lang);
  $description getlangvar($row['bbcodeexplanation'], $lang);
  $parsed $parse->doparse(rehtmlconverter($name),0,0,1,1);
  eval ("\$content = \"".$lang->get4eval("LANG_FAQ_BBCODES_CONTENT")."\";");
  eval ("\$faq_bbcode_links_bit .= \"".$tpl->get("faq_bbcode_links")."\";");
  eval ("\$faq_bbcode_content .= \"".$tpl->get("faq_bbcode_content")."\";");
  $count++;
 }
 eval("\$tpl->output(\"".$tpl->get("faq_bbcode")."\");");
}
?>