This concerns when using the wysiwyg.
Now be aware that the wysiwyg is javascript and that javascript is parsed (or in normal words: reading the code and giving a nice output on your screen)
by the browser so don't ask questions like "FF doesn't have spaces, but IE does". Because that's due to the browser. There's nothing we can do about this.

Some additional clarification:
When pressing enter in IE, the javascript will make new lines by making paragraphs <p></p>
While in FF it'll use

obviously those 2 aren't the same tags and thus they do create a different look.
You can always use css to alter the defination for space of <p> of

HTML solution
Go to
CN panel->options->edit templates->add comment form

find: {smiley}
and put this tag inside a div
like
<div width="50px">{smiley}</div>
By adjusting the width you can control the number of smileys per row too.

error:
Error 500
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@domain.tld and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

reason 1
the most common reason you see this is due to the fact that your Cutenews index.php has been chmodded to 777, while you shouldn't change it's value. Keep at 644

reason 2
not common but for some reason you have a .htaccess file in your CN root folder. (be aware with most ftp clients you need to enable "show hidden files" to see this file listed)
It's not supposed to be there so delete it.

reason 3
only 1 case seen up to now, but it seems that if you have to much text in your article when adding news you can see this error too!
This is due too a server setting

post_max_size

. Though keep in mind that your host has probably a good reason to have this certain value set.

reason 4

WebGremlin wrote:

I had the "500 internal server error" error pop up whenever I tried to save the changes I made to my template. Turns out my host runs the apache module "mod_security", which prevents me from saving my template. The way to bypass this is by adding the following in the .htaccess file in the cutenews root:

SecFilterEngine Off
SecFilterScanPOST Off

In addition, cn does not have a .htaccess file in the root, so make one yourself by saving an empty txt file as .htaccess

reason 5
Well we could add resaon 5,6,7,8 etc.. But the 500 internal server error is the most general error you can get. It shows when it can't be categroized in any other error. If you search google for '500 internal server error' you'll find lots more possible reasons. For example, the error says

Please contact the server administrator

, which would be the wisest to do. Your host has logs and knows their server better then we do. (We shouldn't know anything at all about it unless the slim chance a support members used that host). Your hsot can use those logs to track the problem down. It may be a problem with CN for wich we need to fix it, but then it's still because of a serer setting that's not generally used.

yes

CN comes with a wysiwyg. It would be very stupid if it wouldn't work with that...
Unless i'm missing what you're trying to ask.

CN 1.4.5 and  1.4.6 is the same. except for some security fixes. No Code in the addnews/editnews was changed. Yes it works.

what translation group?
there's no group. And to what do you refer? Flexers post, or on CN ML that has been posted somewhere in this topic?
Though i believe there's a website for CN ML where you can upload translations.

No hack is official, that's why it's called a hack https://cutephp.com/forum/style_emoticons/default/smile.gif

To answer your question: don't know.

this is an interesting addon.

bedoel je de originele CN vertaald in het nederlands, of CN ML dat je in dit topic kan vinden?
In elk geval zou het antwoord nee zijn.

pic in big size like 300 kb

Try uploading such a file adn check with your ftp client if the image is indeed on the server.
It could be that your server has a max filesize upload restriction in place. That's something you should ask your host about.

If it is indeed on the server, try chmodding it to 777
And see if it shows up in the image module then. (some people experinced only this chmodd setting would work, though there is no reason why it shouldn't work with lower values.

no, i wouldn't know how to do it. You can only read the images in a directory by name --> only sorting by name is possible.
But how can you not know what image you just uploaded, The name of the just uploaded file appears under the uplaod box.

you can't

yes...

wow, why didn't i think of that...
Oh wait, because no-one can put it in the hacks section of the forum;
There are NO moderators on this forum anymore.

this problem commonly occurs with the division by zero thing. So I posted it here, too.
error: the smiley's are aligned vertically.

The most likely cause to this problem: the fix for the division by zero problem probably messes this up.
So be sure to try FI-DD's fix for that problem first.

before attempting to FIX this, be sure it's not a HTML problem. Like putting the {smilies} tag (comment form) in a to small place.

Now the fix for this problem.
open shows.inc.php
How? With your favorite editor. I suggest using Notepad if you're a windows user.

and find

insertSmilies('short', FALSE);

and replace FALSE with the number of smilies you want on 1 horizontal line.
This fix is also the way to go to put smilies on more then 1 line.
as stated in a FAQ topic in the FAQ section of the forum (url posting is disabled at the moment)

thing is, i have the thumbs directory, so whats the problem?

OK you have the directory, but do you have that image in there?

error:
Warning: Division by zero in /webroot/x/a/xavie001/www/xaviercontent/inc/functions.inc.php on line 469
remark:This problem has been fixed in CN 1.4.6 so updating CN is adviced.

Like the warning says the problem occurs in functions.inc.php. So let's open this file

How? With your favorite editor. I suggest using Notepad if you're a windows user.
Now that we have opened the file we'll go to line 469.
How? Notepad and some other editors can easily find a certain line with ctrl + g, now all you got to do is type in the desired line.

result:

if($i%$break_location == 0 and $break_location)


This may be different as this line is not the same for all CN versions.
The fix is the same though.

This fix was suggested by FI-DD

FI_DD wrote:

The better way is to change line 469 to this:

if($break_location and $i%$break_location == 0)

That way the original purpose of this line is still intact.


Now save the changes and upload your edited file.

If it didn't work try changing line 469 to this

if($break_location)

When experience this problem it's very likely you'll have problems with the smilies of the comments form. Therefore i refer you to the next post.

TOPIC INDEX
If your error isn't in this list don't bother looking through this topic.

* date() expects parameter 2 to be long, ...
* Warning: Division by zero (...)
* Smilies display vertical
* Error 500: Internal Server Error
* failed to open stream: Permission denied in (...)
* Warning: preg_replace(): Compilation failed: unmatched parentheses
* Failed to open stream: No such file or directory
* Fatal error: Allowed memory size of (...) bytes exhausted (tried to allocate (...) bytes)
* Warning: main() [function.main]: URL file-access is disabled ...
* Deprecated: Function eregi() is deprecated in ...
* Deprecated: Function split() is deprecated in ...
* Fatal error: Maximum execution time of ## seconds exceeded
* Warning: date() [function.date]: It is not safe to rely on the system&#039;s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function.


----------------------
As we have many variations regarding this let's write a nice tutorial.
error:
Warning: date() expects parameter 2 to be long, string given in /home/****/public_html/***/cutenews/inc/main.mdu on line 140

now note that this error says main.mdu on line 140. Yours may say something different at the end. No worry, keep reading.
Now we open the file given by the warning: main.mdu

How? With your favorite editor. I suggest using Notepad if you're a windows user.
Now that we have opened the file we'll go to line 140.
How?Notepad and some other editors can easily find a certain line with ctrl + g, now all you got to do is type in the desired line.

result:

$last_login_year = date("Y", $member_db[9]);

The line will always have

date(

in it.

1) Now find the , and add (int) after it.

Now we know where the problem is caused. So we can fix it.
this doesn't work for everyone but it is the best fix.
put this before the variable that causes problems.

(int)

in this case we would get

$last_login_year = date("Y", (int)$member_db[9]);

2) if that didn't work, make a empty line above line given by your warning. (DON'T delete the code above this line if there is code there)
Now put this on that empty line and keep in mind that you need to replace the variable in this example with the variable that gives you trouble.

if( !is_numeric( $member_db[9] ) ) $member_db[9] = time();

3) save changes and upload your edited file in the inc folder.

Credits go to Eyece and Damoor.

but to do that you'dd need to know where in the template you need to add the thumbenail. But you can't do that form the add news page.
Unless you use the avatar field. Then you'dd be able to use the avatar tag.

ah, basicly you want this html code
<div style="float:left;"><img src=""></div>

In images.mdu find this

finalImage = link1 +\"<img border=\\\"\"+ imageBorder +\"\\\" align=\\\"\"+ imageAlign +\"\\\" alt=\\\"\"+ alternativeText +\"\\\" hspace=\\\"\"+ hSpace +\"\\\" vspace=\\\"\"+ vSpace +\"\\\" src=\\\"".$config_http_script_dir.substr($config_path_image_upload, 1)."/\"+ path +\"\"+ selectedImage +\"\\\">\" + link2;

and aply the div

must be something like this as i haven't tested it. because of all those \ before " it's a bit confusing

finalImage = link1 +\"<div style=\\\"float:left;\\\"> <img border=\\\"\"+ imageBorder +\"\\\" align=\\\"\"+ imageAlign +\"\\\" alt=\\\"\"+ alternativeText +\"\\\" hspace=\\\"\"+ hSpace +\"\\\" vspace=\\\"\"+ vSpace +\"\\\" src=\\\"".$config_http_script_dir.substr($config_path_image_upload, 1)."/\"+ path +\"\"+ selectedImage +\"\\\"></div>\" + link2;

anyone have any ideas on how you can include a thumb with the short story and have it live outside of the headline & short story copy area?

I don't really understand what you mean with copy area.

And how does using the existing align option not work?

I love it https://cutephp.com/forum/style_emoticons/default/biggrin.gif

SO it's a chmod problem. Is the upimages folder chmodded to 777?

are you sure you have the .htacces file in the upimages folder and that you have set proper chmodd permisisons?

Posts found: 226 to 250 of 286

Pages Previous 1 8 9 10 11 12 Next

CutePHP Forums → Posts by FUNimations



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