The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

System of automatic pagination on the images (except functional script on a technicality)

3 posters

Page 2 of 2 Previous  1, 2

Go down

System of automatic pagination on the images (except functional script on a technicality) - Page 2 Empty System of automatic pagination on the images (except functional script on a technicality)

Post by fascicularia November 8th 2016, 17:53

First topic message reminder :

Technical Details


Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Opera
Who the problem concerns : All members
Forum link : http://altitudetest.forumactif.com

Description of problem

Hello everyone,
I use a js forum that allows paginationsur images and / or text.

The tutorial comes from the French forum : http://forum.forumactif.com/t355762-pagination-dans-un-message?highlight=pagination

History automate the system, I have worked a js that allows to affix the tag page every 6 images.

the script works except on one point: the center tag is not taken into account. This centering can isolate the expanded part of the rest of the message which should not be paged.

Code:
$(function() {
   $('div.postbody').each(function() {
      $(this).find('div').first().find('img:not("[longdesc]")').attr('id', function(img) {
         return 'M14_img_' + img;
      })
   });
   $('img[id^="M14_img"]').unwrap();
});

$(function() {
   $('div.postbody').each(function() {

$(this).find('img[id^="M14_img"]').length;
$(this).find('img[id="M14_img_0"]').before('[center] ');
$(this).find('img[id="M14_img_6"]').before('[page]');
$(this).find('img[id="M14_img_12"]').before('[page]');
$(this).find('img[id="M14_img_18"]').before('[page]');
$(this).find('img[id="M14_img_24"]').before('[page]');
$(this).find('img[id="M14_img_30"]').before('[page]');
$(this).find('img[id^="M14_img"]:last').after('[/center]');


   });
});


Here is a link that allows to realize the concern
http://altitudetest.forumactif.com/t91-essai-post-photos

Would you have a solution to help me solve this little problem ?.

Thank you in advance for your help.
avatar
fascicularia
Forumember

Posts : 172
Reputation : 1
Language : french

Back to top Go down


System of automatic pagination on the images (except functional script on a technicality) - Page 2 Empty Re: System of automatic pagination on the images (except functional script on a technicality)

Post by fascicularia February 12th 2017, 18:48

bump
avatar
fascicularia
Forumember

Posts : 172
Reputation : 1
Language : french

Back to top Go down

System of automatic pagination on the images (except functional script on a technicality) - Page 2 Empty Re: System of automatic pagination on the images (except functional script on a technicality)

Post by fascicularia February 15th 2017, 14:32

bump
avatar
fascicularia
Forumember

Posts : 172
Reputation : 1
Language : french

Back to top Go down

System of automatic pagination on the images (except functional script on a technicality) - Page 2 Empty Re: System of automatic pagination on the images (except functional script on a technicality)

Post by fascicularia February 17th 2017, 15:35

bump
avatar
fascicularia
Forumember

Posts : 172
Reputation : 1
Language : french

Back to top Go down

System of automatic pagination on the images (except functional script on a technicality) - Page 2 Empty Re: System of automatic pagination on the images (except functional script on a technicality)

Post by SLGray February 17th 2017, 22:23

Do you mean this image is the issue?
System of automatic pagination on the images (except functional script on a technicality) - Page 2 Sans_t10


System of automatic pagination on the images (except functional script on a technicality) - Page 2 Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51453
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

System of automatic pagination on the images (except functional script on a technicality) - Page 2 Empty Re: System of automatic pagination on the images (except functional script on a technicality)

Post by fascicularia February 18th 2017, 16:12

Hello SLgray,
The worry does not situate at the level of the images.

The script presents 2 worries
1 the center tag is not taken into account as being bbcode and therefore, does not work.
2 a text inserted after the last image is automatically integrated with the pagination
avatar
fascicularia
Forumember

Posts : 172
Reputation : 1
Language : french

Back to top Go down

System of automatic pagination on the images (except functional script on a technicality) - Page 2 Empty Re: System of automatic pagination on the images (except functional script on a technicality)

Post by SLGray February 18th 2017, 21:53

I noticed that in your profile that you know French.  Have you tried to get help from the official French support forum?


System of automatic pagination on the images (except functional script on a technicality) - Page 2 Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51453
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

System of automatic pagination on the images (except functional script on a technicality) - Page 2 Empty Re: System of automatic pagination on the images (except functional script on a technicality)

Post by fascicularia February 19th 2017, 14:42

Yes I tried but it did not give anything but bump to several months (that's why I try my luck here, you never know)
avatar
fascicularia
Forumember

Posts : 172
Reputation : 1
Language : french

Back to top Go down

System of automatic pagination on the images (except functional script on a technicality) - Page 2 Empty Re: System of automatic pagination on the images (except functional script on a technicality)

Post by fascicularia February 27th 2017, 01:05

bump
avatar
fascicularia
Forumember

Posts : 172
Reputation : 1
Language : french

Back to top Go down

System of automatic pagination on the images (except functional script on a technicality) - Page 2 Empty Re: System of automatic pagination on the images (except functional script on a technicality)

Post by fascicularia March 2nd 2017, 14:09

bump
avatar
fascicularia
Forumember

Posts : 172
Reputation : 1
Language : french

Back to top Go down

System of automatic pagination on the images (except functional script on a technicality) - Page 2 Empty Re: System of automatic pagination on the images (except functional script on a technicality)

Post by fascicularia March 7th 2017, 18:28

Bump
avatar
fascicularia
Forumember

Posts : 172
Reputation : 1
Language : french

Back to top Go down

System of automatic pagination on the images (except functional script on a technicality) - Page 2 Empty Re: System of automatic pagination on the images (except functional script on a technicality)

Post by fascicularia March 17th 2017, 02:03

bump
avatar
fascicularia
Forumember

Posts : 172
Reputation : 1
Language : french

Back to top Go down

Page 2 of 2 Previous  1, 2

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum