Please show us the code including the show_news.php script and the parameters it receives.

I've found the issue of the problem. Apparently $static was set to true, which was something I had to set when I was trying to fix the pagination earlier. Removing "$static = TRUE;", everything seems to work now. Thanks for the help.

You need to run the migration_update_indexes.php script that is located in the root directory of CuteNews. This script converts indexes. If you have a lot of news items, it is better to run this script from the console on the server.

I did run the script located in http://thalley.com/CuteNews/, but the index still doesn't work.

Dear thalley,

We've fixed the pagination bug in the new version of Cutenews. Please update it.

Sounds great, how do I update CuteNews?

EDIT: I downloaded and followed steps 6-10 from https://cutephp.com/forum/index.php?showtopic=44104 (altho' GitHub doesn't seem to have a 2.02 release, so I downloaded it from https://cutephp.com/ instead), and did the migration. The problem still exist.

Dear support team, I'd love to get another response from you since it has now been over a week since you've responded to this issue.

You need to go to Dashboard > System configurations > Rewrite, uncheck Use rewrite engine, save the results and check whether the pagination works now.

Pagination does still not work with rewrite unchecked.

Does pagination work when CuteNews Rewrite is disabled? What does you .htaccess file content?

How would I go about disabling CuteNews Rewrite to test that?

The content of my .htaccess file is:

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

After I ran the migration_update_indexes.php script, all URL rewrites stopped working, including links to full stories.

It seems like you haven't searched well enough, since mod_rewrite is a module of the Apache web server and you can check whether it is on in Server configurations. If you have another server, you need to search for the appropriate module with similar functionality.

I've been in contact with the support team at my hosting provider (ipage.com) and they assure me that mod_rewrite is enabled and that the problem is most likely with CuteNews. Any idea what to do?

No, you need to run the script in the CuteNews root directory  - it is a separate utility which can be run the following way: http://thalley.com/migration_update_indexes.php .

Ah, thanks, that helped, now the arrows are back. They don't seem to work however. They link to http://thalley.com/list-10.html, http://thalley.com/list-20.html, etc., but nothing on the site changes when pressed. Any idea what's wrong?

Dear thalley,

Try reindexing the news with the help of the migration_update_indexes.php utility. Please be advised: if the number of news items exceeds 200-300, the utility should be run via a PHP console on the server or you should increase the execution time for this script.

Do you mean the Migration in Dashboard > Maintenance? I did that already when I upgraded to CuteNews 2.0.

On my website (http://thalley.com/index.php) I have set CuteNews to show only 10 news at a time, but after upgrading to 2.0, the pagination arrows (next/prev) disappeared, and my visitors are no longer able to see more than the latest 10 news. Why are they not showing and how can I get them to show?

Great, thanks a lot!

I've been using Disqus for my website for some time now, but it suddenly stopped working after I upgraded to CN 2.0.
I've been trying to debug it and find the course, and my result so far is that the javascript in:

<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><div id='disqus_thread'></div>
<script type="text/javascript">
  /*** CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE ***/
  var disqus_shortname = 'thalley'; // required: replace example with your forum shortname
 

  /*** DON'T EDIT BELOW THIS LINE ***/
  (function(){
     var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
     dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
    })();
</script>
<noscript>Please enable JavaScript to view the comments powered by Disqus.</noscript>
comments powered by &lt;span class=&#039;logo-disqus&#039;&gt;Disqus&lt;/span&gt;</div>

Simply isn't executed. The code is right now in my "Add comment form", but I've also tried putting it in my "Full Story" form. A weird thing is that if I put the code outside of these forms, it works just fine. Is there any chance that CN is somehow wrecking the code?

I am having problems with my pagination as well. My problem is the same as yokesi's: The "Next" and "Prev" is simply not appearing - not even on example.php.

Thanks a lot, exactly what I was looking for! 

Is there any way I can automate the page aliases so that I don't have to write and format the title in the "PAGE ALIAS" field myself? As it, automatically have it so that a blog entry with title "This is an entry" automatically becomes "www.website.com/This_is_an_entry"?

Great work on CuteNews 2.0 btw!

Hello, I've been searching around a bit for this, but have only found 6+ year old responses that I'm sure will work anymore. Anyways, is there any (easy) way where I can get static URLs for my news entries using CuteNews, instead of dynamic URLs?

In other words, instead of:

http://website.com/index.php?id=someID

I want:

http://website.com/titleOfPost

Hope someone can help with this.

Hello again,
What is the code for google plus ? {google} doesn't work and it's not in the help links.
Thank you

I doens't seem that they have implemented that yet (here's hoping that they will soon).

I have problems adding the facebook-like button to my full stories as well (the {fb-like} tag doesn't seem to do anything - Same goes for {twitter}. Other tags in the same place, such as {year}, {month}, etc. works just fine.

"Year: {year}, FB: {fb-like}, month: {month}" gives this result: http://puu.sh/4befw.png

Hello, I, and some commentators, have been getting timeout errors on my site.

Sometimes when I write or edit news entries and I want to save it, I get a timeout error and have to refresh and try again.

I've been getting reports from comments that they sometimes get a timeout error as well when commenting.

Is there any fix to this?

Yes, in Options > Edit Template use the [full-link] tag along with {title}.

Thanks https://cutephp.com/forum/style_emoticons/default/smile.gif

Is it possible to make the title of a news entry be the link to the full story, instead of only having the "Read more" link?

Hello,

You can change the look & feel of CuteNews by editing the templates. This can be done in Options > Edit Templates in the administration area. I believe the <div> has a predefined width in there that you can change. https://cutephp.com/forum/style_emoticons/default/smile.gif

Ah, perfect. Thanks!

I recently just added CuteNews to my website (integration). Is there any way to change the width of the entries? I've looked through Options, but I can't find it anyways.

Would it also be possible to have the width of the entries to fit the size of the div it is located inside? In other words, I'd like the entries to fit the size of the colored area in http://puu.sh/2XIYG.png.

Thanks in advance

Posts found: 21

Pages 1

CutePHP Forums → Posts by thalley