• OK I know it’s usually frowned upon to do this and I feel a bit of a dick for it but I REALLY need help with the issue I have posted here: https://www.ads-software.com/support/topic.php?id=27517

    Basically the deadline for the project I’m working on passed yesterday and the site must be opened ASAP. I’ve been trying to get this working for ages but to no avail.

    All I need to do is change the markup on how categories and archive lists are displayed on the sidebar, they need to be displayed as table rows.

    Again I apologise for the double post on the topic but please understand the urgency of this.

    Cheers,
    Robert

Viewing 15 replies - 1 through 15 (of 21 total)
  • I think the reason you are struggling with this is that many people who help out here are doing their best to get to grips with web standards and are trying to encourage – where appropriate – other folks to do the same. Could you let us know what your thinking is? Why do you need tables ?

    Thread Starter RSimpson

    (@rsimpson)

    Hi Root,

    Quite simply I need tables in order to achieve the desired effect, it’s also too late to change as it would mean altering the entire design of the site through each piece of added software involved ie. wordpress, x-cart, bosdirectory, vbulletin.

    All I really need to know is which part of the code I have to edit, I didn’t think it would be such a difficult thing to find but it’s proving otherwise.

    Cheers,
    Robert

    do you have an example ?? The code for the sidebar is in the sidebar.php of your chosen theme ?? *duh*

    The style is in the style sheet and often under an id=”menu” . If you want to alter the layout of standard functions like get_calendar and get_links_list you need to edit them directly into the core (files are in the wp-includes/ dir)

    If I were you, at this hour, and that desperate, the only suggestion I have, rather than hacking through unknown pages of code, is just hand code/hard code the links into the tables. Which makes updating it very tedious.

    Once the site’s up and running and everyone is breathing normally again, I’d do everything in my power to talk my client into revamping the site (paying extra of course for this, since that was his folly not yours) at some future date.

    If you need help with coding, send me an email. I’m a really fast and accurate typist (no brag just fact) so I could slog through quite a bit in no time. I know what it’s like to be under the gun with someone breathing down your neck!

    Good luck!

    Joni

    Thread Starter RSimpson

    (@rsimpson)

    Hi guys,

    I knew right from the start it would involve hacking the PHP code and I’m sure I’ve found the right file but looking at the contents is hurting my head!

    Basically I need to change the category/archive list display to a table where each item is displayed like this:

    <tr><td class=”sidebar_nav_cell” onclick=”window.location.href=’

    Insert link destination

    ‘” onmouseover=”this.className=’sidebar_nav_hover’; this.style.cursor=’hand’;” onmouseout=”this.className=’sidebar_nav_cell’;”><div class=”sidebar_nav_text”><a href=”

    Insert link destination

    ” class=”sidebar_nav_link”>

    Insert link text

    </div></td></tr>

    The file (wp-includes/template-functions-category.php) has me really confused, there’s a lot of entries for list items and how it displays the links. I just need to find the right one(s).

    Cheers,
    Robert

    I dont think I have seen anything that cant be done using web standards and CSS but I do not know much about inline styling or tables. Sorry.

    Thread Starter RSimpson

    (@rsimpson)

    All I need to know is where to edit the code… I’m not asking for somebody to edit it for me, let me worry about standards compliance. When the site is done I’ll be going through it and ironing out any markup errors, all I need to know is where I edit this piece of code.

    I’ve got a horrible feeling in my guts that whoever does know the answer to this simply isn’t answering because they think I’m using tables in the wrong place which is just petty. I AM DESPERATE TO GET THIS OPEN AND I NEED HELP FINDING THIS CODE GUYS! PLEASE HELP ME FIND IT!

    Desperately,
    Robert

    Thread Starter RSimpson

    (@rsimpson)

    Have any of the devs seen this thread or my other one? Surely a dev would know exactly where I need to look.

    Cheers,
    Robert

    I’ve got a horrible feeling in my guts that whoever does know the answer to this simply isn’t answering because they think I’m using tables in the wrong place which is just petty. I AM DESPERATE TO GET THIS OPEN AND I NEED HELP FINDING THIS CODE GUYS! PLEASE HELP ME FIND IT!
    The way in which you’re asking the question doesn’t exactly make people want to help you. The people on this board work here for free and want to try to provide good advice. They’ve posted alternatives to what you want to do and you haven’t provided a single reason as to why they’ve been so utterly rejected. Instead the attitude has been one of rudeness and a belief that everyone needs to give you exactly what you want when you want it.

    Now that we’ve got that out of the way, what you want can be found inside template-functions-category.php under wp_list_cats.

    Please try to learn some humility in future. Everyone will benefit.

    Thread Starter RSimpson

    (@rsimpson)

    Hi ifelse,

    The way I was posting was in no way meant to come accross as rude, it was sheer desperation. If it came accross in any other way I sincerely apologise, please understand that time is of the essence in a frightening way.

    As far as providing a reason for rejecting their alternatives is concerned, if you read my posts you’ll see that I posted that the code must be as it is throughout the rest of the site already built and that there’s no time to go through it all and make it look different, it’s far too late for anything like that. I thought I had made that pretty clear.

    Again I feel I must apologise if I have come accross as making demands, I did in fact post about this originally almost 2 weeks ago, I’m sure you can understand my state of mind having not found a solution to the problem in all that time. The thread has been up there all that time but I’ve been getting the impression that very few people were interested in offering any kind of guidance, and the few that were could only point me at the style sheet.

    The time taken by those who replied is greatly appreciated but for the most part the one thing I was asking for (which I was sure was going to be something simple to anyone who had been using WP for a while) nobody seemed interested in helping me with or knew how.

    Thank you for having pointed out where I should look to find the code I need to edit, hopefully this will be the end of my hunt for it.

    Cheers,
    Robert

    PS. I generally don’t post threads in this way, this was an extreme circumstance and I almost lost the plot over it, apologies again.

    Thanks for the reply. I guess my reaction was a bit hasty and that I’m guilty of the very thing I was eluding too. Now that all is well in the world again, let’s get back to our regular programming:-)

    Thread Starter RSimpson

    (@rsimpson)

    Hi ifelse,

    Is it the foreach function on line 326?

    Cheers,
    Robert

    [Moderated – Junk removed]

    @blahblahblah: Wow, hiding behind a new anonymous ID to post a flame. How original and MANLY of you. If you have nothing to offer to Robert’s dilemma, then let things be and someone else might help him.

    Such class you have.

    Regards

    blahblahblah,
    RSimpson has explained his reasons. Let’s all move on. This is a support forum and not the place for flames.

    RSimpson,
    That seems the right area. However, it’s not going to be a simple process as you’re going to have to deal with sub-categories which is otherwise easily handled by unordered lists. Unfortunately, you’re going to need to rewrite it significantly. I’d be tempted to start from scratch and roll your own function based on the sql query for wp_list_cats.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘severe desperation’ is closed to new replies.