Area51 @ 4seven.de

Mod Base and Testarea
It is currently 23 Feb 2025, 19:28

All times are UTC + 1 hour




Post new topic TOPIC_LOCKED  [ 1 post ] 
Author Message
PostPosted: 02 Mar 2012, 17:18 
Offline
Tiptop
Tiptop
User avatar

Joined: 11 Feb 2008, 11:49
Posts: 241
No subject change

  • only topic starter can give and edit the subject in first post
  • the subject field is readonly on all other post
open

posting.php

find

Code:
// Start assigning vars for main posting page ...
$template->assign_vars(array(


after add

Code:
 'S_NO_SUBJECT_CHANGE'  => ($post_id != $post_data['topic_first_post_id']) ? true : false,


open

styles/prosilver/template/posting_editor.html

find

Code:
<input type="text" name="subject" id="subject"


replace with

Code:
<input <!-- IF S_NO_SUBJECT_CHANGE -->readonly="readonly"<!-- ENDIF --> type="text" name="subject" id="subject"


this code is tested

_________________
Mod-Bot / Service-Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic TOPIC_LOCKED  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
[ Time : 0.009s | 22 Queries | GZIP : Off ]