Where in the page should the code go?
Announcement
Collapse
No announcement yet.
Embed page withing vbulletin
Collapse
X
-
Inside the <head></head> tagsHelpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
- Top
- Translate
- Bottom
Comment
-
After looking at the gallery setup and seeing the lack of customization, I thought of another approach. Try this one on the HTML module.
HTML Code:<script> function galleryLoad() { var iframe = document.getElementById('chapterphotos'); iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px'; } window.addEventListener('resize', galleryLoad); </script> <iframe id="chapterphotos" src="chapter_photos/index.php" onload="galleryLoad();" style="border: 0; width: 100%; height: 100%; overflow: auto;"></iframe>
Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
Thanks!
I checked the page and it's working. But there's one thing that I want to fix. As you navigate through the gallery slideshows, the vertical scrollbar in the iframe flashes as the script is waiting for the images to fully load to be able to calculate the iframe content height.
Try changing overflow: auto; to overflow: hidden; in the iframe style. That should prevent showing the iframe scrollbars.Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
You need to edit the /chapter_photos/template/minimalist/style/white/white.css file to add custom CSS:
Code:/* for text */ #ig2_footer { color: blue; } /* for link */ #ig2_footer a { color: red !important; }
Code:body { overflow: hidden; }
Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
Code:/* for text */ #ig2_footer { color: blue; } /* for link */ #ig2_footer a { color: red !important; border-bottom-color: red !important; }
Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
- Likes 1
Comment
Users Viewing This Page
Collapse
There is 1 user viewing this forum topic.
- Guest
Latest Posts
Collapse
-
by MahmoudE9Hello
How are you
After promotion version 6.0.4
I updated the counters and during the update the search index was rebuilt...Today, 06:50 AM -
Get Affordable and Fast VPS for vBulletin -
by matoseHi guys,
Just migrated to vB Cloud and found your forum searching for some customizations.
Nice to meet you!
m...05-03-2024, 01:25 AM
Comment