I noticed something the other day; I am using headlines (on the right side of my page) and further down the page (in the center) it will show the latest article (full story).
It works perfectly, but I noticed something weird. When I use any browser and look at the source of the page it shows this:
<span data-scayt_word="Wie" data-scaytid="1">Wie</span> <span data-scayt_word="een" data-scaytid="2">een</span>
<span data-scayt_word="elektrische" data-scaytid="6">elektrische</span> auto <span data-scayt_word="heeft" data-scaytid="7">heeft</span> en <span data-scayt_word="ook" data-scaytid="8">ook</span>
<span data-scayt_word="wel" data-scaytid="10">wel</span>
<span data-scayt_word="eens" data-scaytid="11">eens</span>
<span data-scayt_word="een" data-scaytid="3">een</span>
<span data-scayt_word="dagje" data-scaytid="12">dagje</span>
<span data-scayt_word="naar" data-scaytid="13">naar</span>
<span data-scayt_word="het" data-scaytid="14">het</span> <span data-scayt_word="buitenland" data-scaytid="17">buitenland</span> <span data-scayt_word="wil" data-scaytid="19">wil</span>,
<span data-scayt_word="zou" data-scaytid="20">zou</span>
<span data-scayt_word="tegen" data-scaytid="21">tegen</span>
<span data-scayt_word="een" data-scaytid="4">een</span>
<span data-scayt_word="gebrek" data-scaytid="22">gebrek</span>
<span data-scayt_word="aan" data-scaytid="23">aan</span>
<span data-scayt_word="laadmogelijkheden" data-scaytid="25">laadmogelijkheden</span>
<span data-scayt_word="aan" data-scaytid="24">aan</span>
<span data-scayt_word="kunnen" data-scaytid="26">kunnen</span> <span data-scayt_word="lopen" data-scaytid="27">lopen</span>. <span data-scayt_word="Maar" data-scaytid="28">Maar</span>
<span data-scayt_word="dat" data-scaytid="29">dat</span> is <span data-scayt_word="verleden" data-scaytid="30">verleden</span>
<span data-scayt_word="tijd" data-scaytid="31">tijd</span>, want
<span data-scayt_word="het" data-scaytid="15">het</span> is nu
<span data-scayt_word="mogelijk" data-scaytid="32">mogelijk</span> <span data-scayt_word="om" data-scaytid="33">om</span>
<span data-scayt_word="ook" data-scaytid="9">ook</span> in <span data-scayt_word="het" data-scaytid="16">het</span>
<span data-scayt_word="buitenland" data-scaytid="18">buitenland</span> <span data-scayt_word="gebruik" data-scaytid="34">gebruik</span> <span data-scayt_word="te" data-scaytid="35">te</span>
<span data-scayt_word="maken" data-scaytid="36">maken</span> van <span data-scayt_word="laadpalen" data-scaytid="37">laadpalen</span> met <span data-scayt_word="een" data-scaytid="5">een</span> <span data-scayt_word="Nederlandse" data-scaytid="38">Nederlandse</span>
<span data-scayt_word="laadpas" data-scaytid="39">laadpas</span>
(normally it would display the above as 1 line, but I think this is beater to see)
A lot of "span data-scayt_word"... Is this normal...?
And I think it's caused by the 'Summary', because the above part is the same part as in the 'Summary', the rest of the article is not being displayed liked this.
Any idea?
This might explain the extra code http://www.network-13.com/thread/3869-Unexplained-Mark-Up
Hi Chris,
Thanks for the anwer. I re-checked the config.js file and I noticed I made a mistake; I used 'story' for all 3 sections (story, shortstory and message).
So I corrected them and this is how it looks now:
if(CKEDITOR.instances['story']){
CKEDITOR.instances['story'].config.language = 'en';
CKEDITOR.instances['story'].config.extraPlugins = 'customimage,customsmiley,customfiles';
CKEDITOR.instances['story'].config.resize_maxWidth = 700;
CKEDITOR.instances['story'].config.resize_minWidth = 700;
CKEDITOR.instances['story'].config.resize_minHeight = 100;
CKEDITOR.instances['story'].config.disableNativeSpellChecker = true;
CKEDITOR.instances['story'].config.scayt_autoStartup = false;
CKEDITOR.instances['story'].config.removePlugins = 'scayt';
CKEDITOR.instances['story'].config.toolbar = [
['Font','FontSize','Bold','Italic','Underline','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','NumberedList','BulletedList'],
['TextColor','customimage','customsmiley','Link','customfiles','Table','-','Outdent','Indent','-','Source']
];
if(CKEDITOR.instances['shortstory']){
CKEDITOR.instances['shortstory'].config.language = 'en';
CKEDITOR.instances['shortstory'].config.extraPlugins = 'customimage2,customsmiley2,customfiles2';
CKEDITOR.instances['shortstory'].config.resize_maxWidth = 700;
CKEDITOR.instances['shortstory'].config.resize_minWidth = 700;
CKEDITOR.instances['shortstory'].config.resize_minHeight = 100;
CKEDITOR.instances['shortstory'].config.disableNativeSpellChecker = true;
CKEDITOR.instances['shortstory'].config.scayt_autoStartup = false;
CKEDITOR.instances['shortstory'].config.removePlugins = 'scayt';
CKEDITOR.instances['shortstory'].config.toolbar = [
['Font','FontSize','Bold','Italic','Underline','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','NumberedList','BulletedList'],
['TextColor','customimage2','customsmiley2','Link','customfiles2','Table','-','Outdent','Indent','-','Source']
];
if(CKEDITOR.instances['message']){
CKEDITOR.instances['message'].config.language = 'en';
CKEDITOR.instances['message'].config.extraPlugins = 'customsmiley2';
CKEDITOR.instances['message'].config.resize_maxWidth = 500;
CKEDITOR.instances['message'].config.resize_minWidth = 500;
CKEDITOR.instances['message'].config.resize_minHeight = 100;
CKEDITOR.instances['message'].config.height = 100;
CKEDITOR.instances['message'].config.disableNativeSpellChecker = true;
CKEDITOR.instances['message'].config.scayt_autoStartup = false;
CKEDITOR.instances['message'].config.removePlugins = 'scayt';
CKEDITOR.instances['message'].config.toolbar = [
['Font','FontSize','Bold','Italic','Underline','NumberedList','BulletedList'],
['TextColor','Link','-','Source']
];
(I removed the commented out part, to save space on the forum)
However it still shows up weird in the source, though scayt has been disabled. Any idea? Maybe I overlooked something?
//UPDATE
I also tried adding this to the config.js file:
config.scayt_autoStartup = false;
config.removePlugins = 'scayt';
config.disableNativeSpellChecker = true;
However this didn't do much either... Text in the source is still coming up with scayt-markups. :(
Okay got it working now... However it means I have to redo all summary / short-story articles...
Because ONLY editing the config.js doesn't do much, you have to redo (cut summary to notepad, save and readd text) every post's summary. Argh.... Just after I exported (by hand) all news articles a few days ago... Sigh.
On a sidenote; how do I get characters like: ë correctly shown? When I look at the source it now shows (for België) the following: België
Thanks in advance.
Well I redid every post summary... Was a lot of work, but it's showing up fine now. However I cannot seem to fix the other mentioned problem:
On a sidenote; how do I get characters like: ë correctly shown? When I look at the source it now shows (for België) the following: België
And is it possible to show only news which contain certain words? So it display only news-related articles which have (for example) the word "computer" in it?
Chris you around mate? When you get online, can you please answer my questions above.
Only than I will know what to do... ...like using categories and redo everything if showing news articles based on certain words are not possible.
Chris are you stile alive? Or should we be getting worried?
No need to get worried, just a bit busy. The characters you mentioned like ë, are they not displaying properly when viewing the page?
There is no way to show related news articles based on certain words unfortunately, something like that would need to be manually coded.
Chris wrote at 2012-11-08 00:09:48
No need to get worried, just a bit busy. The characters you mentioned like ë, are they not displaying properly when viewing the page?
There is no way to show related news articles based on certain words unfortunately, something like that would need to be manually coded.
Ah okay. Legit reason of course. ;)
They are being on the website, but in the source it's shown as weird html. Meaning Google and other search engine will not read the source correctly?
I already thought it wouldn't be possible unfortunately... The only thing I can do now, is going through all my news articles (again; for the 3rd time) and give them a category. However this will be a lot of work, because I probably need around 38 categories. Results based on certain words would have been better.
Thanks anyways.
Well since replies are slow nowadays, no offence, I redid everything (again) so I can use categories instead of particular words. It was a lot of work and not foul proof, but at least I can display stuff that I want.
However I still would like solution for the symbol problems...?