Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: Forum & Main Site Integration.  (Read 3764 times)

kitz

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 33884
  • Trinity: Most guys do.
    • http://www.kitz.co.uk
Forum & Main Site Integration.
« on: July 28, 2015, 09:52:54 PM »

The front page of the main website has had a make-over and now integrates with the forum.  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. 
Logged
Please do not PM me with queries for broadband help as I may not be able to respond.
-----
How to get your router line stats :: ADSL Exchange Checker

kitz

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 33884
  • Trinity: Most guys do.
    • http://www.kitz.co.uk
Re: Forum & Main Site Integration.
« Reply #1 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:
Logged
Please do not PM me with queries for broadband help as I may not be able to respond.
-----
How to get your router line stats :: ADSL Exchange Checker

kitz

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 33884
  • Trinity: Most guys do.
    • http://www.kitz.co.uk
Re: Forum & Main Site Integration.
« Reply #2 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.
Logged
Please do not PM me with queries for broadband help as I may not be able to respond.
-----
How to get your router line stats :: ADSL Exchange Checker

kitz

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 33884
  • Trinity: Most guys do.
    • http://www.kitz.co.uk
Re: Forum & Main Site Integration.
« Reply #3 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]
Logged
Please do not PM me with queries for broadband help as I may not be able to respond.
-----
How to get your router line stats :: ADSL Exchange Checker

kitz

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 33884
  • Trinity: Most guys do.
    • http://www.kitz.co.uk
Re: Forum & Main Site Integration.
« Reply #4 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 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: 

Logged
Please do not PM me with queries for broadband help as I may not be able to respond.
-----
How to get your router line stats :: ADSL Exchange Checker

Weaver

  • Senior Kitizen
  • ******
  • Posts: 11459
  • Retd s/w dev; A&A; 4x7km ADSL2 lines; Firebrick
Re: Forum & Main Site Integration.
« Reply #5 on: July 29, 2015, 12:23:57 AM »

htaccess:

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

the second matches "ht" or "htm" only

Logged

kitz

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 33884
  • Trinity: Most guys do.
    • http://www.kitz.co.uk
Re: Forum & Main Site Integration.
« Reply #6 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?
Logged
Please do not PM me with queries for broadband help as I may not be able to respond.
-----
How to get your router line stats :: ADSL Exchange Checker

Weaver

  • Senior Kitizen
  • ******
  • Posts: 11459
  • Retd s/w dev; A&A; 4x7km ADSL2 lines; Firebrick
Re: Forum & Main Site Integration.
« Reply #7 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  .*

Logged

kitz

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 33884
  • Trinity: Most guys do.
    • http://www.kitz.co.uk
Re: Forum & Main Site Integration.
« Reply #8 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 :)
Logged
Please do not PM me with queries for broadband help as I may not be able to respond.
-----
How to get your router line stats :: ADSL Exchange Checker