26

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

1) there's a 'hack' for that.
But probably won't suffice for your needs.
2) 'add values' ... is a bit not descriptive. Could be anything.
But C probably wo'nt be able to do that without a hack (or plugin)

The sissue has been addressed in the utf-8 topic. Had something to do with the language file beinge read as 'UTF-8 with BOM'
while it should need to be 'UTF-8 without BOM'
With an editor like notepad++ you can open the file and change encoding settings (somewhere under then encoding menu and then theres an option that change the encoding. Don't set the encoding to something else, but do use the change option, they're listed lower)

28

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

Cn 1.5.0 seems to use a more object based coding.
Object oriented coding is not supported in the php4 versions (or very very poorly).
It's new in php 5.0.
And php 5 has been out for years now...You don't see many host that still use php4

29

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

the Next >> is a template.
Remove it.

30

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

Your PHP settings have been disabled by an H-Sphere administrator.

meaning you don't have php running on your server/hosting space.
Cutenews is written in php and needs php running for it to render.

.htaccess contains instructions that prevent public access to this file or directory.

starnge to see this along side to previous quoted message. Also check if the Cutenews ROOT dir (where you have show_news.php etc.) does not contain a .htaccess file (these files are usually hidden by ftp-clients and need to be enabled before you can see them)

31

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

If it where just the news that was gone, i'dd say no.
It's known that large news files can be 'reset' by the host cause the filesize has become larger then the permitted filesize on the server.
The users also being gone...

Maybe it is a hacker.
Eventhough the new owners made 1.4.7 it still has some vulnarabilites that 1.4.6 allready had.
Also a vulnarability in the site itself could be possibility. It's more common than you think. Many people writetheir own navigation script. Often something like: index.php?page=home
the 'page' value is never validated or sanitized where a 'hacker' could change that to
index.php?page=/cutenews/data/users.db.php to download that file. then they'dd have your md5 encrypted passwords which nowadays can easily be decrypted by looking through rainbow tables. Then a hacker just needs to login and delete all.
Or the file upload hack is just as dangerous.

32

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

It's definitely a html entity.
http://mrrena.blogspot.be/2009/07/entityre...-at-line-1.html
Maybe the CN urls are at fault? In CN 1.4.6 they where used as & and not like &
Not sure how it is now for 1.4.7.
You can try be editing the rss template.

WARNING: preg_match() expects parameter 2 to be string, array given in /HOME/SKYBLADE/PUBLIC_HTML/RAPTURE/CUTENEWS/SHOW_NEWS.PHP on line 44

your line 44 doesn't have th function preg_match
So it's probably some lines around 44. This can be different depending on the editor (doesn't happen often but it can)

Also please check if example2.php that came with the cn zip does work. if so, it's likely that some other php script on your page is causing trouble.
And then a code rewrite needs to be done.

34

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

if i where to guess i'd say you have a html entity somwhere in your news that isn't properly ended
like
& in your article being &amp
browsers can mostly cope with this, but for an rss feed it is critical.

35

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

link isn't workign now either

specially wrote it for you
https://cutephp.com/forum/index.php?showtop...st&p=154878

Error: Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function.

Reason: This kind of WARNING should never ever be shown by hosts.
I blame a bad server configuration.

Solution: report the warning to your host or follow below steps
Open shows_news.php index.php and show_archives.php
and add below <?php

date_default_timezone_set('America/Belem');

The bold part is your timezone identifier.
A full list of identifiers can bze found at http://www.php.net/manual/en/timezones.php however, not all will necessairly work on your host.

the exact reason has never been uncovered, but removing the .htaccess file from the data folder 'fixed' it for others.
Be warned that this isn't a definitive fix, as it makes your data files public and anyone can view them, making your CN vulnerable for hacking.
You should only remove the file when you need to update template files.

39

(7 replies, posted in Script Feedback and Suggestion)

there's a hack for recent comments

<!-- KLEUREN
bordeaux: #810100
blauw: #446488

blok_nieuwsbrief: rij 30
blok_nieuwtjes: rij 167
!-->
<script TYPE="text/javascript" LANGUAGE="JavaScript" SRC="../../js/menu_array.js"></SCRIPT>
<script TYPE="text/javascript" LANGUAGE="JavaScript" SRC="../../js/mmenu.js"></SCRIPT>
<link href="../../css/style1.css" rel="stylesheet" type="text/css" />

<body id="body">
<center>
<div id="hoofding">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td>[img]../../images/folkinlimburg.png[/img]</td>
      <td><div align="right">[img]../../images/dansers.png[/img]</div></td>
    </tr>
  </table>
</div>
<div id="hoofdmenu"></div>

<div id="kolom_nieuws1">
<div id="blok_nieuwtjes">
<h2>Nieuwtjes</h2>

how did you ever added this using the Control panel?
There's a reason why you can't do something like that using the control panel.
And why would you place it there rather then in your site?
Doing strange stuff like that is just asking for a site which html is invalid to a possible point of no repair.

oh boy, i so hope that's not your actual template file.
Anyway i've tried out your shows.inc.php in my installation with your template file.
And the page-view tag is being replaced. Try reuploading your files.

Oke, that does look like it's correct.
And you'e sure the tag is 100% correct? like the curly brakkets aren't saved as their html entities?

It's the page where you use the cutenews include code, ie

i'm not sure how you think this would be default.tpl?
Open the file that has your CN include code.
Put it their right under the <body> tag of your site.
The <body> tag isn't even part of CuteNews, but is part of your site.

it's pretty safe to say

find:
CODE
$output = $template_active;
add under:


this part was forgotten

it's what page i should add "<div id="fb-root"> </ div>" to?

It's the page where you use the cutenews include code, ie
CODE
$number = '5';
$template = 'something';
include('cutenews/show_news.php');

sorry but the original answer seems quite clear to me.

the sacond part of the code goes in the template under the comments form part.

such a problem often occurs when someone changes the foldername where CN is located.
Doing a logout directly after login in should solve that.

Another cause could be that there is a php error/warning. But that your host has opted to hide those messages.
This could result in your browser not writting a cookie to save your login session.
Checkign the server logs for any possible errors regarding CN files could point you in th right direction and is possibly fixable using this thread
https://cutephp.com/forum/index.php?showtopic=25853

Cutenews uses the id parameter. You cannot use it with your own naviagtion scriot; You'll have to use another parameter name

you could just upload a empty data/users.db.php
and upload the inc/install.inc file
that should trigger it.

49

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

<?PHP
echo file_get_contents('news/show_archives.php?archive=1333876794&subaction=list-archive&');
?>


any questions? smile.gif


yes. Why you think the original author bothered writting a readme.
Your code is all wrong. hmm
And there are 2 good hacks to do the same as you're trying to do with that file_get_contents();

NEVER EVER edit show_news.php or show_archives.php to include html.

50

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

http://www.wantedfm.com/example1.php?subac...amp;ucat=1&amp;
has multiple facebook comments
http://www.wantedfm.com/example1.php?subac...tart_from=&amp;
has none...

Not sure why you claim

I put a comment on PAGE A then click on PAGE B the comment is also on page B... meaning if a site user comments on one article it appears on every article.

that would mean i'dd have to see comments on the second link as well, while i don't.

Posts found: 26 to 50 of 286

Pages Previous 1 2 3 4 12 Next

CutePHP Forums → Posts by FUNimations



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