CMS theme. "404 not found" on any link click - content-management-system

Well, this is the code included in Header.html on my site. Whenever I click on Topics, Home, or any link that leads to (www.mywebsite/THElink) I get a 404 page not found. However, on the demo of the CMS theme, those links give information taken from MySQL Db which also I have configured right.
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li {if isset($is_home) AND $is_home eq 1}class="active" {/if}>Home</li>
<li {if isset($is_topics) AND $is_topics eq 1}class="active"{/if}>Topics</li>
<li {if isset($is_authors) AND $is_authors eq 1}class="active"{/if}>Authors</li>
</ul>
<ul class="nav navbar-nav navbar-right search-nav">
<li class="search-form">
<form method="GET" action="./search/">
<div class="input-group">
<input type="text" name="q" class="form-control" placeholder="Search Quotes" {if isset($is_search) AND $is_search eq 1}value="{$q}"{/if} />
<span class="input-group-addon"><button type="submit" class="btn-link"><span class="fa fa-search"></span></button></span>
</div>
</form>
</li>
</ul>
</div>

it's just an issue of .htaccess file. This particular file has huge impact on the whole site.

Related

Inserting temporary content within snippets in "Visual Studio Code"

Within Visual Studio Code 1.7.2, I am able to generate a quick list of HTML data with the following snippet, followed by pressing TAB...
ul>li*5>h3+div
That will generate this list...
<ul>
<li>
<h3></h3>
<div></div>
</li>
<li>
<h3></h3>
<div></div>
</li>
<li>
<h3></h3>
<div></div>
</li>
<li>
<h3></h3>
<div></div>
</li>
<li>
<h3></h3>
<div></div>
</li>
</ul>
But how can I prepopulate every <h3></h3> to say <h3>tite</h3>, and every <div></div> to say <div>content</div>?
VScode uses emmet for this, so the input text would be:
ul>li*5>h3{title}+div{content}
which will expand to:
<ul>
<li>
<h3>title</h3>
<div>content</div>
</li>
<li>
<h3>title</h3>
<div>content</div>
</li>
<li>
<h3>title</h3>
<div>content</div>
</li>
<li>
<h3>title</h3>
<div>content</div>
</li>
<li>
<h3>title</h3>
<div>content</div>
</li>
</ul>
Here's additional documentation of the Emmet abbreviation syntax

Breadcrumbs with structured data not displaying properly

I've looked at a lot of documentation but I can't figure out if the structured data should be placed on all pages? For example, I have this code on my main home page:
<ol vocab="http://schema.org/" typeof="BreadcrumbList">
<li property="itemListElement" typeof="ListItem">
Home
<span property="position" content="1"></span>
<span property="name" content="Home"></span>
</li>
<li property="itemListElement" typeof="ListItem">
About
<span property="position" content="2"></span>
<span property="name" content="About"></span>
</li>
<li property="itemListElement" typeof="ListItem">
Services
<span property="position" content="2"></span>
<span property="name" content="Services"></span>
</li>
<li property="itemListElement" typeof="ListItem">
Contact
<span property="position" content="2"></span>
<span property="name" content="Contact"></span>
</li>
</ol>
Although Google now shows all the breadcrumbs like this:
Is it a problem with my relative URLs? Should I not include the meta data for other pages that the user isn't on?

Breadcrumb data-vocabulary markup for current page

I am trying to follow documentation for breadcrumbs markup https://developers.google.com/structured-data/breadcrumbs
I am not sure if I should also put current page as a child in breadcrumbs with its link pointing to the same page? Interesting that google on that page doesnt even have current page in breadcrumbs, and looking in its page code they don't even have breadcrumb markup.
<ul>
<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<li>
<a itemprop="url" href="<?php echo $home_url; ?>">
<span itemprop="title">Home</span>
</a>
</li>
<span itemprop="child" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<li>
<a itemprop="url" href="<?php echo $home_url; ?>/pvc-stolarija"><span itemprop="title">Pvc stolarija</span></a>
</li>
<li><?php echo get_the_title(); ?></li>
</span>
</span>
</ul>

Do not understand form action right

This is the first time I've try to use a formulae to make a contact page on my site.
This is the code I use (and tried to adapt for my purposes):
<div id="main" class="content container bottom clearfix">
<div class="cont row">
<!-- FORM-->
<div class="form sevencol" style="width:52%">
<form action="mailto:contact#stefanseifert.com" id="contactForm" method="post">
<ul class="contactform">
<li><input type="text" name="contactName" id="contactName" value="" class="required requiredField"/>
<label for="contactName">Name</label>
</li>
<li>
<input type="text" name="email" id="email" value="" class="required requiredField email"/>
<label for="email">E-Mail</label>
</li>
<li class="textarea">
<textarea name="comments" id="commentsText" rows="10" cols="10" class=" required requiredField"></textarea>
</li>
<li>
<script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=6Lf-ueMSAAAAAExUbwjvdqnNuNjlkeN3_wQyl720"></script>
<noscript>
<iframe src="http://www.google.com/recaptcha/api/noscript?k=6Lf-ueMSAAAAAExUbwjvdqnNuNjlkeN3_wQyl720" height="300" width="500" frameborder="0"></iframe><br/>
<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
<input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
</noscript>
</li>
<li class="buttons"><br>
<input type="hidden" name="submitted" id="submitted" value="true"/>
<button type="submit" class="submit superlink">E-Mail senden</button>
</li>
</ul>
</form>
</div>
<!-- END FORM-->
</div>
The result of it, is that every time I test it my Email program opens and fills part of the code inside a new mail of mine.
What is wrong here?
What I wanted was that a mail with the content of the input fields is sent to me, instead!
Appreciate your help!
Thanks very much
Garavani
You can't send an email out of the browser.
<form action="mailto:contact#stefanseifert.com" ... specifies what should happen, once the form is submitted. This action opens the standard email client to send an email to that address - that's what you experienced.
if you want the email to be sent automatically by a server to you, you need to implement it in php, c#, java - or any other language on that server, and send the form data to the server

Google RDFa breadcrumbs

I am currently trying to implement RDFa breadcrumbs to my webpages. I think that I am following the example for multiple breadcrumbs on one page correctly, however in the testing tool and search results the breadcrumbs are not processed as expected (are extracted, but the breadcrumbs are not displayed).
Can you plese give me a hint what am I doing wrong.
Thanks.
Page with the breadcrumbs
<div class="breadCrumb">
<span typeof="v:Breadcrumb">
Algoritmy.net >
<span rel="v:child">
<span typeof="v:Breadcrumb">
<a ref="v:url" property="v:title" href="/category/39974/Mathematics">Mathematics</a> >
<span rel="v:child">
<span typeof="v:Breadcrumb">
<a ref="v:url" property="v:title" href="/category/48669/Primality">Primality</a> >
<span rel="v:child">
<span typeof="v:Breadcrumb">
Rabin-Miller test
</span>
</span>
</span>
</span>
</span>
</span>
</span>
</div>
"ref" isn't a valid RDFa or HTML attribute, make sure you spell it right: rel.
ref="v:url" should be rel="v:url"