Keyword

how to remove / hide upload video tab from fontend editors

  • scyllar
  • scyllar's Avatar Topic Author
  • Offline
  • Senior Member
More
15 years 1 week ago #82864 by scyllar
hi i have four questions - 1) how to remove / hide upload video tab from frontend editors?and2) how to remove / hide "browse server" under image tab from frontend editors?and3) how to hide / remove  the toggle sidebar from frontend editors?and 4) how to hide / remove the WYSIWYG editor for item content for frontend editors? do you know which files i should look into if i don't mind a hack to the core? thanks a lot

Please Log in or Create an account to join the conversation.

More
15 years 1 week ago #82865 by Kathy Lombard
To disable the video tab, go to K2 global parameters. Under Frontend editing, set "Video tab on edit form" to no.

Please Log in or Create an account to join the conversation.

  • scyllar
  • scyllar's Avatar Topic Author
  • Offline
  • Senior Member
More
15 years 6 days ago #82866 by scyllar
thanks kathy, but i meant to disable the UPLOAD sub-tab under video tab. I know there isn't a param available for this, however, i don't mind hacking.

does anyone have any clue for all my questions?

Please Log in or Create an account to join the conversation.

More
14 years 11 months ago #82867 by sigpro_firsttry
Same here. I would love to know how to get rid of the editor/ toggle-button!

Is there any chance to use another form generator to submit an item to K2?

Thanks to all!

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #82868 by badrun badranaya
Replied by badrun badranaya on topic how to remove / hide upload video tab from fontend editors
For your questions #1, #2, #3, I did it manually.
Locate the file used for frontend editing
YourSite\components\com_k2\views\item\tmpl\form.php
find the code, then remove or just add comment to the tags which you do not want to be appear..

For your question #4, I think you can go to Global Configuration > Default WYSIWYG Editor, you can change it to No Editor...

I'm so looking for the way how to hide Button Image on the WYSWYG editor, because user may open anything in our Joomla! Images folder...

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #82869 by badrun badranaya
Replied by badrun badranaya on topic how to remove / hide upload video tab from fontend editors
shame on me...
I answer my own question. I found the answer, just go to Plugins Manager > Editor Button - Image and set the access level to Special. It dissallow my registered member to access the button from frontend editing.

Please Log in or Create an account to join the conversation.

  • Christian Matthieas
  • Christian Matthieas's Avatar
  • Offline
  • Premium Member
More
14 years 7 months ago #82870 by Christian Matthieas
Replied by Christian Matthieas on topic how to remove / hide upload video tab from fontend editors
Badrun how do you do this? I am trying to do what you say but I am not finding the right thing to "comment out" it is weird it is like the commenting out won't work. I do the // the /* */ nada

Please Log in or Create an account to join the conversation.

  • Christian Matthieas
  • Christian Matthieas's Avatar
  • Offline
  • Premium Member
More
14 years 7 months ago #82871 by Christian Matthieas
Replied by Christian Matthieas on topic how to remove / hide upload video tab from fontend editors
I created a whole response for edits I made to the forum.php but this forum doesn't allow for bbcode

I included the changes in a word docx.

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #82872 by badrun badranaya
Replied by badrun badranaya on topic how to remove / hide upload video tab from fontend editors
Christian Matthieas said:Badrun how do you do this? I am trying to do what you say but I am not finding the right thing to "comment out" it is weird it is like the commenting out won't work. I do the // the /* */ nada


Hi Christian, use PHP comment to exclude some code

[edited. I can't post sample code here]

Please Log in or Create an account to join the conversation.

  • Christian Matthieas
  • Christian Matthieas's Avatar
  • Offline
  • Premium Member
More
14 years 7 months ago #82873 by Christian Matthieas
Replied by Christian Matthieas on topic how to remove / hide upload video tab from fontend editors
lol I tried to but I had to use this <----> it did not work any other way... it would work in the beggining of the php document but as I went down it didn't work


badrun badranaya said:Christian Matthieas said:Badrun how do you do this? I am trying to do what you say but I am not finding the right thing to "comment out" it is weird it is like the commenting out won't work. I do the // the /* */ nada

Hi Christian, use PHP comment to exclude some code[edited. I can't post sample code here]

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #82874 by badrun badranaya
Replied by badrun badranaya on topic how to remove / hide upload video tab from fontend editors
Here I attach sample comment to hide "Browse server..." on image tab.

after use it, you can do the same to your video tab
Attachments:

Please Log in or Create an account to join the conversation.

  • Christian Matthieas
  • Christian Matthieas's Avatar
  • Offline
  • Premium Member
More
14 years 7 months ago #82875 by Christian Matthieas
Replied by Christian Matthieas on topic how to remove / hide upload video tab from fontend editors
that is the code I used... glad to know it is the right one... i got rid of the browse server for the video and left the remote url stuff... then I got rid of the upload tab for video and then I got rid of the browse server for photo's. i want to put a warning there photo's should be less than a meg for upload... shoot what do people think i am... Picasa. lol

As well, just to ask you because I am running into this problem and you seem to now what the hell you're doing.

there is a link on the bottom of the video and image tabs that tells you to check here if you want to delete the video... the problem is in the backend it works but in the frontend it is not showing... just a link on the wording. do you notice this error?

last thing... there is an error that when you save the page and don't hit cancel and then hit the toggle again it refreshes the page and poof sends the frontend enditor into crazy mode and shows the page and nothing else and you have to hit refresh to get out of it....

oh, one more thing. I read somewher that there is metadata that is commented out but people said they want to use it... do you know what line that stuff is on as I can't find it.

thanks for your help


ahahahaahahah I sucked you in.

Please Log in or Create an account to join the conversation.

More
14 years 5 months ago #82876 by Paul
Found the post i wanted guys thanks, but where is the code, you never added in which file?

Paul

 

Christian Matthieas said:

that is the code I used... glad to know it is the right one... i got rid of the browse server for the video and left the remote url stuff... then I got rid of the upload tab for video and then I got rid of the browse server for photo's. i want to put a warning there photo's should be less than a meg for upload... shoot what do people think i am... Picasa. lol As well, just to ask you because I am running into this problem and you seem to now what the hell you're doing. there is a link on the bottom of the video and image tabs that tells you to check here if you want to delete the video... the problem is in the backend it works but in the frontend it is not showing... just a link on the wording. do you notice this error? last thing... there is an error that when you save the page and don't hit cancel and then hit the toggle again it refreshes the page and poof sends the frontend enditor into crazy mode and shows the page and nothing else and you have to hit refresh to get out of it.... oh, one more thing. I read somewher that there is metadata that is commented out but people said they want to use it... do you know what line that stuff is on as I can't find it. thanks for your help ahahahaahahah I sucked you in.

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #82877 by chirisb13
Hi

 

Sorry for my bad english..

My problem.. 

when hide the code or delete the code... when entering the tags no longer working properly. have any idea?

Thanks for you time!Greetings!


badrun badranaya said:

Here I attach sample comment to hide "Browse server..." on image tab.
after use it, you can do the same to your video tab

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago #82878 by Thailande Tourisme
Replied by Thailande Tourisme on topic how to remove / hide upload video tab from fontend editors
I have exactly the the same problem !

 

When i comment the code, i cant use the tags anymore !!

 

Do you find solution already ?

 

Thank you

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #82879 by Thailande Tourisme
Replied by Thailande Tourisme on topic how to remove / hide upload video tab from fontend editors
Hi,

 

Thanks for the solution, ill try that today ! :)

 

Does it works propely with almost of browers ?

 

Thanks to share solution here !

 

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #82880 by johanna
Why not just set css id to display none?

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum