![]() |
Quote:
Pretty new to the vB world, That's in clientscript/vbulletin_texteditor.js? or the templates? |
Is their anyway to get this to work with Vidiac video services?
|
Quote:
|
Thanks, works great.
http://www.vectra-sri.co.uk/forum/te...code-t330.html I used this icon for the video though http://vectra-sri.co.uk/images/video.jpg |
When you insert the new code above-
/** * insert link */ There are 3 different places in the .js folder that has the "insert link" coding, do you place the new code above all three different places or just a particular section? Also, when I "copy &paste" the new code into the .js folder, the format of the coding changes, could this have negative effects? Thanks in advance. |
Ok I am totoaly new to this---but how do I edit the vbulletin_texteditor.js ?
Thanks--like I say I new to alot of this. |
Ok---took a bit of reading--some cuss words but it now works perfect
Thanks!!!! |
Quote:
|
Quote:
|
Screen shots?
|
Quote:
|
Quote:
The one thing I would add to the instructions chad and its one thing I had to figure out(now granted somebody more used to these things might have had an easier time) was the fact you had to add the code in 3 places above. But like I say I am totoaly new to anything with javascript ;) /** * Insert Link */ |
Ok i modified this to a better way of doing this. Adding this code 3 or 4 times is not efficient enough for me and can get complicated. For those of you who want an easy way to do this follow this step.
in clientscript/vbulletin_textedit.js find Code:
case 'PHP': Code:
case 'VIDEO': now in the templates editor_toolbar_on and postbit_quickedit and showthread_quickreply find: Code:
<if condition="$show['img_bbcode']"> Code:
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_VIDEO"><img src="http://wwwstagemc.nhmccd.edu/resources/images/live/locations/mc/general/MC_video_icon.gif" width="21" height="20" alt="$vbphrase[insert_link]" /></div></td> Install the product file and thats it. Also if they highlight the URL it will add tags, if they highlight it but it doesnt have any type of video url it will tell them to select the entire url. if they dont highlight anything it will prompt them for something. |
does it work on all editors kungfu?
|
Quote:
I just updated the code too so it will detect if they highlighted the code right. Should be good to go now. So if they have google.com/blahblah it wont try to make a bbcode. This is basically what you had in all 3-5 spots but its just one spot now. Should work on all browsers as well. Just tested it again on different browsers and editors. Seems to work fine. I only tested a few video formats so if anyone tests it out and finds something wrong let me know or post im sure chad would be able to figure it out as well. |
I'm a little confuse with the instruction. I found four "insert link" and 1 "insert image." Do I insert the code above four "insert link" and the "insert image"
|
just do all 4
|
thanks chad,
Now there is a "insert link button on the text editor but when I click on it it doesn't do anything. |
your having a javascript error then.
|
how do i fix it? Doesn't "Inser Image" "Hyper Link" using the same java script? Those still working fine. :(
|
Sweet mod! Got it working in the advanced template, however the quickreply it will not work in. When you click in the quickreply it does not allow you to enter the link. Here is the code
Code:
</if> |
Nevermind found it in the js file forgot to find all three "insert link":o
|
Quote:
make sure u follow instructions. |
Hi there, my video button is broken now... I guess the server that had the video button removed it..
http://wwwstagemc.nhmccd.edu/resourc...video_icon.gif This is the broken link to the original... Where is the button and how to I fix it to work on my local site? Thanks, Sean |
Quote:
youll need to find that image and replace it with your own. |
Got it working! Thanks for the help and the very cool mod Mr_Chad!!
Sean |
I must be really new to this cuase I can not seem to find the location of that code I need to add to, can someone kick my a** in the right direction please?
Mark, Thank You! |
Quote:
https://vborg.vbsupport.ru/showpost....&postcount=215 Its only one place and easier to find. |
"clientscript/vbulletin_textedit.js" this is what i cant seem to find, lol ofcoarse now that i am telling u this its probably right in front of me. lol
Mark, |
Quote:
|
Quote:
where mine gives you an input box to enter it in there. |
Hi Mr Chad,
I have now found it better with the install info on the 1st post :) The only problem I'm having is that there is no Google video bbcode Do you know anywhere I can get it cos its not added it :( Thanks :) |
the XML should install it for you. Just remember to edit all of the bbcodes and re-save them.
|
can someone please post the video button. the original link is broken. I search in the graphics section and couldn't find any custom BBCode buttons.
as for the BBCodes. is there an autostart option? I don't know much about youtube or google videos |
I installed the product, and the only things that work or were installed as bbcode were metacafe, google video, and myspace.
The "product" is missing some things I guess. Chad, please upload your latest product please. |
FYI, I just re-imported the product hoping it would help. And no luck. :(
|
Quote:
Code:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}"></param><embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object> |
Quote:
|
OK I lost the image for this somehow. Wasnt there a button to click. I now have text that says input link?
|
Quote:
I have already pressed edit and save on them all apart from the Google one cos its not there lol Quote:
|
All times are GMT. The time now is 08:56 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|