GetSimple Support Forum
Pagify Plugin - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13)
+--- Thread: Pagify Plugin (/showthread.php?tid=1268)

Pages: 1 2 3 4


RE: Pagify Plugin - shawn_a - 2015-05-26

I tried that didnt work
http://127.0.0.1/dev/getsimple/hotfixes/test-page;2
breaks our default rule id=2


RE: Pagify Plugin - shawn_a - 2015-05-26

I would think something like these would be preffered
Code:
# RewriteRule /?([A-Za-z0-9_-]+)([;])([\d]+)?/?$ index.php?id=$1&page=$3 [QSA,L]
# RewriteRule /?([A-Za-z0-9_-]+)(?:;)?([\d]+)?/?$ index.php?id=$1&page=$2 [QSA,L]



RE: Pagify Plugin - schakaa - 2015-05-26

(2015-05-26, 00:53:37)Carlos Wrote: Perhaps you have to insert the new rewriterule, instead of replacing the default one.
I tried both without success.

(2015-05-26, 00:57:21)shawn_a Wrote: I would think something like these would be preffered


Code:
# RewriteRule /?([A-Za-z0-9_-]+)([;])([\d]+)?/?$ index.php?id=$1&page=$3 [QSA,L]
# RewriteRule /?([A-Za-z0-9_-]+)(?:;)?([\d]+)?/?$ index.php?id=$1&page=$2 [QSA,L]
Does not work.

My URL is
http://leistungsdamast.de/damaststahl/herstellung-mehrbahniger-torsionsdamast/ which is OK

Link to the second page
http://leistungsdamast.de/damaststahl/herstellung-mehrbahniger-torsionsdamast;2/
leads to 404

Thank you for trying to help me.
Regards Peter


RE: Pagify Plugin - schakaa - 2015-05-26

Tried it also with a slug that does not contain slashes, also without success.

I use the plugin simple_input_tabs and i put the tagline and the page content in seperate tabs in ckeditor.
Therefor i have to use insert_page_content() twice in the template instead of using get_page_content()
could this be a reason?

Regards Peter


RE: Pagify Plugin - Carlos - 2015-05-26

Maybe this?

Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+);(\d+)/?$ index.php?id=$1&page=$2 [QSA,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]



RE: Pagify Plugin - schakaa - 2015-05-26

(2015-05-26, 03:43:57)Carlos Wrote: Maybe this?


Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+);(\d+)/?$ index.php?id=$1&page=$2 [QSA,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]

Unfortunately no success.


Regards Peter


RE: Pagify Plugin - schakaa - 2015-05-26

(2015-05-26, 03:43:57)Carlos Wrote: Maybe this?


Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+);(\d+)/?$ index.php?id=$1&page=$2 [QSA,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]

I enabled all six lines now and it works, thank you very much for your help.
Regards Peter


RE: Pagify Plugin - kuguar - 2015-05-26

(2015-05-26, 04:03:53)schakaa Wrote:
(2015-05-26, 03:43:57)Carlos Wrote: Maybe this?


Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+);(\d+)/?$ index.php?id=$1&page=$2 [QSA,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]

I enabled all six lines now and it works, thank you very much for your help.
Regards Peter

Oh, this method has helped me! Awesome! Thank you! Smile


RE: Pagify Plugin - Carlos - 2016-01-01

@mvlcek

Version 1.3 in Extend is missing the pagify folder.


RE: Pagify Plugin - mvlcek - 2016-01-01

(2016-01-01, 19:28:06)Carlos Wrote: @mvlcek

Version 1.3 in Extend is missing the pagify folder.

Thanks, I corrected it.
Interesting that you are the first to mention this and it's there since June 2014. Seems that nobody uses it :-(


RE: Pagify Plugin - Carlos - 2016-01-01

You probably missed this http://get-simple.info/forums/showthread.php?tid=1268&pid=51414#pid51414 and later posts.

I don't think it's that nobody is using it - If you upgrade from a previous version you don't notice this issue.


RE: Pagify Plugin - DimaYakovlev - 2016-02-15

@mvlcek, can you add option for custom rendering pagify navigation? And new unit - div.


Pages Not Split in Specified Bytes - celextel - 2019-05-23

We installed this Pagify Plugin.

Can we use / or - or _ or | in lieu of ; in the following Page URL?
http://www.shastras.com/adi-sankara/upadesa-sahasri;2/

Please guide us as to what to do in this regard.

Thanks,

Lakshmanan


RE: Pages Not Split in Specified Bytes - mvlcek - 2019-05-27

(2019-05-23, 17:46:30)celextel Wrote: Can we use / or - or _ or | in lieu of ; in the following Page URL?
http://www.shastras.com/adi-sankara/upadesa-sahasri;2/

It should be possible by adjusting the configuration as described in http://mvlcek.bplaced.net/get-simple/pagify.
However, dash/underscore are valid characters in a page name and this might clash with the page number parsing.
You must take care to avoid page names ending with dash/underscore and number in this case.


RE: Pages Not Split in Specified Bytes - celextel - 2019-05-28

(2019-05-27, 07:32:35)mvlcek Wrote: It should be possible by adjusting the configuration as described in http://mvlcek.bplaced.net/get-simple/pagify.
However, dash/underscore are valid characters in a page name and this might clash with the page number parsing.
You must take care to avoid page names ending with dash/underscore and number in this case.

We have configured / in lieu of ; and it is showing the split up Pages correctly:
http://www.shastras.com/nisargadatta-maharaj/nisargadatta-gita/2/

Thanks to You for Providing Many Useful Plugins and Support.

Lakshmanan


RE: Pagify Plugin - celextel - 2019-06-20

Our Template has the following Code for this Plugin:
PHP Code:
<?php
pagify_set_size
(7000021);
get_page_content();
?>

We are seeing the following Error Messages now and then in the
/home/xxxx/public_html/data/other/logs/errorlog.txt File:
Code:
PHP Notice:  Undefined offset: 4 in /home/xxx/public_html/plugins/pagify.php on line 158
PHP Notice:  Undefined offset: 4 in /home/xxx/public_html/plugins/pagify.php on line 158
PHP Notice:  Undefined offset: 10 in /home/xxx/public_html/plugins/pagify.php on line 158
PHP Notice:  Undefined offset: 8 in /home/xxx/public_html/plugins/pagify.php on line 158
PHP Notice:  Undefined offset: 1 in /home/xxx/public_html/plugins/pagify.php on line 158


Following Code is on Line 158 of pagify.php:
PHP Code:
return $pages[$pageNum] . "\n" return_pagify_navigation(count($pages), $pageNum$link); 

Please guide us as to what to do in this regard.

Thanks,

Lakshmanan


RE: Pagify Plugin - celextel - 2019-10-29

(2019-06-20, 14:49:38)celextel Wrote: Following Code is on Line 158 of pagify.php:
PHP Code:
return $pages[$pageNum] . "\n" return_pagify_navigation(count($pages), $pageNum$link); 

Please let us know whether we could use array_pad() method as mentioned at the following URL for this issue:
https://www.daniweb.com/programming/web-development/threads/452877/how-to-prevent-undefined-offset-1

Thanks.


RE: Pagify Plugin - celextel - 2021-02-22

(2019-06-20, 14:49:38)celextel Wrote: Our Template has the following Code for this Plugin:
PHP Code:
<?php
pagify_set_size
(7000021);
get_page_content();
?>

We are seeing the following Error Messages now and then in the
/home/xxxx/public_html/data/other/logs/errorlog.txt File:
Code:
PHP Notice:  Undefined offset: 4 in /home/xxx/public_html/plugins/pagify.php on line 158
PHP Notice:  Undefined offset: 4 in /home/xxx/public_html/plugins/pagify.php on line 158
PHP Notice:  Undefined offset: 10 in /home/xxx/public_html/plugins/pagify.php on line 158
PHP Notice:  Undefined offset: 8 in /home/xxx/public_html/plugins/pagify.php on line 158
PHP Notice:  Undefined offset: 1 in /home/xxx/public_html/plugins/pagify.php on line 158


Following Code is on Line 158 of pagify.php:
PHP Code:
return $pages[$pageNum] . "\n" return_pagify_navigation(count($pages), $pageNum$link); 

Please guide us as to what to do in this regard.

Thanks,

Lakshmanan

Please suggest a solution to this issue.

Thanks,

Lakshmanan


RE: Pagify Plugin - mvlcek - 2021-02-24

(2021-02-22, 20:15:14)celextel Wrote: [quote pid='64452' dateline='1561006178']
We are seeing the following Error Messages now and then in the
/home/xxxx/public_html/data/other/logs/errorlog.txt File:
Code:
PHP Notice:  Undefined offset: 4 in /home/xxx/public_html/plugins/pagify.php on line 158
PHP Notice:  Undefined offset: 4 in /home/xxx/public_html/plugins/pagify.php on line 158
PHP Notice:  Undefined offset: 10 in /home/xxx/public_html/plugins/pagify.php on line 158
PHP Notice:  Undefined offset: 8 in /home/xxx/public_html/plugins/pagify.php on line 158
PHP Notice:  Undefined offset: 1 in /home/xxx/public_html/plugins/pagify.php on line 158


[/quote]

It means, somebody requested a page that does not exist, e.g. entering in the URL a page number greater than the number of pages.


RE: Pagify Plugin - celextel - 2021-02-24

(2021-02-24, 01:15:13)mvlcek Wrote:
(2021-02-22, 20:15:14)celextel Wrote: [quote pid='64452' dateline='1561006178']
We are seeing the following Error Messages now and then in the
/home/xxxx/public_html/data/other/logs/errorlog.txt File:
Code:
PHP Notice:  Undefined offset: 4 in /home/xxx/public_html/plugins/pagify.php on line 158
PHP Notice:  Undefined offset: 4 in /home/xxx/public_html/plugins/pagify.php on line 158
PHP Notice:  Undefined offset: 10 in /home/xxx/public_html/plugins/pagify.php on line 158
PHP Notice:  Undefined offset: 8 in /home/xxx/public_html/plugins/pagify.php on line 158
PHP Notice:  Undefined offset: 1 in /home/xxx/public_html/plugins/pagify.php on line 158

It means, somebody requested a page that does not exist, e.g. entering in the URL a page number greater than the number of pages.
[/quote]

Okay, thanks.


RE: Pagify Plugin - mvlcek - 2023-01-28

Pagify 1.4.1:
  • supports php8
  • new language: ru (by DimaYakovlev)