Agi
TEAM - PHP Freak
Dabei seit: 22.11.04
Beiträge: 2.628
Fähigkeiten: WBB3 Profi Forenversion: 3.1
|
|
Jop geht.
Suche
code: |
1:
|
<if($wbbuserdata['userid'])><then> | <a href="misc.php?action=whoread&threadid=$threadid{$SID_ARG_2ND}" onClick="window.open('misc.php?action=whoread&threadid=$threadid{$SID_ARG_2ND}','_blank','toolbar=no,location=no,menubar=no,scrollbars=yes,width=640,height=480,resizeable=yes,status=no');return false" target="_blank" title="Zeige User, die das Thema gelesen haben">Watchlist</a></then></if> |
|
und ersetze gegen
code: |
1:
|
<if($wbbuserdata['userid'] && in_array(GroupID, $wbbuserdata[groupids]) || in_array(GroupID2, $wbbuserdata[groupids]))><then> | <a href="misc.php?action=whoread&threadid=$threadid{$SID_ARG_2ND}" onClick="window.open('misc.php?action=whoread&threadid=$threadid{$SID_ARG_2ND}','_blank','toolbar=no,location=no,menubar=no,scrollbars=yes,width=640,height=480,resizeable=yes,status=no');return false" target="_blank" title="Zeige User, die das Thema gelesen haben">Watchlist</a></then></if> |
|
"GroupID" bzw. "GroupID2" durch die ID der jeweiligen Gruppn ersetzen und das für jede gewünschte Gruppe wiederholen.
__________________
|
|
13.12.10 23:07 |
Finden
Als Freund hinzufügen
|
|
Freggele
Mitglied
Dabei seit: 02.10.06
Beiträge: 19
Forenversion: 2.3
|
|
Hallo Leute,
falls es für diesen Hack noch Support gibt würde ich mich freuen.
Habe diesen tollen Hack nun auch in mein WBB 2.3.6 eingebaut.
Läuft soweit alles ohne Fehler, Thanks für den tollen Hack!
Nur an der Optik, denke stimmt was bei mir nicht so ganz.
Die Schrift (Beitrag wurde gelesen von...) finde ich bei mir etwas zu Groß.
Habe auch mal einen Screenshot davon eingefügt.
Habe ich etwas falsch gemacht bei dem Einbau?
Nun habe ich schon bestimmt 10x die Anleitung gelesen, und den Einbau verglichen und Kontrolliert.
Kann nichts feststellen, dass ich da was falsch gemacht habe.
Aber vielleicht gibt es hier doch noch Hilfe, dass ich die Schrift auf die gleiche Größe bekomme so dass es zu den anderen Schriftzügen passt.
Gruß
Uwe
|
|
01.06.11 11:28 |
E-Mail
Finden
Als Freund hinzufügen
|
|
Freggele
Mitglied
Dabei seit: 02.10.06
Beiträge: 19
Forenversion: 2.3
|
|
Nein ich bin mit Firefox unterwegs!
Wäre aber super wenn dafür auch eine Lösung gäbe.
|
|
01.06.11 23:49 |
E-Mail
Finden
Als Freund hinzufügen
|
|
Freggele
Mitglied
Dabei seit: 02.10.06
Beiträge: 19
Forenversion: 2.3
|
|
Klar, habe den Text ja auch geändert. Original steht ja da >Watchlist<
Und hier ist das ganze zu finden.
Auszug aus der liesmich.txt
Zitat: |
TEMPLATE: thread
suche (Zeile 51):
<a href="usercp.php?action=addsubscription&threadid=$threadid{$SID_ARG_2ND
}">{$lang->items['LANG_THREAD_ADD_FAVORITES']}</a>
danach einfügen:
<if($wbbuserdata['userid'])><then> | <a href="misc.php?action=whoread&threadid=$threadid{$SID_ARG_2ND}" onClick="window.open('misc.php?action=whoread&threadid=$threadid{$SID_ARG_2
ND}','_blank','toolbar=no,location=no,menubar=no,scrollbars=yes,width=640,h
eight=480,resizeable=yes,status=no');return false" target="_blank" title="Zeige User, die das Thema gelesen haben">Watchlist</a></then></if> |
Hier ist es zu finden!
|
|
02.06.11 12:01 |
E-Mail
Finden
Als Freund hinzufügen
|
|
Freggele
Mitglied
Dabei seit: 02.10.06
Beiträge: 19
Forenversion: 2.3
|
|
Der Code steht ja so drin wie oben schon gezeigt.
Aber auch wenn ich </span> am Ende anfüge passiert da leider nichts.
EDIT: So habe den Bock nun endlich doch gefunden!
Diese Zeile musste ich ändern.
Zitat: |
<if($wbbuserdata['userid'])><then> | <a href="misc.php?action=whoread&threadid=$threadid{$SID_ARG_2ND}" onClick="window.open('misc.php?action=whoread&threadid=$threadid{$SID_ARG_2
ND}','_blank','toolbar=no,location=no,menubar=no,scrollbars=yes,width=640,h
eight=480,resizeable=yes,status=no');return false" target="_blank" title="Zeige User, die das Thema gelesen haben">Beitrag wurde gelesen von...</a></then></if>
IN:
<if($wbbuserdata['userid'])><then><span class="smallfont"><a href="misc.php?action=whoread&threadid=$threadid{$SID_ARG_2ND}" onClick="window.open('misc.php?action=whoread&threadid=$threadid{$SID_ARG_2
ND}','_blank','toolbar=no,location=no,menubar=no,scrollbars=yes,width=640,h
eight=480,resizeable=yes,status=no');return false" target="_blank" title="Zeige User, die das Thema gelesen haben">Beitrag wurde gelesen von...</a></span></then></if> |
Und nun passt es!
Dieser Beitrag wurde 1 mal editiert, zum letzten Mal von Freggele: 02.06.11 12:35.
|
|
02.06.11 12:20 |
E-Mail
Finden
Als Freund hinzufügen
|
|
Freggele
Mitglied
Dabei seit: 02.10.06
Beiträge: 19
Forenversion: 2.3
|
|
Den Code wo der Fehler drin lag, habe ich oben ja schon stehen.
Zu finden ist der im TEMPLATE: thread.
Und das was ich rot gekennzeichnet habe, muss noch in diese Zeile eingefügt werden. Das war´s, dann passt es auch mit der Schriftgröße.
|
|
02.06.11 12:47 |
E-Mail
Finden
Als Freund hinzufügen
|
|
Freggele
Mitglied
Dabei seit: 02.10.06
Beiträge: 19
Forenversion: 2.3
|
|
ok, dann hier mal das komplette Template.
In Zeile 52 ist die Änderung zu finden.
code: |
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:
|
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
<head>
<title>$master_board_name | $board[title] | $thread[prefix] $thread[topic]</title>
$headinclude
<link rel="contents" href="board.php?boardid=$boardid{$SID_ARG_2ND}" />
<if($t->pages>1)>
<then>
<link rel="first" href="thread.php?threadid=$threadid&threadview=$threadview&hilight=$hilight&hilightuser=$hilightuser&page=1{$SID_ARG_2ND}" />
<link rel="last" href="thread.php?threadid=$threadid&threadview=$threadview&hilight=$hilight&hilightuser=$hilightuser&page=$t->pages{$SID_ARG_2ND}" />
<if($t->pages>$t->page)><then><link rel="next" href="thread.php?threadid=$threadid&threadview=$threadview&hilight=$hilight&hilightuser=$hilightuser&page=$t->page+1{$SID_ARG_2ND}" /></then></if>
<if($t->page>1)><then><link rel="prev" href="thread.php?threadid=$threadid&threadview=$threadview&hilight=$hilight&hilightuser=$hilightuser&page=$t->page-1{$SID_ARG_2ND}" /></then></if>
</then>
</if>
<script type="text/javascript">
<!--
var imageMaxWidth = $picmaxwidth;
var imageMaxHeight = $picmaxheight;
//-->
</script>
<script type="text/javascript" src="js/images.js"></script>
<script type="text/javascript">
<!--
function rating(userid) {
window.open("misc.php?action=userrating&userid="+userid+"{$SID_ARG_2ND_UN}", "moo", "toolbar=no,scrollbars=yes,resizable=yes,width=350,height=205");
}
//-->
</script>
</head>
<body onload="resizeImages();">
$header
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tablea"><table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr class="tablea_fc">
<td align="left"><span class="smallfont"><b><a href="index.php{$SID_ARG_1ST}">$master_board_name</a>$navbar » </b><if($thread['prefix']!="")><then><span class="prefix">$thread[prefix]</span> </then></if><b>$thread[topic]</b></span></td>
<td align="right"><span class="smallfont"><b>$usercbar</b></span></td>
</tr>
</table></td>
</tr>
<tr>
<td class="tabletitle"><table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr class="tabletitle_fc">
<td align="left"><span class="smallfont"><a href="thread.php?goto=lastpost&threadid=$threadid{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_LASTPOST']}</a> | <a href="thread.php?goto=firstnew_thread&threadid=$threadid{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_FIRST_NEWPOST']}</a></span></td>
<td align="right" valign="top"><span class="smallfont"><a href="print.php?threadid=$threadid&page=$t->page{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_PRINTTHREAD']}</a> | <if($turnoff_formmail==0)><then><a href="formmail.php?threadid=$threadid{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_SENDTOFRIEND']}</a> |</then></if> <a href="usercp.php?action=addsubscription&threadid=$threadid{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_ADD_FAVORITES']}</a></span></td>
<if($wbbuserdata['userid'])><then><span class="smallfont"><a href="misc.php?action=whoread&threadid=$threadid{$SID_ARG_2ND}" onClick="window.open('misc.php?action=whoread&threadid=$threadid{$SID_ARG_2ND}','_blank','toolbar=no,location=no,menubar=no,scrollbars=yes,width=640,height=480,resizeable=yes,status=no');return false" target="_blank" title="Zeige User, die das Thema gelesen haben">Beitrag wurde gelesen von...</a></span></then></if>
</tr>
</table></td></span>
</tr>
</table>
<table style="width:{$style['tableinwidth']}">
<tr>
<td align="left" valign="bottom"><span class="smallfont">$t->pagelink</span></td>
<td align="right" valign="bottom"><span class="smallfont">$newthread $addreply</span></td>
</tr>
</table>
$thread_poll
<table cellpadding="0" cellspacing="0" border="0" style="width:{$style['tableinwidth']}" align="center">
<tr>
<td><table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" class="tableinborder" style="width:100%">
<tr>
<td class="tablecat" align="left"<if(isset($t->postbitlist))><then> colspan="3"</then></if>><span class="normalfont"><a href="javascript:self.scrollTo(0,50000);"><img src="{$style['imagefolder']}/asc.gif" border="0" alt="{$lang->items['LANG_THREAD_GODOWN']}" title="{$lang->items['LANG_THREAD_GODOWN']}" /></a> <b>$thread[topic] $threadrating</b></span></td>
</tr>
<if(isset($t->postbitlist))>
<then>
<tr align="center">
<td class="tabletitle" style="width:80%"><span class="smallfont"><b>{$lang->items['LANG_THREAD_POSTBITLIST']}</b></span></td>
<td class="tabletitle" style="width:20%"><span class="smallfont"><b>{$lang->items['LANG_THREAD_AUTHOR']}</b></span></td>
<td class="tabletitle" nowrap="nowrap"><span class="smallfont"><b>{$lang->items['LANG_THREAD_DATE']}</b></span></td>
</tr>
<if($t->page!=1)>
<then>
<tr align="center">
<td class="tableb" colspan="3"><span class="normalfont"><a href="thread.php?threadid=$threadid&threadview=$threadview&hilight=$hilight&hilightuser=$hilightuser&page=<expression>($t->page-1)</expression>{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_PREVPAGE']}</a></span></td>
</tr>
</then>
</if>
{$t->postbitlist}
<if($t->page<$t->pages)>
<then>
<tr align="center">
<td class="tableb" colspan="3"><span class="normalfont"><a href="thread.php?threadid=$threadid&threadview=$threadview&hilight=$hilight&hilightuser=$hilightuser&page=<expression>($t->page+1)</expression>{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_NEXTPAGE']}</a></span></td>
</tr>
</then>
</if>
</table><br />
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" class="tableinborder" style="width:100%">
</then>
<else>
</table>
</else>
</if>
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" class="tableinborder" style="width:100%">
<tr>
<td class="tabletitle" align="left" style="width:<expression>((2*$style['tableincellpadding'])+159)</expression>px" nowrap="nowrap"><span class="smallfont"><b>{$lang->items['LANG_THREAD_AUTHOR']}</b></span></td>
<td class="tabletitle"><table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr class="tabletitle_fc">
<td align="left"><span class="smallfont"><b>{$lang->items['LANG_THREAD_POST']}</b></span></td>
<td align="right"><span class="smallfont"><b>«</b> <a href="thread.php?goto=nextoldest&threadid=$threadid{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_NEXTOLDEST']}</a> | <a href="thread.php?goto=nextnewest&threadid=$threadid{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_NEXTNEWEST']}</a> <b>»</b></span></td>
</tr>
</table></td>
</tr>
</table>
<br />$postbit
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" class="tableinborder" style="width:100%">
<tr>
<td class="tabletitle" colspan="2">
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr class="tabletitle_fc">
<td align="left"><span class="smallfont">$t->pagelink</span></td>
<td align="right"><span class="smallfont"><a href="thread.php?threadid=$threadid&threadview=1&hilight=$hilight&hilightuser=$hilightuser{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_THREADED']}</a> | <a href="thread.php?threadid=$threadid&threadview=0&hilight=$hilight&hilightuser=$hilightuser{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_FLATTHREAD']}</a></span></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
<table style="width:{$style['tableinwidth']}">
<tr>
<td align="left" valign="top">$boardjump</td>
<td align="right" valign="top"><span class="smallfont">$newthread $addreply</span></td>
</tr>
</table>
<if(checkpermissions("can_rate_thread")==1 && $board['allowratings']==1 && !$thread['isvoted'])>
<then>
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tablea"><form action="threadrating.php" method="post"><table border="0" cellspacing="0" cellpadding="0" align="center" class="tablea_fc">
<tr align="center">
<td valign="bottom" align="right"><span class="normalfont"><b>{$lang->items['LANG_THREAD_THREADRATING']}</b> </span><span class="smallfont"><br /><br />
{$lang->items['LANG_THREAD_VERYPOOR']} <img src="{$style['imagefolder']}/thumbs_down.gif" border="0" alt="{$lang->items['LANG_THREAD_VERYPOOR']}" title="{$lang->items['LANG_THREAD_VERYPOOR']}" /> </span>
</td>
<td style="background-color: $colors[0]"><span class="smallfont">
<input type="radio" name="rating" value="1" onclick="this.form.submit();" />
<br />
1 </span></td>
<td style="background-color: $colors[1]"><span class="smallfont">
<input type="radio" name="rating" value="2" onclick="this.form.submit();" />
<br />
2 </span></td>
<td style="background-color: $colors[2]"><span class="smallfont">
<input type="radio" name="rating" value="3" onclick="this.form.submit();" />
<br />
3 </span></td>
<td style="background-color: $colors[3]"><span class="smallfont">
<input type="radio" name="rating" value="4" onclick="this.form.submit();" />
<br />
4 </span></td>
<td style="background-color: $colors[4]"><span class="smallfont">
<input type="radio" name="rating" value="5" onclick="this.form.submit();" />
<br />
5 </span></td>
<td style="background-color: $colors[5]"><span class="smallfont">
<input type="radio" name="rating" value="6" onclick="this.form.submit();" />
<br />
6 </span></td>
<td style="background-color: $colors[6]"><span class="smallfont">
<input type="radio" name="rating" value="7" onclick="this.form.submit();" />
<br />
7 </span></td>
<td style="background-color: $colors[7]"><span class="smallfont">
<input type="radio" name="rating" value="8" onclick="this.form.submit();" />
<br />
8 </span></td>
<td style="background-color: $colors[8]"><span class="smallfont">
<input type="radio" name="rating" value="9" onclick="this.form.submit();" />
<br />
9 </span></td>
<td style="background-color: $colors[9]"><span class="smallfont">
<input type="radio" name="rating" value="10" onclick="this.form.submit();" />
<br />
10 </span></td>
<td align="left" valign="bottom"><span class="smallfont"> <img src="{$style['imagefolder']}/thumbs_up.gif" border="0" alt="{$lang->items['LANG_THREAD_VERYGOOD']}" title="{$lang->items['LANG_THREAD_VERYGOOD']}" /> {$lang->items['LANG_THREAD_VERYGOOD']}</span></td>
</tr>
</table>
<input type="hidden" name="sid" value="$session[hash]" />
<input type="hidden" name="threadid" value="$threadid" />
<input type="hidden" name="page" value="{$t->page}" />
</form></td>
</tr>
</table><br />
</then>
</if>
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tablea" align="left"><span class="smallfont"><b><a href="index.php{$SID_ARG_1ST}">$master_board_name</a>$navbar » </b><if($thread['prefix']!="")><then><span class="prefix">$thread[prefix]</span> </then></if><b>$thread[topic]</b></span></td>
</tr>
</table>
<table style="width:{$style['tableinwidth']}">
<tr>
<td align="right">
<if(checkmodpermissions())>
<then>
<form action="modcp.php" method="get" name="modoption">
<select name="action">
<option value="-1">{$lang->items['LANG_THREAD_ADMINOPTIONS']}</option>
<if(checkmodpermissions("m_can_thread_close"))>
<then><option value="thread_close">{$lang->items['LANG_THREAD_THREADCLOSE']}</option></then>
</if>
<if(checkmodpermissions("m_can_thread_move"))>
<then><option value="thread_move">{$lang->items['LANG_THREAD_THREADMOVE']}</option></then>
</if>
<if(checkmodpermissions("m_can_thread_edit"))>
<then><option value="thread_edit">{$lang->items['LANG_THREAD_THREADEDIT']}</option></then>
</if>
<if(checkmodpermissions("m_can_post_del"))>
<then><option value="post_del">{$lang->items['LANG_THREAD_POSTDEL']}</option></then>
</if>
<if(checkmodpermissions("m_can_thread_del"))>
<then><option value="thread_del">{$lang->items['LANG_THREAD_THREADDEL']}</option></then>
</if>
<if(checkmodpermissions("m_can_thread_merge"))>
<then><option value="thread_merge">{$lang->items['LANG_THREAD_THREADMERGE']}</option></then>
</if>
<if(checkmodpermissions("m_can_thread_cut"))>
<then><option value="thread_cut">{$lang->items['LANG_THREAD_THREADCUT']}</option></then>
</if>
<if(checkmodpermissions("m_can_thread_top"))>
<then><option value="thread_top">{$lang->items['LANG_THREAD_THREADTOP']}</option></then>
</if>
<if(checkmodpermissions("m_can_add_poll"))>
<then><option value="polladd">{$lang->items['LANG_THREAD_POLLADD']}</option></then>
</if>
</select>
<input src="{$style['imagefolder']}/go.gif" type="image" />
<input type="hidden" name="threadid" value="$threadid" />
<input type="hidden" name="sid" value="$session[hash]" />
</form>
</then>
<else>
<if($wbbuserdata['userid'] && $wbbuserdata['userid']==$thread['starterid'] && (checkpermissions("can_close_own_topic")==1 || checkpermissions("can_del_own_topic")==1 || checkpermissions("can_edit_own_topic")==1 || checkpermissions("can_move_own_topic")==1))>
<then>
<form action="modcp.php" method="get" name="modoption">
<select name="action">
<option value="-1">{$lang->items['LANG_THREAD_OTHEROPTIONS']}</option>
<if(checkpermissions("can_close_own_topic")==1)>
<then><option value="thread_close">{$lang->items['LANG_THREAD_THREADCLOSE']}</option></then>
</if>
<if(checkpermissions("can_move_own_topic")==1)>
<then><option value="thread_move">{$lang->items['LANG_THREAD_THREADMOVE']}</option></then>
</if>
<if(checkpermissions("can_edit_own_topic")==1)>
<then><option value="thread_edit">{$lang->items['LANG_THREAD_THREADEDIT']}</option></then>
</if>
<if(checkpermissions("can_del_own_topic")==1)>
<then><option value="thread_del">{$lang->items['LANG_THREAD_THREADDEL']}</option></then>
</if>
</select>
<input src="{$style['imagefolder']}/go.gif" type="image" />
<input type="hidden" name="threadid" value="$threadid" />
<input type="hidden" name="sid" value="$session[hash]" />
</form>
</then>
</if>
</else>
</if>
</td>
</tr>
</table>
$footer
</body>
</html> |
|
|
|
02.06.11 14:25 |
E-Mail
Finden
Als Freund hinzufügen
|
|
Freggele
Mitglied
Dabei seit: 02.10.06
Beiträge: 19
Forenversion: 2.3
|
|
OK, Thanks für die Hilfe, habe es nun auch richtig angepasst.
Nun steht es auch bei mir rechts, und die Schriftgröße passt auch.
|
|
02.06.11 16:48 |
E-Mail
Finden
Als Freund hinzufügen
|
|
>Dragonfly<
Mitglied
Dabei seit: 14.06.08
Beiträge: 83
Fähigkeiten: WBB2 Anfänger Herkunft: NRW Forenversion: 2.3
|
|
Hallo
super Hack Einbau auch geklappt .
Damit die Liste nicht so lang wird , kann man die Gäste Ausgrenzen das nur Mitglieder gelistet werden ?
EDIT : Habe jetzt was zu den Gästen gefunden aber der Code von mir sieht anders aus und zwar so habe WBB 2.3.6 ...
/** Who-read-this-thread (c) Mr Hatch**/
$readcount=$db->query_first("SELECT ips, COUNT(*) AS c FROM bb".$n."_threads_users WHERE threadid='$threadid' AND userid='$wbbuserdata[userid]' GROUP BY userid");
if($readcount['c']==0){
$db->query("INSERT INTO bb".$n."_threads_users (threadid,userid,readtime,timesread,ips) VALUES ('$threadid','$wbbuserdata[userid]','".time()."','1','".(getIpAddress())."'
)");
}
else{
$db->query("UPDATE bb".$n."_threads_users SET readtime='".time()."',timesread=timesread+1, ips='".$readcount['ips']."\n".(getIpAddress())."' WHERE threadid='$threadid' AND userid='$wbbuserdata[userid]'");
}
/** Who-read-this-thread (c) Mr Hatch**/
__________________ Gruß Dragonfly
Dieser Beitrag wurde 1 mal editiert, zum letzten Mal von >Dragonfly<: 25.10.11 23:47.
|
|
25.10.11 22:58 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
XuXu-CGN
Mitglied
Dabei seit: 09.09.07
Beiträge: 30
Herkunft: Köln Forenversion: 2.3
|
|
Ich muss das Thema leider mal hoch holen.
Ich hatte nun den Hack eingebaut und sobald ich ein neues Thema speichern will, kommt folgendes.:
Zitat: |
SQL-DATABASE ERROR
Database error in WoltLab Burning Board (2.3.6): Invalid SQL: SELECT COUNT(*) FROM bb1_threads_users WHERE threadid='63' AND userid='1'
mysql error: Table 'd0136884.bb1_threads_users' doesn't exist
mysql error number: 1146
mysql version: 5.1.43-nmm4-log
php version: 5.3.10-nmm1
Date: 03.03.2012 @ 17:00
Script: /thread.php?threadid=63
Referer: http://www.piercing-portal.net/newthread.php?boardid=3
|
Könnte mir vielleicht Jemand sagen, was ich nun damit anfangen kann ??
Ich habe mich extra exakt an die Liesmich.txt gehalten.
LG
X.
__________________ Ich bin keine Signatur, ich putze Hier nur -.-
|
|
03.03.12 17:19 |
E-Mail
Finden
Als Freund hinzufügen
|
|
jacqy
Alternativ Mitglied
Dabei seit: 01.08.05
Beiträge: 963
Herkunft: Passau(hergezogen)
|
|
Wenn du die liesmich.txt aufmerksamer gelesen hättest,wärst du über das gestolpert.
Folgende SQL-Abfrage ausführen (X jeweils durch die Boardnummer ersetzen!):
code: |
1:
2:
3:
4:
5:
6:
7:
8:
|
DROP TABLE IF EXISTS bbX_threads_users;
CREATE TABLE bbX_threads_users (
threadid int(11) NOT NULL default '0',
userid int(11) NOT NULL default '0',
readtime int(11) NOT NULL default '0',
timesread int(11) NOT NULL default '0',
KEY threadid (threadid,userid)
) TYPE=MyISAM; |
|
__________________ <<<<<<Ist in Arbeit>>>>>>>
|
|
03.03.12 17:32 |
E-Mail
Finden
Als Freund hinzufügen
|
|
XuXu-CGN
Mitglied
Dabei seit: 09.09.07
Beiträge: 30
Herkunft: Köln Forenversion: 2.3
|
|
Zitat: |
Original von jacqy
Wenn du die liesmich.txt aufmerksamer gelesen hättest,wärst du über das gestolpert.
Folgende SQL-Abfrage ausführen (X jeweils durch die Boardnummer ersetzen!):
code: |
1:
2:
3:
4:
5:
6:
7:
8:
|
DROP TABLE IF EXISTS bbX_threads_users;
CREATE TABLE bbX_threads_users (
threadid int(11) NOT NULL default '0',
userid int(11) NOT NULL default '0',
readtime int(11) NOT NULL default '0',
timesread int(11) NOT NULL default '0',
KEY threadid (threadid,userid)
) TYPE=MyISAM; |
|
|
Wenn Du meinen Post aufmerksamer gelesen hättest, wüsstest Du, dass ich mich an die Liesmich.txt gehalten habe und somit auch das X durch die Boardnummer ausgetauscht habe....
Sorry nur dein Post bringt mir garnichts, ausser Kopfschütteln....
__________________ Ich bin keine Signatur, ich putze Hier nur -.-
|
|
03.03.12 21:24 |
E-Mail
Finden
Als Freund hinzufügen
|
|
Bräke
Mitglied
Dabei seit: 01.01.04
Beiträge: 8.189
|
|
Die Fehlermeldung besagt aber, das diese Tabelle nicht vorhanden ist.
Prüfe bitte, zB mit phpmyadmin, ob diese Tabelle wirklich vorhanden ist und deine Boardnummer die 1 ist.
|
|
03.03.12 21:44 |
Finden
Als Freund hinzufügen
|
|
dedie
Mitglied
Dabei seit: 06.03.05
Beiträge: 124
Fähigkeiten: WBB3 Fortgeschritten; WBB2 Profi Herkunft: Stuttgart Forenversion: 3.1; 2.3
|
|
Nach dem X durch die Boardnummer ersetzen die SQL-Abfrage auch im ACP ausgeführt?
Eher nicht sonst käme es nämlich nicht zu der von dir geposteden Fehlermeldung.
Fassungslosdenkopfschüttel
|
|
03.03.12 21:45 |
E-Mail
WWW
Finden
Als Freund hinzufügen
|
|
|