Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Mod/better way to show multiple images in the news (Read 5172 times)
Magi
New Member
*
Offline


I Love YaBB 2.6.11!

Posts: 34
Joined: Jan 19th, 2018
Mod/better way to show multiple images in the news
May 15th, 2018 at 11:25am
Print Post  
I am looking for a better way to show multiple images in a fader/slideshow in the forum news in the general controls area.

Iīve put a couple of images in there, but there is a lag between images and it seems that the whole page is on reload everytime when a new image appears, which makes it looks like itīs wiggle.

Thatīs very irritating when you look on the site.

Is there a way to change that?
  
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 140
Joined: Apr 25th, 2012
Re: Mod/better way to show multiple images in the news
Reply #1 - May 15th, 2018 at 1:09pm
Print Post  
The problem is not that the entire actually page reloads - it isn't. The problem is the browser re-figuring the height of the news section to accommodate the images. (Picky - yes. But the data isn't being re-pulled from the server.)

There is no complete solution but as I recall the table height for that table is currently dependent on the height of the right hand image in that section, so a simple solution is to pad the the top and bottom of the right hand image to make sure the height of the entire table (and therefore the news section) is tall enough accommodate any of your news items with graphics without jumping.
  
Back to top
WWW  
IP Logged
 
Magi
New Member
*
Offline


I Love YaBB 2.6.11!

Posts: 34
Joined: Jan 19th, 2018
Re: Mod/better way to show multiple images in the news
Reply #2 - May 16th, 2018 at 1:20pm
Print Post  
Thanks for the reply.

The site to look at is here:
http://www.ragbag.info/cgi-bin/yabb2/YaBB.pl

Can you tell me where I have to look at to make those changes? It it something in the forum layout section or in a separate data file?
  
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 140
Joined: Apr 25th, 2012
Re: Mod/better way to show multiple images in the news
Reply #3 - May 16th, 2018 at 2:22pm
Print Post  
You can edit default.html from within YaBB - Admin Center -> Template Configuration ->Go to Edit Template Files

(If there's no link on the configuration page it's AdminIndex.pl?action=modtemp)
  
Back to top
WWW  
IP Logged
 
Magi
New Member
*
Offline


I Love YaBB 2.6.11!

Posts: 34
Joined: Jan 19th, 2018
Re: Mod/better way to show multiple images in the news
Reply #4 - May 17th, 2018 at 7:48am
Print Post  
I donīt want to be bothersome...

I have checked the default/default.html with the edit option. But it seems that I havenīt found the right parameter.

has it something to do with the post_img_resize in the css?

there is a newsdiv id but no other commands and no div for the news section. Or have I overlooked something?

EDIT:
I think I have found a workaround for me.
Iīve edited the css in the post_img_resize line by adding a height in px and added a margin top and bottom.

That seems to work fine in chrome and firefox.
  
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 140
Joined: Apr 25th, 2012
Re: Mod/better way to show multiple images in the news
Reply #5 - May 17th, 2018 at 12:56pm
Print Post  
If it's working for you then you have a fix.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint