• gleem

    (@gleem)


    IS there a way to basically split my links admin into 2 panels? Like one would be called “Links” and the other would be called “Links Two”? This way I can keep safe for work links in it’s own world and NSFW link in it’s own dirty pig pen, and saves me from trying to nest em 3 times ( links>NSFW>SUBcategory)

Viewing 13 replies - 16 through 28 (of 28 total)
  • lawtai

    (@lawtai)

    just try removing the : and see what happens.

    Thread Starter gleem

    (@gleem)

    yeah, just gave another error in another spot when I did.

    lawtai

    (@lawtai)

    change the : to ; (semi-colon)

    Kafkaesqui

    (@kafkaesqui)

    “change the : to ; (semi-colon)”

    No, don’t do that.

    I’ve tested the linked version twice (now three times), and it should work…

    Ok, I’ve re-modified it (perhaps there was a PHP issue with the if/endif I was using).

    lawtai

    (@lawtai)

    heh, looks like i still need more practice with my php coding

    Thread Starter gleem

    (@gleem)

    ok, I used your modified code, and got this error:
    “unexpected ‘{‘ in blah blah”
    it didn’t like this ” ‘Sex links’)) { ?>”

    so I removed it and then got
    “unexpected ‘}’ in blah blah”
    it didn’t like this “<?php } } ?> “

    so I removed that one and it just gave me a fatal error.

    I have a migraine, and have to crash, not sure what is wrong, I’ll check back in the morning. I really appreciate your help though ??

    Kafkaesqui

    (@kafkaesqui)

    In the morning if it still fails, stick the entire template up here:

    https://paste.uni.cc/

    And post the link given in a reply. That way we can get a good look at it.

    Thread Starter gleem

    (@gleem)

    not sure what you mean by sticking entire template up there?

    also, would post a link here, but the site is adult in nature, not sure if that’s cool here.

    Kafkaesqui

    (@kafkaesqui)

    Template = file you are adding the PHP script I’ve placed here into.

    The code is most likely conflicting or breaking at some point, and unless it can be seen in place, it’ll be nearly impossible to troubleshoot.

    Thread Starter gleem

    (@gleem)

    here is the area I’m putting it in
    https://paste.uni.cc/6762

    Thread Starter gleem

    (@gleem)

    can you see it?

    Kafkaesqui

    (@kafkaesqui)

    Yep.

    https://guff.szub.net/source/sidebar-26440.php

    Look for:

    <?php /* Start of links list code. */ ?>

    ~Script code is here.~

    <?php /* End of links list code. */ ?>

    I followed to a degree your example link category names above (which you’ll no doubt need to modify), and set up two iterations of the code for the two sections.

    Also hit your permalinks issue while I was in there.

    Thread Starter gleem

    (@gleem)

    I get:

    <b>Parse error</b>: parse error, unexpected ‘{‘ in this line:

    if(($link_cat->cat_name != ‘Dating’) && ($link_cat->cat_name != ‘Gross’) && ($link_cat->cat_name != ‘Sex’)) { ?>

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘Adding an entirely new Links Section’ is closed to new replies.