WordPress.org

Ready to get started?Download WordPress

Forums

Collapse-O-Matic
[resolved] Conflicting ID's - (Random Expanded on page load) (9 posts)

  1. Christina3467
    Member
    Posted 1 year ago #

    Thank you Twin Pictures/Baden for an awesome plugin with ultimate support and options available!
    I have followed your previous advice from this thread:
    http://wordpress.org/support/topic/random-titles-begin-and-remain-expanded?replies=2#post-3311804

    The website thepcrepairwizard.com still has arrows expanded on page load. It seems random. Have you ever dealt with this?

    Thanks In Advance ;)

    http://wordpress.org/extend/plugins/jquery-collapse-o-matic/

  2. Christina3467
    Member
    Posted 1 year ago #

    When I applied this advice:
    "Solution - assign an unique ID using the id attribute like so:
    [expand title="ACETOCP" id="acet"]DRUG/INDUSTRIAL CHEMICALS[/expand]"

    ...from this thread:
    http://wordpress.org/support/topic/random-titles-begin-and-remain-expanded?replies=2#post-3311804

    ...to this site:
    http://capitalistwizard.com/

    ...Then: All the arrows were expanded. I've attempted to figure out which titles have duplicate conflicting ids but I don't even know where to begin.

  3. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    Can you please provide a link to your site?
    The idea is that each expand element should have a unique ID assigned using the id attribute: id="expand1", id="expand2" and so on...

  4. Christina3467
    Member
    Posted 1 year ago #

    here is my site
    Thank you for getting back to me...It seems they are all working again. From past experience though it will happen again.

    Could you explain how to insert the i.d.'s again. The result of your advice from last thread didn't work for me.

    Thanks again,
    :)

  5. Christina3467
    Member
    Posted 1 year ago #

    here is a snippet from the link :

    <td> ACN </td>
    <td>[expand title=" ACCENTURE" alt=" MANAGEMENT/TECHNOLOGY CONSULTING SERVICES "]
    MANAGEMENT/TECHNOLOGY CONSULTING SERVICES [/expand]
    </td>
    <td>[expand title=" 28.72% " alt= " Buy 1/31/2013 Gain 8.91 " ]
    Buy 1/31/2013 Gain 8.91 [/expand]
    </td>
    </tr>
    <td> ACET </td>
    <td>[expand title=" ACETOCP" alt=" DRUG/INDUSTRIAL CHEMICALS "]
    DRUG/INDUSTRIAL CHEMICALS [/expand]
    </td>
    <td>[expand title=" 114.85% " alt= " Buy 2/2/2012 Sell 4/10/2012 Gain 111.94 " ]
    Buy 2/2/2012 Sell 4/10/2012 Gain 111.94 [/expand]
    </td>
    </tr>
    <td> ABCO </td>
    <td>[expand title=" ADVISBD" alt=" RESEARCH FOR HEALTHCARE INDUSTRY "]
    RESEARCH FOR HEALTHCARE INDUSTRY [/expand]
    </td>
    <td>[expand title=" 39.05% " alt= " Buy 12/6/2011 Sell 4/23/2012 Gain 79.28 " ]
    Buy 12/6/2011 Sell 4/23/2012 Gain 79.28 [/expand]
    </td>
    </tr>
    <td> ARG </td>
    <td>[expand title=" AIRGAS" alt=" DISTRIBUTOR OF INDUSTRIAL GAS "]
    DISTRIBUTOR OF INDUSTRIAL GAS [/expand]
    </td>
    <td>[expand title=" 30.11% " alt= " Buy 12/19/2012 Gain 29.55 " ]
    Buy 12/19/2012 Gain 29.55 [/expand]
    </td>

  6. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    Christina3467,

    If you do not assign an id to an expand element, the plugin will automatically assign a random ID. An example of a random id generated by the plugin would be: id4312

    Now if you have a large number of collapse elements, as you do on pages like:
    http://capitalistwizard.com/portfolio-a-b/
    http://capitalistwizard.com/portfolio-a-b/portfolio-g-n/

    The plugin runs into the problem that the random ID has a high probability that it will NOT be a unique ID... causing the problem of described in the title of this thread.

    The solution, as explained in the thread you referred to above was, and still is to assign a unique id to each of your expand elements using the id attribute like so:

    [expand title="ACETOCP" id="acet"]DRUG/INDUSTRIAL CHEMICALS[/expand]

    Do you see the id="acet" part above? That's the id attribute being assigned a value of: acet. You would not want to use the id value of acet on the same page.

    When you say:

    The result of your advice from last thread didn't work for me.
    what exactly did you do? As shown in the massive amount of code you posted above, there are NO id attributes being assigned, only title and alt attributes.

    I hope this clears things up for you. Please let us know if you found this to fix your problem.

  7. Christina3467
    Member
    Posted 1 year ago #

    Thank you for such a prompt reply. I'm a noob obviously. I'm absolutely sure your solution works. notice I said it "didn't work 'for me" I have more understanding now that you broke it down for me. I will attempt and let you know.

    Thanks Again :)

  8. Christina3467
    Member
    Posted 1 year ago #

    I applied the solution this way:

    <td> OII </td>
    <td>[expand title=" OCEANER" id=OII alt=" SERVICES/PRODUCTS-OFFSHORE OIL INDUSTRY "]
    SERVICES/PRODUCTS-OFFSHORE OIL INDUSTRY [/expand]
    </td>

    It worked. You have been very kind and helpful.
    Did I do it right?
    **Also Do you do SEO work for hire?

  9. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    Christina,
    Yes, that looks correct. Glad you got it working.
    SEO: Maybe. Please contact us with your RFP: info [at] twinpictures [dot] de

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic