GetSimple Support Forum

Full Version: Pagify Plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
I tried that didnt work
http://127.0.0.1/dev/getsimple/hotfixes/test-page;2
breaks our default rule id=2
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]
(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/he...onsdamast/ which is OK

Link to the second page
http://leistungsdamast.de/damaststahl/he...sdamast;2/
leads to 404

Thank you for trying to help me.
Regards Peter
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
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]
(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
(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
(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
@mvlcek

Version 1.3 in Extend is missing the pagify folder.
(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 :-(
You probably missed this http://get-simple.info/forums/showthread...4#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.
@mvlcek, can you add option for custom rendering pagify navigation? And new unit - div.
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
(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.
(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-mah...ta-gita/2/

Thanks to You for Providing Many Useful Plugins and Support.

Lakshmanan
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
(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.
(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
(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.
(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.
Pagify 1.4.1:
  • supports php8
  • new language: ru (by DimaYakovlev)
Pages: 1 2 3 4