Request Need help getting ckeditor to work with the cms tutorial

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

09-May-12 03:02
Hey anyone,

I am posting this topic because I require specific help getting the ckeditor to work with the CMS-IN-A-AFTERNOON tutorial, and I was wondering if anyone that actually got it to work would be so kind of to help me with it.

While I also would like help with pagination and comments etc, this really takes precidence, so onto the problem(s).

Current setup:

header.php


<script type="text/javascript" src="ckeditor.js"></script>


Edit:
Okay, just had the akward moment realizing a big typo 5 seconds after posting this, changed it to:


<script type="text/javascript" src="ckeditor/ckeditor.js"></script>



editArticle.php:


<li>
<label for="content">Article Content</label>
<textarea name="content" id="content" placeholder="The HTML content of the article" required maxlength="100000" style="height: 30em;"><?php echo htmlspecialchars( $results['article']->content )?></textarea>
</li>

<script type="text/javascript">
window.onload = function()
{
CKEDITOR.replace('content');
};
</script>

<li>



-- Edited out issue 1 --

Currently running this on Wampserver, don't think that should cause the problem though.

I hope I explained my problem in sufficient detail, any thanks in advance to anyone that could help me out with this.

Edit 1: Alright, changed the code in the header.php file, now the ckeditor DOES pop up, but it's too big for the page again, any advice on how to fix this?

Edit 2:

Alright, issue number two: the big ass ckeditor actually stops the page from saving/save button doesn't do anything. Anyone have any advice on this?

[Edited by MarcusS on 09-May-12 03:09]
09-May-12 10:11
Slight different topic, but has anyone sucesfully added Disqus to their project?

I've added:


<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = ''myshortname; // 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 <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>

To my

viewArticle.php file (not sure if right)

And:



<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'myshortname'; // 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>
To my footer.php file (I looked at adding it to index or homepage, but that didn't seem to make much sense.


I'm just completely lost on how to make the #href discuss part of the links work... [Small note, yes I have changed the "myshortname" to my own person Disqus shortname]

[Edited by MarcusS on 09-May-12 10:15]

 
New posts
Old posts

Follow Elated