Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pdf Mykod
#1
Admin Cp>Configuration>MyCode>Add New MyCode

Title
Pdf Mykod

Regular Expression
Code:
\[pdf\](.*?)\[/pdf\]

Replacement
Code:
<object type="application/pdf" classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" data="$1" width="800" height="600"><param name="src" value="$1"><embed src="$1" width="500" height="400" /><noembed><a href="$1" target="_blank">$1</a></noembed></object>

Save Mycode.

[Image: pdfit9.jpg]

Code:
[pdf]pdf link[/pdf]

Thanks - mybbdestek.com .
Reply
#2
Mmmm, looks good.

Testing Smile

Thanks.
vBulletin/Wordpress/Magento/MyBB
Developer and Designer
Reply
#3
Well needed thanks.
You know what's weird? Me.
Reply
#4
Just to confirm then, that this code embeds pdf files inside a post?
Reply
#5
Thanks bomfile.
Reply
#6
i hope to do this

[pdf][attachment=xxx][/pdf]

how is this would be possible please
Reply
#7
This user has been denied support. This user has been denied support.
ya...adel222 it would be great.
how to make possible to forum uploaded attachment to read directly?
thankl you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)