Forum Replies Created

Viewing 15 replies - 316 through 330 (of 362 total)
  • Thread Starter iceq

    (@iceq)

    Hey Steve. First, I deeply thank you. It is obvious that you have dedicated some precious time for me, time that you could spend in doing stuff you usually ged paid for. I really appreciate that.

    I have went through the errors again . (sorry I didnt use the doc words U sent me, because that list and the line numbers I could see using the wc3 online validator with the option “show source” checked). Anyway, I fixed some errors (after really great effort), and now errors are now 63 after they been 73.

    Yet, the errors that cause the problem are still there. The major problem as I can see is caused by the li and lu tags. I know that, because I actually modified the theme and forced such tags into it for the theme to look okay in everything that is related to the widgets.

    THE WHOLE STORY !

    This theme is called Pride. it was localized to Arabic by some guy who is believed to be knowing what he is doing.

    The WHole problem started with the widgets, the green boxes that U can see in the sidebar. When I added any code to a new text widget (for instance, post views widget), the green box appeared chopped from the bottom. All text widgets acted the same. So I had to insert the code manually to the sidebar. But this made things worse, as the green box didnt appear at all, or appeared its header or its bottom or its body, not complete. I searched the sidebar’s template and found that the author uses li and ul tags before and after the categories widget which is of course added to the template file manually, not using a widget. I tried to add similar li and lu tags before and after the code of the post views, and voila, it worked and the widget appeard perfect.

    I did similarly for all text widgets. I didnt know about validation or errors . and I didnt test the website with IE then.

    After I finished I discovered that there are problems with widgets and tried to fix them. I fix all of them (seemingly), except one that U can see one under the sidebar adsense widget in IE7.

    Then I discoverd the other problems when I wrapped the inside post adsense item within a white cloud like that of the comments. in FF it appeared great, in IE it didnt, and that is when I reported the problem.

    So the reason why I cant remove the li lu tags is that it will ruin the whole look not fix it. And as I said, I had to use these tags to fix the view of the widgets.

    It is important to mention that the problems (the current breaks seen under IE ) DISAPPEAR under IE when I implement the original non-localized, left to right English CSS. I said and I mean it! All errors of image breaks and flying adsense ads are gone. The only problem that remains is that green bar under the sidebar adsense item.

    So isnt it a problem of the CSS???

    Thread Starter iceq

    (@iceq)

    STVWLF has continued our discussion (actually his help and support , which I appreciate) on the email I sent him . Here is what he said, followed by what I said (in a separate reply on this post)

    `Hi

    I did look further at your pages in IE a few days ago. I really think you need to clean up some of the code errors. My debugging tools were jumping all over the page and I could not find what was wrong.

    I made you two Word files (sent in second email) – one is your code errors, the other is the source code the Validator is using. So now when the validator refers to an error on line 476, you can look in the source code file and see what is on line 476 and the code surrounding it, so you have an idea where to look.

    The errors it is really important to clean up are the ones that say Opening and ending tag mismatch, end tag for “li” omitted, document type does not allow element “a” here; assuming missing “li” start-tag errors of that sort because they can really throw a browser off. I noticed one place in your code that started with an <h4>text here</p> and closed with that </p> And then there was a <div> i believe either inside an <h4> or inside an

    • . Things like that.
      This is illegal XHTML and results are not predictable.
    • I’m not saying if you clean all of that up, that will make your format errors go away. I’m saying until you clean them up, no one can tell if your errors are due to that bad code or due to CSS errors. Plus, I can’t even debug your page because the invalid code is making the debugging tools not work as they are supposed to.

      Step 1 is clean that code up. `

    Thread Starter iceq

    (@iceq)

    STVWLF (Really BIG thanx to him) has sent me a solution (after I emailed him), suggesting the following similar solution, yet it sadly brought to the same error message.
    And I think it needs to be re-shaped because I use other custom codes between the <?php while (have_posts()) : the_post(); ?> and the <?php the_content like the post views, the ratings, the tags, the edit link, etc.

    If it is the same list of categories every time, in the same display order, you could do something like this

    $display_cats =  array(1, 6, 13, 24, 9, 7);
              // this is the list of category id's in the order you want them displayed
    
    foreach ($display_cats as $cat) {
       $posts = new WP_Query("cat=$cat&showposts=1");
       while($posts->have_posts()) : $posts->the_post();?>
            <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
            <?php the_content(__('Read the story &raquo;'));?></div>
       <?php endwhile; ?>
    <?php } ?>

    I haven’t tested that code – it probably has some mistakes in it. I am showing an approach to solving the problem.

    What the code does: create an array of all the category codes you want to display in the order you want them displayed. Loop through that category array creating a WordPress loop for each category. Display the most recent post in the category that is being processed. Loop to the next category in the category array list.

    take care
    Steve

    Thread Starter iceq

    (@iceq)

    Hey Dagon Design. Thank you so much for caring.

    I have done exactly what you said (including the cats number I want).

    Yet I get this :

    Parse error: syntax error, unexpected T_VARIABLE in /-------/blog/wp-content/themes/movie-theme/index.php on line 30

    Line 30 of that file is completely blank !

    btw, there were two <?php endif; ?> I added <?php } ?> after the endif tag that comes at the end, and not the one that comes after the tags command:
    <?php if ( function_exists('the_tags') ) : ?><?php the_tags(); ?> <?php endif; ?>

    I even ommitted that endif after the tags command, but the same error

    ( is it normal to have endif in two places, like this case, and , do blank lines matter in php files (not blank at the beginning of a line, but blank lines that are produces when copying/pasting from place to place) ).

    Thanx

    Thread Starter iceq

    (@iceq)

    Btw, ive read those topics too, but sadly of no help for my case:

    http://wordpress.org/support/topic/255074?replies=10

    Thread Starter iceq

    (@iceq)

    First, thank you very much indeed for help.

    That plugin is nice,but its not what am looking for. That plugin only LISTS the names of the latest POST (not posts) from the wanted category. Yet it shows that in a row text, with the ability to display the post’s excerpt. Plus, you have to make it in a separate page. I dont want that. I want the index itself to display the latest posts of each cats, but with the full text (unless I add the “read more”), and with the same style of the index that I modified. Theplugin merely “lists” the titles of the latest post, not include it in its full shape.

    but thank U again 🙂

    Thread Starter iceq

    (@iceq)

    Up

    Thread Starter iceq

    (@iceq)

    UP !

    Thread Starter iceq

    (@iceq)

    THANX AGAIN !!

    Yes, it works ! I just inserted an image inside that comments template wrap (the white cloud shape) , and it appeared just great, not only the image doesnt float (or fly) to the left as the ad used to do , but the cloud shape is complete not broken like in the case of google’s java ad.

    Also, I noticed that when I point the mouse to the rating stars (java), the ad in the sidebar doesnt fly as it used to do when there was an ad in the post top (where I placed an image now).

    Still , the top AND bottom of the cloud shape that contains the post body (which is under the ad cloud) is still broken

    Also, if I remove the sidebar ad , that post cloud bottom is still broken, so it seems not related.

    What next ?

    Thread Starter iceq

    (@iceq)

    I sorry the post turned to be broken like that .. I forget to wrap the <li> and <lu> tags inside CODE tags, thats why it appears broken with lists inside it (so everytime you see a break, there supposed to be <ul> and <li>

    Thread Starter iceq

    (@iceq)

    Hey and thank you (really) again

    I tried to fix as much errors as I could. I reduced them from 92 to 75. However, among these 75 there are errors related to

    • or

      Many of the errors are very vague, its not mentioned where they occur, and I had difficulty to determine their location.

      You are right. There are

      or
    • followed by the same tag before it is closed (I understood that each tag should be closed before beginning another one). But the problem here is that I had to do this for the green widget boxes to look okay. If I didnt make each php function (like categories, archive, etc) within
      and
    • tags, the bottom of the widget wouldnt be displayed and the look will be ruined. There is a problem in the theme that text widgets appear with their bottom chopped, so I had to manually add them to the sidebar template file and add to them the
    • and
      tags.

    I know you might reach here reading while understanding absolutely nothing, but I couldnt explain it more than this.

    Thanx again if you could me help.

    Thread Starter iceq

    (@iceq)

    Thanx so much for showing interest.

    In fact I have cheked the site with w3 validator and went through the reported errors in detail, but none of them seemed related to the problem at hand. In anycase, I didnt know how to fix those problems. I understood that there are problems, but the validator never mentions how to fix them, and am no html/css expert. Besides, some of the problems the validator reports are actually in the original design (css), and I have learnt that not everything that the validator reports is indeed a problem (for instance if I validate the css, it reports two erros about unrecognized color names, although all browsers recognized them and showed them properly)

    So what should I do ?

    Thread Starter iceq

    (@iceq)

    PLEASE HELP !

    Thread Starter iceq

    (@iceq)

    I found out that Widgetbucks’ ads dont appear to me because they are country specific. The country I am visiting my website from is not yet included in Widgetbucks’ supported countries. That is why doodlebee saw the ads as she mentions in her comment above.

    HOWEVER, Adsense ads still not showing up , and adsense team/staff didnt respond at all to my continues alerts.

    Whats the solution ?

    Thread Starter iceq

    (@iceq)

    BUMP AGAIN !

Viewing 15 replies - 316 through 330 (of 362 total)