scrawford Posted November 2, 2005 Posted November 2, 2005 Hey, suggestion: Make the portal viewable and fully functional off the forums again like it was in 2.0.4. or can someone make a mod to do this? Thanks, Coder coder@xpertgaming.org
Luke Posted November 3, 2005 Posted November 3, 2005 Hey, suggestion: Make the portal viewable and fully functional off the forums again like it was in 2.0.4. or can someone make a mod to do this? Thanks, Coder coder@xpertgaming.org Im not sure what you mean, but if you mean skin the portal like your site, you can do this by template modification. One thing I did notice is the member bar and other areas are included in the portal that shouldnt be. Check the tips forum for one of my posts on portal, and you should find a very simple addition to the portal file that removes member bar, etc... from the portal page. The way the forum works is actually quite interesting. You may notice all links have "?" after index.php, even though there is nothing after "?". So you would have /index.php?. Well what I did was made it where if the directory or index.php file had "?" it would take you to the forum index, and if you accessed it directly (www.mysite.com/ or www.mysite.com/index.php instead of www.mysite.com/? or www.mysite.com/index.php?) it would take you to the portal. This completly removes the need to have your forum in a sub directory when you want your portal to be your index page for your domain. (note sure if that made sense). To do that find this in index.php: $ipsclass->input['act'] = 'idx'; and replace it with: if($_SERVER['REQUEST_URI'] == '/index.php' || $_SERVER['REQUEST_URI'] == '/') { $ipsclass->input['act'] = 'home'; } else { $ipsclass->input['act'] = 'idx'; }
scrawford Posted November 3, 2005 Posted November 3, 2005 No, I want my portal at: sitename.com and my forum at: sitename.com/forum ipb 2.0.4 came with a script to allow that, however the latest release just redirects from sitename.com/ to the portal on the forum (sitename.com/?act=home). I also posted about this on IZE: http://forums.invisionize.com/index.php?showtopic=90313
Luke Posted November 3, 2005 Posted November 3, 2005 Ok, well here's a simple way of doing it: Create an index.php file and put this in it: <?php $_GET['act'] = 'home'; chdir("###/forum/"); include("index.php"); ?> Replace ### with the complete server path to your forum directory. Then save it and put it in your main directory with your forum files in /forum/ If all goes well it should create the same effect. If it doesnt work (which im sure it should) I was going off of memory :whistle:
scrawford Posted November 3, 2005 Posted November 3, 2005 well, ill give it a go.. but i think doing that would play with image directorys. Thx :P Edit: yeah.. it does affect the image directory's.. now no images load :( and the page in general loads slow.. proably b'cus the images not being found.
Luke Posted November 3, 2005 Posted November 3, 2005 Yeah that's why. Im not sure how it was solved in 2.0.4 You may not like it, but you could try what I posted above (the one with the $ipsclass->input['act'] = 'idx';). That way it keeps the files in the same directory.
scrawford Posted November 3, 2005 Posted November 3, 2005 Yeah, ill go like that for now. and ill have a go at transforming the script from 2.0.4 :| if its possible... maby even just change the images/links in the portal skin.. thx anyway
bfarber Posted November 3, 2005 Posted November 3, 2005 In 2.0.4 all image directories were preg_replaced in the portal script before being output by it's own display engine, rather than being passed through class_display.
xsventures Posted November 3, 2005 Posted November 3, 2005 No, I want my portal at: sitename.com and my forum at: sitename.com/forum ipb 2.0.4 came with a script to allow that, however the latest release just redirects from sitename.com/ to the portal on the forum (sitename.com/?act=home). I also posted about this on IZE: http://forums.invisionize.com/index.php?showtopic=90313 This is how I had mine set up and I would really like to get it back to working this way if at all possible with the new version without having to hack up the script. Is this not going to be an option anymore?
scrawford Posted November 6, 2005 Posted November 6, 2005 my guess is, with the release of there new content management systems's and sh*t they'll be removing these from IPB and making them "Paid" only.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.