View Full Version : How to limit signature using Iframe
Ghanem
08-06-2005, 11:27 AM
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,
Ghanem
08-07-2005, 10:19 PM
plz help :(
Ghanem
08-11-2005, 01:32 AM
up again :(
JohnBee
08-11-2005, 06:04 PM
Why an iframe?
and what do you mean by limit. - the lenth?
Adrian Schneider
08-11-2005, 06:08 PM
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. :(
Ghanem
08-11-2005, 06:13 PM
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.
Try This:
<div STYLE="width: 500px; height: 300px; overflow: auto;">
$post[signature]
</div>
This will create a DIV instead of an iFrame which is better looking and more effective. This will only show a scrollbar if the content exceeds the 500x300 space you have indicated.
Let me know how it does for you.
Ghanem
08-12-2005, 01:59 AM
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.
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.
yeah, thanks for the codes, i dont need the complex one, this simple one does what i want!
mustang_lex
04-02-2006, 03:10 PM
Can someone actually explain how to implement this update? Thanks
Krofh
04-03-2006, 05:43 AM
To implement it, in template postbit (and/or postbit_legacy, if you use it), find:
$post[signature]
Replace that with:
<div STYLE="width: 500px; height: 300px; overflow: auto;">
$post[signature]
</div>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.