PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > General Forums > Before You Buy

Before You Buy Have questions about PhotoPost, ReviewPost and/or PhotoPost Classifieds before you buy?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old April 6th, 2005, 12:28 PM   #1 (permalink)
greggh
Guest
 
Posts: n/a
Can I set it so that a member's gallery gets the url membername.websitedomain.com

Is there a mod to do this already? Is it planned to have this feature included in a future version? I know I could manually go into webmin and manually give each member a subdomain and set it to redirect to the long php url that is generated. But I would like to have a way for a simple url membername.websitedomain.com to be automatically generated. Could something like this be done with mod-rewrite? Appreciate any info on this. Thanks.
  Reply With Quote
Old April 6th, 2005, 12:30 PM   #2 (permalink)
Brian
Guest
 
Posts: n/a
Re: Can I set it so that a member's gallery gets the url membername.websitedomain.com

Currently there is not an option for this, or a hack that I am aware of.
  Reply With Quote
Old April 6th, 2005, 12:33 PM   #3 (permalink)
Ultimate Member
 
Join Date: Jan 2004
Posts: 2,196
Re: Can I set it so that a member's gallery gets the url membername.websitedomain.com

You would need some incredible hacking and a grreat mod_rewrite...
Zachery is offline   Reply With Quote
Old April 6th, 2005, 12:36 PM   #4 (permalink)
greggh
Guest
 
Posts: n/a
Re: Can I set it so that a member's gallery gets the url membername.websitedomain.com

Quote:
Originally Posted by Brian
Currently there is not an option for this, or a hack that I am aware of.
Shucks. I know this isn't easy to do with php scripts but I hope a way can be found eventually. I really need this feature since I'm trying to do a site like fotolog.net and I know that those types of users would not tolerate having a very long cryptic php? domain as the url to their gallery homepage. Thanks for the info though.
  Reply With Quote
Old April 10th, 2005, 07:55 AM   #5 (permalink)
Brainwrek
Guest
 
Posts: n/a
Re: Can I set it so that a member's gallery gets the url membername.websitedomain.com

I have been pulling my hair out looking for a portal that would do this as well. After searching for days, I still haven't figured out a solution. The link below looks like it could be promising though. Anyone know if it could be integrated with VBGallery?

http://www.photopostdev.com/showthread.php?t=630
  Reply With Quote
Old April 10th, 2005, 08:04 AM   #6 (permalink)
Brainwrek
Guest
 
Posts: n/a
Re: Can I set it so that a member's gallery gets the url membername.websitedomain.com

OH...just thinking out loud... If it's too difficult to create a new subdomain for each member...is there any way to create a direct link to a user's gallery something like this:
http://www.domain.com/gallery/images/username

The current URL is like this:
http://www.domain.com/gallery/browse...?c=46&userid=1

So with mod_rewrite it would be a snap to change 'browseimages.php' to simply 'images' ...but I don't know how to deal with the remaining variables...
  Reply With Quote
Old April 10th, 2005, 10:57 AM   #7 (permalink)
greggh
Guest
 
Posts: n/a
Re: Can I set it so that a member's gallery gets the url membername.websitedomain.com

As Brainwreck posted, somebody posted a pretty short and simple bit of code that automically makes short easy www.membername.domain.com urls, it just needs dns wilcards enabled on the server. Couldn't code similar to this be used to do the same thing with vBadvanced Gallery...

//Normal (i.e. non-forwarding) URLs for your MAIN index page
$url="www.7thgencivic.com";
$redirecturls=array(1 => 'civicworld.com','7thgencivic.com','www.civicworld.com','civicnation.net','www.civicnation.net','civiczone.com','www.civiczone.com','2k1civic.com','www.2k1civic.com','2k2civic.com','www.2k2civic.com','www.8thgencivic.com','8thgencivic.com');
//Users URLs will end with... (remember the first dot!)
$usersurl=".7thgencivic.com";
$usergroup="8,6";

require_once("mainfile.php");
global $DB_site,$session;
$PHP_SELF = "modules.php";

//premium user redirect

///////Spot the users//////
$domain = $_SERVER['HTTP_HOST'];

foreach($redirecturls as $key => $value) {
//echo "Key: $key; Value: $value<br>\n<br>";
if ($domain==$value) {
header("Location: <a href="http://www.7thgencivic.com/" target="_blank">http://www.7thgencivic.com/</a>");
exit();
}
}

if ($domain!=$url) {
$who = substr($domain,0,strpos($domain,$usersurl));
$who = str_replace(".","",$who);
$doquery= $DB_site->query("SELECT userid FROM user WHERE ( username = '$who' AND ( usergroupid IN ( $usergroup ) OR premium = 1 ) AND photos = 1 );");
$result=$DB_site->fetch_array($doquery);

if ($result[userid]) {
header("Location: <a href="http://" target="_blank">http://</a>$url/memberrides/showgallery.php?stype=2&si=&cat=500&sort=1&ppuser=$result[userid]");
exit();
} else {
header("Location: <a href="http://www.7thgencivic.com/" target="_blank">http://www.7thgencivic.com/</a>");
exit();
}
}

//////////////////////////

//end premium user redirect
  Reply With Quote
Old April 11th, 2005, 10:13 AM   #8 (permalink)
ASC
Guest
 
Posts: n/a
Re: Can I set it so that a member's gallery gets the url membername.websitedomain.com

Have you considered using your .htaccess file? Setup your member's gallery with a distinctive URL and then have it redirect to the actual location.
  Reply With Quote
Old April 11th, 2005, 06:14 PM   #9 (permalink)
greggh
Guest
 
Posts: n/a
Re: Can I set it so that a member's gallery gets the url membername.websitedomain.com

Quote:
Originally Posted by ASC
Have you considered using your .htaccess file? Setup your member's gallery with a distinctive URL and then have it redirect to the actual location.
Yeah, but that mean setting each member's url manually.I'm trying to find an automated way to do this.
  Reply With Quote
Old July 15th, 2005, 09:11 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: Jan 2003
Location: Gilbert, AZ
Posts: 394
Re: Can I set it so that a member's gallery gets the url membername.websitedomain.com

lol, just found this page from an MSN backlink.

anyway, it would be pretty easy to do with that code of mine that is posted above, just need to do some changes. I may do this when vb3.5 goes gold and I switch away from photopost to vBA Gallery. damn, I can't wait.
7thgencivic.com is offline   Reply With Quote
Old July 22nd, 2005, 11:34 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Posts: 163
Re: Can I set it so that a member's gallery gets the url membername.websitedomain.com

Yes, if this could be done, I'd be sold like... LAST WEEK!
Brinnie is offline   Reply With Quote
Reply


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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Link to member's gallery under that user's name in posts dennisuello How Do I? - vBulletin 3.0.X 1 September 2nd, 2005 12:24 PM
View slideshow of all users pics in member's gallery mjm Photopost Pro How Do I...? 5 April 23rd, 2005 10:30 PM
Member's Gallery. Sort by last upload? imported_97cobracpe How Do I? - vBulletin 3.0.X 2 March 25th, 2005 04:25 PM
Linking vbulletin profile to a Member's Gallery tkitt General Discussion 11 December 19th, 2004 12:53 PM


All times are GMT -5. The time now is 08:02 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0