Seite 1 von 2
Wie kann ich die Funktion weg haben?
Verfasst: 25.03.2005 22:07
von KL
Guten Abend,
wie kann ich die Quote Funktion raus nehmen wo finde ich den Teil ? Kann mir das einer sagen?
Gruß KL
Verfasst: 25.03.2005 22:42
von |Tobi|
Öffne templates/xxx/viewtopic_body.tpl
Entferne:
Fertig.
Du kannst zusätzlich aus der viewtopic.php noch folgendes entfernen:
Code: Alles auswählen
$temp_url = append_sid("posting.$phpEx?mode=quote&" . POST_POST_URL . "=" . $postrow[$i]['post_id']);
$quote_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_quote'] . '" alt="' . $lang['Reply_with_quote'] . '" title="' . $lang['Reply_with_quote'] . '" border="0" /></a>';
$quote = '<a href="' . $temp_url . '">' . $lang['Reply_with_quote'] . '</a>';
Tobi
Verfasst: 22.08.2006 20:21
von patrickcooly
Kann man Quote so wie IP nur für Mods/Admins zugänglich machen?
Verfasst: 22.08.2006 21:13
von Banger
patrickcooly hat geschrieben:Kann man Quote so wie IP nur für Mods/Admins zugänglich machen?
Ja, dafür musst Du die viewtopic.php ändern:
Code: Alles auswählen
//Suche
$temp_url = append_sid("posting.$phpEx?mode=quote&" . POST_POST_URL . "=" . $postrow[$i]['post_id']);
$quote_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_quote'] . '" alt="' . $lang['Reply_with_quote'] . '" title="' . $lang['Reply_with
_quote'] . '" border="0" /></a>';
$quote = '<a href="' . $temp_url . '">' . $lang['Reply_with_quote'] . '</a>';
//Ersetze mit
if( $is_auth['auth_mod'] )
{
$temp_url = append_sid("posting.$phpEx?mode=quote&" . POST_POST_URL . "=" . $postrow[$i]['post_id']);
$quote_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_quote'] . '" alt="' . $lang['Reply_with_quote'] . '" title="' . $lang['Reply_with
_quote'] . '" border="0" /></a>';
$quote = '<a href="' . $temp_url . '">' . $lang['Reply_with_quote'] . '</a>';
}
else
{
$quote_img = '';
$quote = '';
}
Verfasst: 23.08.2006 10:10
von patrickcooly
Das Problem ist folgendes, ich hab eine andere PHP-Sequenz (keine quote-images)..
Code: Alles auswählen
$temp_url = append_sid("posting.$phpEx?mode=quote&" . POST_POST_URL . "=" . $postrow[$i]['post_id']);
$quote_img = '<a href="' . $temp_url . '" class="td01">Quote</a> |';
$quote = '<a href="' . $temp_url . '">' . $lang['Reply_with_quote'] . '</a>';
Verfasst: 29.08.2006 11:59
von patrickcooly
keine Antworten?

Verfasst: 17.09.2006 13:57
von patrickcooly
Ich würd mich wirklich freuen wenn hier eine Antwort gepostet wird..

Verfasst: 17.09.2006 16:05
von Miriam
Das (würde ich meinen) sollte analog funktionieren --->
Code: Alles auswählen
if( $is_auth['auth_mod'] ) {
$quote_img = '<a href="' . $temp_url . '" class="td01">Quote</a> |';
$quote = '<a href="' . $temp_url . '">' . $lang['Reply_with_quote'] . '</a>';
}
else {
$quote_img = $quote = '';
}
Verfasst: 17.09.2006 20:12
von patrickcooly
nein, geht nicht.

Verfasst: 17.09.2006 22:13
von Miriam
Leider weiss ichnicht, wie du was wo eingebunden hast...Oder ob Du irgendeinen Code vom phpBB benutzt.
Probier mal das
Code: Alles auswählen
if( $userdata['user_level'] == ADMIN ) {
$quote_img = '<a href="' . $temp_url . '" class="td01">Quote</a> |';
$quote = '<a href="' . $temp_url . '">' . $lang['Reply_with_quote'] . '</a>';
}
else {
$quote_img = $quote = '';
}