Zen Follower
- Join Date:
- Mar 2004
- Posts:
- 210
- Plugin Contributions:
- 0
Tableau Responsive Theme - Support Thread
i found it
Views: 229,272
Zen Follower
i found it
Zen Follower
Can anyone help me.. my home page isn't working correcttly and I don't know how to fix it..
link is in signature.. thank you
noppie
Zen Follower
ok now I am getting this in my debug file
'07-Jun-2014 16:23:30 UTC] PHP Warning: strrpos() expects parameter 1 to be string, array given in /home/herasonl/public_html/shop/includes/functions/functions_categories.php on line 484'
and I attached a picture of the function_categories.php and the line numbers..
and thank you in advance
noppie
Administrator
noppie:
ok now I am getting this in my debug file
'07-Jun-2014 16:23:30 UTC] PHP Warning: strrpos() expects parameter 1 to be string, array given in /home/herasonl/public_html/shop/includes/functions/functions_categories.php on line 484'and I attached a picture of the function_categories.php and the line numbers..
and thank you in advance
noppie
Unfortunately, the debug log has identified only the victim (in this case, the function zen_get_categories_products_list has been passed an array as its first parameter instead of a category-id string) instead of the culprit (the code that made the improper call). You can use your admin's Tools->Developers Tool Kit to search for zen_get_categories_products_list in all catalog PHP files. There probably aren't a lot of calls to that function, so that will narrow the list of culprits down.
In an out-of-the-box ZC1.5.1 install, there are 4 files that use that call:
/includes/modules/featured_products.php
/includes/modules/new_products.php
/includes/modules/specials_index.php
/includes/modules/upcoming_products.php
You should run the same search to see if you have any template-override files that also make the function call.
Zen Follower
lat9:
Unfortunately, the debug log has identified only the victim (in this case, the function zen_get_categories_products_list has been passed an array as its first parameter instead of a category-id string) instead of the culprit (the code that made the improper call). You can use your admin's Tools->Developers Tool Kit to search for zen_get_categories_products_list in all catalog PHP files. There probably aren't a lot of calls to that function, so that will narrow the list of culprits down.
In an out-of-the-box ZC1.5.1 install, there are 4 files that use that call:
/includes/modules/featured_products.php
/includes/modules/new_products.php
/includes/modules/specials_index.php
/includes/modules/upcoming_products.phpYou should run the same search to see if you have any template-override files that also make the function call.
OK I did that this is what I came up with see attached.
amd the second one is when I put that in the template place.
New Zenner
anymore updates coming ?:blink:
New Zenner
my site now looks broken on the home page even on ie11, all of a sudden. no much done since last time that it was working.. if it carries on I will have to leave this template, can't afford it to be broken. shame, spent days customizing it
Zen Follower
I have this installed and what ever i write doe not show up on the front page.. I tried adding content to to the defind main page under the tools/define page editor
and I went into the languages/html_includes and added content to both folders.. directly under the html_includes and under the tableau folder under the html_includes
and nothing show up on the front page.--
any sugestions.
thankyou
New Zenner
At the bottom of the template is the 3 columns blog, twitter feed, etc. its a really nice template and the work put into it is much appreciated but that part is difficult and convoluted at best to edit or update. I'd like to have that section be editable using the old style of define page define_main_page.php be recoding the tempalte to do that. Anyone have any ideas on how to do that? Thought if I just put in the orginal code: <div id="indexDefaultMainContent"><?php require($define_page); ?></div><?php } ?>page); ?></div> it would work but no.
New Zenner
Re: Product Reviews:
SPH:
Yea, mine was similar. No stars to rate product so couldn't post a review. Can't recall if it's been fixed above.
Haven't seen any replies to this. Is there any update?
Cheers
Terry
Zen Follower
RedSpinnaker:
Re: Product Reviews:
Haven't seen any replies to this. Is there any update?
Cheers
Terry
Let me say upfront that I do NOT use this template but have downloaded it to see what this issue is about. So if you go into the file for tpl_product_reviews_write.php, you will find reference to this part which is where you pick the rating from 1 to 5 stars. Here is the part that may be causing the issue:
<li>
<?php echo zen_draw_radio_field('rating', '1', '', 'id="rating-1" class="star"'); ?>
<!--?php echo '<label class="" for="rating-1">' . zen_image($template->get_template_dir(OTHER_IMAGE_REVIEWS_RATING_STARS_ONE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . OTHER_IMAGE_REVIEWS_RATING_STARS_ONE, OTHER_REVIEWS_RATING_STARS_ONE_ALT) . '</label> '; ?-->
</li>
<li>
<?php echo zen_draw_radio_field('rating', '2', '', 'id="rating-2" class="star"'); ?>
<!-- ?php echo '<label class="" for="rating-2">' . zen_image($template->get_template_dir(OTHER_IMAGE_REVIEWS_RATING_STARS_TWO, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . OTHER_IMAGE_REVIEWS_RATING_STARS_TWO, OTHER_REVIEWS_RATING_STARS_TWO_ALT) . '</label>'; ?-->
</li>
<li>
<?php echo zen_draw_radio_field('rating', '3', '', 'id="rating-3" class="star"'); ?>
<!--?php echo '<label class="" for="rating-3">' . zen_image($template->get_template_dir(OTHER_IMAGE_REVIEWS_RATING_STARS_THREE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . OTHER_IMAGE_REVIEWS_RATING_STARS_THREE, OTHER_REVIEWS_RATING_STARS_THREE_ALT) . '</label>'; ?-->
</li>
<li>
<?php echo zen_draw_radio_field('rating', '4', '', 'id="rating-4" class="star"'); ?>
</li>
<li>
<?php echo zen_draw_radio_field('rating', '5', '', 'id="rating-5" class="star"'); ?>
<!--?php echo '<label class="" for="rating-5">' . zen_image($template->get_template_dir(OTHER_IMAGE_REVIEWS_RATING_STARS_FIVE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . OTHER_IMAGE_REVIEWS_RATING_STARS_FIVE, OTHER_REVIEWS_RATING_STARS_FIVE_ALT) . '</label>'; ? -->
</li>
If you go in and take away each reference to "<!--" and "-->" it should show on your page. Why it is commented out, I don't know as I haven't used this template. But I see no reason for it to be commented out as I see no reference in the template using its own custom rating system. I assume this was an overlook on the authors part.
However, with this said, I had tested this template out in its initial release as a friend wanted to use it. But long story short, I decided to not to use it as I found about 12 other things that needed to be changed to bring back zencart functionality.
New Zenner
Hi, I've tried what you suggested for the reviews, but basically the stars appear but are misaligned with the link, so they are not clickable.
Unless I've done something wrong. I basically removed this bit both in front and back of the php
!--
So my code looks like this
<?php echo '<label...... Correct? Am I missing something? Really need to get this bit working, thanksNew Zenner
ok, i managed to have all the stars working in the write a review mode with this code
<li> <?php echo zen_draw_radio_field('rating', '1', '', 'id="rating-1"'); ?> <?php echo '<label class="" for="rating-1">' . zen_image($template->get_template_dir(OTHER_IMAGE_REVIEWS_RATING_STARS_ONE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . OTHER_IMAGE_REVIEWS_RATING_STARS_ONE, OTHER_REVIEWS_RATING_STARS_ONE_ALT) . '</label> '; ?> </li> <li> <?php echo zen_draw_radio_field('rating', '2', '', 'id="rating-2"'); ?> <?php echo '<label class="" for="rating-2">' . zen_image($template->get_template_dir(OTHER_IMAGE_REVIEWS_RATING_STARS_TWO, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . OTHER_IMAGE_REVIEWS_RATING_STARS_TWO, OTHER_REVIEWS_RATING_STARS_TWO_ALT) . '</label>'; ?> </li> <li> <?php echo zen_draw_radio_field('rating', '3', '', 'id="rating-3"'); ?> <?php echo '<label class="" for="rating-3">' . zen_image($template->get_template_dir(OTHER_IMAGE_REVIEWS_RATING_STARS_THREE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . OTHER_IMAGE_REVIEWS_RATING_STARS_THREE, OTHER_REVIEWS_RATING_STARS_THREE_ALT) . '</label>'; ?> </li> <li> <?php echo zen_draw_radio_field('rating', '4', '', 'id="rating-4"'); ?> <?php echo '<label class="" for="rating-4">' . zen_image($template->get_template_dir(OTHER_IMAGE_REVIEWS_RATING_STARS_FOUR, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . OTHER_IMAGE_REVIEWS_RATING_STARS_FOUR, OTHER_REVIEWS_RATING_STARS_FOUR_ALT) . '</label>'; ?> </li> <li> <?php echo zen_draw_radio_field('rating', '5', '', 'id="rating-5"'); ?> <?php echo '<label class="" for="rating-5">' . zen_image($template->get_template_dir(OTHER_IMAGE_REVIEWS_RATING_STARS_FIVE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . OTHER_IMAGE_REVIEWS_RATING_STARS_FIVE, OTHER_REVIEWS_RATING_STARS_FIVE_ALT) . '</label>'; ?> </li>i can write a review, it gets posted but then i'm taken to a funny page, below is the screenshot. basically it should better put a message
thanks for taking time in reviewing bla bla bla.
the other thing i noticed is that even after the review is approved from the admin, the product still shows
be the first to write a review, or similar. so still unusable. any help here?
New Zenner
The Tableau template utilizes the "JQuery Star Rating Plugin" from FyneWorks.
Unfortunately, the following Star Rating Plugin files were not included in the template: "star.gif" and "delete.gif"
and
respectively.
Right click each image and save these files in your
/includes/templates/YOUR_TEMPLATE/images/ folder
The Tableau CSS file located in
/includes/templates/YOUR_TEMPLATE/css/auto_loaders/jquery.rating.css
needs updating to correctly display (or not depending on your preference) both "star.gif" and "delete.gif."
To prevent "delete.gif" from displaying:
(IF the following line numbers don't match the line numbers in your jquery.rating.css, then look for the code and match it to your CSS file and modify accordingly.)
Leave lines 3-5 of the default Tableau jquery.rating.css as is.
3. div.rating-cancel {
4. display: none !important;
5. }
To display "delete.gif," comment out lines 3-5 by beginning line 3 with /* and ending line 5 with */
On line six add:
NEW LINE 6. div.rating-cancel,div.rating-cancel a{
NEW LINE 7. background-repeat: no-repeat;
NEW LINE 8. background-position: 0 -16px;
NEW LINE 9. background-image: url(../../images/delete.gif)
NEW LINE 10. }
(The original line 6 code
div.star-rating {
margin-right: 2px;
}
will end up starting on line 11)
Where "url(../../images/delete.gif)" is the path to your "delete.gif"
To correctly display and allow your customer to rate your products:
Replace the original Tableau CSS coding for (NOW) line
15: div.star-rating,div.star-rating a{background:url(../../images/stars_plugins.png) no-repeat 0 0px}
("stars_plugins.png" doesn't exist)
with:
NEW LINE 15: div.star-rating,div.star-rating a{
NEW LINE 16: background-repeat: no-repeat;
NEW LINE 17: background-position: 0 0px;
NEW LINE 18: background-image: url(../../images/star.gif)
NEW LINE 19: }
Where "url(../../images/star.gif)" is the path to your "star.gif"
Ultimately, you will end up with a jquery.rating.css that looks like this:
Lines 3 - 19 (Again line numbers are relative to your css file.)
/*div.rating-cancel {
display: none !important;
} */
div.rating-cancel,div.rating-cancel a{
background-repeat: no-repeat;
background-position: 0 -16px;
background-image: url(../../images/delete.gif)
}
div.star-rating {
margin-right: 2px;
}
/div.rating-cancel,div.rating-cancel a{background:url(delete.gif) no-repeat 0 -16px}/
div.star-rating,div.star-rating a{
background-repeat: no-repeat;
background-position: 0 0px;
background-image: url(../../images/star.gif)
}
This should now display the rating system as (if I'm not mistaken) Numinix intended.
BTW, Thanks, Numinix for your hard work! :smile:
New Zenner
satello:
Hi, I've tried what you suggested for the reviews, but basically the stars appear but are misaligned with the link, so they are not clickable.
Unless I've done something wrong. I basically removed this bit both in front and back of the php
!--
So my code looks like this
<?php echo '<label...... Correct? Am I missing something? Really need to get this bit working, thanks
It appears that you have reset the rating system to the default Zen-Cart rating system by un-commenting it.
Without knowing more about the changes you've made to your template, the most effective advice I could offer would be to revert to the original Numinix Tableau Template rating system and apply the changes I've posted.
Here is the code as it originally appeared in the Tableau
/includes/templates/tableau/templates/tpl_product_reviews_write_default.php
in case you deleted the original code and need to compare.
(you can also retrieve the code from the Tableau template files you downloaded.)
<div class="ratingRow">
<ul>
<li>
<?php echo zen_draw_radio_field('rating', '1', '', 'id="rating-1" class="star"'); ?>
<!--?php echo '<label class="" for="rating-1">' . zen_image($template->get_template_dir(OTHER_IMAGE_REVIEWS_RATING_STARS_ONE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . OTHER_IMAGE_REVIEWS_RATING_STARS_ONE, OTHER_REVIEWS_RATING_STARS_ONE_ALT) . '</label> '; ?-->
</li>
<li>
<?php echo zen_draw_radio_field('rating', '2', '', 'id="rating-2" class="star"'); ?>
<!-- ?php echo '<label class="" for="rating-2">' . zen_image($template->get_template_dir(OTHER_IMAGE_REVIEWS_RATING_STARS_TWO, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . OTHER_IMAGE_REVIEWS_RATING_STARS_TWO, OTHER_REVIEWS_RATING_STARS_TWO_ALT) . '</label>'; ?-->
</li>
<li>
<?php echo zen_draw_radio_field('rating', '3', '', 'id="rating-3" class="star"'); ?>
<!--?php echo '<label class="" for="rating-3">' . zen_image($template->get_template_dir(OTHER_IMAGE_REVIEWS_RATING_STARS_THREE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . OTHER_IMAGE_REVIEWS_RATING_STARS_THREE, OTHER_REVIEWS_RATING_STARS_THREE_ALT) . '</label>'; ?-->
</li>
<li>
<?php echo zen_draw_radio_field('rating', '4', '', 'id="rating-4" class="star"'); ?>
</li>
<li>
<?php echo zen_draw_radio_field('rating', '5', '', 'id="rating-5" class="star"'); ?>
<!--?php echo '<label class="" for="rating-5">' . zen_image($template->get_template_dir(OTHER_IMAGE_REVIEWS_RATING_STARS_FIVE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . OTHER_IMAGE_REVIEWS_RATING_STARS_FIVE, OTHER_REVIEWS_RATING_STARS_FIVE_ALT) . '</label>'; ? -->
</li>
</ul>
</div>
Much luck to you.
New Zenner
thank you, enzo, as soon as i have some time to spare i'll give it a go and refer back.
Zen Follower
Has anybody upgraded ZC into version 1.5.3 using this template? I have 1.5.1 now and hesitating to upgrade ZC. So many files that are having an impact with this template!
New Zenner
Hey Enzo, just had chance to mod the script today and it works a threat!!! THANK YOU
PS NUMINIX people, what happens, have you lost interest in this template???
Enzo:
FIXING RATING SYSTEM
The Tableau template utilizes the "JQuery Star Rating Plugin" from FyneWorks.
Part One:
Unfortunately, the following Star Rating Plugin files were not included in the template: "star.gif" and "delete.gif"
and
respectively.
Right click each image and save these files in your
/includes/templates/YOUR_TEMPLATE/images/ folderPart Two:
The Tableau CSS file located in
/includes/templates/YOUR_TEMPLATE/css/auto_loaders/jquery.rating.cssneeds updating to correctly display (or not depending on your preference) both "star.gif" and "delete.gif."
Part Two A:
To prevent "delete.gif" from displaying:
(IF the following line numbers don't match the line numbers in your jquery.rating.css, then look for the code and match it to your CSS file and modify accordingly.)
Leave lines 3-5 of the default Tableau jquery.rating.css as is.
3. div.rating-cancel {
4. display: none !important;
5. }To display "delete.gif," comment out lines 3-5 by beginning line 3 with /* and ending line 5 with */
On line six add:NEW LINE 6. div.rating-cancel,div.rating-cancel a{
NEW LINE 7. background-repeat: no-repeat;
NEW LINE 8. background-position: 0 -16px;
NEW LINE 9. background-image: url(../../images/delete.gif)
NEW LINE 10. }(The original line 6 code
div.star-rating {
margin-right: 2px;
}
will end up starting on line 11)Where "url(../../images/delete.gif)" is the path to your "delete.gif"
Part Two B:
To correctly display and allow your customer to rate your products:
Replace the original Tableau CSS coding for (NOW) line
15: div.star-rating,div.star-rating a{background:url(../../images/stars_plugins.png) no-repeat 0 0px}
("stars_plugins.png" doesn't exist)with:
NEW LINE 15: div.star-rating,div.star-rating a{
NEW LINE 16: background-repeat: no-repeat;
NEW LINE 17: background-position: 0 0px;
NEW LINE 18: background-image: url(../../images/star.gif)
NEW LINE 19: }Where "url(../../images/star.gif)" is the path to your "star.gif"
Ultimately, you will end up with a jquery.rating.css that looks like this:
Lines 3 - 19 (Again line numbers are relative to your css file.)
/*div.rating-cancel {
display: none !important;
} */
div.rating-cancel,div.rating-cancel a{
background-repeat: no-repeat;
background-position: 0 -16px;
background-image: url(../../images/delete.gif)
}
div.star-rating {
margin-right: 2px;
}
/div.rating-cancel,div.rating-cancel a{background:url(delete.gif) no-repeat 0 -16px}/
div.star-rating,div.star-rating a{
background-repeat: no-repeat;
background-position: 0 0px;
background-image: url(../../images/star.gif)
}
This should now display the rating system as (if I'm not mistaken) Numinix intended.
BTW, Thanks, Numinix for your hard work! :smile:
Totally Zenned
satello:
Hey Enzo, just had chance to mod the script today and it works a threat!!! THANK YOU
PS NUMINIX people, what happens, have you lost interest in this template???
A new version was released over the weekend. It's a major update that adds a lot of admin customization to the template. We look forward to your feedback and getting some of the bugs mentioned in this thread resolved.
New Zenner
Thanks for the update, will do as soon as I have time. A couple of questions, I'm still at Zen 1.5.1, would it be recommended to upgrade cart first and then Template?
Fields marked required must be completed.
Tell staff why this post should be reviewed.