Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 08-06-2005, 11:27 AM
Ghanem's Avatar
Ghanem Ghanem is offline
 
Join Date: Aug 2004
Location: Bahrain
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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,
Reply With Quote
  #2  
Old 08-07-2005, 10:19 PM
Ghanem's Avatar
Ghanem Ghanem is offline
 
Join Date: Aug 2004
Location: Bahrain
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

plz help
Reply With Quote
  #3  
Old 08-11-2005, 01:32 AM
Ghanem's Avatar
Ghanem Ghanem is offline
 
Join Date: Aug 2004
Location: Bahrain
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

up again
Reply With Quote
  #4  
Old 08-11-2005, 06:04 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why an iframe?
and what do you mean by limit. - the lenth?
Reply With Quote
  #5  
Old 08-11-2005, 06:08 PM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 08-11-2005, 06:13 PM
Ghanem's Avatar
Ghanem Ghanem is offline
 
Join Date: Aug 2004
Location: Bahrain
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 08-11-2005, 06:26 PM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try This:

Code:
<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.
Reply With Quote
  #8  
Old 08-12-2005, 01:59 AM
Ghanem's Avatar
Ghanem Ghanem is offline
 
Join Date: Aug 2004
Location: Bahrain
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 08-12-2005, 02:32 AM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 08-26-2005, 07:25 AM
yl88 yl88 is offline
 
Join Date: Jan 2004
Location: AUS
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah, thanks for the codes, i dont need the complex one, this simple one does what i want!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:27 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05134 seconds
  • Memory Usage 2,247KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete