More pictures

  • PpaKko
  • Topic Author
  • Visitor
  • Visitor
15 years 3 weeks ago #196 by PpaKko
More pictures was created by PpaKko
What should I do in order to add some more pictures in the module?
I need 11 pictures instead of the 9 provided.

What I achieved until now is to have 11 positions in the Module Parameters but the extra pictures do not appear in the frontend module inside the site!
Here is what I did:
1. In the file "mod_hot_image_slider.php" I changed this:
Code:
for ($loop = 1; $loop <= 9; $loop += 1)
to this:
Code:
for ($loop = 1; $loop <= 11; $loop += 1)
I did this 4 times (whenever it appears in the code)

2.In the file "mod_hot_image_slider.xml" Â I added 2 times the following code (with the nesessary modifications)
Code:
<param type="spacer" default="Image 1" /> <param name="image1" type="text" default="articles.jpg" label="LABEL IMAGE" description="DESC IMAGE" /> <param name="image1title" type="text" default="Articles" label="LABEL IMAGE TITLE" description="DESC IMAGE TITLE" /> <param name="image1desc" type="text" default="Lorem ipsum dolor sit amet" label="LABEL IMAGE DESC" description="DESC IMAGE DESC" /> <param name="image1link" type="text" default="http://www.hotjoomlatemplates.com/" label="LABEL IMAGE LINK" description="DESC IMAGE LINK" />


What am I missing here?

Thank you in advance.

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
15 years 3 weeks ago #197 by milos
Replied by milos on topic Re: More pictures
Good job!

Open tmpl/default.php and change
Code:
<?php for ($imageCounter = 1; $imageCounter <= 9; $imageCounter += 1) { ?>

to
Code:
<?php for ($imageCounter = 1; $imageCounter <= 11; $imageCounter += 1) { ?>

Do it twice, around lines 102 and 121.

Please Log in to join the conversation.

More
13 years 10 months ago - 13 years 10 months ago #4820 by iCandy
Replied by iCandy on topic Re: More pictures
Nevermind I figured it out...thanks!
Last edit: 13 years 10 months ago by iCandy. Reason: Resolved issue

Please Log in to join the conversation.

  • ole
    Inactive member
  • Member
  • Member
More
13 years 1 month ago #11853 by ole
Replied by ole on topic Re: More pictures
Hello,
I tried to follow these steps in order to have the possibility to add up to 50 pictures. I don't now what went wrong but now I cannot access de module: i have this error:

500 - An error has occurred.

Error loading form file

Return to Control Panel

any help??

Please Log in to join the conversation.

More
13 years 1 month ago #11862 by ivan.milic
Replied by ivan.milic on topic Re: More pictures
You probably missed some <?php, ?> or delete it by mistake while you were altering files. Restore original ones.

Please Log in to join the conversation.

  • ole
    Inactive member
  • Member
  • Member
More
13 years 1 month ago #11874 by ole
Replied by ole on topic Re: More pictures
Indeed Ivan, something went wrong so I rechanged the xml and added again the positions and now I have 50 pictures!!!!!!!!!!
thank you!!!!

Please Log in to join the conversation.

Time to create page: 0.209 seconds
Powered by Kunena Forum