The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

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

Page 2 of 2 Previous  1, 2

View previous topic View next topic Go down

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

Post by fascicularia on November 8th 2016, 4:53 pm

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.

fascicularia
Forumember

Posts : 171
Reputation : 1
Language : french

Back to top Go down


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

Post by fascicularia on February 12th 2017, 5:48 pm

bump

fascicularia
Forumember

Posts : 171
Reputation : 1
Language : french

Back to top Go down

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

Post by fascicularia on February 15th 2017, 1:32 pm

bump

fascicularia
Forumember

Posts : 171
Reputation : 1
Language : french

Back to top Go down

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

Post by fascicularia on February 17th 2017, 2:35 pm

bump

fascicularia
Forumember

Posts : 171
Reputation : 1
Language : french

Back to top Go down

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

Post by SLGray on February 17th 2017, 9:23 pm

Do you mean this image is the issue?


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

avatar
SLGray
Administrator
Administrator

Male Posts : 38774
Reputation : 2607
Language : English
Location : United States

http://classifiedads.forumotion.com/

Back to top Go down

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

Post by fascicularia on February 18th 2017, 3:12 pm

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

fascicularia
Forumember

Posts : 171
Reputation : 1
Language : french

Back to top Go down

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

Post by SLGray on February 18th 2017, 8:53 pm

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


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

avatar
SLGray
Administrator
Administrator

Male Posts : 38774
Reputation : 2607
Language : English
Location : United States

http://classifiedads.forumotion.com/

Back to top Go down

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

Post by fascicularia on February 19th 2017, 1:42 pm

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)

fascicularia
Forumember

Posts : 171
Reputation : 1
Language : french

Back to top Go down

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

Post by fascicularia on February 27th 2017, 12:05 am

bump

fascicularia
Forumember

Posts : 171
Reputation : 1
Language : french

Back to top Go down

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

Post by fascicularia on March 2nd 2017, 1:09 pm

bump

fascicularia
Forumember

Posts : 171
Reputation : 1
Language : french

Back to top Go down

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

Post by fascicularia on March 7th 2017, 5:28 pm

Bump

fascicularia
Forumember

Posts : 171
Reputation : 1
Language : french

Back to top Go down

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

Post by fascicularia on March 17th 2017, 1:03 am

bump

fascicularia
Forumember

Posts : 171
Reputation : 1
Language : french

Back to top Go down

Page 2 of 2 Previous  1, 2

View previous topic View next topic Back to top


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