Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Scrolling Image add-on for FA V3.0 (Read 3150 times)
TheSkier
Junior Member
**
Offline



Posts: 94
Location: Sakhalin
Joined: Jul 9th, 2004
Gender: Male
Scrolling Image add-on for FA V3.0
May 14th, 2005 at 4:17am
Print Post  
Allows a nice scroll bar to show up below the image (attached or linked) in case it doesn't fit the current browser's window width, otherwise pretty wide image will affect the forum display
also fixes the small typo in "alt" attribute in the original File Attachment (FA) V3.0 mod in first step
---
based on CSS hack for IE (standard css "overflow: auto" option doesn't work in IE)
===
width      :
   expression((document.body.clientWidth  -200) + 'px');
height     :
   expression((document.body.clientHeight -200) + 'px');
===

INSTALLATION:
------------------
make sure that Ron's File Attachment mod V3.0i for SP1.3.x  was installed!

- apply mod by BoardMod

- Upload (in ASCII mode!) the following updated files to your web server ./Sources directory:

     !*** MAKE A BACKUP COPIES FIRST ***! (you've been warned! Wink

Display.pl
YaBBC.pl

- Upload (in ASCII mode!) the updated template ("template.html") to your web server YaBB main directory

tested in IE and FireFox only! Wink

PS: small typo was fixed, updated file attached
« Last Edit: May 14th, 2005 at 6:14am by TheSkier »  

scrolling_image_SP14.zip ( 1 KB | Downloads )
Back to top
WWW  
IP Logged
 
Kong
God Member
*****
Offline


Is it just me or is my
back hairy???

Posts: 858
Joined: Aug 2nd, 2002
Gender: Male
Re: Scrolling Image add-on for FA V3.0
Reply #1 - May 14th, 2005 at 5:18am
Print Post  
Code
Select All
<edit file>
template.html
</edit file>

<search for>
-->
</style>
</search for>

<add before>
/*
###(VM) ::: IMAGE_SCROLLING (make IE happpy!)
*/
.image_att {
	WIDTH: expression((document.body.clientWidth-200) + 'px'); HEIGHT: auto; OVERFLOW: auto;
}
.image_lnk {
	WIDTH: expression((document.body.clientWidth-200) + 'px'); HEIGHT: auto; OVERFLOW: auto;
}
-->
</add before> 


Results in cosing the ignore tag twice.

-->
-->
</style>

You might want to remove the --> from the add before section.
  


Back to top
 
IP Logged
 
TheSkier
Junior Member
**
Offline



Posts: 94
Location: Sakhalin
Joined: Jul 9th, 2004
Gender: Male
Re: Scrolling Image add-on for FA V3.0
Reply #2 - May 14th, 2005 at 6:12am
Print Post  
oops! yeah, my bad! reaploaded..
  
Back to top
WWW  
IP Logged
 
MPTBBS
New Member
*
Offline


I'd rather be playing
with Jeep!

Posts: 26
Location: Wesley Chapel
Joined: May 8th, 2004
Gender: Male
Re: Scrolling Image add-on for FA V3.0
Reply #3 - May 17th, 2005 at 9:38pm
Print Post  
very nice and handy mod.... works great!!! Thank you for your time and effort...
  

Back to top
WWWAIM  
IP Logged
 
TheSkier
Junior Member
**
Offline



Posts: 94
Location: Sakhalin
Joined: Jul 9th, 2004
Gender: Male
Re: Scrolling Image add-on for FA V3.0
Reply #4 - May 18th, 2005 at 5:26am
Print Post  
glad you found it useful  8)
  
Back to top
WWW  
IP Logged
 
Dam Yankee
God Member
*****
Offline



Posts: 1538
Location: Maryville
Joined: Jun 13th, 2003
Gender: Female
Re: Scrolling Image add-on for FA V3.0
Reply #5 - May 19th, 2005 at 3:49pm
Print Post  
Would it be possible for me to bribe you to whip one up for FA B2.5 on 1.3.1? Pretty please with sugar on top...  Cheesy

I tried to adapt this one, got stuck on step 2, and gave up.  Tongue
  
Back to top
WWW  
IP Logged
 
TheSkier
Junior Member
**
Offline



Posts: 94
Location: Sakhalin
Joined: Jul 9th, 2004
Gender: Male
Re: Scrolling Image add-on for FA V3.0
Reply #6 - May 19th, 2005 at 11:18pm
Print Post  
why not? will do that..  8)

hmm.. there is a side effect of putting img tag into div container - nested images will be shown on separate line!
(see attached)
changing div tag to span tag seems fixing that problem
will update and reattach file in 1st post..
  

nested-images.jpg ( 5 KB | Downloads )
nested-images.jpg
Back to top
WWW  
IP Logged
 
Dam Yankee
God Member
*****
Offline



Posts: 1538
Location: Maryville
Joined: Jun 13th, 2003
Gender: Female
Re: Scrolling Image add-on for FA V3.0
Reply #7 - May 20th, 2005 at 3:47am
Print Post  
Thanks!  Grin
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint