The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to limit signature using Iframe
Hi,
Is there a way to limit the signatuer using iframe in postbit, IE: <iframe name="signature" height="300" width="450" align="middle" border="0" frameborder="0" src="$post[signature]"> Your browser does not support inline frames or is currently configured not to display inline frames. </iframe> I tried it but it did not cacme up, I tried also adding $post[signature] to a separate templaet and call it from a file in the iframe but did not work any Idea how to implement it.. Regards, |
#2
|
||||
|
||||
plz help
|
#3
|
||||
|
||||
up again
|
#4
|
|||
|
|||
Why an iframe?
and what do you mean by limit. - the lenth? |
#5
|
||||
|
||||
You'll probably have to create a signature file to show the signatures... Something like signature.php, then you set the src="signature.php?u=$post[userid]"
The file would have to select the signature based on the userid in the u request. I don't think this would be a good idea, as it would add 1 query for every signature displayed. |
#6
|
||||
|
||||
Hi,
Thank you for replying JohnBee and TheSpecialist.. Say you don't want the signature to exceed the width of 500 pixle and hight of 300 if you used the Iframe the signature will always be limited to it and instead of expanding the forum it will contain it inside the frame. try this for example in normal HTML page: <iframe name="signature" height="300" width="450" align="middle" border="0" frameborder="0" src=http://www.cnn.com> Your browser does not support inline frames or is currently configured not to display inline frames. </iframe> The cnn page wont take over your page, it will be contained in the frame, same will hapened with large picture and what ever members put in their signatures TheSpecialist, I tried that but it did not work Kind Regards. |
#7
|
|||
|
|||
Try This:
Code:
<div STYLE="width: 500px; height: 300px; overflow: auto;"> $post[signature] </div> Let me know how it does for you. |
#8
|
||||
|
||||
jugo,
Thanks a million, Its working, and it did exactly what I wanted. now I dont have to bother any more about large signatures nor get angry members because I deleted their signatures. Thanks again. |
#9
|
|||
|
|||
No problem bro... Ever since i discovered that little overflow property in DIVs I have used it like there's no tomorrow....
I hate iframes...like with a serious passion. |
#10
|
|||
|
|||
yeah, thanks for the codes, i dont need the complex one, this simple one does what i want!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|