MyBB Community Forums

Full Version: [MyCode] Pastebin Embedded
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
It works now! +1
Is possible to show the full pastebin code?
With this mycode, the height is not 100%, but it use scrollbar.
I tried to remove scrollbar and show 100% of the code using:

<object scrolling="no" width="100%" height="100%" etc.

But didn't work. Confused
height=100% wont work cause it is related to the parent element.

i think only workaround to do that client sided is to set height to fixed size via javascript.
How to do it? Confused
Nice one Wink
thank you Smile
This code is very nice and works nicely. Thanks. Smile

However, I have a dark background on my forums so how can I change the font color? I am using Fábio Maia's version of this.
(2011-12-19, 03:49 PM)Koiranpentu Wrote: [ -> ]This code is very nice and works nicely. Thanks. Smile

However, I have a dark background on my forums so how can I change the font color? I am using Fábio Maia's version of this.

I'm also having this problem. Does anyone know how to solve it?
The first one i cant get to work. But the second one does work from Fábio Maia. I tried both and found the simpler solution to simply do this:

Regular Expression:
\[pastebin\]http://pastebin.com/(.*?)\[\/pastebin\]

Replacement:
<iframe src="http://pastebin.com/embed_iframe.php?i=$1" style="border:none;width:100%"></iframe>

Has the exact same result as JavaScript Embedding way. And yes i know everybody hates iframes, but this simply worked in this case better for me.

For the people who want it to look "nicer" use this code:

<div class="title"><strong>Pastebin:<strong></div>
<div class="body">
<iframe src="http://pastebin.com/embed_iframe.php?i=$1" style="border:none;width:100%"></iframe>
</div>

Simple modified code from Fábio Maia
Holy shhh this thread has nearly 300,000 views! Anyway, cool addition. I'm doing to add this into my forum now! Smile
Pages: 1 2 3