WordPress.org

Ready to get started?Download WordPress

Forums

Needed: 2 Hacks for large WP based site (5 posts)

  1. appleswitchmaccom
    Member
    Posted 8 years ago #

    I am trying to start a large site, based on integrated Invision power board and WordPress, based on this mockup. I have my Invision power board using the wordpress theme and the static homepage to show up as the first page but I still have 2 problems.

    The first problem is that I want home to be the first tag, but I don't want blog to be the last tab.

    The second problem, Is I need to know how to link to off-wordpress pages such as my my Invision power board which uses the theme, and have it show up in the 'current_page_item' class.

    Any help or links to hacks would be great and ill keep posting If I accomplish anything

  2. Cypher
    Member
    Posted 8 years ago #

    Are you using "wp_list_pages()" to generate the nav menu, if so we can play with that to alter the ordering.

    To link to off-WP pages, you would just manually add the link to the menu.

    Ensure that you have the 'current_page_item' defined in the CSS for both WP and Invision Board, allow things to work as they do in WP, but in Invision Board, manually add that tag to the link.

    Regards

  3. davidchait
    Member
    Posted 8 years ago #

    You can also use something like CG-Redirect to embed a page redirect to another site or another subsystem withing your site. You just activate the plugin, create a new page, add something like <redirect http://www.mysite.com/mybb />, and that 'page' will now show up in the page list, but 'jump' you to the other resource.

    -d

  4. appleswitchmaccom
    Member
    Posted 8 years ago #

    My current setup is as follows
    <ul class="navbar">
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
    <li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_settings('home'); ?>">Blog</a></li>
    <?php wp_register('<li class="admintab">','</li>'); ?>
    </ul>

    I found the link to a redirect plugin like CG-Redirect but that doesn't cover my problem getting the link to my board to show up as the 'current_page_item' class.

    As for manually adding the links, I think this could work If i had if ($_SERVER['REQUEST_URI'] == 'http://board.boernewireless.com/') {or something along those lines but even If i got it coded it would take away the automation.

    Cypher, your solution would work but I would loose automation because currently Im pulling the header, not duplicating it. If I can't find a solution though I will

  5. appleswitchmaccom
    Member
    Posted 8 years ago #

    Ok, Ill just use news as the main page and add about to the side like a normal blog so thats 1 issue out of the way.

    So now I think I have it numbered down to trying to automate the header in the board with current_page_item fully functioning.

Topic Closed

This topic has been closed to new replies.

About this Topic