yessir, close. I've set up a rule so that profile names /can't/ start with a ; which reserves it for functionality such as this. (Need to add a JS rule on the register page tomorrow, too)
It's currently this structure:
http://ohai.im/;p;ht....com/gabehabe;3
First can be p or l, profile or link.
Then it's the URL.
Lastly, the ID in the table, so it knows what to actually update.
Like I said, I'll probably re-structure them to http://ohai.im/;p3;h...er.com/gabehabe
73 Replies - 11158 Views - Last Post: 29 October 2011 - 12:08 PM
#47
Re: Social Portal [ohai.im]
Posted 25 November 2009 - 02:26 PM
Sweet. I am liking it a lot.
What you could do, is just add another section, like you have for profiles and links, for "friends" and we just add the username. Say, I add gabehabe, and it links http://ohai.im/gabehabe
What you could do, is just add another section, like you have for profiles and links, for "friends" and we just add the username. Say, I add gabehabe, and it links http://ohai.im/gabehabe
This post has been edited by Gorian: 25 November 2009 - 02:26 PM
#48
Re: Social Portal [ohai.im]
Posted 26 November 2009 - 02:21 AM
Considering it, but I don't want to cross the border from being a portal to being a network.
#49
Re: Social Portal [ohai.im]
Posted 26 November 2009 - 02:27 AM
gabehabe, on 25 Nov, 2009 - 01:13 PM, said:
I've set up a rule so that profile names /can't/ start with a ; which reserves it for functionality such as this.
I hope you've set up rules to prevent people registering as "register" and "login" too. ;-)
Good good stuff. You probably mentioned it somewhere else, but what language did you use? Or is that industrial secret?
#50
Re: Social Portal [ohai.im]
Posted 26 November 2009 - 07:31 AM
No need, register and login are both users already 
Actual pages are powered (sorta) by profiles. Only difference is that some will include different files for the body.
I've used PHP.
htaccess for vanity URLs:
Then I just use the $_SERVER["REQUEST_URI"] variable to get the profile name.
substr is used to get rid of the leading /
Actual pages are powered (sorta) by profiles. Only difference is that some will include different files for the body.
I've used PHP.
htaccess for vanity URLs:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule (.+) index.php [nc]
Then I just use the $_SERVER["REQUEST_URI"] variable to get the profile name.
$id = @mysql_real_escape_string(substr($_SERVER["REQUEST_URI"], 1));
substr is used to get rid of the leading /
#51
Re: Social Portal [ohai.im]
Posted 26 November 2009 - 01:24 PM
#52
Re: Social Portal [ohai.im]
Posted 01 December 2009 - 10:29 AM
Nice, has a link to analytics now.
#53
Re: Social Portal [ohai.im]
Posted 15 January 2010 - 06:07 AM
Been a while, but got two new features:
You can add email addresses, protected by displaying as images instead of text.
You can also now add a twitter account, to display a few recent tweets on your profile.
You can add email addresses, protected by displaying as images instead of text.
You can also now add a twitter account, to display a few recent tweets on your profile.
#54
Re: Social Portal [ohai.im]
Posted 18 January 2010 - 06:16 AM
I submit my website link with erong address and tryed to remo it by clicking it in this page Manage, it removes it from the list, but when I check my profile it's still here and when I update my manage-page it appears again. So I can't remove my links.
#55
Re: Social Portal [ohai.im]
Posted 27 January 2010 - 04:07 PM
I have some suggestions for some profiles to add to the site: Github.com and Gitorious.org.
http://ohai.im/programble
My pic is too small for that page lol.
Just saw the "Submit a Site" button lol
submitting those now.
http://ohai.im/programble
My pic is too small for that page lol.
Just saw the "Submit a Site" button lol
This post has been edited by programble: 27 January 2010 - 04:10 PM
#56
Re: Social Portal [ohai.im]
Posted 27 January 2010 - 04:22 PM
Also, how about adding fields for IM accounts, like Jabber, Yahoo, AIM, MSN, etc.
#57
Re: Social Portal [ohai.im]
Posted 27 January 2010 - 04:35 PM
Nice Danny, tested the new features, seem to work great. Is it possible to have some sort of disguised link to add functionality to the email images? say something of the sort: onclick="this.src='http://ohai.im/;p;mailto:email@domain.com;0'"
#58
Re: Social Portal [ohai.im]
Posted 28 January 2010 - 06:08 PM
Best method for obfuscating emails is to hex encode them.
#59
Re: Social Portal [ohai.im]
Posted 31 January 2010 - 10:11 AM
Pretty snazzy! I signed up today as ts230.
Your site is still pretty basic. I'd be interested to work on it a little bit. I always wanted to do something like that!
Your site is still pretty basic. I'd be interested to work on it a little bit. I always wanted to do something like that!
#60
Re: Social Portal [ohai.im]
Posted 31 January 2010 - 12:37 PM
And BTW: Where did you register the .im domain? I was just interested.
|
|

New Topic/Question
Reply







MultiQuote







|