426

(1 replies, posted in Problem Solving / Help & Support)

Yes, there is still setting information, you can delete it in the file /register.php 156 line:
$user_arr[UDB_PASS] = $hmet[ count($hmet)-1 ]; print_r($new_pass); print_R($hmet);
change to:
$user_arr[UDB_PASS] = $hmet[ count($hmet)-1 ];

Yes, by default, if there is not so many news as in the parameter 'number' so the news is taken from the archive. You can change it placing the option $only_active = true before the news output

You can use $number for it

Example
$number = 3000;
include("path/to/show_news.php");

More -  index.php?mod=help&section=archives

429

(1 replies, posted in Problem Solving / Help & Support)

Use the CSS style for the "overflow: hidden" with css width parameter, to cut long words.

430

(31 replies, posted in Problem Solving / Help & Support)

We will work on the problem. The problem is not reproduced on our side. Will soon try to answer

431

(31 replies, posted in Problem Solving / Help & Support)

This is a bug in the plugin - bad works with subfolders. Show your current settings (file contents conf_rw.php)

432

(31 replies, posted in Problem Solving / Help & Support)

File layouttest1.php is must be located at the directory ./cms. Move layouttest1.php in cms folder or make a cms/layouttest1.php with code:

<?php include '/home3/name/public_html/layouttest1.php';

433

(31 replies, posted in Problem Solving / Help & Support)

Here's the problem with the correct location of files:
1) .htaccess should be in the root, to handle all requests;
2) cn_frienly_url.php must be located at the same folder as the show_news.php, and others because of /home3/name/public_html/cn_friendly_url.php script can not reach the file /home3/name/public_html/cdata/plugins/rewrite / conf_rw.php

434

(31 replies, posted in Problem Solving / Help & Support)

Put the following in the file ./сdata/plugins/rewrite/conf_rw.php (there is a plug-in installation file)

<?php
$conf_rw_htaccess = " /home3/name/public_html/.htaccess"; // <--- edit this
$conf_rw_readmore = "/news/view/%id/%title";
$conf_rw_readmore_layout = "/example2.php?subaction=showfull";
$conf_rw_archread = "/news/archive/%archive";
$conf_rw_archread_layout = "/example2.php?subaction=list-archive";
$conf_rw_readcomm = "/news/read/%id/%title/comment";
$conf_rw_readcomm_layout = "/example2.php?subaction=showcomments";
$conf_rw_newspage = "/news/read/%start_from";
$conf_rw_newspage_layout = "/example2.php";
$conf_rw_commpage = "/news/read/%id/%title/comment/%comm_start_from";
$conf_rw_commpage_layout = "/example2.php?subaction=showcomments";
$conf_rw_archreadmore = "/news/archive/%archive/%id/%title";
$conf_rw_archreadmore_layout = "/example2.php?subaction=showfull";
$conf_rw_archreadcomm = "/news/archive/%archive/%id/%title/comment";
$conf_rw_archreadcomm_layout = "/example2.php?subaction=showcomments";
$conf_rw_archpage = "/news/archive/%archive/%start_from";
$conf_rw_archpage_layout = "/example2.php?subaction=list-archive";
$conf_rw_archcommpage = "/news/archive/%archive/%id/%title/comment/%comm_start_from";
$conf_rw_archcommpage_layout = "/example2.php?subaction=showcomments";

435

(31 replies, posted in Problem Solving / Help & Support)

Hi,

If the .htaccess look like the one you wrote, this means the cn_friendly_url.php and .htaccess has to be in the cms main folder. (Please correct me if I am wrong).

Hence, I moved cn_friendly_url.php and .htaccess to /cms folder from /cdata/plugins/rewrite folder and rewrote the .htaccess to,

RewriteEngine ON
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /cms/cn_friendly_url.php?rew=$1&%{QUERY_STRING}[L]

Unfortunately, the page still load out an error 404.


Try to move the .htaccess file (above), at root folder.

436

(31 replies, posted in Problem Solving / Help & Support)

Hello,

I changed the .htaccess path back to /public_html/cms/cdata/plugins/rewrite.

The .htaccess file in the folder generated this,

Order Deny,Allow
Deny From All
<Files ~ "cn_friendly_url\.php$">
Order Deny,Allow
allow from all
</Files>

Please take note that this .htaccess file permission is set as 0644.

Edit: Upon changing to this, the page now load back error 404 again.

.htaccess should look like

RewriteEngine ON
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /cms/cn_friendly_url.php?rew=$1&%{QUERY_STRING}[L]

437

(31 replies, posted in Problem Solving / Help & Support)

Hello, thanks for the fast reply.

I corrected this showmore.php after I posted the extra information and it still doesn't work.


.htaccess file is in the same folder as the file cn_friendly_url.php? please, show your .htaccess file

438

(31 replies, posted in Problem Solving / Help & Support)

Here Use Layout (your *.php) - /showmore?subaction=showfull
Correct showmore --> showmore.php

439

(31 replies, posted in Problem Solving / Help & Support)

1. .htaccess is absent'
2. mod_rewrite doesn't work;
3. incorrect module settings.

440

(2 replies, posted in Problem Solving / Help & Support)

If you use a github version (1.5.4) Rewrite plugin can be loaded here https://cutephp.com/cutenews/plugins.php. If you use 1.5.3 it's embedded in the code.

441

(4 replies, posted in Problem Solving / Help & Support)

ID news are timestamp dates (php-function time()), exists in the first column news.txt

442

(1 replies, posted in Problem Solving / Help & Support)

Please specify the template's code where you add placeholder {avatar}

443

(4 replies, posted in Problem Solving / Help & Support)

It's a bug of 1.5.2.
Make necessary changes in ./inc/tools.php:
if (preg_match('/^[a-z0-9_]+$/i', '', $add_name) == false)
---->
if (preg_match('/^[a-z0-9_]+$/i', $add_name) == false && $add_name)

if (empty($add_vis))
-->
if (empty($add_vis) && $add_name)
[14:21:06] Гаманин Валерий: http://cute

1. The number of news start_from etc. is programmed by yourself so you can make your own conditions after $_GET['dosearch']
2. The search works with the regular phrases and shows even partly coincided results.

445

(31 replies, posted in Problem Solving / Help & Support)

In github version URL Rewrite Manager is transferred to the plugin that can be downloaded here https://cutephp.com/download.php?q=L3BsdWdp...mV3cml0ZS56aXA=

Make archives for news for better speed of new downloads.

1. Check your route to cutenews in Settings > Options. It should be http://www.amateur.org.uk/php. Second, do not delete images from the folder upimages. In uploads new images will appear.
2. The errors appear because include for the old version 1.4.x should be deleted from blegblog.php, line 23.

The route to the site in options > System configurations > General > Full URL to CuteNews directory should be http://www.fullmetalpanic-italy.com/cutenews

Edit: The problems with captcha and images appeared because of wrongly installed home dir in Settings.

Ok. Remove return $avatar; and add this line

echo "$editavatar --- $Px\n";

after $Px = SERVDIR.'/uploads/'.md5($editavatar).'.jpeg'; in core.php. Then send the result that will be displayed when loading the avatar. After it delete this code  (echo ...) after the results.