Anonymous,

Please Login or Register
Download Nuke Evolution Xtreme today for a CMS you can enjoy using and sharing with your friends!
[ Download Now ]
Forum Index  ·  Search  ·  Usergroups  ·  Edit your profile  ·  Members  ·  Login, Check Messages
Arcade  ·  Ranks  ·  Staff  ·  Statistics  ·  Board Rules  ·  Forum FAQ  ·  Log in

Search for at
Evolution-Xtreme Advanced Search


+  
Latest Site News   Next 5 >>  
 Forum   Author   Replies   Last Post 
File Repository 1.0.0 Released Announcements! Lonestar 0 Tue Apr 26, 2016 6:44 am
Lonestar View latest post
Image Repository Released Announcements! Lonestar 1 Mon Oct 27, 2014 7:39 pm
Lonestar View latest post
So what happened to us? Announcements! SgtLegend 0 Tue May 06, 2014 12:32 am
SgtLegend View latest post
[PROGRESS] Nuke Evolution Xtreme 2.0.9e Announcements! SgtLegend 2 Sun May 27, 2012 6:25 pm
SgtLegend View latest post
European Cookie Law Announcements! SgtLegend 0 Sat May 26, 2012 7:33 am
SgtLegend View latest post
   
Recent Topics   Next 15 >>  
 Forum   Author   Replies   Last Post 
Evo staff looking for some volunteers. Community Announcements coRpSE 20 Thu Jul 02, 2015 9:19 am
Depresjon2 View latest post
Evo Xtreme 2.0.9D Updated for PHP 5.6 General Support coRpSE 121 Thu Mar 23, 2017 3:57 pm
casterdon View latest post
[ MOD ] - Honeypot V2.2 AntiBot Module Security coRpSE 106 Tue Nov 22, 2016 11:30 am
coRpSE View latest post
Possible new Admin area layout Comments and Suggestions Lonestar 18 Wed Sep 14, 2016 11:37 am
Blackou View latest post
jQuery update General Support Lonestar 2 Wed May 11, 2016 4:49 pm
Charles64 View latest post
Deutsche Sprachdatei - german language files German DT50R 7 Thu Jan 28, 2016 7:04 am
DT50R View latest post
[FIX] Correct Cookie Settings (Invalid Session Error) Quick fixes killigan 110 Fri Mar 20, 2015 1:06 pm
Macdaddy View latest post
babstats nuke evo PHP 5.6 Modules pd35 4 Mon Mar 27, 2017 5:45 pm
Ragonese View latest post
Looking for coRpSE? He is gone till May. General Chat coRpSE 4 Sun Mar 26, 2017 6:50 pm
coRpSE View latest post
Think I got hit with malware somehow General Support bobdude 10 Sun Mar 26, 2017 6:44 pm
coRpSE View latest post
error log Bugs Redcougarxr7 31 Tue Mar 21, 2017 8:46 pm
coRpSE View latest post
I seem to be locked out of my website Smile General Support storm 4 Sat Mar 11, 2017 12:29 pm
coRpSE View latest post
Site gone off General Support GI_ 3 Fri Mar 03, 2017 11:21 am
Lonestar View latest post
Norwegian Language Multilingual Support dogbone 0 Wed Mar 01, 2017 10:43 pm
dogbone View latest post
Arcade General Support Reaper2388 59 Sun Feb 26, 2017 7:13 pm
pholix View latest post

YouTube BBCode changes.
Goto page 1, 2, 3, 4  Next
 
Post new topic    Reply to topic    printer-friendly view   Thank Post    Evolution-Xtreme Forum Index -> General Support
View previous topic :: View next topic  
Author Message
Lonestar
Site Admin
Site Admin
Xtreme Developer
Xtreme Developer




Joined: Oct 09, 2008
Posts: 425

Reputation: 58.3
votes: 3
blank.png


Status: Offline
PostPosted: Sun Apr 19, 2015 1:39 pm Post subject: No icon YouTube BBCode changes. Reply with quote

 Okay,  I  have  modified  the  YouTube  BBCode  button,  Now  when  a  URL  is  enter  the  video  URL,  The  BBCode  will  now  grab  just  the  video  ID.  
 
 Here  is  a  link  Porthos  provided  in  his  post.  Posting  this  YouTube  link
 
 
                                                 
Code:                
https://www.youtube.com/watch?t=82&v=IwfUnkBfdZ4                

 
 Will  now  result  in  the  following
 
 
                                                 
Code:                
[youtube]IwfUnkBfdZ4[/youtube]                

 
 The  above  link  will  now  display  like  the  video  below
 
                     
  [Watch  On  YouTube]
 
 
 If  you  can  not  see  the  above  video,  Just  above  this  text,  A  browser  cache  clear  will  be  required  to  update  the  JavaScript  and  TPL  files.
 
 I  have  left  the  old  YouTube  link  conversions  alone,  So  you  will  NOT  need  to  go  through  each  forum  post  and  update  links.
 
 Enough  rambling  on,  Here  is  what  you  need  to  do  to  get  this  working.
 
 Backup  the  following  files  before  attempting  anything.
 
 
                                                 
Code:                
includes/bbcode.php
 modules/Forums/bbcode_box/add_bbcode.js
 modules/Forums/bbcode_box/bbcode_box.js
 Themes/YOUR_THEME_NAME_HERE/forums/bbcode.tpl                

 
 And  update  the  file  above  with  the  files  attached  below,  Be  sure  to  manually  update  each  theme  with  the  bbcode.tpl.
 
 The  bbcode.tpl  is  completely  universal,  So  it  will  work  with  all  your  themes.
 
 If  anyone  has  trouble  doing  these  updates,  Give  me  a  shout  I'll  help  you  get  it  sorted  :)
 
 EDIT:  If  you  have  my  Image  Repository  installed,  You  will  have  to  do  the  bbcode_box.js  edits  again.  Sorry.


Last edited by Lonestar on Tue Apr 05, 2016 10:24 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Thankful People
1 user(s) is/are thankful for this post.
Shadz



Gender: Gender:Male
Joined: Aug 15, 2012
Age: 30
Posts: 296
Location: Nottingham
Reputation: 38
votes: 1
uk.png


Status: Offline
Web Control Panel: cPanel
PostPosted: Sun Apr 19, 2015 5:24 pm Post subject: No icon Re: YouTube BBCode changes. Reply with quote

 Any  chance  you  can  tell  us  what  the  changes  are  mate.
 
 I  have  made  changes  to  those  files  and  if  I  use  your  pre-edited  files  I  will  loose  those  changes  so  
 would  like  to  do  the  changes  above  manually.
Back to top
View user's profile Send private message Visit poster's website
Lonestar
Site Admin
Site Admin
Xtreme Developer
Xtreme Developer




Joined: Oct 09, 2008
Posts: 425

Reputation: 58.3
votes: 3
blank.png


Status: Offline
PostPosted: Sun Apr 19, 2015 6:50 pm Post subject: No icon Re: YouTube BBCode changes. Reply with quote

 I  will  type  them  up  in  the  morning  m8.
Back to top
View user's profile Send private message Send e-mail
Sponsor
webstorm.jpg
kadcaper



Gender: Gender:Female
Joined: Mar 17, 2015
Posts: 23

Reputation: 2.9
blank.png


Status: Offline
PostPosted: Sun Apr 19, 2015 8:02 pm Post subject: No icon Re: YouTube BBCode changes. Reply with quote

 Hi,
 I  installed  this  but  it  didn't  work  Sad
 I'm  getting  an  error  at  the  top  of  my  page  (see  screen  shot)
 I  cleared  the  sites  cashe  as  well  but  no  luck......
 Any  idea  from  the  screen  shot  what  went  wrong?  
 I  installed  it  to  both  my  themes  evo  &  f-liquid.
 All  BB  codes  appear  to  be  broken  now  as  well.
Back to top
View user's profile Send private message
Lonestar
Site Admin
Site Admin
Xtreme Developer
Xtreme Developer




Joined: Oct 09, 2008
Posts: 425

Reputation: 58.3
votes: 3
blank.png


Status: Offline
PostPosted: Sun Apr 19, 2015 8:22 pm Post subject: No icon Re: YouTube BBCode changes. Reply with quote

 did  you  clear  your  browser  cache?
Back to top
View user's profile Send private message Send e-mail
kadcaper



Gender: Gender:Female
Joined: Mar 17, 2015
Posts: 23

Reputation: 2.9
blank.png


Status: Offline
PostPosted: Sun Apr 19, 2015 8:39 pm Post subject: No icon Re: YouTube BBCode changes. Reply with quote

 I  didn't  clear  my  browsers  cashe  only  the  sites  cashe  because  I  figured  if  I  could  view  the  video  you  posted  above  I'd  be  fine  lol,  hmmmmm  my  bad,  I'll  try  again  in  a  few  days  if  it  requires  all  my  users  to  clear  their  cashes  because  I  think  they're  starting  to  hate  me  lol  for  making  changes  that  requires  them  to  clear  their  cookies  :)
 
 Ty  for  this  fix  as  well  as  the  fast  reply  Smile
Back to top
View user's profile Send private message
Sponsor
webstorm.jpg
Lonestar
Site Admin
Site Admin
Xtreme Developer
Xtreme Developer




Joined: Oct 09, 2008
Posts: 425

Reputation: 58.3
votes: 3
blank.png


Status: Offline
PostPosted: Wed Apr 22, 2015 3:14 pm Post subject: No icon Re: YouTube BBCode changes. Reply with quote

 Here  are  the  code  changes,  Sorry  for  the  delay.
 
 Be  sure  to  make  a  backup  of  each  file  before  making  changes.
 
 OPEN
 
                                                 
Code:                
includes/bbcode.php                

 
 FIND
 
                                                 
Code:                
$patterns[]  =  "#\[youtube\]http://[A-Za-z0-9.]{2,5}.youtube.com/watch\?v=([0-9A-Za-z-_]{11})[^[]*\[/youtube\]#is";
      $replacements[]  =  $bbcode_tpl['youtube'];                

 
 BEFORE  ADD
 
                                                 
Code:                
$patterns[]  =  "#\[youtube\]([0-9A-Za-z-_]{11})[^[]*\[/youtube\]#is";
     $replacements[]  =  $bbcode_tpl['youtube'];                

 
 SAVE  THE  FILE  AND  UPLOAD.
 
 OPEN
 
                                                 
Code:                
modules/Forums/bbcode_box/add_bbcode.js  &  bbcode_box.js                

 
 NOTE:  Be  sure  to  do  the  following  edits  to  both  files  shown  above
 
 FIND
 
                                                 
Code:                
function  BBCyoutube()  {
     var  FoundErrors  =  '';
     var  enterURL     =  prompt("Give  the  URL  of  the  page  containing  the  YouTube  movie",  "http://");
     if  (!enterURL)      {
         FoundErrors  +=  "You  did  not  give  a  URL";
     }
     if  (FoundErrors)   {
         alert("Error:"+FoundErrors);
         return;
     }
     var  ToAdd  =  "[youtube]"+enterURL+"[/youtube]";
     PostWrite(ToAdd);
 }                

 
 REPLACE  WITH
 
                                                 
Code:                
function  BBCyoutube()  
 {     
     var  FoundErrors  =  '';
     var  enterURL  =  prompt("Give  the  URL  of  the  page  containing  the  YouTube  movie",  "http://");
     if  (!enterURL)
     {
         alert('Error:  You  did  not  give  a  URL');
         return;
     }
     
     matches  =  enterURL.match(/(?:v=|v\/|embed\/|youtu\.be\/)(.{11})/);
     if(matches)
     {
         PostWrite('[youtube]'  +  matches[1]  +  '[/youtube]');  
     }
     else
     {
         alert('Error:  Youtube  video  id  not  found.');
     }
 }                

 
 SAVE  AND  UPLOAD  BOTH  FILES.
 
 OPEN
 
                                                 
Code:                
Themes/YOUR_THEME/forums/bbcode.tpl                

 
 FIND
 
                                                 
Code:                
<!--  BEGIN  youtube  -->  &  <!--  END  youtube  -->                

 
 REPLACE  THE  CODING  INSIDE  THESE  COMMENTS  WITH  THE  CODING  BELOW
 
                                                 
Code:                
<iframe  width="640"  height="360"  src="https://www.youtube.com/embed/{YOUTUBEID}?rel=0&vq=hd1080"  frameborder="0"  allowfullscreen></iframe>  
 <br  />  
 <a  href="https://www.youtube.com/watch?v={YOUTUBEID}"  target="_blank">[Watch  On  YouTube]</a><br  />                  

 
 The  reason  i  can  not  give  you  a  specific  thing  to  look  for,  Is  some  of  you  will  have  the  YouTube  fix  that  Corpse  did  a  while  back  and  Some  of  you  will  not.
 
 If  anyone  has  problems,  ZIP  up  the  files,  And  i  will  do  the  changes  for  you.
 
 BBCode  changes  made  02/06/2015
 
 Front  Page  Youtube  Video  Changes.
 
 OPEN
 
                                                 
Code:                
includes/bbcode.php                

 
 FIND
 
                                                 
Code:                
#  [flash  width=  height=  loop=  ]  and  [/flash]  code..
                  $patterns[]  =  "#\[flash  width=([0-6]?[0-9]?[0-9])  height=([0-4]?[0-9]?[0-9])\]((ht|f)tp://)([^  \?&=\"
 \r\t<]*?(\.(swf|fla)))\[/flash\]#si";                

 
 BEFORE  ADD
 
                                                 
Code:                
#  [youtube]Video  ID[/youtube]  code..
             $patterns[]  =  "#\[youtube\]([0-9A-Za-z-_]{11})[^[]*\[/youtube\]#is";  
                 $replacements[]  =  '<object  width="640"  height="360">  
     <param  name="movie"  value="https://www.youtube.com/v/\\1?rel=0&vq=hd1080"   />  
      <param  name="allowFullScreen"  value="true"  /><param  name="allowscriptaccess"  value="always"  />  
      <embed  src="https://www.youtube.com/v/\\1?rel=0&vq=hd1080"  type="application/x-shockwave-flash"  width="640"  height="360"  allowscriptaccess="always"  allowfullscreen="true"></embed>  
 </object>  
 <br  />  
 <a  href="https://www.youtube.com/watch?v={YOUTUBEID}"  target="_blank">[Watch  On  YouTube]</a><br  />';                

 
 
 Updated  by  coRpSE,  added  in  the  iframe  changes  -  4/5/2016


Last edited by Lonestar on Wed Dec 21, 2016 3:02 am; edited 4 times in total
Back to top
View user's profile Send private message Send e-mail
Shadz



Gender: Gender:Male
Joined: Aug 15, 2012
Age: 30
Posts: 296
Location: Nottingham
Reputation: 38
votes: 1
uk.png


Status: Offline
Web Control Panel: cPanel
PostPosted: Sat Apr 25, 2015 7:38 pm Post subject: No icon Re: YouTube BBCode changes. Reply with quote

 I  made  an  edit  to  my  code  so  that  it  plays  the  video  in  HD  Automatically  if  its  available  but  
 still  retains  your  edits  as  well,  every  time  I  try  and  post  my  edit  on  here  it  just  strips  the  code
 back  to  nothing  for  some  reason  even  in  the  [Code]  brackets.  Doesn't  do  it  on  my  site  but  does  on  this  
 one  which  is  weird.
Back to top
View user's profile Send private message Visit poster's website
Lonestar
Site Admin
Site Admin
Xtreme Developer
Xtreme Developer




Joined: Oct 09, 2008
Posts: 425

Reputation: 58.3
votes: 3
blank.png


Status: Offline
PostPosted: Sun Apr 26, 2015 6:47 am Post subject: No icon Re: YouTube BBCode changes. Reply with quote

 Did  you  clear  your  Browser  cache?
 
 If  you  cant  get  them  to  work,  Send  me  a  temp  FTP  and  i  will  make  the  changes  for  you.
 
 I  have  these  edits  running  on  4  of  the  site  i  admin  and  all  work  perfectly.
Back to top
View user's profile Send private message Send e-mail
Sponsor
webstorm.jpg
Shadz



Gender: Gender:Male
Joined: Aug 15, 2012
Age: 30
Posts: 296
Location: Nottingham
Reputation: 38
votes: 1
uk.png


Status: Offline
Web Control Panel: cPanel
PostPosted: Sun Apr 26, 2015 1:56 pm Post subject: No icon Re: YouTube BBCode changes. Reply with quote

                                                   
Lonestar  wrote  (View  Post):                
Did  you  clear  your  Browser  cache?
 
 If  you  cant  get  them  to  work,  Send  me  a  temp  FTP  and  i  will  make  the  changes  for  you.
 
 I  have  these  edits  running  on  4  of  the  site  i  admin  and  all  work  perfectly.                

 
 No  that's  not  what  I  mean  mate,  I  meant  I  was  trying  to  post  the  code  changes  that  I  made  
 so  that  the  youtube  video  plays  in  HD,  as  the  code  you  gave  in  the  above  post  does  not  do  that.
 
 But  when  I  put  the  code  in  the  
                                                 
Code:                
                 
 brackets  on  this  site  is  does  not  work  properly  so  I  
 cant  share  my  edit  with  everyone.
Back to top
View user's profile Send private message Visit poster's website
Lonestar
Site Admin
Site Admin
Xtreme Developer
Xtreme Developer




Joined: Oct 09, 2008
Posts: 425

Reputation: 58.3
votes: 3
blank.png


Status: Offline
PostPosted: Sun Apr 26, 2015 2:17 pm Post subject: No icon Re: YouTube BBCode changes. Reply with quote

 Send  the  edit  to  me  on  Skype  m8.
Back to top
View user's profile Send private message Send e-mail
Bandit_001



Gender: Gender:Male
Joined: Dec 04, 2011
Posts: 11
Location: Alberta,Canada
Reputation: 1.4
canada.png


Status: Offline
PostPosted: Fri May 01, 2015 7:05 pm Post subject: No icon Re: YouTube BBCode changes. Reply with quote

 Everything  works  well  on  my  site  Lonestar.  Thank  you  for  dealing  with  that  and  making  it  slick.You  are  awesome!   Very Happy
Back to top
View user's profile Send private message Visit poster's website
Sponsor
webstorm.jpg
Maverick24




Joined: Oct 10, 2011
Posts: 28

Reputation: 3.5
blank.png


Status: Offline
PostPosted: Sat May 16, 2015 12:40 am Post subject: No icon Re: YouTube BBCode changes. Reply with quote

 hey  lonestar,  i  uploaded  your  files  to  my  site  and  my  youtube  block  still  doesn't  work...
 
 www.sfosquad.com
 
 youtube  block  is  at  the  bottom  of  the  web  page
Back to top
View user's profile Send private message
Lonestar
Site Admin
Site Admin
Xtreme Developer
Xtreme Developer




Joined: Oct 09, 2008
Posts: 425

Reputation: 58.3
votes: 3
blank.png


Status: Offline
PostPosted: Sat May 16, 2015 6:09 am Post subject: No icon Re: YouTube BBCode changes. Reply with quote

 The  above  are  the  changes  for  the  forums  m8,  I'll  add  the  front  page  changes  later  today,  when  i  get  back  from  hospital.
Back to top
View user's profile Send private message Send e-mail
Maverick24




Joined: Oct 10, 2011
Posts: 28

Reputation: 3.5
blank.png


Status: Offline
PostPosted: Sat May 16, 2015 12:27 pm Post subject: No icon Re: YouTube BBCode changes. Reply with quote

 ok  bro,  hope  everything  is  ok...
Back to top
View user's profile Send private message
Sponsor
phpstorm.jpg
Display posts from previous:
Post new topic  Reply to topic   printer-friendly view   Thank Post Evolution-Xtreme Forum Index ->  General Support All times are UTC - 5 Hours
Goto page 1, 2, 3, 4  Next
Page 1 of 4


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts anyone? 13 SCT951 6534 Fri Feb 20, 2015 11:35 am
Houdini_fl View latest post
No new posts Does anyone know about this exploit ? Should we be careful 8 Redcougarxr7 6657 Fri Jan 06, 2012 3:50 pm
w2ibc View latest post
No new posts Can Anyone Explain this Log Post 15 RafaS 9395 Wed Jul 06, 2011 1:45 pm
SouDou View latest post
No new posts anyone here use SSL ? 5 SnakZ 3418 Fri Feb 25, 2011 11:35 pm
SgtLegend View latest post
No new posts Can anyone tell me which version i have? 5 Evil_Blue 3786 Sat Jan 15, 2011 6:10 pm
metalsensi View latest post
 




Powered by phpBB © 2001, 2006 phpBB Group
EvoXtreme Theme by SgtLegend ©
Forums ©