JRoute not working correctly for menu link - joomla1.5

I am using Joomla 1.5 and enabled SEF. It works fine for other urls but some links display "page ok" only. It does not show any page content. Why does it show "page ok"
only. How should I avoid this?
Menu is not working for Joomla SEF
<li><img src="<?php echo $this->baseurl ?>/templates/animal/images/shop.jpg" width="101" height="31" /></li>
<li><img src="<?php echo $this->baseurl ?>/templates/animal/images/donationsBut.jpg" width="100" height="31" /></li>
<li><img src="<?php echo $this->baseurl ?>/templates/animal/images/contactBut.jpg" width="101" height="31" /></li>
The url shown for the menu is http://www.xxx/donations and it does not have any content in page.
if I remove the /itemid it displays the content and the url is component/content/article/7

Related

CMS theme. "404 not found" on any link click

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.

`WWW::Mechanize Won't Fill Form Out

I am trying to fill out a form on a website using WWW::Mechanize but the form is embedded in a script, not the usual <form> tag
<script>
component_lang["ib4"] = {};
</script>
<script type="text/x-handlebars-template" id="ib4-tpl">
<form class="component component-form" id="input" enctype="multipart/form-data" method="post" action="/" >
<div class="input-group type-firstlast">
<div class="input-label">
<label>Your Name</label>
</div>
<div class="inputs columns">
<div class="column-2 column-first"><input type="text" name="first" placeholder="First Name" value=""></div>
<div class="column-2"><input type="text" name="last" placeholder="Last Name" value=""></div>
</div>
</div>
</form> </script>
<li id="ib4" class="form page-component-has-overflow"></li>
How would I use WWW::Mechanize to fill this form out? The mech-dump utility did not find any forms on the page.
WWW::Mechanize only works on the HTML, it has no Javascript support. For a Mechanize-like module with Javascript support, you have several options.
WWW::Mechanize::Firefox which lets you drive Firefox.
WWW::Scripter with WWW::Scripter::Plugin::JavaScript.
WWW::Selenium to interface to Selenium RC or Selenium::Remote::Driver to interface to Selenium Webdriver.

Not able to post magento reviews, request looks right

We are using magento 1.8.1 and hosting it both locally in an iis/mysql environment and also testing in an ubuntu lamp environment, so we can verify it is not an iis issue. It happens on both environments.
I got up to the point of integrating the product listing page, where we want to show product reviews and the product review fonts, so users can give their reviews without clicking on a link to go to a different page to add it. I managed to load the product reviews blocks. At first the form element of the add to product button was mixing up with the product review form, which i solved by closing the previous form before starting the review form. I can see in Fiddler the request going through and the action on the form element looks like this
http://localhost/index.php/review/product/post/id/2/
While this will actually make the browser send the request (as seen on fiddler, with the right amount of parameters), the review is never stored in the database, so i cannot see it in the pending reviews part of the admin section. After examining both my store's html source and the online demo, i could see there was a hidden form field on the official demo storing the form_key , which i added since, but it still will not work.
Any hints where to look at?
the whole reviews form block looks like this:
<form action="http://localhost/index.php/review/product/post/id/2/" method="post" id="review-form">
<fieldset class="">
<h3>You're reviewing: <span>Powermonkey extreme 2</span></h3>
<ul class="form-list">
<li>
<label for="nickname_field" class="required"><em>*</em>Nickname</label>
<div class="input-box">
<input type="text" name="nickname" id="nickname_field" class="input-text required-entry" value="">
</div>
</li>
<li>
<label for="summary_field" class="required"><em>*</em>Summary of Your Review</label>
<div class="input-box">
<input type="text" name="title" id="summary_field" class="input-text required-entry" value="">
</div>
</li>
<li>
<label for="review_field" class="required"><em>*</em>Review</label>
<div class="input-box">
<textarea name="detail" id="review_field" cols="5" rows="3" class="required-entry"></textarea>
</div>
</li>
</ul>
</fieldset>
<div class="buttons-set">
<button type="submit" title="Submit Review" class="button"><span><span>Submit Review</span></span></button>
</div>
</form>
We have the same problem, and I solved it.
Magento has a form key when submitting any information to the database. To generate the form key, add this code:
<?php echo $this->getBlockHtml('formkey') ?>

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

AddThis customized linkedIn and pintrest image not working

My client wants Facebook, twitter, pintrest and LinkedIn button with statastics by AddThis. but instead of using default images i want to use custom images with same functionality for AddThis.
I can manage this with Facebook and twitter icon. but with linkedin and pintrest i can not make addthis effect with custom images. i have surfed google but not getting proper solution.
My code is
<div class="addthis_toolbox addthis_default_style ">
<div class="addthis_toolbox">
<div class="custom_images">
<a class="addthis_button_facebook" style="float:left;"><img src="http://192.168.1.2/wp_site/code/wp-content/themes/ofr/images/fb.png"
border="0" alt="Like" /> </a>
<a class="addthis_button_twitter"><img src="http://192.168.1.2/wp_site/code/wp-content/themes/ofr/images/twitter.png"
border="0" alt="Tweet" /></a>
<a class="addthis_button_linkedin"><img src="http://192.168.1.2/wp_site/code/wp-content/themes/ofr/images/email.png"
border="0" alt="Mail" /></a>
<a class="addthis_button_pinterest_pinit" pi:pinit:media='http://192.168.1.2/wp_site/code/wp-content/themes/ofr/images/email.png'></a>
</div>
</div>
</div>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-517656c20d974f82"></script>
Try this...
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-54d3c9035fe03473" async="async"></script>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_facebook" addthis:url='Url' addthis:title='Title'></a>
<a class="addthis_button_twitter" addthis:url='Url' addthis:title='Title'></a>
<a class="addthis_button_linkedin" addthis:url='Url' addthis:title='Title'></a>
<a class="addthis_button_google_plusone_share" addthis:url='Url' addthis:title='Title'></a>
<a class="addthis_button_email" addthis:url='Url' addthis:title='Title'></a>
<a class="addthis_button_compact" addthis:url='Url' addthis:title='Title'></a>
</div>
Also, I'm not sure about pintrest, but you definitely have to make sure your og tags are correct for LinkedIn. I would refer to this page.