cotonti.com : Comments for Guests https://www.cotonti.com Последние сообщения в теме Cotonti en Thu, 26 Nov 2026 11:13:29 -0000 Lombi вс, 26 апр 2009 04:32:03 -0000 foxhound

I mean, when you install a clean copy of cotonti and upload the empty cotonti database you will have everything in it what you need right? An empty DB with all tables and rows which are needed to run Cotonti.

Now, I know you think I did not update to Seditio 1.25 but lets forget that since we differ from opinion here.
Now, what happens when I upload the cotonti DB to my phpMyadmin (than I have all cotonti tables/rows right), than import my own DB (converted to cotonti) without the "dump" so it does not remove a thing but only imports the new data.
Would that work? Just so to make sure I have all required tables and rows in my DB.

I just want to know this as to me its clear there is a problem with the update process (maybe only for me and Pieter, but there clearly is) and when I move the live site I must know the best way to move things over.

Sorry to bother you about this :(]]>
пт, 24 апр 2009 23:48:13 -0000
Lombi пт, 24 апр 2009 18:51:40 -0000 foxhound # pieter : Thanks,

I was digging around a bit in the database and I found that

`page_comcount` mediumint(8) unsigned default '0'
was in cotonti database from my fresh installed site
BUT NOT on my migrated site (So this table is not made with the migration)

I have put it into my database and problem solved.
alter table 'sed_pages' add column `page_comcount` mediumint(8) unsigned default '0';

Interesting as I suffer again the same thing. I am sure I ran the seditio updater so I am not sure what is going wrong there.
Anyway, I tried the above code and executing that in the sql does not work, it returns an error so I decided to manually add the row again.

Also another question, as somehow I think something is going wrong with upgrading to seditio 125, when I move my live site to cotonti, could I do all the necassary updates but import the cotonti DB first and than (after doing all the necassary changes) update that Cotonti DB with my own converted DB? That way even if the Seditio upgrade did skip some I would have all necassary rows and tables etc right? (be gentle, just a noob question)]]>
пт, 24 апр 2009 06:22:48 -0000
pieter But obviously it didn't, or not all of it.]]> пн, 06 апр 2009 17:19:27 -0000 Lombi пн, 06 апр 2009 17:07:51 -0000 pieter
I was digging around a bit in the database and I found that

`page_comcount` mediumint(8) unsigned default '0'
was in cotonti database from my fresh installed site
BUT NOT on my migrated site (So this table is not made with the migration)

I have put it into my database and problem solved.
alter table 'sed_pages' add column `page_comcount` mediumint(8) unsigned default '0';
]]>
пн, 06 апр 2009 15:30:46 -0000
Kort c4g-recaptcha_183.zip
Uninstall the version that you're having now and all installed captchas too.
And -- I recommend that you replace your system/xtemplate.class.php with the trunk version. This way you would be able to use template logic. Below is the code I'm using:

<!-- BEGIN: COMMENTS_NEWCOMMENT -->
<div class="block">
	<form action="{COMMENTS_FORM_SEND}" method="post" name="newcomment">
	<h4>{PHP.skinlang.comments.Comment}</h4>
	<table class="cells">
<!-- IF {PHP.usr.id} < 1 -->
		<tr>
			<td>{PHP.L.Name}:</td>
			<td>{COMMENTS_FORM_POSTER}</td>
		</tr>
<!-- ENDIF -->
		<tr>
			<td style="width:100px;">{PHP.L.Comment}:</td>
			<td><div style="width:100%;">{COMMENTS_FORM_TEXTBOXER}</div></td>
		</tr>
<!-- IF {PHP.usr.id} < 1 -->
		<tr>
			<td>Enter CAPTCHA code:</td>
			<td>
				{COMMENTS_FORM_VERIFY_IMG}
<!-- ENDIF -->
<!-- IF !{PHP.cfg.plugin.recaptcha.privatekey} AND {PHP.usr.id} < 1 -->
				<br />{COMMENTS_FORM_VERIFY}
<!-- ENDIF -->
<!-- IF {PHP.usr.id} < 1 -->
			</td>
		</tr>
<!-- ENDIF -->
		<tr>
			<td colspan="2" class="valid"><input type="submit" value="{PHP.skinlang.comments.Send}"></td>
		</tr>
	</table>
	</form>
</div>
<!-- END: COMMENTS_NEWCOMMENT -->

It's abit clumsy because nested conditions have not been implemented yet, but you get the idea, don't you?

Btw, very soon we're going to release CAPTCHA Manager Plugin that would enable you to install as many captchas as you like, switch between them 'on the fly' and randomize them in submission forms.]]>
пн, 06 апр 2009 15:20:48 -0000
pieter
When a guest or user submit a comment he gets this error:
Fatal error : SQL error : Unknown column 'page_comcount' in 'field list'

But the comment is submitted.
Is there something I missed during install?

-----------------------
Sorry, I have created this in wrong section, should be plugins.]]>
пн, 06 апр 2009 15:00:36 -0000