Hey...

EDIT:

It seems like once it jumps into full story, it starts to use the default template instead of my custom one... Why and how do I fix this.
Same if I use the highlights template, once I click into the full news, it jump rights back and uses the default full story template -.-

Copy the templates' html code and paste it into your favorite editor. And after editing it do it vice versa.

Would like a more automated solution though. Like, if it was possible to run php in the template code, it would be easy to do include 'main_template_short.html';

Can I somehow edit the templates outside my admin page? Would make it alot easier to edit it in Aptana Studios.

EDIT: FIGURED IT OUT...

Just using $Start_where or whatever it was called https://cutephp.com/forum/style_emoticons/default/smile.gif

A new question... Can I build the site completly on XAMPP then uploud it to the web host and it all will work? Or what kind of changes do I have to do to make it work?

hello i´m new here and i cant find any course of html online.
can you help me?

Hey! If you're talking about simple HTML from the ground, check this page out: http://www.w3schools.com/html/default.asp

I have the exact same problem, being 1 hour behind!

OK very thanks for help. Now, I have titles of news and sentence: ,,posted on 2013 Feb 07 by Chrzano". Where can I change this on e.g. 2013 Feb 07?

And can I put all the titles in left side, no center? 

Sorry for my English, I'm from Poland https://cutephp.com/forum/style_emoticons/default/tongue.gif

You go to options > edit templates > "Switch to Templete" there you choose headlines then click "Go" > Now under for example "Active News" you can edit the appearance.

You should have replaced the sequence  " ...... (exact chars in zip file) ..." with the symbols from the zip file we had sent you before, as the forum decodes these symbols back into characters.
So, please send functions.inc.php file to support@cutephp.com, and we'll take the necessary changes; or, alternatively, attach the file on the forum.

Yes, I did that with the symbols from the zip. Once I've done that, rss didn't work, and the title's on the main page was replaced with "?" marks with a black rectangle around them.

For this try to change in  ./inc/functions.inc.php the line

function replace_news($way, $sourse, $replce_n_to_br=TRUE, $use_html=TRUE){
    global $HTML_SPECIAL_CHARS, $config_allow_html_in_news, $config_allow_html_in_comments, $config_http_script_dir, $config_smilies;


to

function replace_news($way, $sourse, $replce_n_to_br=TRUE, $use_html=TRUE){
    global $HTML_SPECIAL_CHARS, $config_allow_html_in_news, $config_allow_html_in_comments, $config_http_script_dir, $config_smilies, $template;


where

$sourse  = preg_replace($find,$replace,$sourse);
           foreach ( $HTML_SPECIAL_CHARS as $key=>$value  ){
                     $sourse = str_replace($key,$value,$sourse);
           }


change to

$sourse  = preg_replace($find,$replace,$sourse);
           if ($template != 'rss') { foreach ( $HTML_SPECIAL_CHARS as $key=>$value  ){
                     $sourse = str_replace($key,$value,$sourse);
           } }
           else { $HTML_SPECIAL_CHARSRSS = Array
           (
              ...... (exact chars in zip file) ...
           );
               $sourse = str_replace(array_values($HTML_SPECIAL_CHARSRSS), array_keys($HTML_SPECIAL_CHARSRSS), $sourse);
           }


in same file

That made rss to stop work completely & made åäö stop working on the main page.

But I think I know where the problem is. It's the title. If you look here http://nhlkollen.se/ny/admin/rss.php?category=1 it's only missing åäö in the title. And when I did this solution you sent me, åäö stopped working in the titles on the site as well. I've no idea how this problem came to be tho!

Specially in case of correction of "åäö" there is a plugin that corrects the bug in RSS. The php file in zip file should be got to  ./cdata/plugins/

html_entity_rss.zip

Thanks, but that's for the new version of cutenews, right? I'm having the old CuteNews 1.4.7 on this site (working on a re-build with the new version...)

EDIT: Can also add, that it worked a long time ago, then I was mixing with some file in some folder, and it stopped worked. When I say workarorund I'm thinking maybe some string replacement somehow in rss.php? But I've no idea how to do it.

Hi! The åäö stopped working a long time ago: http://nhlkollen.se/ny/admin/rss.php?category=1
I remember saving or changing something/some file, and haven't been able to fix it since that... I'm rebuilding the site with 1.5.2 but until that, I would like to fix this problem... Either by going to the root of the problem or by some workaround fix.

Hi! I've downloaded cutenews 1.5.2 & installed it like I did with 1.4.7 back in the days. Everything works like it should but not åäö. There's questionmarks instead. Any idea why?

I've saved the file in utf-8 and everything like that!

I have used a few but have always returned to Cutenews.
The problem is they don't last long. The programmers move on and no longer develop their programs.
The only one that has lasted, so far, is Fusion News. http://www.fusionnews.net/
Cutenews is better.

Oh, sorry but I was talking about a "forum". Not a new news feed! https://cutephp.com/forum/style_emoticons/default/smile.gif

This is probably wrong to ask here but, I though I'm gonna do it anyway. Is there any free forum, that's just as easy to use as CuteNews? I mean, it's so easy to just "include" the news feed on a site where ever I want. I hate all these phpBB forum or whatever they are named, and they all look the same. Would be great if there was some sort of CuteForums, where I simply just could "include forumsthreds" and some other place "include forum-loginpanel" etc.

Hi!

I've added the rss feed to my webpage... But it shows from all categorys, I've tried to go into Options > Integration Wizards (News and RSS) > Rss Setup and Integration > RSS Customization... And then choosing the category and generating the html code. But still it's showing from every category... Any ideas what the problem can be?

Even if I remove the generated html code from my index page, the RSS feed still working?

$output = str_replace("{test}", rating_bar('1','5'), $output);

Would that work?

Haha finally it works! Thank you!!

Hi!
Today I've downloaded this!
http://masugadesign.com/software/unobtrusi...tar-rating-bar/

I have completed everything, but I don't know how I'm gonna display it on everynews.

I'm gonna need to say this after every news:
"<?php echo rating_bar('1','5'); ?>"

So I though of this. I went to shows.inc.php and made this line under "active news"
echo rating_bar($news_arr[0],'5');

And it works! But the problem is that it's either ifront of everything in my template or behind everything in my template. I doesnt get into the template, it gets either before or after... So than I though of this:

$rate = "echo rating_bar($news_arr[0],'5');";

$output = str_replace("{test}", $rate, $output);

And then in my template writing {test}
and I get the right info displayed, but only in text. I've tried to add <?php and that before but ofcourse in the template and news there can be php?

So how can I do this?
I'm not very good a php, so maybe there is a really easy solution?

EDIT: I want to be able to control where my rating is from my templates...

Hi! I'm searching for some hack or some otherway to show a random full story article? I googled and found this, but it doesn't seem to work for me? (I've got Cutenews 1.4.7)

https://cutephp.com/forum/index.php?showtopic=4464

...not work again  NHLKOLLEN can u help me with that if i create for You admin account to english version of my site? I'm too dumb... Thanks if you agree to help me https://cutephp.com/forum/style_emoticons/default/smile.gif

Sure I can try to help, send a message here on the forum with the account information! https://cutephp.com/forum/style_emoticons/default/smile.gif

<!--oddzielnik-->
          <tr>
          <td height="45" background="images/rightbar_01.png">
          </td>
          </tr>
          <tr>
          <td  background="images/rightbar_02.png" valign="top">
     <table width="660" align="center">
          <tr>
          <td width="660" class="inside">

<font size="1">Posted on {date} by {author}</font>
<h2>• {title} •</h2>

{short-story}

<p align="right">[com-link]{comments-num} Comments[/com-link] [full-link]Read more[/full-link]</p>
         </td>
         </tr>
         </table>
         </td>
         </tr>
         <tr>
         <td height="30" background="images/rightbar_02.png"> </td>
         </tr>
         <tr>
         <td height="39" background="images/rightbar_03.png"> </td>
         </tr>
           <!--oddzielnik-->

Ok, as you can see u using [com-link] to link to your full story. Change [com-link] to [link] Comment here [/link] instead and see how that works. https://cutephp.com/forum/style_emoticons/default/smile.gif

Without coding, and the easiest way, would be to make a extra category for those news that go to 1 and 8. This though might not work for everyone, depends on the use.

Example: News in category 1 and 8 go also to category 9, and then just use $category = "9";

Or do you want to start hacking? https://cutephp.com/forum/style_emoticons/default/smile.gif

Yeah I was looking for some sort of hacking because I'm gonna ned alot of categories.

How do i enter into full story? Under short story i have clickable text read more(default by cutephp).I think that disqus comment work perfect. Now i can't do that thing with comments counter. When i try to put that thing:

<quote> $output = str_replace("[link]","[url=$PHP_SELF?subaction=showfull&id=$news_arr[0]&archive=$archive&start_from=$my_start_from&ucat=$news_arr[6]&#disqus_thread$user_query]", $output); </quote>

i have that PHP error(when i want to open my page in firefox or explorer have white page with that error):

Pharse error: syntax error, unexpected T_VARIABLE in /home/bzrock/public_html/news/inc/shows.inc.php on line 693 can u help me with that?

Here is my shows.inc.php file <a href="https://rapidshare.com/files/3272212661/shows.inc.php" target="_blank">click[/url]/

hope You can help me with that

and one more thing maybe You know how to add something like this to my page:
When i want to post link to my page(or to news on my page) facebook always write the same link discription with the same thumb image. When i want to put something on facebook i want discription from last news(or from news to which url i post.

If you go to my site, www.nhlkollen.se, you can see the text under my posts that says "Lägg en kommentar" which means "Comment". That line "Lägg en kommentar" is made by disqus.

If you press on "Lägg en kommentar" you will see in the url, for example:
http://nhlkollen.se/index.php?subaction=sh...amp;ucat=3&amp;#disqus_thread

that #disqus_thread is in the end of the url. To make disqus count the comments you gonna need to add #disqus_thread to your url when in full story. This line:
$output = str_replace("[link]","<a href="$PHP_SELF?subaction=showfull&id=$news_arr[0]&archive=$archive&start_from=$my_start_from&ucat=$news_arr[6]&#disqus_thread$user_query">", $output);

Adds that to the url if you use [link]Comment[/link].
Can u paste your edit templatess > active news? That would help alot! https://cutephp.com/forum/style_emoticons/default/smile.gif

Title should ofcourse be "$category = "1" AND "8";?

Hi!
How can I make so a news is only showed if it's posted in category 1 AND 8? So if it's only posted in category 1 it's not going to show, if it's only posted in category 8 its not going to show, but if it's posted in 1 AND 8 it's going to show?

Hi NHLKOLLEN. I do what u write but have several problems. Comments work almost perfect but i can't put it into cutephp comments look at my site here. I have special place frame for comments.

When i do what You say about comments count(edit that file on ftp) i've got some php error.  Parse error: syntax error, unexpected T_VARIABLE in /home/bzrock/public_html/news/inc/shows.inc.php on line 693 can u help me with that?

First of the comments count. There shouldn't actually be a problem, since you just adding #disqus_thread to your fullstory url. How do u enter into full story? How does your template look on "active story"?

About the other thing. The problem is that cutenews comment is in edit templates > comment and edit templates > add comment. But I've tried to put the disqus comments there instead of edit templates > full story, and it didn't work good.

So the thing you could do is this:

You can try to put this code instead in edit templates > full story. (remember to change example to your disqus shortname.)

</br>
http://i.imgur.com/bsKms.gif?1?2940<div id="disqus_thread"></div>
<script type="text/javascript">
    /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
    var disqus_shortname = 'example'; // 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 = 'http://' + 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>

You basiclly just adds a picture before disqus comments to make it look like before. You may want to make your own picture so make it look correct.

Ok, this is how I've done it. It may not be the best way, or the most correct way.
You may want to backup some files if something goes wrong. I think I wrote everything that is needed to do this, if not I'll help you until it works!

if you come across any problems, say what's the problem is, and link your website and I'll help you. https://cutephp.com/forum/style_emoticons/default/smile.gif

1. Go to http://disqus.com/ and sign up.
2. Login on your account on disqus.
3. Under the tab "Moderate" click "Install".
4. Now you will see alot of options like WordPress, Blogger, Tumblr etc. But if you look down you will see one that says "Universal Code". Press that.
On this page you will see some like "Your forum shortname is *******" That shortname is very important.
6. Copy the code under "Embed code". It should look like this:

<div id="disqus_thread"></div>
<script type="text/javascript">
    /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
    var disqus_shortname = 'example'; // 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 = 'http://' + disqus_shortname + '.disqus.com/embed.js';
        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
    })();
</script>
<noscript>Please enable JavaScript to view the [url=http://disqus.com/?ref_noscript]comments powered by Disqus.[/url]</noscript>
[url=http://disqus.com]blog comments powered by <span class="logo-disqus">Disqus</span>[/url]

7. Now the fun part. Login on your Cutenews and go to Options > Edit templates > Full Story.
Paste your disqus code somewhere here. (You should paste it on the buttom so the comments are after the text...) 

Now before you save you must change "example" to your own disqusshort name. You will see the short name on this site:
http://docs.disqus.com/developers/universal/

var disqus_shortname = 'example'; // required: replace example with your forum shortname

8. Erase everything under "Add comment form","Comment" and "Comments Pagination". (to remove cutenews comments.)

That should work now. But that won't count the comments. If you want to do that there some more work:

1. Login on your disqus account and go to Moderate > Install > Universal Code > Scroll down until you see "Commet count".
Copy this code:

<script type="text/javascript">
    /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
    var disqus_shortname = 'example'; // required: replace example with your forum shortname

    /* * * DON'T EDIT BELOW THIS LINE * * */
    (function () {
        var s = document.createElement('script'); s.async = true;
        s.type = 'text/javascript';
        s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
        (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
    }());
</script>

2. Login on your cutenews agian.
3. Go to Options > Edit templates > Active News. Here you will find cutenews own link to the comments. Something like this [com-link]Comment {comments-num}[/com-link]

Remove that and paste this:

<div style="float: right;">[link]<script type="text/javascript">
    /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
    var disqus_shortname = 'example'; // required: replace example with your forum shortname

    /* * * DON'T EDIT BELOW THIS LINE * * */
    (function () {
        var s = document.createElement('script'); s.async = true;
        s.type = 'text/javascript';
        s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
        (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
    }());
</script>[/link]</div>

4. Remember to change "example" to your shortname agian. If you save now, you will see that there is a new link to the comments and that's the Disqus link. But, still It can't count the comments. Now it's may get's a little more tricky.

5.Now you need to go to login on your FTP program and navigate to cutenews folder > inc > and open "shows.inc".
Here you should find a line that looks like this:

$output = str_replace("[link]","<a href="$PHP_SELF?subaction=showfull&id=$news_arr[0]&archive=$archive&start_from=$my_start_from&ucat=$news_arr[6]&$user_query">", $output);

Replace that line with this:

$output = str_replace("[link]","<a href="$PHP_SELF?subaction=showfull&id=$news_arr[0]&archive=$archive&start_from=$my_start_from&ucat=$news_arr[6]&#disqus_thread$user_query">", $output);

That's gonna add "#disqus_thread" to your url when you're in full story.

That should be it!
If you want to change the "Comment this" text or what it says. Login on disqus.com, go to settins > appearance and scroll down to. "Comment Count Link"

Posts found: 1 to 25 of 36

Pages 1 2 Next

CutePHP Forums → Posts by NHLKOLLEN



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