eSyndiCat User Forums esyndicat directory software esyndicat support

Go Back   eSyndiCat User Forums > eSyndiCat Directory Software [FREE] > User interface

User interface Discuss eSyndiCat templates here. All the questions regarding eSyndiCat [FREE] Front end

Reply
 
Thread Tools Display Modes
Old 08-15-2006   #1
Graham
 
Join Date: Aug 2006
Posts: 32
Graham is on a distinguished road
Default Suggest a link

Hi,

Just created an editor and suggested a link

got this error: "Duplicate entry '19' for key 1"

Can anyone help please

PS: I refreshed the page on which the error was showing and it went through and I then got the "Thank you! Your link was submitted for consideration" Message - Odd !!
Graham is offline   Reply With Quote
Old 08-15-2006   #2
Sai_dallas
 
Sai_dallas's Avatar
 
Join Date: Mar 2006
Location: USA
Posts: 1,138
Sai_dallas is an unknown quantity at this point
Default look for posts by Sai_Dallas

Hi,

I had this issue and Sergey helped me resolve it.

If you look for my posts you can get to the question and the answer for this issue.


.
__________________
Dot Rig
Ayhu
eDoctor
Sai_dallas is offline   Reply With Quote
Old 08-15-2006   #3
Graham
 
Join Date: Aug 2006
Posts: 32
Graham is on a distinguished road
Default Category Spacing

Hi again - this is question nite for me as I'm trying to get to grips with the script and get it looking how I want..

On the Home Page there are too many linefeeds/CRs between the category names eg http://www.topgun.org.uk/

Can someone tell me where to edit to get em close together please

Ta!
Graham
Graham is offline   Reply With Quote
Old 08-15-2006   #4
Graham
 
Join Date: Aug 2006
Posts: 32
Graham is on a distinguished road
Default

Quote:
Originally Posted by Sai_dallas
Hi,

I had this issue and Sergey helped me resolve it.

If you look for my posts you can get to the question and the answer for this issue.


.
Found some references to the problem - but couldnt find an answer - how did you fix the issue?
Graham is offline   Reply With Quote
Old 08-15-2006   #5
Sergey Ten
eSyndiCat Lead Developer
 
Sergey Ten's Avatar
 
Join Date: Apr 2006
Location: Kyrgyzstan, Bishkek
Posts: 6,592
Sergey Ten is a jewel in the roughSergey Ten is a jewel in the roughSergey Ten is a jewel in the roughSergey Ten is a jewel in the rough
Default

Quote:
Originally Posted by Graham
Hi,

Just created an editor and suggested a link

got this error: "Duplicate entry '19' for key 1"

Can anyone help please

PS: I refreshed the page on which the error was showing and it went through and I then got the "Thank you! Your link was submitted for consideration" Message - Odd !!

Hello Graham,

Create the php file with such code and execute on your server.

PHP Code:
<?php

require_once('includes/config.inc.php');
require_once(
'classes/DirDb.php');

/** use database class **/
$gDb = new Database();

$gDb->mDbhost $gDirConfig['dbhost'];
$gDb->mDbname $gDirConfig['dbname'];
$gDb->mDbuser $gDirConfig['dbuser'];
$gDb->mDbpwd $gDirConfig['dbpwd'];
$gDb->connect();


/** get max id for links **/
$sql "SELECT MAX(`id`) FROM `{$gDirConfig['prefix']}links`;";
$id_links $gDb->getOne($sql);

/** get max id for categories **/
$sql "SELECT MAX(`id`) FROM `{$gDirConfig['prefix']}categories`;";
$id_categories $gDb->getOne($sql);

/** get max id for editors **/
$sql "SELECT MAX(`id`) FROM `{$gDirConfig['prefix']}editors`;";
$id_editors $gDb->getOne($sql);

/** get max id for admins **/
$sql "SELECT MAX(`id`) FROM `{$gDirConfig['prefix']}admins`;";
$id_admins $gDb->getOne($sql);


$id_links = (empty($id_links)) ? $id_links;
$id_categories = (empty($id_categories)) ? $id_categories;
$id_editors = (empty($id_editors)) ? $id_editors;
$id_admins = (empty($id_admins)) ? $id_admins;


/** update information for links **/
$sql "UPDATE `{$gDirConfig['prefix']}sequences` SET `links`='{$id_links}';";
$gDb->query($sql);

/** update information for categories **/
$sql "UPDATE `{$gDirConfig['prefix']}sequences` SET `categories`='{$id_categories}';";
$gDb->query($sql);

/** update information for editors **/
$sql "UPDATE `{$gDirConfig['prefix']}sequences` SET `editors`='{$id_editors}';";
$gDb->query($sql);

/** update information for admins **/
$sql "UPDATE `{$gDirConfig['prefix']}sequences` SET `admins`='{$id_admins}';";
$gDb->query($sql);


?>
__________________
Best regards,
Sergey Ten
sten at intelliants.com
eSyndiCat Directory Script
Sergey Ten is offline   Reply With Quote
Old 08-15-2006   #6
Graham
 
Join Date: Aug 2006
Posts: 32
Graham is on a distinguished road
Default

Sergey,

Thanks - Ive run the file and added a new link with no errors and no issues - Excellent!!!

Presumably I can now delete the file - might I need it again???

Thanks again for your help!!
Graham is offline   Reply With Quote
Old 08-15-2006   #7
Greg
Super Moderator
 
Greg's Avatar
 
Join Date: Oct 2005
Location: (California)
Posts: 5,299
Greg is a jewel in the roughGreg is a jewel in the roughGreg is a jewel in the roughGreg is a jewel in the rough
Default

Quote:
Originally Posted by Graham
Hi again - this is question nite for me as I'm trying to get to grips with the script and get it looking how I want..

On the Home Page there are too many linefeeds/CRs between the category names eg http://www.topgun.org.uk/

Can someone tell me where to edit to get em close together please

Ta!
Graham
Hi Graham

in your css file find:
Code:
div.categories div.col
{
	float: left;
	height: 70px;
	text-align: left;
	width: 260px;
	padding-left: 10px;
	padding-top: 5px;
	position: relative;
}
div.categories div.last
{
	float: left;
	height: 70px;
	text-align: left;
	width: 250px;
	padding-left: 10px;
	padding-top: 5px;
}
change to:
Code:
div.categories div.col
{
	float: left;
	height: 100%;
	text-align: left;
	width: 260px;
	padding-left: 10px;
	padding-top: 5px;
	position: relative;
}
div.categories div.last
{
	float: left;
	height: 100%;
	text-align: left;
	width: 250px;
	padding-left: 10px;
	padding-top: 5px;
}
if you have any more questions (unrelated) just start a "new" thread for them.
Thanks
__________________
Please don't ask me about script questions or sales issues through "Private Messages". Thanks!
Greg is offline   Reply With Quote
Old 08-15-2006   #8
Graham
 
Join Date: Aug 2006
Posts: 32
Graham is on a distinguished road
Default

Greg,

Thank you - it's looking better all the time...

New thread on the way
Graham is offline   Reply With Quote
Old 08-15-2006   #9
Greg
Super Moderator
 
Greg's Avatar
 
Join Date: Oct 2005
Location: (California)
Posts: 5,299
Greg is a jewel in the roughGreg is a jewel in the roughGreg is a jewel in the roughGreg is a jewel in the rough
Default

Quote:
Originally Posted by Graham
Greg,

Thank you - it's looking better all the time...

New thread on the way
Looks good. Gosh you have a google PR - 3 already.
__________________
Please don't ask me about script questions or sales issues through "Private Messages". Thanks!
Greg is offline   Reply With Quote
Old 08-16-2006   #10
Graham
 
Join Date: Aug 2006
Posts: 32
Graham is on a distinguished road
Default

Quote:
Originally Posted by Greg
Looks good. Gosh you have a google PR - 3 already.
Yes - Ive been running the site for a while trying to find the right script - hopefully I have now
Graham is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 02:14 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Testimonials | Articles | Support | Documentation | Privacy Policy | License | Affiliates | Contact Us | SEO Resources