Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [How To?] Add an option for videos
Not Solved
I have a question.

I want to add an option to videos list.
e.g: we can put a video from youtube with this code:

Now i want to add an option with this codes:

and these for show it:
<embed height="400" width="600" flashvars="config={$id}" allowfullscreen="true" quality="high" name="aparattv" id="aparattv" style="" src="" type="application/x-shockwave-flash">

Can you help me for doing it? Heart
Not Solved
Why not install a MyCode for it ?
Not Solved
I am trying to use a mycode for this but how i can add an option for videos?
Not Solved
Open ./jscripts/editor.js file and find;

		this.videos["dailymotion"] = this.options.lang.video_dailymotion;
		this.videos["googlevideo"] = this.options.lang.video_googlevideo;
		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;

Add an additional Video code adding at the bottom, using the syntax;

		this.videos["VIDEO_NAME"] = this.options.lang.video_VIDEO_NAME;

Now open ./inc/languages/english/global.php.lang file and add a language string after;


Using the syntax;


and of course Replace VIDEO_NAME with your own Video Name.

Now you have to add a MyCode of that video in your templates and have to Evaluate it from ./inc/class_parser.php file.

Not Solved
Done changes but it show "undefined" replace "aparat"
Not Solved
(2011-10-20, 11:58 AM)Jondan Wrote: Done changes but it show "undefined" replace "aparat"

I told you to edit language file too.
Not Solved
global.lang.php changed!

You can view it:
.php   global.lang.php (Size: 22.33 KB / Downloads: 48)

I have other request: Please view this topic, can you watch video?

Forum Jump:

Users browsing this thread: 1 Guest(s)