Loading...
 
Skip to main content

Features / Usability


Custom Home Page

Hello!

Back again with another question.

I have my site set up to use a custom home page (tiki-custom_home.php). It only comes up if you are a) logged in and log off, or b) click on the "home" link in the location / breadcrumb bar. If you go to the plain domain name (e.g., http://www.mydomain.com/Question) or click on the website graphic, you get a page that says "You are not logged in".

I figure that permissions are the issue here. I've tried:

  • Setting the home page to a URL (...tiki-custom_home.php)
  • Uploading an index.php/htm file with a meta refresh to tiki-custom_home.php


Neither of which worked.

Most people who come to this site will be coming to the basic domain. I do not want to use the wiki home page as the site's home page, because I want people to see a specific page (and not the site's home page) when they click on the "wiki" link (after logging in; the wiki is not visible to guests).

What part of the code is doing the permission check when users use the basic site URL? If I knew where it was, I might be able to brute-force override it. I'm using 6.2 at the moment.

Thanks in advance for your help!

JackalGirl,

I've had a similar problem where the page the url goes to and the page it goes to when you click Home were not what I chose. This persisted over quite a few upgrades. I haven't found what actually causes it but it's gone away now so I offer the folowing merely as clues and wish you a happy resolution.

I've been upgrading Tiki with Simple Scripts through the cPanel at my hosting service (Blue Host). From the very first upgrade, tiki reported my database needed to be upgraded -which I then did every time- but the upgrade warning (seen in Admin/General) never did go away. When I upgraded from 6.whatever to 7, Simple Scripts (the installer program at my host) said my version was too old for it to upgrade, which I knew to be untrue as it was the last 6 version.

The tech found that Simple Scripts keeps it's own record of what version you have and it apparently hadn't updated itself through all the previous upgrades (it thought I was at V4!). He changed the file and the upgrade worked, no persistent database warning and for the first time in a year I've been able to get the home page I wanted -in my case, a blog)

We surmised that maybe Simple Scripts was only partially completing the install or perhaps doing it wrong because it thought it had to go from V4 to Vwhatever.

Don't know if this helps but if your host is helpful (as mine invariably is) they might check a few things about the install for you.

I upgraded to 6.4 and everything seems to be working fine; the upgrade went without a hitch. But the problem remains: if you access the site by its plain domain name, you get a login error. When you log out, or when you click on the "home" option on the "breadcrumbs" bar, you get to the custom home page, as desired.

I think what would be most helpful is if someone who's familiar with tikiwiki's code could tell me which .php document is invoked when someone (not logged in) goes to http://www.mydomain.comQuestion (that is, the plain domain name).

Thanks in advance for any help you can provide!

— Kat


Jackalgirl wrote:

Hello!

Back again with another question.

I have my site set up to use a custom home page (tiki-custom_home.php). It only comes up if you are a) logged in and log off, or b) click on the "home" link in the location / breadcrumb bar. If you go to the plain domain name (e.g., http://www.mydomain.com/Question) or click on the website graphic, you get a page that says "You are not logged in".

I figure that permissions are the issue here. I've tried:

  • Setting the home page to a URL (...tiki-custom_home.php)
  • Uploading an index.php/htm file with a meta refresh to tiki-custom_home.php


Neither of which worked.

Most people who come to this site will be coming to the basic domain. I do not want to use the wiki home page as the site's home page, because I want people to see a specific page (and not the site's home page) when they click on the "wiki" link (after logging in; the wiki is not visible to guests).

What part of the code is doing the permission check when users use the basic site URL? If I knew where it was, I might be able to brute-force override it. I'm using 6.2 at the moment.

Thanks in advance for your help!


Addendum:

I've been playing around with the settings and paying attention to what I'm seeing.

If I click on the "home" link on my menu (the one that lists all of the site's features), I'm taken to the wiki's home page.

If someone is not logged on, that person gets the "you're not logged in" message, because the site is trying to access the wiki's home page, which is not publicly accessible.

I am going into the admin > general settings and changing the setting in the "Navigation" tab. Nothing I do seems to make any changes whatsoever to the behavior of the "home" link. So that's what I really need to do: set the site so that the "home" link defaults to the custom home page, and none of the admin settings seem to be doing anything. Setting the home page feature to "custom home page" seems only to affect the page that's served if a) you click on the topmost option in the breadcrumb bar or b) log off.

Am I doing this wrong? Or is the site hardwired to use the wiki home page as the site's default home page?

Further addendum: I can change the behavior of the user menu directly in the database, which I've done. However, what I really want to do is change the behavior of "./". I want it to point to the custom home page rather than the main tiki page. I'm still looking.

There apparently is a bug in the code to set as the homepage some page other than the default wiki homepage; I'm not sure what the current status is, but a lot of people have reported trouble with this.

I read that activating the Group homepage option is a way an alternative solution, if you haven't tried this yet (http://doc.tiki.org/GroupsQuestion). You could set one page for Anonymous, and another for Registered (and logged in), or whatever would work for your site.

-- Gary - zukathemes.comQuestion

Gary Cunningham-Lee wrote:

There apparently is a bug in the code to set as the homepage some page other than the default wiki homepage; I'm not sure what the current status is, but a lot of people have reported trouble with this.

I read that activating the Group homepage option is a way an alternative solution, if you haven't tried this yet (http://doc.tiki.org/GroupsQuestion). You could set one page for Anonymous, and another for Registered (and logged in), or whatever would work for your site.

-- Gary - zukathemes.comQuestion


Hi, Gary —

That actually did the trick. Huzzah! The only thing that now takes you to the actual default domain (and, therefore, the default Wiki page) is the site graphic. I changed the logo template but that didn't seem to do anything. But I'm not really all that worried about it.

I look forward to seeing, at some point in the future, that the wiki behavior for "./" can actually be customized.

Thank you!

— Kat


Well, I guess I broke it again.

Now when I set the "Anonymous" group to "http://www.mydomain.org/tiki-custom_home.php" and then log off and access the basic site, I get the "you are not logged in" again.

And the breadcrumb is " Location : Mywebsite » http://www.mydomain.org/tiki-custom_home.php"Question

In other words, somehow "page" is getting set, and is set to "http://www.mydomain.org/tiki-custom_home.php", so the site's lib/setup/wiki.php page is automatically creating a wiki page called "http://www.mydomain.org/tiki-custom_home.php".

If I set the groups' home pages to something, then clear the cache and go somewhere else, when I come back to the group administration page, the home page field is empty. And the dbase entries are "NULL".

I'm getting pretty frustrated.

— Kat

-=-=-=-


Updated: I bowed to the inevitable and set up a "Welcome" wiki page, set its permissions to be accessible by everyone, and set it as the group home page for both "Anonymous" and "Registered". That seemed to solve the problem as to the behavior of "./" — now, instead of defaulting to the wiki home page, it defaults to another wiki page.

It seems, though, as if the system really is hard-coded to consider the wiki as its heart. The admin settings may appear to let you set some other page as home, but (at least in the case of setting it to "custom home"), the home page setting only applies to the top-most item in the breadcrumb bar. It doesn't apply to the user menu's "home" option, nor to the site logo's link to "home", both of which use "./" unless you override them*.

  • For the menu, you have to go into the database into the menu options table and manually change the code. For the logo, you have to go into the "tiki-site_header_options.tpl" template and change it there. But once it's changed, that's what it'll be for EVERYONE, and will override any setup you do to, say, make different groups use different home pages.


So now I'm faced with the fact that the breadcrumb "home" can either be set to the home page of a feature (e.g., the wiki home page) or a custom page. I would really like it to be the Welcome page I set up, but there doesn't seem to be a way to set it to a specific wiki page.