vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   Delete functions from advanced texteditor - edit post (https://vborg.vbsupport.ru/showthread.php?t=322555)

Schneeflocke 05-06-2016 12:44 PM

Delete functions from advanced texteditor - edit post
 
Hello,

id like to delete some functions (framed red) in the advanced text editor ?edit my own post?.
https://vborg.vbsupport.ru/external/2016/05/24.jpg

I deleted these functions from ?new post? and ?reply post? (framed green).

Code:

#cke_11, #cke_9, #cke_34, #cke_41 {
        display: none;
}

But in ?edit my own post?, they are still there (framed blue).
I tried it whith:
Code:

#cke_75, #cke_73, #cke_98, #cke_105 {
        display: none;
}

It worked for the first post. In the second post the functions are still there ?
So, I tried it with:
Code:

#cke_75, #cke_73, #cke_98, #cke_105 {
        display: none;
}
#cke_146, #cke_144, #cke_169 #cke_176 {
        display: none;
}

Now, it worked fort the first and the second post (yeah!), but not fort the third (cry!!!)!

I know the difference between first and second is 64
Quote:

11-75= 64
9-73=64 ...
, and the difference between second and third is 71, between third and fourth is 71
Quote:

75-146=71
73-144=71 ...
? etc.

How I can delete these f****** functions from ?edit post??????

I'm going crazy!

Best regards!

Replicant 05-06-2016 08:21 PM

Search google for regex and css. The problem here is you are having different cke sessions in the classes. The regex will be able to select all the classes that begin with cke_.

noypiscripter 05-06-2016 10:18 PM

1 Attachment(s)
You don't have to do the math. You just need to inspect it and check the id. See attached screenshot.

Schneeflocke 05-07-2016 06:24 AM

Hey,

many thanks for your help!!

Yes, I inspect the cke id. The id changes with the posts - cke_65, ck_136, cke_207 etc. .

So, what now?

(Sorry, but its the first time i've worked with it. :confused:)

Best regards!

noypiscripter 05-11-2016 07:02 PM

Then let's hide by position of the toolbars.

Code:

.cke_toolbox > .cke_toolbar:first-child,
.cke_toolbox > .cke_toolbar:nth-child(1),
.cke_toolbox > .cke_toolbar:nth-child(7),
.cke_toolbox > .cke_toolbar:nth-child(9) {
    display: none;
}


Schneeflocke 05-14-2016 07:50 AM

Thanks @ noypiscripter!!!


All times are GMT. The time now is 03:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00982 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete