Thanx Allen always good to have two sets of eyes. Well the program is now 100% compliant with the one exception of the show favorites menu which calls the links_redirect.php script which makes the validator go wild calling all kinds of tag elements. It actually looks like main.inc.php is being called twice by the links program. Anyway this post here has the latest files with all the validated programs. <br /> <br />http://www.ubbdev.com/forum/download.php?Number=82558
AllenAyres
I type Like navaho
Registered: 03/10/00
Posts: 25452
Loc: Texas
Nice, thank you <img src="/forum/images/graemlins/smile.gif" alt="" /> I'mma gonna add it to a site that's been requesting it now... <img src="/forum/images/graemlins/smile.gif" alt="" />
No problem you know me. With the tablewrappers and such on my site I can't afford to have a program with html mistakes as my site would look all wacky. <br /> <br />Everything should validate now except the favorites. <br /> <br />The offending line which points to the redirection script is this in show_favorites <br /> <br /> print " <br /> <a href=\"links/links_redirect.php?lid=$row[lid]&url=$row[url]\" target=\"_blank\">$row[title]</a><br /> $row[description]<br /> <br /> "; <br />} <br /> <br />If you look at that file contents you can see it also calls the main.inc.php file but to my knowledge the links program already does this. <br /> <br />Here is the redirect file. <br /> <br />// -------------------------- <br />// Update the total number of hits for a link. <br /> <br />require ("../main.inc.php"); <br /> <br /> $query = "UPDATE {$config['tbprefix']}links_links <br /> SET hits = hits+1 <br /> WHERE lid = '$lid' <br /> "; <br /> $update_hits = $dbh -> do_query($query); <br /> <br /> header ("Location: $url"); <br /> <br />I have tried taking out the require and the header location statement. Maybe someone will spot something obvious but I think the error looks to me like the main.inc being called twice.
Ian_W
Veteran
Registered: 02/22/02
Posts: 2575
Loc: England
Hmmm... strange that I have not had these errors - and I am running the side bar, and tested both on left & right. Maybe it is beacuse I run the links as root on the account and not in a sub-directory. Mine is at http://links.nonleague.com (Still testing things there, and not yet live <img src="/forum/images/graemlins/smile.gif" alt="" /> )<br /><br />One thing that was missing from the original version that I added to mine was Cat=$cat& on each URL so that categories are carried through from and back to threads <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Of course I also added to authenticate U_Groups as I use the groups feature in my sidebar (I have to be different LOL)
_________________________ Fans Focus - Focusing on Fans of Sport
(Okay - mainly football (the British variety at the moment - but expanding all the time....)
Allen's sidebar issue seems to be with that particular hack or in combination of another hack as in the sidebar thread I already stated my site validates with the sidebar. Now the issue above with the show favorites is the only thing left with this program that keeps it from being 100$ validated although the program works as intended.<br /><br />Now I logged into your site. The validator does not like your site at all. It can not even obtain doctype declarations from your domain. <img src="/forum/images/graemlins/smile.gif" alt="" /> I would suspect though that the validator would find the same error if it could parse past those nice little subdomains. <img src="/forum/images/graemlins/wink.gif" alt="" />
Ian_W
Veteran
Registered: 02/22/02
Posts: 2575
Loc: England
Very true - but then I do not run the validator at all - must admit that I have not given any thought to validation. So much of the extra software I use is not validated, that I am onto a looser from the start. I was mroe refering to the various html errors.<br /><br />Weird thing though I see you registered, and I had the email sent to me to verify your email address - despite the fact that your address was in the to section - strange.
_________________________ Fans Focus - Focusing on Fans of Sport
(Okay - mainly football (the British variety at the moment - but expanding all the time....)
Yeah well it worked fine. I recieved the confirmation email. Your links section is private so I had to register to view the link you posted. The club I joined is funny my daughter is a travel soccer player for the Abingdon Football Club. Then again thats abingdon over here in Maryland USA<br /><br />Yeah I don't think you would ever know where to begin concerning validation however you talk about html error's validation ensures no html errors. <img src="/forum/images/graemlins/wink.gif" alt="" />
AllenAyres
I type Like navaho
Registered: 03/10/00
Posts: 25452
Loc: Texas
I've got a site that when I try to add categories, it says something like 'you didn't type anything' <img src="/forum/images/graemlins/tongue.gif" alt="" /> Any ideas?
JoshPet
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I wonder if this is a register global thing.<br /><br />Allen - I haven't looked at this mod closely - but does the script that is saying "you didn't type anything" have a get_input call at the top for all the variables it's looking for. If not - it might see them as empty. <img src="/forum/images/graemlins/smile.gif" alt="" />
JoshPet
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Not sure if all the other variables (like $title etc.... ) need to be included in that, if register globals is on (or off) I always get confused on which one needs the get_input function. <img src="/forum/images/graemlins/smile.gif" alt="" />
JoshPet
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I'm thinking that the register globals is set differently on that server. <br /><br />I'm guessing. <img src="/forum/images/graemlins/smile.gif" alt="" />
fishtails
Enthusiast
Registered: 06/19/02
Posts: 307
Loc: Fernandina Beach, FL
I haven'y been on a computer for days! Was begining to have withdrawals. <img src="/forum/images/graemlins/tongue.gif" alt="" /> Chuck, thanks for working on the html. I'm not having a problem with the admin script loading, but I'll take a gander at the file. The call to show_cats.tmpl is no longer needed. You can safely remove that line. <br /> <br />On my system, register globals is on, and everything works fine. <br /> <br />Today is 24 years of a great marriage, so forgive me if I don't look at it right away. <img src="/forum/images/graemlins/wink.gif" alt="" /> I'll check it out in the am.