- Posts: 6742
- Thank you received: 715
More pictures
-
PpaKko
- Topic Author
- 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:
to this:
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)
What am I missing here?
Thank you in advance.
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)
Code:
for ($loop = 1; $loop <= 11; $loop += 1)
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
Less
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
to
Do it twice, around lines 102 and 121.
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.
-
iCandy
Inactive member - New Member
Less
More
- Posts: 4
- Thank you received: 0
-
ole
Inactive member - Member
Less
More
- Posts: 23
- Thank you received: 0
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??
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.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
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
Less
More
- Posts: 23
- Thank you received: 0
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!!!!
thank you!!!!
Please Log in to join the conversation.
Time to create page: 0.137 seconds