hello,
list all categories:
include("core/init.php");
$categoryes = cn_get_categories();
how can i list all titles of an category?
greetings john
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.
CutePHP Forums → Posts by Perry
hello,
list all categories:
include("core/init.php");
$categoryes = cn_get_categories();
how can i list all titles of an category?
greetings john
Hello,
i use Additional Fields Checkbox,
how can i test if the checkbox 'checked'
In my Template:
[if {Anmeldung}]
do somethings....
[/if]
Greetings John
*sorry for my bad english
Is there a way to add the title of a news as title of the page when I click on full story? Because now there's only the tilte of site.
I have the last version (2.0.2)
Hello,
Not in Cn but in the file where CN is included.
Inside the <head></head> Tag
<?php
//QUERY
$output = $_SERVER['QUERY_STRING'];
echo '<title>'.$output.'</title>';
//Split the $output string with explode: http://php.net/manual/en/function.explode.php
?>
Hello,
do you have a styling rule for the {tagline} element?
Thanks Support_Team for your answer,
Os: Linux
System logs:
Warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE Restriction in effect. The script whose uid is 1956 is not allowed to access /uploads/Illustration owned by uid 30; /core/modules/media.php:186;
Now it works with an Php update: 5.4
Hello,
try to upload images with the mediamanger in a subfolder: file not uploaded.
upload in the root directory without problems.
maybe a bug or is my server configuration wrong.
cdata and uploads folder 777
thanks for you help.
Hello,
what can i do with: Dashboard > HTML scripts ?
Hello,
it`s possible to set the image-path(ckeditor insert images) from absolute to relative?
Dear Perry,
You can call the cn_get_categories(); function after including the show_news.php file, if you want to get the list of categories after news output. The function will return an array with categories.Â
Or you can execute the following code:
$categoryes = cn_get_categories();In $categoryes there will be an array with all categories.
Thanks Support Team for your answer,
good to now: cn_get_categories()
but i found another way to make a navigation:
create template for the navigation:
* [url=https://cutephp.com/forum/index.php?page={page_alias}]{title}[/url]
in the include show_news.php code:
$page_alias = $_GET['page'];
$category = "1";
include("cutenews/show_news.php");
set 'paga_alias'
simple solution without coding.
Hello,
how can i list all categories to make a navigation?
Thank you for helping.
Hello,
i want use the FileBrowser: Elfinder to inport Pictures in Ckeditor.
How can include an other MediaManger in CN 2.0?
In CN 1.5.3:
skin -> base_skin ->addnews -> index_cke.tpl
Hello,
how make a link to the FullStory in CN 2.0?
In CN 1.5.3 this works fine:
<a class="article_link" href="artikel.php?subaction=showfull&category={category-id}&id={news-id}&title={title}" target="_self">
What must i change?
I think the Problem is the PHP-Version,
"offline" test with MAMP change the PHP-Versions
from 5.2.17 to 5.4.10 work fine.
But i don`t now what you must change in the cutenews code.
Support Team?
it is in core.php line 3229
Hello,
where can i change the ckeditor option`s like this:
extraPlugins: 'video',
extraPlugins: 'codemirror',
that`s the better way:
in your template make a link to the full-story in a new page
<a class="article_link" href="artikel.php?subaction=showfull&category={category-id}&id={news-id}&title={title}"
in the new page
<title><?php echo $_GET["title"]; ?></title>
cutenews 1.5.3
open core.php line 855 insert:
//Titel verfügbar machen
global $title_tag;
$title_tag = $news_arr[NEW_TITLE];open your index.php
insert before <head>
<?php
include("cutenews/show_news.php");
?>now you can use the newstitle:
<title><?php echo $title_tag ?></title>
cutenews 1.5.3
open core.php line 855 insert:
//Titel verfügbar machen
global $title_tag;
$title_tag = $news_arr[NEW_TITLE];
open your index.php
insert before <head>
<?php
include("cutenews/show_news.php");
?>
now you can use the newstitle:
<title><?php echo $title_tag ?></title>
Send me the link of your Webpage.
Try this:
core.php line 867
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
$multi_cat_link_arr = explode(",", $news_arr[NEW_CAT]);
$multi_cat_arr = explode(",",hesc(catid2name($news_arr[NEW_CAT])));
//Artikel mit Multi Kategorien Links separieren
$i =-1;
foreach($cat as $cat_arr) {
$i++;
$output = str_replace("{multi_cat_link[$i]}", $multi_cat_link_arr[$i], $output);
$output = str_replace("{multi_cat[$i]}", $multi_cat_arr[$i], $output);
}</div>
e.g. header.php
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
<div class="kategorie_list">
<?php
//NAVIGATION KATEGORIEN
//browserzeile auslesen
$input=$_SERVER['REQUEST_URI'] ;
//Zwischen category - & Zeichen auslesen
preg_match('/category=(.*?)&/', $input, $ausgabe);
$output = explode (",",$ausgabe[1]);
$cats = file("cutenews/cdata/category.db.php");
$ausschuss = array(16,17,18,19,20);
foreach($cats as $cat_line)
{
$cat_line_arr = explode("|", $cat_line);
$fetchcat = $cat_line_arr[1];
//Kategorien ausschliessen
if(!in_array($cat_line_arr[0], $ausschuss)){
//aktive Kategorie stylen
if(in_array($cat_line_arr[0], $output)){
$cat_list =" * $cat_line_arr[1]
";
echo $cat_list;}
else{
$cat_list =" * $cat_line_arr[1]
";
echo $cat_list;
}
}
}
?>
</div>
</div>
Hello,
how can I later change the date of article or in which file the date is saved?
What happens when you change the template, maybe an css problem?
Hey!
I'm helpless now... I got the 1.5.3 Version of CuteNews because my old version didn't work well. I tried to include my news into my website but it only appears "Powered by CuteNews".I took the integration from CuteNew's wizard
any help?
Support Team thanks for helping.
My solution:
core.php
$multi_cat_link_arr = explode(",", $news_arr[NEW_CAT]);
$multi_cat_arr = explode(",",hesc(catid2name($news_arr[NEW_CAT])));
//Artikel mit Multi Kategorien Links separieren
$i =-1;
foreach($cat as $cat_arr) {
$i++;
$output = str_replace("{multi_cat_link[$i]}", $multi_cat_link_arr[$i], $output);
$output = str_replace("{multi_cat[$i]}", $multi_cat_arr[$i], $output);
}
template
<div class ="kategorien_nav">Kategorie:
[url=ategorien.php?category={multi_cat_link[0]}&>{multi_cat[0]}</a>
[url=a] {multi_cat[1]}[/url]
[url=a]{multi_cat[2]}[/url]
[url=a]{multi_cat[3]}[/url]
[url=a]{multi_cat[4]}[/url]
[url=a]{multi_cat[5]}[/url]
[url=a]{multi_cat[6]}[/url]
[url=a]{multi_cat[7]}[/url]
</div>
....cutenews 1.5.4 loops in templates :-)
My testpage: <a href=]strukturart.com/komma[/url]
In which file the variables for the templates {category......} defined?
I found a way:
read more
link to a new .php with a new template.
In the template in short story: {full_story}
Hello,
to make a link to the categories i use this code in my template:
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>{category}
</div>
Article | Categorie:1,3 | one link to 3,6
What can i do when the article have more categories, to have different links?
Article | Categorie:1,3 | first link to 3, second link to 6
Thanks for help.
CutePHP Forums → Posts by Perry
Powered by PunBB, supported by Informer Technologies, Inc.
The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.