Skip to forum content
CutePHP Forums
Dear CuteNews Users! Please feel free to contact us via our new Feedback Form and please send information about bugs to our bug tracker.
You are not logged in. Please login or register.
Active topics Unanswered topics
Search options (Page 2 of 5)
[quote name='Perry' date='Mar 16 2015, 10:20 PM' post='160662']
Please post your template code.
Hi Perry
<div style="width: 100%; margin-bottom: 10px">
<div>
<div style="text-align: justify; padding-bottom: 3px; margin-top: 20px; padding-left: 3px; padding-right: 3px; margin-bottom: 5px; border-top: #d3d3d3 1px solid; padding-top: 3px">{short-story}
<div style="margin-top: 10px">[full-link target=_blank]Read more... [/full-link]</div>
</div>
Is your website online?
if not please make an example on codepen.io like this: http://codepen.io/anon/pen/jEQzgG
greetings
Hi
I cannot format my posts version 2.0.1 so that the heading is Left and and Unjustified. I am unable to unjustify my content.
Please post your template code.
How include the HTML-Scripts in my template, with a keyword?
_edit:_
the "html" script named my script: myCode
in "index.php" I added
include("cutenews/snippet.php");
and into my template:
Greetings
Hello Support Team,
do you can post an example how to use the 'html script'.
Thanks.
Greetings
Dashboard -> HTML scripts allow you to implement your own javascript or html in the page code to display news, e.g. when you use some functions from javascript library in the news templates.
How include the HTML-Scripts in my template, with a keyword?
_edit:_
the "html" script named my script: myCode
in "index.php" I added
include("cutenews/snippet.php");
and into my template:
Greetings
Hi
Still trying to grasp what does what in version Cutenews 2.0.2.
<div style="width: 300px; word-wrap: break-word; float: left"><strong>[link]{title}[/link]</strong></div>
This code putss a link to the same news article? It also, if clicked shows unwanted detail about the user. Well that is only visible when the Cutenews user is logged in. Accessing the news article as an Internet user provides an opportunity to add a comment. But, I have removed the option to add a comment in one of my templates so what is going on?
And, what is this link for. I am a CuteNews !.4.6 user so version 2.0.2 is new to me. In version 1.4.6 there is an option to link to a news article. Where has that option gone?
Geoff
Do you want create an link to the full-story of the article?
Hi Perry
I think you have misunderstood me. I want to copy only the text (including tables) from a Word document. I am finding that Copy and Paste into CKEditor creates a lot of new lines.
And the table grid lines are missing.
Geoff
Perhaps the Ckeditor Plugin is helpful: http://ckeditor.com/addon/pastefromword
Hello supportTeam,
what can i do with: Dashboard -> HTML scripts
greetings john
Dashboard
Additional fields-> Form:
Field Type: Image/Resource
Name: Thumbnail01
->Add/Replace field
Dashboard
Write into your template:
Into 'Active News'
<h1>{title}</h1>
[img]{Thumbnail01}[/img]
->'Save template'
Dashboard
-> Add news
Thumbnail01 Form: Select your image
Post the news.
Greetings John
Hi
It seems like being able to paste from MS Word into the CKeditor would help users of CuteNews. Has anyone any advice on this option.
Thanks
Geoff
You want only copy the text from Word?
Ckeditor
Click on the 'source' button and copy the text inside but you lost all the text stylings.
Hello Perry and thanks for your quick reply. However, I couldn't make it work. Do I need to replace the "name" with the name I set in the backend for the additional fields? I tried both versions as well as the "replacement version", none worked. I added your line in /skins/base/defaults/templates.tpl in the "*active"-section. What did I miss?
Good night
Ne0
No @ admin panel -> templates
Hello Ne0,
to display the additional field you must set it in your template:
or
[if {additionalField_name}] * {additionalField_name}
[/if]
greetings
Unfortunately, Cutenews has a strict limit on news displaying date.
You can create a news item and set it to be published in the future, but the users will see it only when it's a particular day. This is an architectural solution and it can't be adjusted. You can take a risk by changing the processing of news display date in core/core.php and correcting variable $date_out in the cn_get_news setting.
Thank you Support_Team,
i don't really unterstand what happens in core.php so i don't want to change the code.
i will try to found a solution with additional fields.
i use this code to include only a specific news:
$output = $_SERVER['QUERY_STRING'];
$category = $_GET["kategorie"];
$page_alias = $_GET["page"];
$template = $_GET["template"];
include("cutenews/show_news.php");
with the link:
[url=yourpage.com?template=yourTemplate&kategorie=yourCategorie&page=specificNews]specific news[/url]
you must use the Page Alias option under the Full-Story field.
Yes posting is not the problem but how can i display it.
If the Date set for example 09. April 2015
No way to display news there date are set in future?
Yes posting is not the problem but how can i display it.
If the Date set for example 09. April 2015
Is there an article with ID 9 in the list of your articles?
For a better understanding of the process of correcting errors in PHP-code, please read about the process of code debugging on the Internet.
No i can`t found a news with id=9, there have now other error output.
<?php
include ('cutenews/core/init.php');
$categoryes=cn_get_categories();
foreach($categoryes as $id=>$cat) {
echo " * [url=?category=$cat[name]]".$cat[name]."[/url]
";
}
?>
Hello,
i want use cutenews as event-calender,
there a way to post an article when the date is set in the future?
best regards
You have some syntax errors in code.
Use this correct code:
echo ' * [url=https://cutephp.com/forum/index.php?cat=]".$n['pg']."[/url]
';
The categories are listed :-)
but a new error message: Cannot find an article with ID: 9
Hello Support_Team,
To create a navigation i use this code:
<?php
include ('cutenews/core/init.php');
$categoryes=cn_get_categories();
foreach($categoryes as $id=>$cat) {
echo " * [url=?cat=$cat[name]]".$cat[name]."[/url]
";
$news = cn_get_news( array( 'cfilter' => array( $id ) ) );
foreach( $news[0] as $nid => $n ) {
echo " * [url=https://cutephp.com/forum/index.php?cat=$cat[name]&page=$n[pg]]".$n['pg']."[/url]
";
}
}
?>
But the news cant be showed,
maybe the code produces a conflict?
What must i change?
Try add
echo "CKEDITOR.config.extraPlugins = 'youtube';";
after
echo "CKEDITOR.config.allowedContent = true;";
Yes, Thanks works.
Yes, to create the page navigation: Category -> News title / page_alias
Nobody now how to list the categories / page_alias ?
Hello,
how can i add new ckeditor plugins: config.extraPlugins = 'youtube'; ?
function cn_snippet_ckeditor($ids = '')
{
// pre-init
$CKSmiles = $CKBar = array();
for ($i = 1; $i <= 8; $i++)
{
$ck_bar = getoption("ck_ln{$i}");
if ($ck_bar) $CKBar[] = '["'.join('","', explode(',', cn_htmlspecialchars($ck_bar))).'"]';
}
$smiles = explode(',', getoption('smilies'));
foreach ($smiles as $smile) $CKSmiles[] = "'$smile.gif'";
$CKSmiles = join(', ', $CKSmiles);
$CKBar = join(', ', $CKBar);
// show
echo '<script src="'.getoption('http_script_dir').'/core/ckeditor/ckeditor.js"></script>';
echo '<script type="text/javascript">'."\n";
echo "(function() { var settings = {"."\n";
echo "skin: 'moono', width: 'auto', height: 350, customConfig: '', language: 'en', entities_latin: false, entities_greek: false, \n";
echo "toolbar: [ ". hook('settings/CKEDITOR_customize', $CKBar) . " ], \n";
$add_opt = array();
$compound = array();
$add_opt['filebrowserBrowseUrl'] = PHP_SELF.'?mod=media&opt=inline';
$add_opt['filebrowserImageBrowseUrl'] = PHP_SELF.'?mod=media&opt=inline';
$add_opt = hook('settings/CKEDITOR_filemanager', $add_opt);
foreach ($add_opt as $I => $V) $compound[] = "$I: \"$V\"";
// Insert updated FileBrowser
echo join(', ', $compound) . '};' . "\n";
// Smilies
echo 'CKEDITOR.config.smiley_path = "'.getoption('http_script_dir').'/skins/emoticons/"; '."\n";
echo 'CKEDITOR.config.smiley_images = [ '.hook('settings/CKEDITOR_emoticons', $CKSmiles).' ];'."\n";
echo 'CKEDITOR.config.smiley_descriptions = [];'."\n";
echo "CKEDITOR.config.allowedContent = true;";
echo 'CKEDITOR.config.enterMode = CKEDITOR.ENTER_BR;';
$ids = spsep($ids);
foreach ($ids as $id) echo "CKEDITOR.replace( '".trim($id)."', ".hook('settings/CKEDITOR_SetsName', 'settings')." );"."\n";
echo hook('settings/CKEDITOR_Settings');
echo '})(); </script>';
}
Do you want to display the news titles within categories?
Yes, to create the page navigation: Category -> News title / page_alias
i can`t help your with your slider problem but if
you like this kind of slider: earlybirdskis.ch
i can give you the code.
hello,
list all categories:
include("core/init.php");
$categoryes = cn_get_categories();
how can i list all titles of an category?
greetings john
Nobody now how list all titles?
I need it to create an dynamic navigation:
Category0--Category1
title0--------title0
title1--------title1
title2--------title2
Posts found: 26 to 50 of 106