<? 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:Add site country issue (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Add site country issue
#1661
Sharli (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Add site country issue 11 Months, 1 Week ago Karma: 0  
Using: Dew-NewPHPLinks v.2.0.1.0b SEF

When adding site from 'add site' link an issue occurs with the country choice. I have not made any changes other than to add a few more selections. All the .gif images are in place.

The add site page asks for the country choice repeatedly. Cannot seem to get beyond this.

Any ideas on how to correct this?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1662
Dewed (Admin)
Admin
Posts: 605
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Add site country issue 11 Months, 1 Week ago Karma: 9  
Difficult to explain this. The drop down list of country names is created from the filenames in /images/flags directory..

By chance have you modified the /include/add.php file ?

Does it look like this one ?
http://www.dew-code.com/source/?filename=./dew-newphplinks.v.2.1.0.1b.sef/include/add.php

Perhaps you could tell me the URL of your installation? If you'd prefer to keep it private you can use the Compose link to the left (or the one I just put in this post)

Address your message to Dewed and I will see what I can see.
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1663
Sharli (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:Add site country issue 11 Months, 1 Week ago Karma: 0  
I had made changes to the flag images. All the flags were wiped and blank images loaded to replace them so flags would not show. I deleted all the flags not needed as this is Canadian based.

URL: www.cdndirectory.com

I like this links program as it meets the needs for this site.

I copied the add.php you had linked to and uploaded it to the site. Well, site no longer worked so I used the old add.php and site worked again but the country issue still exists.

I am thinking of reinstalling from scratch. I am on a VPS with Hostgator and installing through Fantastico.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1664
Dewed (Admin)
Admin
Posts: 605
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Add site country issue 11 Months, 1 Week ago Karma: 9  
Don't re-install.. Your host does not have the latest version in Fantastico..

Instead, since country is always Canada.. make a slight edit near the top of the /include/add.php file

Code:

//$Country=mysql_escape_string($_POST['Country']); $Country='Canada';
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1665
Dewed (Admin)
Admin
Posts: 605
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Add site country issue 11 Months, 1 Week ago Karma: 9  
Strike that... I see the problem..

You changed the add.php file (I preseume)

Where you have name="Location" .. instead of name="Country".. so the real fix is

Code:

$Country=mysql_escape_string($_POST['Location']);
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1666
Sharli (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:Add site country issue 11 Months, 1 Week ago Karma: 0  
Thank you so much.

Both fixes worked. I went active with the second fix.

BTW: I am using a template I dl but the links back to the author are not working so I adjusted the info on the template.
 
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