To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Discussion > Feedback

Feedback Speak directly with the PHP Builder Staff here

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-09-2002, 07:47 AM   #1
$SuperString
theory of everything (!)
 
$SuperString's Avatar
 
Join Date: Oct 2002
Posts: 252
Just to many blue squares !!

See this page, look at the top were the blue background turns to white (just after the curved white graphics on either side) - does it dip in about 10 px showing a blue square?. the bottom is also not aligned correctly. Its probably only noticable on (1024*768), IE 6 or something. but its just a wee tad annoying.
You will probably find that its the Ad banner thats throwing it off, just take it off (anf the ad at the side too) and all will be fine (joking).
When I look at some of the sites I did a few years ago (using strange browsers) they also have graphics aligned incorrectly. Its all in the aid of great fun.
__________________
Word Lookup
$SuperString is offline   Reply With Quote
Old 12-15-2002, 09:44 AM   #2
Weedpacket
Custom User Title™
 
Weedpacket's Avatar
 
Join Date: Aug 2002
Location: Rapid Offensive Unit "Foreign Object Damage"
Posts: 19,126
And I thought it was just me....

It's the table cells between the corners that are at fault - they're not entirely empty - they have spaces in them. And a space is as high as the rest font says it is. (Which is why the gap gets bigger as the font size goes up).

Hey, so I was bored. We're all supposed to be using CSS to do layout anyway
__________________
On two occasions I have been asked [by Members of Parliament], "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
Weedpacket is offline   Reply With Quote
Old 12-17-2002, 06:57 AM   #3
$SuperString
theory of everything (!)
 
$SuperString's Avatar
 
Join Date: Oct 2002
Posts: 252
good call subduck, a make-over would be ideal. You would think a site as active as this would be better designed. The forum is fine (as its out the box) but the rest is just a really scrappy.
I bet the PHP Builder Staff already know this and have been planning to update the design for sometime. Get the finger out lads, im sure there is plenty of users willing to lend a hand.
__________________
Word Lookup
$SuperString is offline   Reply With Quote
Old 12-22-2002, 12:13 PM   #4
jstarkey
Civilian
 
jstarkey's Avatar
 
Join Date: Jul 2002
Location: 9500 ft
Posts: 1,104
The site is going through a major overhaul. Once that's complete, I'd like to do a redesign.

I'll also try to find a Windows machine today and check the layout.

Here are a few of the next in lines, after I finish my current project:

1) a shell script to regexp the email addresses in the mail archive and replace them with <email protected> or similar.

2) a shell script which will email opt in users the day's threads from vB.

3) A script to tie the article comments in to vB (I started this but ran into a can of worms).

4) Clean out the code library.

5) Script a daily/weekly update to the manual. I have it pulling the cvs copy and building it, but that's too much for the machine, so I'm going to an rsync method. Both mean that I have to change quite a few links that are absolute.

If anyone is interested in any of the above, I'd be happy to create a 'praise' page with credits.
jstarkey is offline   Reply With Quote
Old 12-31-2002, 05:00 PM   #5
mahendrakalkura
Indian Hero
 
mahendrakalkura's Avatar
 
Join Date: Sep 2002
Location: Bangalore, India
Posts: 79
Quote:
Originally posted by jstarkey


2) a shell script which will email opt in users the day's threads from vB.
i really love this idea

and i am more than willing to lend both my hands and legs to this project

just kidding

i am really interested to help you out in this
mahendrakalkura is offline   Reply With Quote
Old 12-31-2002, 07:45 PM   #6
jstarkey
Civilian
 
jstarkey's Avatar
 
Join Date: Jul 2002
Location: 9500 ft
Posts: 1,104
Quote:
Originally posted by mahendrakalkura

i am really interested to help you out in this
Sounds great. You know the table layout, right? What would you need from me?

I think we can work something out regarding your other request. You'd be saving me a few hours here, so I think it's fair.

Thanks much.
jstarkey is offline   Reply With Quote
Old 01-03-2003, 06:14 AM   #7
jstarkey
Civilian
 
jstarkey's Avatar
 
Join Date: Jul 2002
Location: 9500 ft
Posts: 1,104
Re: Just to many blue squares !!

I'm having a really hard time finding a windows machine at the moment. Could someone possibly send me a screenshot of the table problem?
jstarkey is offline   Reply With Quote
Old 01-09-2003, 12:49 PM   #8
$SuperString
theory of everything (!)
 
$SuperString's Avatar
 
Join Date: Oct 2002
Posts: 252
Re: Re: Just to many blue squares !!

Quote:
Originally posted by jstarkey
I'm having a really hard time finding a windows machine at the moment. Could someone possibly send me a screenshot of the table problem?
I have attached a screen capture of what I see.
Attached Images
File Type: gif php_builder_shot.gif (58.8 KB, 87 views)
__________________
Word Lookup
$SuperString is offline   Reply With Quote
Old 01-10-2003, 11:02 PM   #9
planetsim
code | beer > sleep
 
Join Date: Sep 2002
Location: aus
Posts: 4,826
Yea this is quite a pitty some forums i go to or just visit have like loads of designs. But this is like a very popular site. Quite Confusing. But other than that this is probably the best forum for the PHP addict
__________________
Dont be lazy Search
And use the Manual
Webmobo - Open Source News Script | Portfolio / Blog | Against TCPA
planetsim is offline   Reply With Quote
Old 01-14-2003, 06:03 PM   #10
jstarkey
Civilian
 
jstarkey's Avatar
 
Join Date: Jul 2002
Location: 9500 ft
Posts: 1,104
I haven't forgotten about this. I've been trying to find my Windows key, so that I can actually install it.

Weedpacket sent me the details of how he got it working, but I can't just post the fix without checking it.
jstarkey is offline   Reply With Quote
Old 01-16-2003, 05:13 PM   #11
jstarkey
Civilian
 
jstarkey's Avatar
 
Join Date: Jul 2002
Location: 9500 ft
Posts: 1,104
Ok, sorry for the delay. I've finally gotten a copy of windows set up again.

All better now?
jstarkey is offline   Reply With Quote
Old 01-20-2003, 07:32 AM   #12
Weedpacket
Custom User Title™
 
Weedpacket's Avatar
 
Join Date: Aug 2002
Location: Rapid Offensive Unit "Foreign Object Damage"
Posts: 19,126
Halfway. At least in Mozilla. In IE 5.5 it looks the way it should. In Mozilla, the upper corners are fine, but the lower corners look as they do in the attachment.

[Edit: I say this and a few seconds later they look fine. Maybe they were fixed while I was checking them out?]
Attached Images
File Type: png bottomright.png (1.1 KB, 82 views)
__________________
On two occasions I have been asked [by Members of Parliament], "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
Weedpacket is offline   Reply With Quote
Old 01-20-2003, 08:59 AM   #13
$SuperString
theory of everything (!)
 
$SuperString's Avatar
 
Join Date: Oct 2002
Posts: 252
Ehh.. looked fine on IE untill I go to a new post screen were I get the same problem weedpacket mentions !!!. It seems to have wrapped the right banner down to under all the posts and created the 'not enough white squares effect' as per weebpackets picture.
__________________
Word Lookup
$SuperString is offline   Reply With Quote
Old 01-20-2003, 03:11 PM   #14
jstarkey
Civilian
 
jstarkey's Avatar
 
Join Date: Jul 2002
Location: 9500 ft
Posts: 1,104
Ooops. Forgot to get that page. Today's a holiday, I'm just being the usual geek and stopping by while checking my email. I'll fix that ASAP -- I promise it won't take as long this time
jstarkey is offline   Reply With Quote
Old 01-21-2003, 08:32 AM   #15
altexis
bit fission artist
 
Join Date: Dec 2002
Location: Athens, Greece
Posts: 272
Quote:
Originally posted by jstarkey
1) a shell script to regexp the email addresses in the mail archive and replace them with <email protected> or similar.
I am very very new to regular expressions... so I made a script with the way I know better. I am posting it here so any other of you guys interested you can just copy&paste it for yourselves.

ok... here we go..
this is a function looking for emails and changing them to the format someone (at) somewhere (dot) com

PHP Code:
function replaceEmails($inBody, $ATsign, $DOTsign) {
    
$outBody="";
    
$inBodyNextCopyIndex=0;
    
$inBodyLen=strlen($inBody);
    
$iAT=-1;
    while(
true){
        if (
$iAT+1>$inBodyLen-1) break;
    
        
$iAT=strpos($inBody, "@", $iAT+1);
        if (
$iAT===false) break;
        else {
            
// look for the beginning
            
$i=$iAT-1;
            while(
$i>=0 && strpos("._-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", substr($inBody, $i, 1))!==false) $i--;
            
$i++;
            if (
$i==$iAT) continue;
            else {
                if (
substr($inBody, $i, 1)==".") continue;
                else {
                    
$iStart=$i;
                    
                    
// look for the ending
                    
$i=$iAT+1;
                    
$iDOT=-1;
                    while(
$i<$inBodyLen && strpos(".-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", substr($inBody, $i, 1))!==false){
                        if (
substr($inBody, $i, 1)==".") $iDOT=$i; // look for the final dot
                        
$i++;
                    }
                    
$i--;
                    if (
$i==$iAT) continue;
                    else {
                        if (
$iDOT==-1) continue;
                        elseif (
strpos("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", substr($inBody, $i, 1))===false) continue; // the .com part should always end in a letter
                        
else {
                            
// success - extract+format good parts - continue loop
                            
$outBody.=substr($inBody, $inBodyNextCopyIndex, $iStart-$inBodyNextCopyIndex)."[b]".substr($inBody, $iStart, $iAT-$iStart)." ".$ATsign." ".substr($inBody, $iAT+1, $iDOT-$iAT-1)." ".$DOTsign." ".substr($inBody, $iDOT+1, $i-$iDOT);
                            
$inBodyNextCopyIndex=$i+1;
                            
$iAT=$i;
                            continue;
                        }
                    }
                }
            }
        }
    }
    return
$outBody;
}
now... I also made a transpose of this to include support for the tags vBulleting is using:
PHP Code:
function replaceEmailsIgnoreTags($inBody, $ATsign, $DOTsign) {
    
$outBody="";
    
$inBodyLower=strtolower($inBody);
    
$inBodyNextCopyIndex=0;
    
$inBodyLen=strlen($inBody);
    
$iAT=-1;
    while(
true){
        if (
$iAT+1>$inBodyLen-1) break;
        
$previous_iAT=$iAT;
        
        
// find which occurrence comes first (2147483647 is the max signed integer number)
        
$iAT=strpos($inBodyLower, "@", $previous_iAT+1);            if ($iAT===false) $iAT=2147483647;
        
$iQuote=strpos($inBodyLower, "[quote]", $previous_iAT+1);    if ($iQuote===false) $iQuote=2147483647;
        
$iPhp=strpos($inBodyLower, "[php]", $previous_iAT+1);        if ($iPhp===false) $iPhp=2147483647;
        
$iMin=min($iAT, $iQuote, $iPhp);
        
        if (
$iMin==2147483647) {
            
$outBody.=substr($inBody, $inBodyNextCopyIndex, $inBodyLen-$inBodyNextCopyIndex);
            break;
        }
        elseif (
$iMin==$iAT) {
            
// look for the beginning
            
$i=$iAT-1;
            while(
$i>=0 && strpos("._-abcdefghijklmnopqrstuvwxyz0123456789", substr($inBodyLower, $i, 1))!==false) $i--;
            
$i++;
            if (
$i==$iAT) continue;
            else {
                if (
substr($inBody, $i, 1)==".") continue;
                else {
                    
$iStart=$i;
                    
                    
// look for the ending
                    
$i=$iAT+1;
                    
$iDOT=-1;
                    while(
$i<$inBodyLen && strpos(".-abcdefghijklmnopqrstuvwxyz0123456789", substr($inBodyLower, $i, 1))!==false){
                        if (
substr($inBody, $i, 1)==".") $iDOT=$i; // look for the final dot
                        
$i++;
                    }
                    
$i--;
                    if (
$i==$iAT) continue;
                    else {
                        if (
$iDOT==-1) continue;
                        elseif (
strpos("abcdefghijklmnopqrstuvwxyz", substr($inBodyLower, $i, 1))===false) continue; // the .com part should always end in a letter
                        
else {
                            
// success - extract+format good parts - continue loop
                            
$outBody.=substr($inBody, $inBodyNextCopyIndex, $iStart-$inBodyNextCopyIndex)."[b]".substr($inBody, $iStart, $iAT-$iStart)." ".$ATsign." ".substr($inBody, $iAT+1, $iDOT-$iAT-1)." ".$DOTsign." ".substr($inBody, $iDOT+1, $i-$iDOT)."[/b]";
                            
$inBodyNextCopyIndex=$i+1;
                            
$iAT=$i;
                        }
                    }
                }
            }
        }
        else {
            if (
$iMin==$iQuote) $st="
[/quote]
PHP Code:
";
            elseif ($iMin==$iPhp) $st="
";
else die("young"); // this should never happen

$i=strpos($inBodyLower, $st);
$len=strlen($st);
if ($i===false) {
// did not find closing tag ... returning rest of text as is
$outBody.=substr($inBody, $inBodyNextCopyIndex, $inBodyLen-$inBodyNextCopyIndex);
break;
} else {
// return text until the closing tab as is. continue computations with the rest
$outBody.=substr($inBody, $inBodyNextCopyIndex, $i-$inBodyNextCopyIndex+$len);
$inBodyNextCopyIndex=$i+$len;
$iAT=$i+$len-1;
}
}
}
return $outBody;
}
[/php]

I haven't given it much testing yet... but I usually make only typing errors

when I apply this little test:
PHP Code:
$st="this is just [quote] a [email]b@c.com[/email] sample\r\ntext to see [/quote]how good\r\ni have [email]_alex@some.where.gr[/email] become during the last  [email]34j@php.net[/email]\r\n year in php progr@mming";
echo
"<p>".nl2br(htmlspecialchars(replaceEmailsIgnoreTags($st, "(at)", "(dot)")))."</p>\n";
I have this result:
Quote:
this is just
Quote:
a b@c.com sample
text to see
how good
i have _alex (at) some.where (dot) gr become during the last 34j (at) php (dot) net
year in php progr@mming
It looks fine to me... if any of you test it and find any bugs please msg me!!
__________________
$free = !$hope && !$fear;
altexis is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 03:28 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.