Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SSL disincentive
#11
(2014-06-13, 04:32 PM)JordanMussi Wrote: Why do you want to delete templates?

I want to delete the templates which cannot work on an SSL only forum. Leaving in options which will not work is confusing and frustrating to users.
#12
(2014-06-13, 04:42 PM)DennisR Wrote:
(2014-06-13, 04:32 PM)JordanMussi Wrote: Why do you want to delete templates?

I want to delete the templates which cannot work on an SSL only forum. Leaving in options which will not work is confusing and frustrating to users.

That wouldn't work at all. You still need the templates irregardless of weather or not you're using SSL. Most things do work on SSL, this is just a quirk. Most forums don't use SSL so this went not noticed.

(2014-06-13, 03:57 PM)DennisR Wrote:
(2014-06-13, 06:43 AM)StefanT Wrote: Please note not all video providers support SSL. Therefor be careful when changing all these templates.

I don't think being careful matters. Ordinary http connection simply does not display if the forum is accessed via https. Indeed, accessing a non-SSL video provider with SSL could actually improve things if an overt error is displayed.

It would be nice to be able to delete templates through the Admin CP. I didn't see how. Do I need to hack the data base to remove a template?

Not sure what you mean there. You can't access a non-SSL video provider with SSL, and vice-versa. The templates are required for normal operation, if you want to delete a video provider you could definitely go about that, but deleting these templates isn't the proper way to do that.
#13
(2014-06-13, 04:49 PM)Rymax99 Wrote: Not sure what you mean there. .. if you want to delete a video provider you could definitely go about that, but deleting these templates isn't the proper way to do that.

OK

I may have misstated. My assumption was that removing the template would prevent that provider from being presented to the user. I don't care if the template is deleted or not. My objective is that the list of video providers presented to user consist only of ones compatible with an SSL forum.

If the way to express that intent is that I want to delete a video provider, then is there an Admin CP approach to do that? I looked through all the config settings and did not see how.
#14
(2014-06-13, 05:02 PM)DennisR Wrote:
(2014-06-13, 04:49 PM)Rymax99 Wrote: Not sure what you mean there. .. if you want to delete a video provider you could definitely go about that, but deleting these templates isn't the proper way to do that.

OK

I may have misstated. My assumption was that removing the template would prevent that provider from being presented to the user. I don't care if the template is deleted or not. My objective is that the list of video providers presented to user consist only of ones compatible with an SSL forum.

If the way to express that intent is that I want to delete a video provider, then is there an Admin CP approach to do that? I looked through all the config settings and did not see how.

You can indeed do that, it'll require editing the JavaScript file for the editor. You can do this by navigating to the 'jscripts' sub-directory of your forum and then editing the 'editor.js' file.

Navigate to line 129 and you should see this:
		
// An array of video services to be shown (youtube, vimeo, etc)
		this.videos = new Object();
		this.videos["dailymotion"] = this.options.lang.video_dailymotion;
		this.videos["metacafe"] = this.options.lang.video_metacafe;
		this.videos["myspacetv"] = this.options.lang.video_myspacetv;
		this.videos["vimeo"] = this.options.lang.video_vimeo;
		this.videos["yahoo"] = this.options.lang.video_yahoo;
		this.videos["youtube"] = this.options.lang.video_youtube;
Simply remove or comment out the code for the video editors you don't want.
#15
If you also want to remove the non-ssql providers from past posts you may edit the template and add <!-- at the beginning and --> at the end! or just simply remove all content from the template.
#16
Replacing it with a notice would probably more helpful for the users of the forum. Wink
[Image: banner.png]
#17
(2014-06-13, 05:10 PM)Rymax99 Wrote: Navigate to line 129 and ... Simply remove or comment out the code for the video editors you don't want.

Thank you. This did not accomplish what I wanted. It looks like the JS code edits the page after load. The MySpace editor appears to be on the original page. Commenting out the JS, merely prevents altering the entry already there.

In the inc/languages directory tree, I found two instances of the string "MySpace TV". I changed them both to the string "removed". Selecting this link does not change its behavior but the "removed" text should be sufficient notice to user to not have great expectations that the link does anything useful.

The JS patch might prevent the languages patch from getting overwritten on load.

MyBB devs: It would have been better to be able to actually delete the entry.

(2014-06-13, 05:31 PM)JordanMussi Wrote: add <!-- ... --> [or] remove all content from the template.

Thanks for the suggestion. I am in beta right now and the postings are throw-away at this point. The only video provider used is YouTube and with the template edit of http to https, it is working just fine.
#18
(2014-06-13, 06:29 PM)DennisR Wrote:
(2014-06-13, 05:10 PM)Rymax99 Wrote: Navigate to line 129 and ... Simply remove or comment out the code for the video editors you don't want.

Thank you. This did not accomplish what I wanted. It looks like the JS code edits the page after load. The MySpace editor appears to be on the original page. Commenting out the JS, merely prevents altering the entry already there.

In the inc/languages directory tree, I found two instances of the string "MySpace TV". I changed them both to the string "removed". Selecting this link does not change its behavior but the "removed" text should be sufficient notice to user to not have great expectations that the link does anything useful.

The JS patch might prevent the languages patch from getting overwritten on load.

MyBB devs: It would have been better to be able to actually delete the entry.

(2014-06-13, 05:31 PM)JordanMussi Wrote: add <!-- ... --> [or] remove all content from the template.

Thanks for the suggestion. I am in beta right now and the postings are throw-away at this point. The only video provider used is YouTube and with the template edit of http to https, it is working just fine.

Both of the solutions can be used in conjunction, but editing the JavaScript would be the only thing that's needed if you don't have any existing videos using non-SSL capable services. You might want to combine the solution with removing the content of the templates, but I'd just remove it from the editor as if you don't have any existing posts using that then the content of the template will never be shown to anyone.


Forum Jump:


Users browsing this thread: 1 Guest(s)