| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 4883|Reply: 9
Collapse the left

Delete some info in HIDE tag

[Copy link]
Post time: 2012-07-28 19:04
| Show all posts |Read mode
Edited by kaaleth at 2012-8-6 16:47

Hello. I'd like to delete this section, marked as red. Have you some idea guys? I am looking for this code but no result yet. :/ This is HIDE bbCode.


This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Russia

Post time: 2012-07-29 10:02
| Show all posts
Switch to English and remake the scrrenshot.
And explain what to click for see this popup.
 Author| Post time: 2012-07-29 14:52
| Show all posts
I said, it's only hide bbcode. Here you are.



This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Russia

Post time: 2012-07-29 17:12
| Show all posts
The words itself placed in lang_js.js

The code is placed in static/js/editor.js

What do you want to do with parameters in the block that you want to remove?

 Author| Post time: 2012-07-29 21:34
| Show all posts
Thanks for info I solved my problem.
 Author| Post time: 2012-08-01 17:32
| Show all posts
Edited by kaaleth at 2012-8-1 15:34

I'm back I and must change my mind. I really need help with this. I want to dele red-section and get this effect:

I deleted some lines (I must say, I dont know anything about JS) but it left me some empty labels. When I deleted this labels it's not working =(

Here's my code
  1. /*vot*/                                var lang = {'quote' : lng['insert_quote'], 'code' : lng['insert_code'], 'hide' : lng['hide_content'], 'free' : lng['free_content']};
  2. /*vot*/                                str += lang[tag] + ':<br /><textarea id="' + ctrlid + '_param_1" style="width: 98%" cols="50" rows="5" class="txtarea"></textarea>' +
  3. /*vot*/                                        (tag == 'hide' ? '<br /><label><input type="radio" name="' + ctrlid + '_radio" id="' + ctrlid + '_radio_1" class="pc" checked="checked" />' + lng['when_thread_replied'] + '</label> <input type="text" size="3" id="' + ctrlid + '_param_2" class="px pxs" /> <br /><input type="text" size="3" id="' + ctrlid + '_param_3" class="px pxs" />'+
  4. /*vot*/                                        '<br />'  : '');
Copy the Code

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Russia

Post time: 2012-08-03 07:38
| Show all posts
Explain the idea, please.
I did not understand what do you want
 Author| Post time: 2012-08-03 16:02
| Show all posts
I want to delete 2 options in this bbcode. That options are:

Show only when the user points is more than X When to show
Vaild for (days): X
Distance from the posting [...] expire.


I wish to leave only: Show only when the user reply to this thread.

 Russia

Post time: 2012-08-03 20:35
| Show all posts
Try this hack:
editor.js starting from line #1098: (replace old block with this block)
  1.                         case 'free':
  2.                                 if(selection) {
  3.                                         return insertText((opentag + selection + closetag), strlen(opentag), strlen(closetag), true, sel);
  4.                                 }
  5. /*vot*/                                var lang = {'quote' : lng['insert_quote'], 'code' : lng['insert_code'], 'hide' : lng['hide_content'], 'free' : lng['free_content']};
  6. /*vot*/                                str += lang[tag] + ':<br /><textarea id="' + ctrlid + '_param_1" style="width: 98%" cols="50" rows="5" class="txtarea"></textarea>' +
  7. /*vot*/                                        (tag == 'hide' ? '<br /><label><input type="radio" name="' + ctrlid + '_radio" id="' + ctrlid + '_radio_1" class="pc" checked="checked" />' + lng['when_thread_replied'] +
  8. /*vot*/ '</label><br /><input type="hidden" name="' + ctrlid + '_radio" id="' + ctrlid + '_radio_2" class="pc" />' +
  9. /*vot*/ '<input type="hidden" size="3" id="' + ctrlid + '_param_2" class="px pxs" /> ' +
  10. /*vot*/ '<input type="hidden" size="3" id="' + ctrlid + '_param_3" class="px pxs" />'
  11. /*vot*/ : '');
  12.                                 break;
Copy the Code
 Author| Post time: 2012-08-06 18:46
| Show all posts
It works!

You solved my problem, many, many thanks.
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-25 22:10 GMT+3 , Processed in 0.174378 sec., 9 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list