Kitz Forum

Announcements => Site Announcements => Topic started by: kitz on July 28, 2015, 09:52:54 PM

Title: Forum & Main Site Integration.
Post by: kitz on July 28, 2015, 09:52:54 PM
The front page of the main website (http://www.kitz.co.uk) has had a make-over and now integrates with the forum (http://forum.kitz.co.uk).  Features are dynamic posting from the 'Site Announcement News' section and listing the most recent forum topics.

Members who are logged in will see a greeting and any notification of new PMs. 
Title: Re: Forum & Main Site Integration.
Post by: kitz on July 28, 2015, 09:57:04 PM
Due to browser caching, you will likely have to hard refresh the page (Ctrl + F5).  You may have to relog in.  Im not certain on this and I only mention it because I had to once, but Im not sure on this because I was testing with several different browsers and only once did I have to, so it could have been caching.   You will also likely be presented with a notification of cookie control again, but this will clear.

In its original state it lists all members in the same format as it does on the forum, but Ive been doing a bit of tweaking so that online members are only viewable on that page if you are already logged in.  Anyone who isn't logged in wont see that list.  (& hence the double but slightly different invitation to login if you're not).

Sample of differences between the logged in and logged out states are attached below:
Title: Re: Forum & Main Site Integration.
Post by: kitz on July 28, 2015, 10:18:44 PM
Grr... not sure what's going on here.   

This is my source code

Code: [Select]
<li><a href="http://wiki.kitz.co.uk"><span>Wiki</span></a></li>
<li><a href="http://forum.kitz.co.uk"><span>Forum</span></a></li>

You can see when you hover over the button its pointing at those links, but for some reason its ending up not going where its meant to :(
Trying to look into it now.
Title: Re: Forum & Main Site Integration.
Post by: kitz on July 28, 2015, 11:07:48 PM
Is anyone any good at htaccess please?

Having a dreadful time trying to get this to work correctly.
This is my current rule

Code: [Select]
RewriteRule ^index\.htm?$ / [NC,R=301,L]
Title: Re: Forum & Main Site Integration.
Post by: kitz on July 28, 2015, 11:44:14 PM
Grrr...  after spending an hour and a half searching on the interwebs I couldn't come up with anything else and Im still using that same rule.

I just happened to notice that NS said in the other thread (http://forum.kitz.co.uk/index.php/topic,15809.msg294775.html#msg294775) that its fine for him now and Im sat here thinking wtf I havent changed anything and Im still seeing it.

So I completely deleted my cache (not just ctrl &f5) and all is perfectly fine again.   I'm completely puzzled, because I'm still using exactly the same rule that I was 2hrs ago.  :shrug2: 

Title: Re: Forum & Main Site Integration.
Post by: Weaver on July 29, 2015, 12:23:57 AM
htaccess:

don't you mean
    html?$
rather than
    htm?$

the second matches "ht" or "htm" only

Title: Re: Forum & Main Site Integration.
Post by: kitz on July 29, 2015, 12:46:57 AM
Im not sure tbh

The old index that I was attempting to redirect from was named index.htm.  I dont have an index.html file at the root, which is why I'd just used htm.
But going from what you said html$ should match html & htm?..  and if that is the case then perhaps I should be using html?
Title: Re: Forum & Main Site Integration.
Post by: Weaver on July 29, 2015, 10:08:35 AM
clarification-apol if you know all this already

  m? means m or mm and does not match ml

  . means any character, and ? means zero or one of the preceding thing.

Not to be confused with DOS where ? means any single character
  DOS ? = RExp  .?
  DOS * = RExp  .*

Title: Re: Forum & Main Site Integration.
Post by: kitz on July 29, 2015, 09:39:44 PM
Quote
. means any character, and ? means zero or one of the preceding thing.
Not to be confused with DOS where ? means any single character

Thank you vm for the clarification :)