Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 19. Apr 2024, 13:13

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 8. Apr 2016, 15:39 
Offline
User avatar

Joined: 8. Apr 2016, 13:38
Posts: 7
Location: /\/¯¯¯¯¯\/\ South Africa
Hi there - Very happy with my Advanced iFrame Pro purchase, especially since I can now relay parameters!

My current shortcode looks something like this:
Code:
[advanced_iframe securitykey="xxxxxx" src="http://xxx:7778/chat27/irc.xxx.org:+6697?nick={usermeta-first_name}&#Chat27Beta" width="100%" height="600"]


My old iFrame code allowed me to set the iFrame height the a percentage of the viewport height like this, and it was perfect for my needs:

Code:
<iframe name="chatpanel" src="http://xxx:7778/chat27/irc.xxx.org:+6697?nick=xxx&#Chat27Beta" marginwidth="1" marginheight="1" scrolling="no" border="0" frameborder="0" width="100%" style="min-height: 400px; width:100%; height:80vh;"></iframe>


How would I apply the same kind of formatting to the shortcode? The below doesn't seem to want to suffice ;)

Code:
[advanced_iframe securitykey="xxxxxx" src="http://xxx:7778/chat27/irc.xxx.org:+6697?nick={usermeta-first_name}&#Chat27Beta" width="100%" height="80vh"]

_________________
"Inspiration exists, but it has to find you working." - Pablo Picasso


Top
 Profile  
 
PostPosted: 8. Apr 2016, 16:10 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
vh is a css style. Therefore you have to apply it with style="height:80vh;"

Best, Michael


Top
 Profile  
 
PostPosted: 8. Apr 2016, 16:12 
Offline
User avatar

Joined: 8. Apr 2016, 13:38
Posts: 7
Location: /\/¯¯¯¯¯\/\ South Africa
Ah! Got it to work!!! I changed the shortcode to (removed the height value):

Code:
[advanced_iframe securitykey="xxxxxx" src="http://xxx:7778/chat27/irc.xxx.org:+6697?nick={usermeta-first_name}&#Chat27Beta" width="100%" ]


And added this to the Style field under the Advanced iFrame Pro Basic tab:

Code:
min-height: 400px;height:80vh;

_________________
"Inspiration exists, but it has to find you working." - Pablo Picasso


Top
 Profile  
 
PostPosted: 8. Apr 2016, 16:20 
Offline
User avatar

Joined: 8. Apr 2016, 13:38
Posts: 7
Location: /\/¯¯¯¯¯\/\ South Africa
TinyWebGallery wrote:
vh is a css style. Therefore you have to apply it with style="height:80vh;"

Best, Michael


Thanks Michael! worked like a charm!!!

_________________
"Inspiration exists, but it has to find you working." - Pablo Picasso


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy