Not logged in. · Lost password · Register
Forum: Customising UNB Modifications and plug-ins Plug-in gallery RSS
ABBC for WoW Itemstats
Adds an abbcode to display allakhazam's Itemstats as a mouseover tooltip
Page:  previous  1  2  3  next 
tuzhak #16
Member since Apr 2007 · 3 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 7255
Thanks for plug-in. ;-)
Css Page | Daily Css | zonenoktaorg ödüllü seo yarışması | Kuzey Ruzgari | Fesupanallah | Pusat | Kurtlar Vadisi Pusu | Suleyman | Pars Narko Terör | Ölüm Çiçekleri
Avatar
bestreaction #17
User title: mathematics
Member since Apr 2007 · 52 posts · Location: istanbul
Group memberships: Members
Show profile · Link to this post
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/5_tXcRYOYZ0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/5_tXcRYOYZ0" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

why dont anybody see that...so can i see video when i dont go to youtube
Avatar
Yves (Administrator) #18
User title: UNB developer & webmaster
Member since Jan 2004 · 3814 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
HTML code entered in a posting is not parsed by the board software, mainly for reasons of security and simple text formatting. You'll need to register a new BBCode tag with the mentioned plug-in to use your custom HTML code. You'll need intermediate PHP and basic HTML knowledge for that.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Avatar
bestreaction #19
User title: mathematics
Member since Apr 2007 · 52 posts · Location: istanbul
Group memberships: Members
Show profile · Link to this post
one example?

for <object></object>...
Avatar
Dark Spot in the Corner #20
Member since Nov 2005 · 61 posts · Location: Der wilde Südwesten! =)
Group memberships: Members
Show profile · Link to this post
Thanks for hijacking my Thread. :rolleyes:


Well, i'll be trying to be helpful anyways:

  • Look inside your extras/plugins folder and copy abbctags.php to your unb_lib/plugins folder, and rename it to abbc_youtube.php.
  • Then open the abbc_youtube.php file with the text editor of your choice.
  • Delete everything between line 20 and 109 (including) and replace it with:

  1. $ABBC['Tags']['youtube'] = array(
  2.  'htmlopen0'  => '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/$1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed>',
  3.  'htmlcont0'  => '',
  4.  'htmlclose0' => '</object>',
  5.  'textcont0'  => 'http://www.youtube.com/v/$1',
  6.  'htmlblock'  => true,
  7.  'minparam'   => 0,
  8.  'maxparam'   => 0,
  9.  'openclose'  => true,
  10.  'nocase'     => true,
  11.  'nested'     => false,
  12.  'proccont'   => true,
  13.  'subset'     => ABBC_CUSTOM
  14. );

  • Now, inside a posting, you can use [youtube]JpBGRA6HHtY[/youtube] to embed the flash.
Avatar
bestreaction #21
User title: mathematics
Member since Apr 2007 · 52 posts · Location: istanbul
Group memberships: Members
Show profile · Link to this post
thanks very much ...but very hard for my users...[youtube]JpBGRA6HHtY[/youtube]...i dont say this code enough...they are using direct embeded link  and copy paste...

and..can i make a button for youtube tag...like image code smileys special char...?
This post was edited on 2007-05-08, 20:43 by bestreaction.
Avatar
Dark Spot in the Corner #22
Member since Nov 2005 · 61 posts · Location: Der wilde Südwesten! =)
Group memberships: Members
Show profile · Link to this post
Quote by bestreaction:
thanks very much ...but very hard for my users...[youtube]JpBGRA6HHtY[/youtube]...i dont say this code enough...they are using direct embeded link  and copy paste...
I would not allow direct HTML input. Honestly, i think this is as simple as you can make it. ;-)

Quote by bestreaction:
and..can i make a button for youtube tag...like image code smileys special char...?
Yes, you can. Just look for a hook, or edit the template file itself. Look at the source files to see how it is done.
Avatar
Yves (Administrator) #23
User title: UNB developer & webmaster
Member since Jan 2004 · 3814 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
There's currently no hook for adding/altering post editor buttons.

Yes, he can do that, but then again, I think he cannot. This may be a difficult task to do for a PHP novice...
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Avatar
Draghmar #24
Member since Dec 2006 · 63 posts
Group memberships: Members
Show profile · Link to this post
Hmm...I did that and I didn't know anything about PHP. :D It's possible to add this button without knowledge by coping existing buttons and changing them to whatever you want. ;) I added two new colors and one button for tag I created. :-p
"I have come up with a plan so cunning you could stick a tail on it and call it a weasel."
Avatar
bestreaction #25
User title: mathematics
Member since Apr 2007 · 52 posts · Location: istanbul
Group memberships: Members
Show profile · Link to this post
i will edit which file?
Avatar
Draghmar #26
Member since Dec 2006 · 63 posts
Group memberships: Members
Show profile · Link to this post
From what I remember, you have to edit:
unb_lib\designs\{name_of_design}\tpl\posteditor.html - buttons are around line 145;
unb_lib\designs\{name_of_design}\tpl\postlist.html - buttons are around line 88; this file is for 'Fast reply' option;
unb_lib\designs\{name_of_design}\js\posteditor.js.html - at line 58 is UnbEditorDoCmd function
I think that's it. I simply copied existing lines with changed parameters and it works. :) Of course you may add your own title for button by adding proper line in:
unb_lib\lang\{language}\posteditor.php
"I have come up with a plan so cunning you could stick a tail on it and call it a weasel."
Avatar
bestreaction #27
User title: mathematics
Member since Apr 2007 · 52 posts · Location: istanbul
Group memberships: Members
Show profile · Link to this post
thanks...i ll try..
Avatar
bestreaction #28
User title: mathematics
Member since Apr 2007 · 52 posts · Location: istanbul
Group memberships: Members
Show profile · Link to this post
yes i did :-D  www.iumat.net ...insallah forum isnt down...
kromagg #29
Member since Sep 2007 · 1 post
Group memberships: Members
Show profile · Link to this post
Hi, I'll certainly try this out. I was just wondering if there's any plans to extend this code to include the other database sites, such as thottbot and wowhead?
Avatar
Dark Spot in the Corner #30
Member since Nov 2005 · 61 posts · Location: Der wilde Südwesten! =)
Group memberships: Members
Show profile · Link to this post
Quote by kromagg on 2007-09-15, 16:17:
Hi, I'll certainly try this out. I was just wondering if there's any plans to extend this code to include the other database sites, such as thottbot and wowhead?

Indeed, there is. ;-)

I'm currently working on an XML-Extractor Tool that is able to query foreign XML Feeds, parse and cache the data. Currently i'm doing it for Character Data from the live armory. I'm already at work to extend this to items. Both from the original armory and wowhead, since they both provide XML feeds.

If you want to take a look at the plugin so far, you can do so at: http://www.ravenous-guild.de :-D
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Page:  previous  1  2  3  next 
Go to forum
This board is powered by the Unclassified NewsBoard software, 20110527-dev, © 2003-2011 by Yves Goergen
Page created in 236.4 ms (139.1 ms) · 139 database queries in 143.2 ms
Current time: 2012-02-08, 09:51:52 (UTC +01:00)