vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - MySpace/YouTube/Google Video Addon (best yet) (https://vborg.vbsupport.ru/showthread.php?t=133235)

BigJimTheLug 12-08-2006 06:30 AM

Quote:

Originally Posted by AWJunkies (Post 1134318)
So if this mod good to go now? Works for normal edit mode not wys*. Quick edit and full etc and so on and quick post and full post?

oh, it doesnt work with wys!

So I need to be on normal edit?

BigJimTheLug 12-08-2006 04:42 PM

Quote:

Originally Posted by rolandogomez (Post 1133517)
A few things, in your instructions, please add that there are about four or five places (lost count) to add the code after

/**
* Insert Link
*/

In addition, each time you add a BB code it asks you for an example, that would be beneficial for us noncoder types.

On the image that shows up in the reply boxes, it's this link: http://wwwstagemc.nhmccd.edu/resourc...video_icon.gif is that smart to do? I look at that as bandwith theft. You might tell people to download that image and where to change the code with your own server URL of the image.

Now, with that said, did everything, but it doesn't work for me, does nothing other than display the image. Something doesn't make the javascript work I'm guessing, perhaps VBSEO? Let me know, seems like a nice hack, thanks rg.


oh yes, I too have vbseo.....

This might be the problem then...I'm a noncoder, but alas, don't want my scripting skills to be flaky!


please update

BigJimTheLug 12-08-2006 04:54 PM

ok, another problem with this..

After installing this hack,
none of my editor buttons work.

What is up with that?

DId do something wrong?

Im going to start all over and then come back..if not..forget this hack...

BigJimTheLug 12-08-2006 05:05 PM

Dude, this doesn't seem to work for me.

I've installed the proper php code in all places, and edited all templates.

All that happened was that all of the buttons on my editor template stopped working..........

I do run vbseo.....

don't know if that is a problem or not...

doesn't work...

good hack, but needs work....any suggestions are welcomed! Thank!

BigJimTheLug 12-08-2006 05:16 PM

It looks like the problem with me occurs in the

Open clientscript/vbulletin_textedit.js

loss of button functions....

BigJimTheLug 12-08-2006 05:24 PM

ok, this mod intended for all versions of

vbulletin?

I removed all files from the

Quote:

Open clientscript/vbulletin_textedit.js
and all buttons are working again...

Something is wrong with the coding...

I run vbseo and vb3.6.4

silks 12-08-2006 05:59 PM

this is correct - i changed my js script back to normal and the buttons work again

anyway round this as i really like this on my site?

thx:D

^SuiCyde^ 12-09-2006 12:46 AM

nice anyway you can add one more?

www.dailymotion.com

they're files are in this format.....

http://www.dailymotion.com/flash/flv...atSection=blog

so as you can imagine i'm having trouble figuring out how to set the {param}

lazytown 12-09-2006 01:01 AM

I think vbseo must be causing problems or you didn't apply the template edits correctly (they are confusing). working fine for me on vb 3.6.4.

-vissa

BigJimTheLug 12-09-2006 02:51 PM

I'm guess it is a vbseo problem...

man...!?!?!!

Mr Chad 12-09-2006 03:03 PM

no, vb SEO works fine for me

TCattitude 12-09-2006 06:00 PM

Quote:

Originally Posted by Mr Chad (Post 1134108)
if i put it there will it work in both normal and WYSIWYG mode? or does it need to be in both places?

I put the changes in both places.
Working without problems in wysiwyg and normal editor.

cobradude 12-10-2006 06:44 PM

What are you guys using to edit the js script? As others have noted, as soon as I edit the script it falls over and I get an error on the page and the buttons don't work. Back out the changes and things are back to normal....

Mr Chad 12-11-2006 12:12 AM

try new code

BigJimTheLug 12-11-2006 04:58 AM

Quote:

Originally Posted by Mr Chad (Post 1136061)
try new code


new code...?

can you be more precise and expand on this?
thanks:)

francohungary 12-11-2006 08:12 AM

Anyone still having problems with this? I'd really like to get this to work - looks like a great feature but the video icon does nothing when clicked (using IE 6 browser - default security). The rest of my buttons work fine.

cobradude 12-11-2006 02:02 PM

I am having problems still. As soon as I edit the script it no longer works. I get an error on the page that indicates the vb_text_editor is not defined. I'm using wordpad to edit the file and wondering if somehow it is corrupting it?

Mr Chad 12-14-2006 01:58 AM

ok if that JS code doesnt work for you use this (this one is the basic one):

Code:

                /**
                * Insert Video Link
                */
                this.createvideolink = function(e, url)
                {
                        var my_colors=prompt("MySpace or YouTube or Google video URL","");
                        if ((my_colors=="") || (my_colors==null))
                        {
                                  alert("Please Enter The Full URL!");
                        }
                        else
                        {
                                if (my_colors.match("www.youtube.com"))
                                {
                                        var col_array=my_colors.split("?v=");
                                        var part_num=1;
                                        return this.insert_text("[youtube]" + col_array[part_num] + "[/youtube]");
                                }
                                else if (my_colors.match("myspace.com"))
                                {
                                        if (my_colors.match("videoID="))
                                        {
                                                var col_array=my_colors.split("videoID=");
                                        }
                                        else
                                        {
                                                var col_array=my_colors.split("videoid=");
                                        }
                                        var part_num=1;
                                        return this.insert_text("[myspace]" + col_array[part_num] + "[/myspace]");
                                }
                                else if (my_colors.match("video.google.com"))
                                {
                                        var col_array=my_colors.split("docid=");
                                        var part_num=1;
                                        return this.insert_text("[googlevideo]" + col_array[part_num] + "[/googlevideo]");
                                }
                                else
                                {
                                          alert("Please Enter The Full URL!");
                                }
                        }
                };

add that code above these two spots:
Code:

/**
* Insert Link
*/

Code:

        /**
        * Insert Image
        *
        * @param        event        Event object
        * @param        string        (Optional) Image URL
        *
        * @return        boolean
        */


paypal 12-15-2006 03:00 AM

is there a way to add an rss feed to the forum, revver.com has an affiliate program allowing rss feed to website, maybe this is possible for Forum aswell ... thankyou

awaiting response

Arjan 12-15-2006 07:23 AM

Quote:

Originally Posted by MARKETPROFITS (Post 1135168)
I'm guess it is a vbseo problem...

man...!?!?!!

Nope, works fine for the wysiwyg editor with VBSEO latest RC on my site.
But if your buttons stop working you probably have this error message in the statusbar. Open it to find out what is wrong.

And yes, when something is wrong with the JS then all buttons stop working at once, since the editor cannot be initialised.

dtdesign 12-17-2006 09:35 AM

I'm having a bit of flakiness with it. It works fine for my own admin login but for my test account it didn't seem to like it all.

Is there anyways to get support for Streetfire http://videos.streetfire.net/

tschai 12-18-2006 06:13 PM

Nice add-on: this could easly be 'tweaked' in a lite-anyMedia version...;)

*installed*

Murty 12-18-2006 10:19 PM

Would it be possible to use this for a users profile?

dprundle 12-19-2006 09:17 PM

thx m8, it is installed.

Bod68 12-20-2006 03:30 AM

Thanks all edits done and works great :)

^SuiCyde^ 12-20-2006 08:18 PM

Quote:

Originally Posted by dtdesign (Post 1140233)
I'm having a bit of flakiness with it. It works fine for my own admin login but for my test account it didn't seem to like it all.

Is there anyways to get support for Streetfire http://videos.streetfire.net/


wouldn't it just be......

Code:

title: streetfire
tag: streetfire
replacement:
<embed src="http://videos.streetfire.net/{param}.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>


Murty 12-20-2006 08:18 PM

Quote:

Originally Posted by Murty (Post 1141243)
Would it be possible to use this for a users profile?

Bump

^SuiCyde^ 12-20-2006 09:39 PM

hmm.....on my site, i have the button and none of the other javascript has stopped working......but the video insert button doesn't respond neither in quick reply or advanced edit area.......

Saulie 12-21-2006 07:14 PM

Quote:

Originally Posted by ^SuiCyde^ (Post 1142483)
hmm.....on my site, i have the button and none of the other javascript has stopped working......but the video insert button doesn't respond neither in quick reply or advanced edit area.......

Exact same problem here.

adonfun 12-27-2006 06:00 PM

Quote:

Originally Posted by Mr Chad (Post 1132137)
added meta cafe, also no demos because you need to be logged in to post a topic on my site.

tell me if metacafe works.

Why not add some screenshots so that we can see what is added/displayed when someone ads a video using yourmod :)

noonespecial 12-27-2006 09:53 PM

I had to edit a template to change:

clientscript/vbulletin_textedit.js

to

/clientscript/vbulletin_textedit.js

Everything worked fine after that (and having added the code before EVERY "insert link" in the textedit.js file).

Works fine: http://www.absolutepunk.net/showthread.php?t=199642

There's examples in that thread for those curious how it ends up looking.

I also ended up creating new "button" icon. I've attached it - for anyone that wants to use it.

MrPHD 12-27-2006 11:04 PM

Quote:

Originally Posted by Mr Chad (Post 1132216)
cant give a demo because you need to login as a user not a guest.

but if you wana signup to see it go for it.

http://beasttoast.com/forum/register.php

no email verification enabled

go here http://www.phdvbulletin.com/forum/sh...hp?p=96#post96

moonface 12-28-2006 02:57 PM

this is the best!!!

MajorFm.com 12-28-2006 03:22 PM

I installed this, then very quickly uninstalled it... didn't work at all...

rolandogomez 12-29-2006 04:09 AM

noonespecial,

For us noncoder types, can you explain step by step what you did, and be a bit more elaborate on this,
Quote:

I had to edit a template to change:

clientscript/vbulletin_textedit.js

to

/clientscript/vbulletin_textedit.js

Everything worked fine after that (and having added the code before EVERY "insert link" in the textedit.js file).
Thanks, and Happy Holidays, rg sends!

smoknz28 12-29-2006 02:08 PM

Hahahahaa.....man, this thread kills me....

This is to be the "best yet", but there's so many isssues I see going on with using this hack.

I'm running a different hack for YouTube and Google Video, I'm not really impressed by it....but it hasn't failed me yet. The coder never put..."best yet" either.

I am curious how different this hack is from all the others to make the coder think it's the "best yet".

Mr Chad 12-30-2006 07:12 PM

i don't have that much time to explain how to get this to work to a noncoder.

But if you know what your doing you should be fine.

ssvp 12-30-2006 10:12 PM

To get around the IE issue. Just add http://yourforumurl to your trusted sites in IE and Untick the SSL box at the bottom of that screen..

rolandogomez 12-31-2006 01:16 AM

Mr. Chad--that's the saddest and most insulting thing I've ever heard from a coder in over 9-years I've received help. I'm not asking you to code my site, though I don't mind paying "a coder" for the work and I often have when I could not figure it out for myself.

I would know somewhat "what I was doing" if your explanation wasn't so vague, you stated, "I had to edit a template to change:

clientscript/vbulletin_textedit.js

to

/clientscript/vbulletin_textedit.js

I justed wanted to know "what template? and where?" as most coders and contributors that post their hacks here do that very well.

For someone claiming "best yet" and "i don't have that much time to explain how to get this to work to a noncoder," it only indicates to me you really don't care if anyone uses your hack or not. Thanks anyway, and if anyone ever needs photography instructions, I don't mind helping even though you're not a "pro " photographer, in fact I wrote two books on it available at Barnes & Nobels, Borders and many other places because I'm passionate about my craft and it feels better to spread the gospel of my craft than hinder it.

http://www.glamour1.com/private/ostrich1.jpg

Wishing you the best, and Happy New Year! rg sends!

kdemonte 01-02-2007 01:10 AM

Wow! How insulting are you Mr. Chad? So glad I've wasted so much time trying to get this hack to work!


All times are GMT. The time now is 09:24 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
  • Page Generation 0.01565 seconds
  • Memory Usage 1,842KB
  • 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete