php forum
php mysql forum
php mysql smarty
 
Page 13 of 21 < 1 2 ... 11 12 13 14 15 ... 20 21 >
Topic Options
#247940 - 01/28/04 09:16 AM Re: TLD Bv1.5 Released - Threads Links Directory [Re: Starfleet14]
Honda Guru Offline
User

Registered: 08/01/03
Posts: 29
Loc: Greensboro, NC
Fellow Threadaffficianados,<br /><br />I am sitting here populating a new threads driven website. I am using the TLD mod. I am trying to add a URL that starts with "https://" instead of "http://" Apparently TLD automatically adds "http://" to the beginning of any string you add in the input form. "http://" is already in the box, but if I delete it out and enter the "https://blahblah blah.com" link it gets "http://" added to the beginning with ain't gonna work.<br /><br />Is this a limitation of TLD or am I doing somethnig wrong. Is there a way to mod this mod to allow me to put in any URL I want... I am sure this feature was put in to cut down on non legit URLs but it is blocking a way to eneter "https://" which is legit...<br /><br />Thanks for the great wotk FishTails!
_________________________
N Grant Swaim
Administrator
autotech-elearning.com

Top
#247941 - 01/28/04 07:18 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: netguard]
fishtails Offline
Enthusiast

Registered: 06/19/02
Posts: 307
Loc: Fernandina Beach, FL
Actually, I never even thought about https for secure connection! I'll consider this a bug, and will look into it further. Meanwhile, if you have a link with the https, you should be able to add it directly via phpmyadmin. When the links are called from the database, it does not check for https or http, etc. Only when a link is submitted is it checked for valid URL, and as I said, I never took this into consideration when I started TLD. <br /> <br /> edit <br /> <br />Just a note, it's just a matter of changing the regexp on the submit_link.php script.


Edited by fishtails (01/28/04 07:20 PM)
_________________________
Fish or Cut Bait! http://www.fish-tails.net

[:"red"]Air traffic control? It has its ups and downs.[/] http://www.natcazjx.org

Top
#247942 - 01/28/04 08:41 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: ]
Honda Guru Offline
User

Registered: 08/01/03
Posts: 29
Loc: Greensboro, NC
FishTail,<br /><br />Yep, you don't see a lot of them (https://) but they are out there.<br /><br />Maybe an update in the future that lets submitter pick between "http://" or "https://" or let them enter the entire URL and then check it again these two protocols and kick back an error message if they attempt to add a bad URL string.<br /><br />I took a quick look at the file you referenced. I think I will wait and see if you add this tweek in a future update. I am not in a hurry. It would just be nice to be able to add these links.<br /><br />Thanks again for making this cool mod!<br /><br />Later...
_________________________
N Grant Swaim
Administrator
autotech-elearning.com

Top
#247943 - 01/29/04 11:08 AM Re: TLD Bv1.5 Released - Threads Links Directory [Re: netguard]
slayer60 Offline
Junior Member

Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
This is what you need to change:<br />
Code:
<br />                 if (strstr($url, "http://") === false)<br />                        {$url = "http://".$url;}<br />
<br /><br />I just don't know how it would need to be altered.

Top
#247944 - 01/29/04 02:52 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: BrokenToy]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
I can't get .asp files to add.

Top
#247945 - 02/01/04 12:40 AM Re: TLD Bv1.5 Released - Threads Links Directory [Re: Kelly]
lcantey Offline
Member

Registered: 05/20/99
Posts: 166
Loc: CA
I noticed it still isn't running correctly without register globals enabled. I made a few fixes that got it limping along, but haven't done an exhaustive search to make sure all the functionality is working. I wanted to post to find out if one of the maintainers was already doing it before I dug around anymore.<br /><br />Lee

Top
#247946 - 02/29/04 06:00 AM Re: TLD Bv1.5 Released - Threads Links Directory *DELETED* [Re: Billy Bandit]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
Post deleted by Pasqualist

Top
#247947 - 02/29/04 06:11 AM Re: TLD Bv1.5 Released - Threads Links Directory [Re: 10k]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
This my first installation of this add-on. I installed it from the attachment on page 1, but when I bring up links.php, I get the following errors: <br /> <br /> []SQL ERROR: Sun, Feb 29 2004 14:01:06 +0100 Unable to do_query: SELECT lid,cat_id FROM w3t_links_links WHERE approved = '1' <br />Table 'pasqual_cznet.w3t_links_links' doesn't exist <br />Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /hsphere/local/home/pasqual/tsjechie.net/forum/links_show_cat.php on line 46 <br />SQL ERROR: Sun, Feb 29 2004 14:01:06 +0100 Unable to do_query: SELECT * FROM w3t_links_categories WHERE parent_id = '0' ORDER BY 'cat_order' <br />Table 'pasqual_cznet.w3t_links_categories' doesn't exist <br />Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /hsphere/local/home/pasqual/tsjechie.net/forum/links_show_cat.php on line 66[/] <br /> <br />Ok, I understand.. no tables have been created so far, so I follow the admin link... <br /> <br />Another SQL error comes up: <br /> <br /> []SQL ERROR: Sun, Feb 29 2004 14:03:01 +0100 Unable to do_query: SELECT * FROM w3t_links_links WHERE approved = '0' ORDER BY 'date_added' <br />Table 'pasqual_cznet.w3t_links_links' doesn't exist <br />Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /hsphere/local/home/pasqual/tsjechie.net/forum/links_admin.php on line 74 [/] <br /> <br />Ok, since this is my first installation of this add-on, I click you can do so by clicking here. <br /> <br />The following 2 errors come up: <br /> <br /> []SQL ERROR: Sun, Feb 29 2004 14:05:08 +0100 Unable to do_query: SELECT * FROM w3t_links_links WHERE approved = '0' ORDER BY 'date_added' <br />Table 'pasqual_cznet.w3t_links_links' doesn't exist <br />Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /hsphere/local/home/pasqual/tsjechie.net/forum/links_admin.php on line 74 [/] <br /> <br />and <br /> <br /> []SQL ERROR: Sun, Feb 29 2004 14:05:08 +0100 Unable to do_query: CREATE TABLE w3t_links_categories ( cat_id int(11) NOT NULL auto_increment, parent_id int(11) default NULL, title varchar(50) NOT NULL default '', cat_desc varchar(60) default NULL '', cat_order tinyint(10) NOT NULL default '0', PRIMARY KEY (cat_id) ) <br />You have an error in your SQL syntax near ''', cat_order tinyint(10) NOT NULL default '0', ' at line 8Database tables have been created. You can now add categories and links. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> [/] <br /> <br />Not exactly a smooth installation! <img src="http://www.ubbdev.com/forum/images/graemlins/laugh.gif" alt="" /> <br /> <br />Anything I miss here ? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#247948 - 03/02/04 04:47 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: 10k]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
Anyone who can help me solving this ? <img src="http://www.ubbdev.com/forum/images/graemlins/frown.gif" alt="" />

Top
#247949 - 03/02/04 09:06 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: 10k]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
got a link to your install?
_________________________
- Allen wavey
- What Drives You?

Top
#247950 - 03/03/04 12:05 PM Re: TLD Bv1.5 Released - Threads Links Directory *DELETED* [Re: SurfMinister]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
Post deleted by Pasqualist

Top
#247951 - 03/03/04 03:47 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: 10k]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Your tables do not exist try these through phpmyadmin <br /> <br />CREATE TABLE `w3t_links_categories` ( <br /> `cat_id` int(11) NOT NULL auto_increment, <br /> `parent_id` int(11) default NULL, <br /> `title` varchar(50) NOT NULL default '', <br /> `cat_order` tinyint(10) NOT NULL default '0', <br /> `cat_desc` varchar(60) default NULL, <br /> PRIMARY KEY (`cat_id`) <br />) TYPE=MyISAM AUTO_INCREMENT=0 ; <br /> <br />CREATE TABLE `w3t_links_favorites` ( <br /> `num` int(9) unsigned NOT NULL auto_increment, <br /> `lid` int(9) unsigned NOT NULL default '0', <br /> `uid` int(9) unsigned NOT NULL default '0', <br /> PRIMARY KEY (`num`), <br /> KEY `FAV_indx1` (`uid`) <br />) TYPE=MyISAM AUTO_INCREMENT=0 ; <br /> <br />CREATE TABLE `w3t_links_links` ( <br /> `lid` int(11) NOT NULL auto_increment, <br /> `cat_id` int(11) default NULL, <br /> `approved` tinyint(4) NOT NULL default '1', <br /> `title` varchar(100) NOT NULL default '', <br /> `url` varchar(100) NOT NULL default '', <br /> `description` text NOT NULL, <br /> `date_added` int(11) unsigned NOT NULL default '0', <br /> `name` varchar(100) NOT NULL default '', <br /> `email` varchar(100) NOT NULL default '', <br /> `hits` int(11) NOT NULL default '0', <br /> `user_number` int(11) NOT NULL default '0', <br /> `member` char(2) NOT NULL default '', <br /> `linkratingsummary` double(6,4) NOT NULL default '0.0000', <br /> `totalvotes` int(11) NOT NULL default '0', <br /> PRIMARY KEY (`lid`) <br />) TYPE=MyISAM AUTO_INCREMENT=0 ; <br /> <br />I dumped these from my working install
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#247952 - 03/03/04 04:10 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: sf49rminer]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
Thanks Chuck! <br /> <br />I created the tables and the links page loads fine now. But while testing the script, I encountered a problem: <br /> <br />It will not create subdirs! When I create a subdir, it just creates a main dir... very weird. Any idea ? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#247953 - 03/03/04 06:46 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: 10k]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Maybe the file attached got reverted somehow. I know I had made some changes and included them on Marks direction and one of the things I did is include it. Maybe I will try and get a quick minute and zip up my php files for you to try.<br /><br />email me at []omegatron@comcast.net[/] and I will send them to you.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#247954 - 03/06/04 10:54 AM Re: TLD Bv1.5 Released - Threads Links Directory [Re: 10k]
fishtails Offline
Enthusiast

Registered: 06/19/02
Posts: 307
Loc: Fernandina Beach, FL
subdir? Are you pertaining to categories and sub-categories? Basically, first you create the main cats, then to the right of each top level category in the admin there is another box to the right to create sub-directories.
_________________________
Fish or Cut Bait! http://www.fish-tails.net

[:"red"]Air traffic control? It has its ups and downs.[/] http://www.natcazjx.org

Top
#247955 - 03/06/04 07:18 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: ]
Honda Guru Offline
User

Registered: 08/01/03
Posts: 29
Loc: Greensboro, NC
Fellow Threadafficianados,<br /><br />About 6 weeks ago I brought up the point that TLD will not allow a "https://" link to be added. There was some discussion and the only real advise to edit links_submit.php. Bottom line, I am not all that sharp with php and would love more specific help.<br /><br />So how can I get TLD to either allow "httpXXXXX" or allow anything and let the URL confirmation part catch the bad URLs.<br /><br />I think I need to do something with these lines...<br /> <br />// Let's make sure the url format is correct<br />if (strstr($url, "http://") === false)<br />{$url = "http://".$url;}<br />// Is the url valid and can we read it<br />if (@fopen($url, "r"))<br /><br />...but I have been monkeying around with this for a couple of hours to no avail.<br /><br />Help!...Pweese
_________________________
N Grant Swaim
Administrator
autotech-elearning.com

Top
#247956 - 03/06/04 07:45 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: netguard]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Well I don't know this mod not using it but I may take a look later but based off your code have you tried<br /><br />// Let's make sure the url format is correct<br />if (strstr($url, "https://") === false)<br />{$url = "https://".$url;}<br />// Is the url valid and can we read it<br />if (@fopen($url, "r"))<br /><br />to see if it at least passes the https:// addresses? if not there may be something else in the code stopping it.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#247957 - 03/06/04 07:59 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: 234234]
Honda Guru Offline
User

Registered: 08/01/03
Posts: 29
Loc: Greensboro, NC
I tried that change and it still kicks out an error message. There must be more coding that checks the URL. There are about 5 php files with this mod.
_________________________
N Grant Swaim
Administrator
autotech-elearning.com

Top
#247958 - 03/06/04 08:50 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: netguard]
fishtails Offline
Enthusiast

Registered: 06/19/02
Posts: 307
Loc: Fernandina Beach, FL
I think the problem lies within the fact that https is for secure connections, and the script is trying to open the file for reading only. I'll look into this more and see if I can come up with a more definitive answer. I've been working on some other parts of the script and forgot.
_________________________
Fish or Cut Bait! http://www.fish-tails.net

[:"red"]Air traffic control? It has its ups and downs.[/] http://www.natcazjx.org

Top
#247959 - 03/06/04 10:33 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: ]
Honda Guru Offline
User

Registered: 08/01/03
Posts: 29
Loc: Greensboro, NC
Thanks in advance for the help! <br /> <br />The mod works great in all other ways <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />PS I think you are right about part of the problem is not being able to open a https:// link for validtion. I was adding another link to TLD that is a standard http:// link. It kept coming up as a bad URL. I could visit the URL manually with no problem. I then noticed that the http:// page was redirecting to a https:// page. So it is a two headed issue. One is allowing https URLs to be entered into the system and the other is validating the https URLs. <br /> <br />Later..
_________________________
N Grant Swaim
Administrator
autotech-elearning.com

Top
Page 13 of 21 < 1 2 ... 11 12 13 14 15 ... 20 21 >


Who's Online
0 registered (), 21 Guests and 10 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks