Welcome, Guest
Username: Password: Remember me

TOPIC: Slide Show - order, display, read more

Slide Show - order, display, read more 4 years 3 months ago #1566

  • pvollherbst
  • pvollherbst's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 3
  • Karma: 0
Hi,
I am using the Slideshow in the Veenio template and have 3 questions:

1. Order - I can't seem to change the order of the slides no matter what I do. I created a category called "slideshow" and put 3 slides in there - "Slide 1" with an order of 0, "Slide 2" with an order of 1, and "Slide 3" with an order of 2. In the module configuration for the slideshow, I set "Order by" to "Ordering" and "Order Type" to "Ascending." But they display backwards - Slide 3, Slide 2, and Slide 1. If I change "Order Type" to "Descending" it has no effect.

What am I doing wrong?

2. Display of slides - the text on the left and the picture line up perfectly at the top, but not at the bottom - in each slide, the picture is about a pixel or 2 too long - just enough to make it look sloppy. I tried adjusting the size of the picture, margin, etc. but nothing seemed to make a difference. Again, what am I doing wrong?

3. Readmore text on slideshow - I saw in a different post where the "Readmore" can be edited (I would prefer a space - "Read more"), but where is the CSS to change the color? (Side issue - where is the CSS to change the color of the text I put in the module in the address position - I found the CSS for the menus etc.)

Thank you so much for your time! When I get these issues resolved, I think I'm going to be very happy with the way my website looks!
The administrator has disabled public write access.

Re: Slide Show - order, display, read more 4 years 3 months ago #1569

  • linh_omg
  • linh_omg's Avatar
  • OFFLINE
  • Moderator
  • Posts: 910
  • Thank you received: 568
  • Karma: 25
Hi,
For the ordering, you can edit helper.php and find the query missing there.

For the image size, you can set in the module parameters configuration in back-end.

For the readmore link color, you see, there is class "readmore" for that read more link. Please apply css for that selector.
eg:
a.readmore {color:#FFF;}
Certainly, you can try to write:
.mega_slideshow a.readmore {color:#FFF;}

etc.

Thanks for using our products!
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket www.omegatheme.com/member/
The administrator has disabled public write access.

Re: Slide Show - order, display, read more 4 years 3 months ago #1571

  • pvollherbst
  • pvollherbst's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 3
  • Karma: 0
Thanks for getting back to me so quickly - please help me make sure I understand your answer - Is it true that the "Order by" parameter in the Basic Options for the slideshow module doesn't work and that I need to edit the following code from helper.php to make it work?

// Set ordering
$ordering = $params->get('ordering', 'a.publish_up');
$model->setState('list.ordering', $ordering);
if (trim($ordering) == 'rand()') {
$model->setState('list.direction', '');
} else {
$model->setState('list.direction', 'DESC');
}

Thanks!
The administrator has disabled public write access.

Re: Slide Show - order, display, read more 4 years 3 months ago #1572

  • linh_omg
  • linh_omg's Avatar
  • OFFLINE
  • Moderator
  • Posts: 910
  • Thank you received: 568
  • Karma: 25
That's it :-)
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket www.omegatheme.com/member/
The administrator has disabled public write access.

Re: Slide Show - order, display, read more 4 years 3 months ago #1574

  • pvollherbst
  • pvollherbst's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 3
  • Karma: 0
2 updates, in case they help someone else:

When I changed the height of pictures parameter in the Mega Slideshow modules from 287 to 285, everything lined up properly. I had been trying to adjust the image size in the article, and that didn't work.

I found the css to adjust the orange text in the address position - I was searching for the word "address" but it's actually in .header_add in the layout.css file. Also was able to make it wider.

Hope that helps someone else.

If I figure out the php code to fix ordering the slides, I'll post it (no guarantees - I am decent with css and html but a novice at php).
The administrator has disabled public write access.
The following user(s) said Thank You: linh_omg

Re: Slide Show - order, display, read more 4 years 3 months ago #1592

  • pvollherbst
  • pvollherbst's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 3
  • Karma: 0
Here are the changes I made (beware - the code is not very elegant) to helper.php to make the slideshow ordering work properly - if anyone sees a mistake, please let me know!

// Set ordering
$order = $params->get('order', 0);
$order_type = $params->get('order_type', 'ASC');
$model->setState('list.direction', $order_type);
if ($order == 0)
{
$ordering = 'a.created';
}
elseif ($order == 1)
{
$ordering = 'a.modified';
}
elseif ($order == 2)
{
$ordering = 'a.hits';
}
elseif ($order == 3)
{
$ordering = 'a.ordering';
}
elseif ($order == 4)
{
$ordering = 'rand()';
$model->setState('list.direction', '');
}
$model->setState('list.ordering', $ordering);


Hope that helps!
The administrator has disabled public write access.
The following user(s) said Thank You: linh_omg
Time to create page: 0.165 seconds