Forum Replies Created

Viewing 15 replies - 481 through 495 (of 1,478 total)
  • ivovic

    (@ivovic)

    well, you have a couple of choices in that regard.

    you can either use wp_list_bookmarks(); in that location instead of wp_list_pages… and then make your menu yourself, via the manage/links option in the wp Admin panel….

    or…

    you can create a new page template, (call it redirect.php or something) that looks like this:

    <?php
    /*
    Template Name: Redirect
    */
    
    if (have_posts()) {
       the_post();
       $pattern = '@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@';
       preg_match($pattern, get_the_excerpt(), $matches);
       if ($matches[0]) header('Location: '.$matches[0]);
       else echo 'Enter a URL into your page body text.';
    }
    ?>

    Then set that as the page template for any page you wish to use as a redirector.

    The contents of that page should just be a link to where you want to go.

    It is a little twisted, but I really like twisted 😉

    NOTE: Make sure there’s no white-space before the <?php

    ivovic

    (@ivovic)

    there’s no wordpress equivalent for this, unfortunately…

    if your script requires a basic unordered list and that’s it, then you won’t be able to dynamically generate this using a built-in wordpress function without having the top level link to something.

    However, with PHP anything is possible, and so there’s definitely going to be a way for you to code around this by generating your own list of pages and sub-pages using a combination of wordpress functions and your own little php gems.

    It’s going to depend largely on your comfort-level with PHP.

    ivovic

    (@ivovic)

    aLinks works on 2.5.. a new version has been released, but the author has been lazy about updating the information.

    It’s the best one of them all I think… the others all do stupid stuff with your links like linking every single instance of your keyword, or messing with already existing links, etc.

    ivovic

    (@ivovic)

    well, I’m not familiar with the theme, but if you open the header.php and look for wp_list_pages, you may have to insert a link manually in that section. That’s the most likely…

    if the theme uses link categories (like the blogroll) to manage the navigation (which all themes should, in my opinion) then you might be able to add the link into the appropriate link category under manage/links in the WP admin panel.

    If you find it is the former, and you’re having trouble adding a link, paste the relevant section surrounding wp_list_pages, and I’ll knock up a link for you.

    Your choice of positioning the link will be limited if that’s the case, however.

    ivovic

    (@ivovic)

    that’s not actually your site right? – ‘cos if it is, you’re in the wrong place.

    ivovic

    (@ivovic)

    yep, I know… I just made the comment because the solution IS quite simple, yet OP wanted something “better” or “neater”.

    solutions depend on problems in order to exist… if there’s no problem, there’s no solution, so I wonder who is going to go out of their way to write a plugin to “solve” something which isn’t actually a problem in the first place?

    that’s all I meant – you can’t be too fussy when you’re trying to fix things that aren’t broken 😉

    ivovic

    (@ivovic)

    <div style=”float:right; margin-top: -5px;”> </div>

    try that. there are lots of ways to go about this, but they all depend on the rest of your layout.

    You really should consider learning some CSS if you’re going to do this stuff on a regular basis. There are also some really great web-design forums out there you could look into.

    There’s a difference between wordpress functionality and your desire to display that as part of your web-design. I think it’s probably important to be mindful of that too.

    ivovic

    (@ivovic)

    Well, I think you’re overstating what google can possibly know about your relationship with your visitors.

    Obviously if people are being blatant about it, it’s going to get noticed, but that doesn’t really address my post above… and I’m prepared to argue it as long as you insist on being wrong.

    Nobody here is friends with this guy, so my point was and remains that if we’re able to be convinced to go visit his site to click on ads, then quite logically, we would also have the kind of weak mind that could easily be convinced to buy whatever’s being advertised.

    That’s perfectly logical. It’s why asking for clickthroughs doesn’t really work worth shit, and if it does, then it shouldn’t be punishable, because the target audience is obviously ripe.

    As for the family thing, google has no way of knowing whether you called your sister and aksed her to click your ads a million times, or whether she took it upon herself to “help out” in the most stupid way imaginable.

    Likewise, google has no way of knowing if your forum members are naively thinking they’re helping you support your site, or whether you’ve PM’d 12 of them begging for click-throughs… so there’s some latitude involved, and claiming otherwise is pointlessly uneducated.

    Google will nullify those repeat-clickers from your results, but they won’t just shit-can your account because your visitors didn’t all read the TOU. That’s just ridiculous.

    In order to qualify for a TOU breach, the evidence would have to be available over a sustained period, and anyone who has ever used adsense ads on their sites can tell you that the occasional well-intentioned do-gooder (like a couple of family members) won’t get you axed.

    I won’t be counted either – but it won’t get you axed.

    ivovic

    (@ivovic)

    ahh the joys of overselling 😉

    ivovic

    (@ivovic)

    how about putting all that inside <div style=”float:right;”> </div> ?

    ivovic

    (@ivovic)

    quite an elegant solution to a non-existent problem.

    ivovic

    (@ivovic)

    yay for someone whose soul isn’t dead yet, actually bothering to scratch the surface!

    ivovic

    (@ivovic)

    those folders are a 404 because he’s using ‘%postname%’ as his permalink structure.

    for the sake of us here at the forums, the only way to put that in as your permalink setting should be via phpMyAdmin.

    ivovic

    (@ivovic)

    you think family isn’t going to do it just because it’s against the TOS?
    google’s gonna get a warrant for your relative’s ISP records?

    lets be realistic, if you have ads on your blog, your family are clicking and that’s that.

    You’re taking a rather narrow and humourless example of my meaning above. I wonder why.

    ivovic

    (@ivovic)

    if you’ve had code added to your theme files then you’ve been hacked, and you need more help than resolving the duplicate post issue.

    you’ll have to completely wipe your wordpress installation, making backups of CONTENT FILES ONLY as required.

    download new plugins, download a fresh wordpress and clear out your hosting space and upload all that stuff from scratch as you can’t be sure which files have been modified to provide back-doors.

    make sure to change *all* your passwords as well.

Viewing 15 replies - 481 through 495 (of 1,478 total)