Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pagify Plugin
#76
I tried that didnt work
http://127.0.0.1/dev/getsimple/hotfixes/test-page;2
breaks our default rule id=2
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#77
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]
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#78
(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
Reply
#79
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
Reply
#80
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]
Reply
#81
(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
Reply
#82
(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
Reply
#83
(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
Reply
#84
@mvlcek

Version 1.3 in Extend is missing the pagify folder.
Reply
#85
(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 :-(
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#86
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.
Reply
#87
@mvlcek, can you add option for custom rendering pagify navigation? And new unit - div.
Reply
#88
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
Reply
#89
(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.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#90
(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
Reply
#91
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
Reply
#92
(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.
Reply
#93
(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
Reply
#94
(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.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#95
(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.
Reply
#96
Pagify 1.4.1:
  • supports php8
  • new language: ru (by DimaYakovlev)
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply




Users browsing this thread: 1 Guest(s)