<? DEW-CODE.COM  

Downloads

Assorted scripts  (1)
DewNewPHPLinks  (9)





Lost Password?
No account yet? Register

Dew-Code Newsfeed

Resources


 USdigitalcable.com

Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Re:PHPLinks -> DewNewLinks ? (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:PHPLinks -> DewNewLinks ?
#1413
seedy (User)
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Re:PHPLinks -> DewNewLinks ? 1 Year, 6 Months ago Karma: 0  
Ok, it went 'fairly' well but I'm not out of the woods yet.

My main page is looking as it should, theme included (), although it has "There was no proper search term or phrase submitted." in the centre of the page
All category links fail, return the above error and appear to have no proper PHPSESS_ID when hovered on.
Admin area seems to work realy well though, which is strange considering the above.


Old install (PHPLinks 2.1.2):
PHPSESS_ID works fine and all category links work.
 
Report to moderator   Logged Logged  
 
Last Edit: 2010/07/28 23:08 By seedy.
  The administrator has disabled public write access.
#1414
Dewed (Admin)
Admin
Posts: 603
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:PHPLinks -> DewNewLinks ? 1 Year, 6 Months ago Karma: 9  
Im confused why an insert in the related categories table would have a reviewer IP column.. It's 2:30 am here now so I'm afraid I'll have to leave it at that for now...

If you'd care to, send me a reminder message via the compose link under Dew-Code Mailbox to the left, addressed to Dewed of course. Show me the URL of your installation and I'll shed what light I can.

And to be honest, sessions aren't really necessary for the script at all, although PHPLinks has session support, It doesn't actually use them for any purpose that I could see. Click fraud etc is handled differently.
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1415
seedy (User)
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Re:PHPLinks -> DewNewLinks ? 1 Year, 6 Months ago Karma: 0  
Dewed wrote:
QUOTE:
Im confused why an insert in the related categories table would have a reviewer IP column.. It's 2:30 am here now so I'm afraid I'll have to leave it at that for now...

If you'd care to, send me a reminder message via the compose link under Dew-Code Mailbox to the left, addressed to Dewed of course. Show me the URL of your installation and I'll shed what light I can.

And to be honest, sessions aren't really necessary for the script at all, although PHPLinks has session support, It doesn't actually use them for any purpose that I could see. Click fraud etc is handled differently.


Ah, no, they were two different issue which I didn't lay out properly in my post. My apologies.

seedy wrote:
QUOTE:
How do I add the numbers 1,5,453 into:

Code:

INSERT INTO `phplinks_related` VALUES (1, 5, 453);


AND....

seedy wrote:
QUOTE:
I cannot set ReviewerIP as NULL - it returns:
Code:

#1067 - Invalid default value for 'ReviewerIP'
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1416
Dewed (Admin)
Admin
Posts: 603
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:PHPLinks -> DewNewLinks ? 1 Year, 6 Months ago Karma: 9  
K, that makes a wee bit more sense, but now it's early here and I've only had a bit of coffee

Depending on your version of MySQL, NULLs and empty values can be bothersome..
In almost every table I can think of, the first column is auto incremented, so you can usually leave it blank and MySQL will assign the proper value. Also, good idea to surround values with single quotes.

First error, if I understand correctly ..
Invalid default value for 'ReviewerIP'

This error isn't from an insert to the table it's from creating the table.. DOH

Change the default value for "ReviewIP" from NULL to "127.0.0.1" , or maybe an empty pair of single quotes

Code:

CREATE TABLE IF NOT EXISTS `phplinks_reviews` ( `ID` smallint(5) unsigned NOT NULL auto_increment, `SiteID` smallint(5) unsigned NOT NULL default '0', `ReviewTitle` varchar(100) NOT NULL default '', `Review` text NOT NULL, `Reviewer` varchar(50) NOT NULL default '', `ReviewerEmail` varchar(50) NOT NULL default '', `ReviewerURL` varchar(100) NOT NULL default '', `Rating` tinyint(2) unsigned NOT NULL default '0', `Status` enum('New','Show','Hide') NOT NULL default 'New', `Added` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, `ReviewerIP` varchar(15) default '127.0.0.1', PRIMARY KEY (`ID`), KEY `Rating` (`Rating`) );
Code:

CREATE TABLE IF NOT EXISTS `phplinks_related` ( `id` smallint(5) unsigned NOT NULL auto_increment, `cat_id` smallint(5) unsigned NOT NULL default '0', `rel_id` smallint(5) unsigned NOT NULL default '0', PRIMARY KEY (`id`) );
Autoincremented values can usually be left blank, and again depending on your version of MySQL, single quoting the values may be required...
Code:

INSERT INTO `phplinks_related` VALUES (, '5', '453');
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1417
seedy (User)
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Re:PHPLinks -> DewNewLinks ? 1 Year, 6 Months ago Karma: 0  
Ok, ReviewerIP done.

Received another error regarding SQL version when trying to enter

Code:

INSERT INTO `phplinks_related` VALUES (, '5', '453');

So entered the following succesfully:
Code:

INSERT INTO `phplinks_related` VALUES ('', '5', '453');
Thank you.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop
Outsource your projects to thousands of programmers at
ScriptLance.com
Newsflash
Interested in
advertising?

This space for rent!

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008