Wedge

Public area => The Pub => Off-topic => Topic started by: DirtRider on September 17th, 2011, 04:37 PM

Title: I am looking for a favour
Post by: DirtRider on September 17th, 2011, 04:37 PM
Ok guys I am looking for a favour if possible I would really appreciate any help here. I am running vBulletin on my main forum and would like to add a custom BBC to do the following but have no idea on how to do it. What it should do is the following. When a member goes off topic within a thread he needs to post the following code [highjack] his text [/highjack] This should bring up a quote like box with the word Highjack above it and maybe the box in a light green or something. Here is a link on how it is done in vBulletin but its all Greek to me  :blush:

https://www.vbulletin.com/docs/html/main/bbcode_add 
Title: Re: I am looking for a favour
Post by: live627 on September 18th, 2011, 03:31 AM
Nice. I really do wonder who here has sufficient knowledge to do that.
Title: Re: I am looking for a favour
Post by: Arantor on September 18th, 2011, 03:35 AM
I've never used vBulletin as an administrator, and I suspect most here haven't.

I could do it in SMF/Wedge pretty much with my eyes shut though :whistle:
Title: Re: I am looking for a favour
Post by: Norodo on September 18th, 2011, 04:20 AM
This looks fairly straightforward... Maybe I'm just being a dummy and underestimating this? (probably), but, you could try something like:

Code: [Select]
Title: "Highjack"
Tag: "highjack"
Replacement: <div style="border: 1px solid black;"><p style="width: 100%; border-bottom: 1px solid black; margin: 0; padding: 3px;">Highjack</p><p style="background: #DDFFDD; margin: 0; color: black; padding: 3px;">{param}</p></div>
Use Option: No.
Button Image: Empty
Remove Tag If Empty?: Yes
Disable BB Code Within This BB Code?: No
Disable Word Wrapping Within This BB Code?: No

Arguably; "quote like box" can be pretty much anything (I'd need a screenie to choose the right colors / size) , and this HTML/CSS is probably not good or right or semantically right, but it works for me.

EDIT: Incidentally this is one of those things I never really looked enough into how you did in SMF, since it seemed very hard.
Title: Re: I am looking for a favour
Post by: DirtRider on September 18th, 2011, 08:31 AM
Quote from Norodo on September 18th, 2011, 04:20 AM
This looks fairly straightforward... Maybe I'm just being a dummy and underestimating this? (probably), but, you could try something like:

Code: [Select]
Title: "Highjack"
Tag: "highjack"
Replacement: <div style="border: 1px solid black;"><p style="width: 100%; border-bottom: 1px solid black; margin: 0; padding: 3px;">Highjack</p><p style="background: #DDFFDD; margin: 0; color: black; padding: 3px;">{param}</p></div>
Use Option: No.
Button Image: Empty
Remove Tag If Empty?: Yes
Disable BB Code Within This BB Code?: No
Disable Word Wrapping Within This BB Code?: No

Arguably; "quote like box" can be pretty much anything (I'd need a screenie to choose the right colors / size) , and this HTML/CSS is probably not good or right or semantically right, but it works for me.

EDIT: Incidentally this is one of those things I never really looked enough into how you did in SMF, since it seemed very hard.
That did the trick thanks  :cool:

 :lol: Looking at how easy it was I really feel blond now  :whistle:
Title: Re: I am looking for a favour
Post by: Nao on September 18th, 2011, 12:23 PM
We shall have a similar bbc creator in the future, for Pete moved the BBC definitions from Subs.php to the database... (Which makes it harder for me to update them since we don't have an editor yet :P)
Title: Re: I am looking for a favour
Post by: Norodo on September 18th, 2011, 03:50 PM
Quote from Nao on September 18th, 2011, 12:23 PM
We shall have a similar bbc creator in the future, for Pete moved the BBC definitions from Subs.php to the database... (Which makes it harder for me to update them since we don't have an editor yet :P)
Praise the lawd.

(I mean Nao)
Title: Re: I am looking for a favour
Post by: Nao on September 18th, 2011, 04:11 PM
Lawd? Are you familiar with the French area of Noisen maybe?
People over there used to call me "Gwand Patwon" (I even have a smiley with that name on it!), which could be translated as "Lawd"... :lol: (Well, it's "big boss", but "big boss" doesn't have any r's in it...)
Title: Re: I am looking for a favour
Post by: Norodo on September 18th, 2011, 04:39 PM
Sadly (?) I picked German in school.

Maybe you'd be "Nao der Größte"? (Note, I don't really know German, especially grammar. Der could very well be die or das or des or God knows. German grammar is insane.)
Title: Re: I am looking for a favour
Post by: Nao on September 18th, 2011, 05:08 PM
Or, in the same spirit, dew Gwößte :P
Title: Re: I am looking for a favour
Post by: Dr. Deejay on September 18th, 2011, 06:25 PM
Quote
German grammar is insane.
Dutch grammar is even more insane. I believe 90% of the people out here have issues with "d's" and "t's". Dutch grammar is a hell :(
Title: Re: I am looking for a favour
Post by: Nao on September 18th, 2011, 07:58 PM
I only recently learned that "ij" is pronounced like the i in "mike".
I always thought the Dutch were crazy enough to have plenty of words they literally pronounced "ijjjj" :P
Title: Re: I am looking for a favour
Post by: Dr. Deejay on September 18th, 2011, 08:22 PM
Lol :P "Scheveningen" must be a terrible word then :P
Title: Re: I am looking for a favour
Post by: Aaron on September 19th, 2011, 12:23 AM
Quote from Dr. Deejay on September 18th, 2011, 06:25 PM
Dutch grammar is a hell :(
It's actually fairly straightforward, really ... Just because people can't be arsed to learn their grammar properly, doesn't mean the grammar itself is flawed.
Title: Re: I am looking for a favour
Post by: Arantor on September 19th, 2011, 12:26 AM
It's probably more logical than English grammar, which even though I'm a native speaker, and am considered above average in terms of my language comprehension and precision, I still have trouble with...

I should add that my knowledge of non-English languages is prejudiced, I studied French and briefly Spanish in school, and since then I've replaced whatever I knew about those with programming languages...[1]
 1. Even there, PHP's grammar is consistent, but its verb conjugation makes English look good. I mean, str_* functions are so mindnumbingly inconsistent that very occasionally I have to look one up to figure out whether it's str_ or str, or which order it wants parameters in. Not often, mind, because I use them all pretty regularly, but just once in a blue moon...
Title: Re: I am looking for a favour
Post by: Nightwish on September 19th, 2011, 07:39 PM
Quote from Norodo on September 18th, 2011, 04:39 PM
Sadly (?) I picked German in school.

Maybe you'd be "Nao der Größte"? (Note, I don't really know German, especially grammar. Der could very well be die or das or des or God knows. German grammar is insane.)
Not so. It's more complex than English grammar, but still fairly easy when you compare it to languages like Czech or Russian. That's real hell, grammar - wise.

Or latin. But we all know the ancient romans only invented that language to torture the next 100 generations of humans, yet we are still stupid enough to teach it :)

For the record: "der" is correct.
Title: Re: I am looking for a favour
Post by: Nao on September 19th, 2011, 08:09 PM
The Romans invented Latin so that the Pythons could send them home :eheh:
Title: Re: I am looking for a favour
Post by: live627 on September 20th, 2011, 03:10 AM
Hey! Are you saying that 2 years taking high school Latin class was just for naught?
Title: Re: I am looking for a favour
Post by: Arantor on September 20th, 2011, 03:12 AM
Quote from live627 on September 20th, 2011, 03:10 AM
Hey! Are you saying that 2 years taking high school Latin class was just for naught?
No, it wasn't for naught. It was to fuck with your mind.
Title: Re: I am looking for a favour
Post by: Cassiel on September 20th, 2011, 03:40 AM
Quote from Arantor on September 20th, 2011, 03:12 AM
Quote from live627 on September 20th, 2011, 03:10 AM
Hey! Are you saying that 2 years taking high school Latin class was just for naught?
No, it wasn't for naught. It was to fuck with your mind.
I'm finding it pretty helpful for Biology, actually. And to make up the names of ancient spells. :P
Title: Re: I am looking for a favour
Post by: live627 on September 20th, 2011, 03:40 AM
lol. I hear it'll help make learning Spanish easier. :lol:
Title: Re: I am looking for a favour
Post by: MultiformeIngegno on September 20th, 2011, 07:42 AM
Ahah I studied ancient greek too :D
Title: Re: I am looking for a favour
Post by: Nao on September 20th, 2011, 08:16 AM
Because Latin is in your culture. Too easy for Italians. Greek is what they use to fuck with your mind ;)

Romani ite domini! Or something.
Title: Re: I am looking for a favour
Post by: live627 on September 20th, 2011, 10:51 AM
Quote from MultiformeIngegno on September 20th, 2011, 07:42 AM
Ahah I studied ancient greek too :D
I did - for a year. I'm glad I forgot it all
Title: Re: I am looking for a favour
Post by: Nao on September 22nd, 2011, 12:31 AM
Hey, might as well reuse this topic title...... :whistle:

Okay, can anyone here fire up Opera? Interested in knowing the version number, too. I'm using v12 and here's what I want you to do.

Right click on any element on any web page.
Click "Inspect element" to fire up Dragonfly.
In the right side of the Dragonfly window, click the 'Properties' tab.
Scroll to the bottom and unfold the 'style [CSSStyleDeclaration]' parameter.
Scroll again to the bottom, and tell me if you see this show up in the list:

        zoom: ""

Normally, this should NOT show up, because zoom is IE-only and Opera has no reason to define it -- even empty. It doesn't even support it -- if you try doing a zoom:1, it'll fire up a CSS error.

Problem is -- jQuery, at some point, creates an empty dummy div and proceeds to check (~line 1242 in v1.5.2 uncompressed) for 'style' in div.style, which will return true, because it's set (even if empty.)
As a result, it executes that codepath which normally is only for IE... And it triggers said CSS error.

I'm a bit pissed off. Dunno if I should complain at Opera or jQuery, to begin with... Probably Opera! But they're slow to react to bug reports...
Title: Re: I am looking for a favour
Post by: Arantor on September 22nd, 2011, 12:36 AM
Opera 11.51 on Windows doesn't do it for me, I even went to the jQuery website and the demo site and still could not reproduce this behaviour.
Title: Re: I am looking for a favour
Post by: Nao on September 22nd, 2011, 10:01 PM
Okay so I guess it's a regression...
Posted: September 22nd, 2011, 07:47 AM

Documented and posted ALL of the main Opera bugs here:

http://my.opera.com/community/forums/topic.dml?id=1102652

Including this one...
Posted: September 22nd, 2011, 11:03 AM

Ah, well... 11 hours into it, and the topic is still ignored. :(