2011-06-27, 06:34 PM
hi
i had an installation of mybb placed in a directory called "forum" in the root directory of my server. then in order to make the portal.php as my homepage i did as below:
1.moved portal.php to the root directory of my server and renamed it to index.php
2.in the new index.php set $forumdir = "forum/".
i don't now if this method of changing the homepage to portal.php is a non-standard one or not. actually i did not choose the method by myself.
now here is the problem
when i have an attachment in the posts in the homepage the link is incorrect: for example it is sth like this: href="attachment.php?aid=6425" where it should be like this:href="forum/attachment.php?aid=6425".
can anybody help me with this problem? or show me a tutorial or sth. i have googled it a lot but of no avail and the code is so complicated to deal with.
my home page:www.iranled.com
i had an installation of mybb placed in a directory called "forum" in the root directory of my server. then in order to make the portal.php as my homepage i did as below:
1.moved portal.php to the root directory of my server and renamed it to index.php
2.in the new index.php set $forumdir = "forum/".
i don't now if this method of changing the homepage to portal.php is a non-standard one or not. actually i did not choose the method by myself.
now here is the problem
when i have an attachment in the posts in the homepage the link is incorrect: for example it is sth like this: href="attachment.php?aid=6425" where it should be like this:href="forum/attachment.php?aid=6425".
can anybody help me with this problem? or show me a tutorial or sth. i have googled it a lot but of no avail and the code is so complicated to deal with.
my home page:www.iranled.com