MyBB Community Forums

Full Version: Request portal / cm
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
it'sy new website but i need Portal / CMS is available here
(2011-05-16, 11:03 AM)kokoko Wrote: [ -> ]it'sy new website but i need Portal / CMS is available here

This is your portal:

http://pakbestgamers.com/forums/portal.php
that i uninstall because i need portal like a pakbestgamers.com and this is pakbestgamers.com/forums
You could just installed mybb in root folder. than it would be http://pakbestgamers.com/portal.php
copy portal.php to your domain root and rename it index.php. edit the file to indicate the actual forum folder (its a variable called $forumdir at the top) and set it to

$forumdir = "./forums";

then you have that portal page as your landing page.
(2011-05-16, 03:54 PM)pavemen Wrote: [ -> ]copy portal.php to your domain root and rename it index.php. edit the file to indicate the actual forum folder (its a variable called $forumdir at the top) and set it to

$forumdir = "./forums";

then you have that portal page as your landing page.

Thanks alot finally it's works but now i can't from home page and forums page as well and i have to upload index.php and portal.php because i when i rename portal.php in index.php it's show error page when login and redirect portal.php then i upload portal.php and index.php on domain root but then i can't login
what?
i mean try to login my home page http://pakbestgamers.com/ i won't login you it expire your login session before login completly
there are a few edits you need to make, that I forgot to tell you about.

1) Update javascript code to support login from outside MyBB folder

Edit /jscripts/general.js and

find
	quickLogin: function()

replace with
	quickLogin: function(bburl)

find
var form = new Element("form", { method: "post", action: "member.php" });

replace with
var form = new Element("form", { method: "post", action: bburl + "member.php" });

Edit template Header > header_welcomeblock_guest

find
onclick="MyBB.quickLogin();

replace
onclick="MyBB.quickLogin('{$mybb->settings['bburl']}/');

The above edits will fix the quick login.
Edit /jscripts/general.js from where i find above files
Pages: 1 2