51

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

what's your CN include code.
Strangley enough your comment link links to show_archives.php

that hack should still work
only
$cutepath = �__FILE__;
has this weird character that should be deleted.

For that second option with the comments i believe there's a hack for it. Have a browse in that forum. I believe 'tagboard' was a keyword.

As for xfields, if it doesn't work out, there's also a tutorial to add extra fields in tha ahck forum.

When the wysiwyg is enabled the linebreak option is dissabled.
Unfortunatly the wysiwyg is quite old and doens't work in all modern browser. Chrome for example, the wysiwyg doesn't work from what i remember.

There are some alternates posted on the alst page of the hack forum.

the rss generation should generate an url like
http://localhost/cutenews/utf8-cutenews(9)...s.php?number=10
where number in the end is THE SAME as what you do with a CN include code.
Same way adding
http://localhost/cutenews/utf8-cutenews(9)...&category=2
at the end should show 10 stories in category 2

try deleting your cookies for the domain where you installed CN.
old install might be using the cookie from the new install.
COuld be a session problem aswell. But in that case you'dd probably need to use different browsers to be logged in simultaniously in the 2 installations.
Or explicitly logout of one of th installations yourself by clicking the 'logout' link might work too.

https://cutephp.com/forum/index.php?showtopic=25853
https://cutephp.com/forum/style_emoticons/default/wink.gif

in shows.inc.php or functions.inc.php you probably have one or more (as this is the default code of CN 1.4.6, i guess it's still the case in 1.4.7)
$QUERY_STRING
replacing all with $_SERVER['QUERY_STRING']

should solve the problem

http://docs.disqus.com/help/102/

-file is to big
-your webspace is full
-the data/upimages folder isn't writable anymore

Just some possibilities

You can always try to open your hack images.mdu
find
@copy($image, $config_path_image_upload.'/'.$image_name) or $img_result = "<font color=red>Not able to upload image.</font>
Make sure that file upload is enabled or contact your server administrator.";

and replace with
copy($image, $config_path_image_upload.'/'.$image_name);

in hopes the actual error is printed to the browser.

From what i remember disqus use the {news-id}
I agree with Support_team that you should ask the disqus support team if 1 comments box with the same news id can be used on different pages.

http://mittelstand-blog.de/cutenews/example2.php
doesn't do it, so you're doing womething wrong with the CN include code.
Did you use the integration wizard or did you write one yourself?
Either way, the exact code you're using might be usefull information.

Just looking at the source code of your rss in firefox, your rss titles stand out. the cdata within <description> has a dsitinct color, while between the title tags it's plain black.

Try using this for your rss.tpl (data folder and backup before overwrite!)

<?PHP
///////////////////// TEMPLATE rss /////////////////////
$template_active = <<<HTML
<item>
<title>{title}</title>
<link>{rss-news-include-url}?subaction=showfull&id={news-id}&archive={archive-id}</link>
<description><![CDATA[{short-story}]]></description>
<guid isPermaLink="false">{news-id}</guid>
<pubDate>{date}</pubDate>
</item>
HTML;


$template_full = <<<HTML

HTML;


$template_comment = <<<HTML

HTML;


$template_form = <<<HTML

HTML;


$template_prev_next = <<<HTML

HTML;
$template_comments_prev_next = <<<HTML

HTML;
?>

64

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

if (isset($_GET['start_from'])) {
$number = 'What number you use in your include';
$page_number = floor($_GET($start_from) / $number);}
else $page_number = 1;

Ifa you got a weird idea of how to use $_GET

updated

66

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

[img]{avatar-url}[/img]

most people get it to work in such case by deleteing the .htaccess (hidden file)
Although it's not a safe thing to do.

there's a hack for this
in case the above doesn't work.

How is this changed? "Easy fix: replace the $id variables in your page with $page, and change your links from ?id=... to ?page=... "

it's just in case you sites navigation uses ?id=
to load a specific part of the site.

Another CN hack that i know to have caused trouble because of ID was the ajax star rater.
Though i thought to have changed that part of the code to besafe others.

*useless pondering* Wonder why it's REQUEST instead of GET...


And what if you submit a comment? Then you don't have a GET subaction

then try this one

if(!isset($_REQUEST['subaction']) || empty($_REQUEST['subaction']))
   $category = "3";

since in the pagin links the subaction isn't given a value, empty() should fix it.

A solution that might work


just before include('show_news.php');
although we can't predict the impact it'll have on the script that also uses the $id parameter.

maybe i could, There' isn't really an over login script.
The check just happens in index.php before any of the inc files are included.
Which isn't such a safe way to do in the first place.

Only way would be by using a php $_SESSION
but not all CN installations use sessions and rely on cookies only.
And for cookies, a match against the database is needed.

Sessions would be the only good solution and quick solution i can think of.

Yeah, i remember that for some reason the 'official' fix didn't work for the very few.
Hopefully the 'official' fix works for you now.
Else in a last ditch desperate move we can use another dirty fix to fix the problem caused by the first fix.

may i ask what this is for?

if(!isset($_REQUEST['subaction']))

cause pagination link do have the subaction parameter.
And it seems rather useless code.

Posts found: 51 to 75 of 286

Pages Previous 1 2 3 4 5 12 Next

CutePHP Forums → Posts by FUNimations



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