Ajax Features and quickedit...

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Antworten
cavallino
Beiträge: 41
Registriert: Fr 22.Sep, 2006 22:24

Ajax Features and quickedit...

Beitrag von cavallino »

Hello oxpus,
first of all Happy new Year.
In my board I have disabled Administrator's post editing by moderators... Is there a way i can disable also the moderators quickedit option for administrator's posts?

Thanks!
Benutzeravatar
oxpus
Administrator
Beiträge: 28737
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Happy New Year, too!

Try this for the quickedit:

open
viewtopic.php

find

Code: Alles auswählen

//
// Go ahead and pull all data for this topic
//
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, u.ct_miserable_user, p.*,  pt.post_text, pt.post_subject, pt.bbcode_uid
	FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt
in line find

Code: Alles auswählen

u.username
and insert after this

Code: Alles auswählen

, u.user_level
find

Code: Alles auswählen

	$template->assign_block_vars('postrow', array(
and before add

Code: Alles auswählen

	if ($postrow[$i]['user_level'] == ADMIN && $userdata['user_level'] != ADMIN)
	{
		$edit_img = '';
		$edit = '';
		$edit_url = '';
		$delpost_img = '';
		$delpost = '';
	}
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
cavallino
Beiträge: 41
Registriert: Fr 22.Sep, 2006 22:24

Beitrag von cavallino »

Thanks oxpus!! it works perfectly!
Antworten