What is most funny on this thread is that:

- First I asked you what I have to write in the .htacces => I found it by myself!

- Then I set up my already EXISTING htacces with the neccessary rewrite enging, NOT created!

- Then I asked you WHERE IS THE LAYOUT FILE - BECAUSE and here it comes: my redirected article are WITHOUT DESIGN!

And you tell me about something something, offtopic, something!

Do you know your own script?

Login -> Go to "Dashboard" -> then Rewrite ->

Read line 3:
Real path to your layout file
e.g. /home/userdir/www/layout.php

SO LAST TRY:

Where is a model, a template, a pattern, a EXAMPLE of this file!?

And yes, users need an example doesnt matter if they are experts or not!

In CuteNews, the htaccess file is generated automatically and you don't have to know what to write in this file if you're not an expert, and that's the reason why there's no documentation for CN.

That was the funniest reason I ever heard in my life for "not giving a documentation".

If you need to know what and how to write in the htaccess file, please refer to the official documents .

OMG, I already used htacces in my life many times and I was setting up mod rewrite for my forum successfuly, thank you.

When enabling rewrite in CN, you just need to make sure that the htaccess file is created in the right place and is processed by the server, as for the the rest, CN converts all the paths to the news  automatically.

Yes, I will look for the htaccess. Maybe it will be created in the cutenews folder? Hm, I guess that would be ONE of many explainations good for a documentation, you can not create because "it is only for experts". Maybe that's the reason: There would be more experts, who could set up rewrite enginge IF YOU WOULD create a documentation on this.

Okay, I realy have to say, I tried this forum many many times hoping for REAL support and now, after getting only POINTERS from you, then waiting another week for the next response I give up!

You simple answered not a single one of my questions. I dont know, If you realy not read them, because you dont take the time for your users or maybe you don't have the talent for doing support.

So I go and take my questions with me, because I found nothing about the "layout file" in this whole forum or in google, BUT it should be created somewhere, somehow, because I have to use a path to it in the admin panel - GREAT!

I ask and I ask and I ask and I get only answers like this - realy?

And another topic from me, waiting for response for an 404 error page: 0 replies. Thank you for nothing.

There is simple no 404 function in your script and I am nearly right before deleting this script, because the support seems to be in the same quality as some functions of this script, which has a great potential but the transformation in reality is a little bit abnormaly like the so called "support".

Good Bye!

PS. My last statement: Auto-generated htaccess can not work on every server. Think about it very deep!

Hello,

I have a 404 error custom page in my htaccess.

Is there anyway to make cutenews understandable to use this document?

Or if not, is there a other way to use a 404 error custom page for links from cutenews with no content.

Greetings
Peter

I found this in google:

# --- CUTENEWS[ST]
RewriteEngine ON
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /admin/scripts/artikelsystem/show_news.php?cn_rewrite_url=$1 [L]
# --- CUTENEWS[ED]

Why can I not find any documentation to this?

What next, where is the layout file?

What should I write in the layout file?

Header
What should stay here?
Footer


You need to check whether the .htaccess file is located in the right directory. Probably, the server identifies the path incorrectly. Please check whether the rules used in your cms contradict the ones of .htaccess.

No its correct: /var/www/vhosts/x-invest.net/httpdocs/.htaccess

My question is: What I have to write in this htaccess?

Hey,

I am new to htaccess and the rewrite option.

What actually I have to do with this rewirte option int he system configuration?

I turned it on and what now? The link changed from

http://x-invest.net/tippstricks.php?id=myarticle

to: http://x-invest.net/tippstricks/myarticle.html

and I get a 404 error. What next?

I see no documentation to this and no topic!

Best Regards
Peter

Okay, thank you for your answer!

Let me know about that update, if you remember me...

A second field for the url would be wonderful!

I am nearly done with the installation of this script.

It would be nice to get some help!

I still see no reason for users to fill in the email in the comment section!

For what is it?


Also there is the option in the admin panel "Use email as URL"...

Still the question, for what is it good?

The comments do not show this field! - So please explain how to do that...

I think it should not be so difficult to give some help here.

Greetings!
Peter

After getting some support from a friend I changed easily:

$rawdesc = $entry['f'];

to

$rawdesc = $entry['s'];

to get the short story in my description meta tag.

Thank you anyway... ;-)

Peter

Sorry, I was to fast (again).^^

I found the option in the comment section of the configuration.

If some (german) person has the same problem...

You should insert: d.m.Y (H:i) - as example.

The H has to be a uppercase H, not "h".

Greetings
Peter

Hello again,

I am posting alot (I know), but I need only a few things to get it work like I want.

I am almost 50% done and need now little help with the timestamp in the comments (because my site is in German)
and want to change the time from am/pm to 24 hours...

Yo know, i mean this line:

posted by xxxxx @ 24 Feb 2015 10:13 pm

I want to change this (how it looks on my site at the moment):

Peter schrieb am 24 Feb 2015 10:13 pm


(as example).

to this:

Peter schrieb am 24 Feb 2015 22:13

or even better to this:

Peter schrieb am 24.02.2015 um 22:13

Which timestamp, in which file should I change to what exactly to get this?

Many thanks in advance! Hope I could get help for this.

Greetings
Peter

Hello,

I think it would be great to save the text message, you fill in in the comment section would be not lost, if you make something wrong.

As example, if I wrote my 100 words and forgot the captha (or even type it not correctly!), the NEXT page shows me an error message. If I click back, all my comment is lost.

For me that is personal a no go, because customers would be very dissapointed about that - and also comments are lost for the admin!

I think the error messages should be apears in the comment form, popup with java script or the comment should be save in the cookies.

3 ways in my opinion to make it much more userfriendly...

Thank you for your attention!

Greetings
Peter

PS. But it is still a great script, as i already wrote here in the forum and in my email... ;-)

Hello again,

is it possible to show the URL (email), which will be filled in the comment form to show in the comments, beside the name?

I mean the same field as the email field, because I use it for URL, through the option in the admin panel, which allows me that.

Greetings
Peter

$fdesc is obtained from the variable $ rawdesc,which is initialized by the contents of full story ($ entry ['f']). If you want to replace it with short story, you need to modify the code so that variable $ str would be used instead of $rawdesc, which is initialized by the contents of short story ($entry['s']).

Could you please be a little bit more clear?

- Which file I have to modify?
- For which line should I look?
- Should I only replace $rawdesc with $str?

I would appreciate an answer not only for coding specialists! ;-)

Greetings
Peter

Hi,

i found how I can add the news title in the title tag here.

Also I found there a way how I could use a description, but wait there for reply how I can use the short story for it.


I would be still happy for an idea, how I could use the tags below the full story for the keyword meta tag, but I will post this question in the thread above. Thank you!

Sorry, for this topic here, I searched before in this forum, but was not able to find the right solution.

The topic above helped me, thank you for attention.

Greetings
Peter

Hello...

I use in this code in my newssite, with little changes:

<?php 

require_once '../scripts/artikelsystem/cn_api.php';
$entry = cn_api_get_entry();

if ($entry['t'])
{
     // ........
     $header_title = $entry['t'];
     $str = $entry['s'];
     $rawdesc = $entry['f'];
    
function get_string_between($string, $start, $end){
    $string = " ".$string;
    $ini = strpos($string,$start);
    if ($ini == 0) return "";
    $ini += strlen($start);
    $len = strpos($string,$end,$ini) - $ini;
    return substr($string,$ini,$len);
}

function stripBBCode($text_to_search) {
$pattern = '|[[\/\!]*?[^\[\]]*?]|si';
$replace = '';
return preg_replace($pattern, $replace, $text_to_search);
}

$rawdesc2 = stripBBCode($rawdesc);

$pattern = "/[a-zA-Z]*[:\/\/]*[A-Za-z0-9\-_]+\.+[A-Za-z0-9\.\/%&=\?\-_]+/i";
$replacement = "";
$sdesc = preg_replace($pattern, $replacement, $rawdesc2);
$fdesc = strip_tags($sdesc);

$image = get_string_between($str, "[img]", "[/img]");

echo "
        <meta name=\"description\" content=\"".$fdesc."\" />
        <title>".$header_title."</title>
        ";
} else {
      
echo "
        <meta name=\"description\" content=\"MY DESCRIPTION.\" />
                <title>MY TITEL</title>
        ";
    }    

?>

Do anybody know how I can use the "short story" for the description instead of .$fdesc?

Because at the moment the description shows me the Titel in front and then some words from my test news (maybe the full story).

I only want the short story in the description without the news title in front.

Greetings
Peter

Your final code should be something like this,

<?php

$number="4";
$template = "default";
$PHP_SELF = "thepagewhereyoupost.php";
include("yourcutenewspath/show_news.php");
    
    
require_once 'yourcutenewsfolder/cn_api.php';
$entry = cn_api_get_entry();

if ($entry['t'])
{
     // ........
     $header_title = $entry['t'];
     $str = $entry['s'];
     $rawdesc = $entry['f'];
    
function get_string_between($string, $start, $end){
    $string = " ".$string;
    $ini = strpos($string,$start);
    if ($ini == 0) return "";
    $ini += strlen($start);
    $len = strpos($string,$end,$ini) - $ini;
    return substr($string,$ini,$len);
}

function stripBBCode($text_to_search) {
$pattern = '|[[\/\!]*?[^\[\]]*?]|si';
$replace = '';
return preg_replace($pattern, $replace, $text_to_search);
}

$rawdesc2 = stripBBCode($rawdesc);

$pattern = "/[a-zA-Z]*[:\/\/]*[A-Za-z0-9\-_]+\.+[A-Za-z0-9\.\/%&=\?\-_]+/i";
$replacement = "";
$sdesc = preg_replace($pattern, $replacement, $rawdesc2);
$fdesc = strip_tags($sdesc);

$image = get_string_between($str, "[img]", "[/img]");


      echo "<title>".$header_title."</title>\n";
      
} else {
      
        echo "<title>Your Website Title</title>\n";
    }

?>

Change require_once 'yourcutenewsfolder/cn_api.php'; and <title>Your Website Title</title> to the correct path and name.

It should not be directly as this. I put it on top to the other meta tags and let the code from the integration wizard in my main content section below. If you use the code, like you posted it, the title will be shown in the content code, where the rest of the body is and this would be not so seo friendly in my eyes. So I have to php code sections for this - one in the header, the other in the body.

Hello,

first of all, thank you for the great script. I searched many hours for something like that and it is exactly what i want!

I used the integration wizard and just want to use seperate meta tags for every full story. If I click on fullstory, the site title and description of the main news site will be shown. I think for future updates, it would be nice to have just 2 fields for that in the full story and a second code for the header.

In the meanwhile is there are any trick to fix that?

Would it also be possible in that sense to use the "tags" (from the admin panel below the full story) for the keyword meta tag?
(I know google do not use them, but I would need it for my search bar script, because I can not use the cute news search function for it, while having more static html content). I think it would also great here to have the news files in the data folder not as encrypted version, because file search scripts can't read that!

So I want to found another way for now. I would be very thankful for help!

Greetings from Germany
Peter

Posts found: 18

Pages 1

CutePHP Forums → Posts by xinvest



The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.