WordPress.org

Forums

Alex's 1.2 Compatible Plugins (59 posts)

  1. Alex King
    Member
    Posted 10 years ago #

    I've released WordPress 1.2 compatible plugins of many of my WordPress hacks:

    • WordPress Mobile Edition - a PDA/cell phone friendly interface
    • WP Since Last Visit - indicate new posts and comments
    • WP Style Switcher - change the look of your site
    • WP Grins - clickable smilies
    • WP Plugin Auto-loader - auto-load your plugins

    Post support questions in this thread.

  2. NuclearMoose
    Member
    Posted 10 years ago #

    <drools uncontrollably>
    While everyone is visiting Alex's site, I'd suggest picking up his Tasks 2.0 software...it's helping me keep three different sites organised. He offers a free 21-day trial. It's certainly worth checking out!
    Thanks for the plugins, Alex!

  3. mog
    Member
    Posted 10 years ago #

    Just read that on his site, now I have to try them. Course, I am already using the style switcher and it still works after updating to 1.2 and have WPGrins in the comments. I'll have to see what has changed.

  4. theoretikaL
    Member
    Posted 10 years ago #

    Alex, concering the style switcher, is there a way to get it to work on static pages not in the wp folder? So that the styles would be consistent throughout the site, and so you could change the style from any page (main, about, blog, gbook, etc.).
    I fiddled around for a while, even moving my-hacks.php and wp-style-switcher.php to the main folder, and edited the copied wp-style-switcher.php to point towards "/blog/wp-style" instead of just "wp-style."
    I get the list of styles to show up, however, no default style is loaded, and whenever I click on the link to change styles it brings me back to my blog index page instead of the page its located on.
    Any help would be greatly appreciated, thanks.

  5. Alex King
    Member
    Posted 10 years ago #

    Thanks for the Tasks plug NM, I appreciate it. :)
    theoretikaL, did you add:
    <style> @import url( <?php wp_stylesheet(); ?> ); </style>
    to your other pages?

  6. danithew
    Member
    Posted 10 years ago #

    Alex is the KING. I haven't managed to upgrade from my 1.01(?) version to 1.2 yet (i confess... I'm skeered to mess at the moment) ... but I sure am looking forward to using plugins instead of hacks.
    I second the <uncontrollable drooling> expressed by NuclearMoose.

  7. Alex King
    Member
    Posted 10 years ago #

    There isn't really much difference between plugins and hacks. All the plugin activation/de-activation means is you don't have to edit the my-hacks.php page. It's basically a cleaner implementation of the same thing.

  8. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Using the 12th nightly.
    Put the php file in the /plugins, activated it, yet get this error
    "Warning: main(wp-last-visit.php): failed to open stream: No such file or directory in /home/--path--/html/blog/index.php on line 28"
    My error ?

  9. Alex King
    Member
    Posted 10 years ago #

    what is on line 28 in index.php?

  10. Mark (podz)
    Support Maven
    Posted 10 years ago #

    <?php $wplastvisit_output = "javascript"; require('wp-last-visit.php'); ?>

  11. Stuart
    Member
    Posted 10 years ago #

    Hi Alex. Thanks for the smilies plugin. I also tried out the "wp-last-visit" and got a similar error to podz. The line he's quoting is the actual "include" line. I solved it by doing this.
    <?php $wplastvisit_output = "javascript"; require('wp-content/plugins/wp-last-visit.php'); ?>
    which gives the full path to the file. Don't know if that means the plugin activation isn't working properly but the plugin is now working.

  12. Mark (podz)
    Support Maven
    Posted 10 years ago #

    That did the trick :)
    Thanks !

  13. Alex King
    Member
    Posted 10 years ago #

    I could have sworn I'd fixed that in the docs, but it wasn't in the zipped version. Fixed now.

  14. Stuart
    Member
    Posted 10 years ago #

    Gosh. Does that mean I did something right??

  15. Beel
    Member
    Posted 10 years ago #

    I don't know why it is an issue for me and not others (or it would have been mentioned here) but $siteurl no longer works for me - 'tis better if get_settings('siteurl') is used.

  16. Anonymous
    Unregistered
    Posted 10 years ago #

    I figured out the missing directories in step 3, but steps 4, 6, and 7 are too vague as to where the lines are supposed to be inserted. Step 7 seems to jump back to index.php but it's not clear about that. I gave it a try but it didn't work. Oh well.

  17. Anonymous
    Unregistered
    Posted 10 years ago #

    Alex, you rock! Truely awesome code and what open source is all about...definately going to check out this task software you have. I feel so blessed to be involved in such a grassroots project...plugins on the way from me...

  18. Anonymous
    Unregistered
    Posted 10 years ago #

    ps...love the basball pics...go Oakland!

  19. quasistoic
    Member
    Posted 10 years ago #

    Alright...I've already posted about this over in another thread, but this one also in on-topic, and may even have been the more appropriate venue, considering the specifics.
    I'm getting no love with Alex's 1.2-Compatible WP-Style-Switcher and WP 1.2beta. My server's running FreeBSD/Apache and I'm getting almost exactly the same symptoms as rfrancis,

    The list of styles appears without error in the menu bar. When I select one of the 3 alternate styles from the menu the URL shows the new style (index.php?wpstyle=dots), the page refreshes and the style remains the wp-default style.
    If I set a different default style as the readme file explains to, the new style applies fine, but again using the style-switcher menu of styles does not change the style of the page.
    In both cases the refreshed page *does* know which style should be loaded, as it grays this option. It just doesn't apply the style to the page.
    Keying in the url with the ?wpstyle=dots (for example) does not change the style either. I've also checked each style.css file, and they are there as intended.

    with two differences:
    1. no style in the list is ever greyed-out.
    2. the cookie IS being set (to the correct value) on my computer (it shows in Firefox's cookie manager). It must not be getting called properly.
    Also, this website is on my hosted account, not running on a local server.
    Please take a moment and look at the symptoms: http://quasistoic.org/ts/
    Respond if you have any guesses or questions which might guide me in the right direction.

  20. Anonymous
    Unregistered
    Posted 10 years ago #

    Thanks Alex, you've done great work. Is there any chance you'll be updating the wp-photos hack for the plugin architecture?

  21. Alex King
    Member
    Posted 10 years ago #

    quasistoic: I'm not sure why it isn't working, I'm assuming you've replaced the css call with the hack function? If you're comfortable with PHP, you could print out values in the wp_stylesheet() function and see what is happening. Another thing to check is your PHP version. If you're on a version earlier than 4.1 the $_COOKIE variable isn't being set.
    anon: I started working on WP Photos yesterday, but it's a lot harder because there are a bunch of different files that all reference each other. I may have to rewrite it quite a bit to get it working cleanly as a plugin.

  22. theoretikaL
    Member
    Posted 10 years ago #

    Alex, yes I do have that tag on my other page. However, still no style is being implemented, and although I see the list of styles when i click on the links to change the style, it still brings me back to my blog index page.
    Do I have to edit wp-style-switcher.php any more?

  23. Alex King
    Member
    Posted 10 years ago #

    Sorry, I don't know why it doesn't work for you.

  24. quasistoic
    Member
    Posted 10 years ago #

    Sadly, I chose to give up on Alex's style switcher.
    I'm using A List Apart's Php Switcher script instead, which works fine for me. It means a little more hard-coding, but eh, such is life.

  25. w8in
    Member
    Posted 10 years ago #

    On the WP Lastvisit plugin, step 4,5 and 6 are a bit too vague for a noob like me.
    It just says "add some code..." but it doesn't always say in what file and the location within the file it should be put in.
    Could Alex (or someone else) help me out? Thnx.

  26. Beel
    Member
    Posted 10 years ago #

    Sure, step 4 returns something like "There are 4 new posts and 3 comments since your last visit" (Don't know exactly because I tweaked the output) so put it wherever you want that to show up (top of page maybe?).
    Step 5 - That could go next to the title of each post and will show up if the post is new since last visit. I put it in the h3 class="storytitle" ... /h3 tag next to the link to the_title()
    Step 6 - that goes in wp-comments.php in the li for the comment (I put it next to edit_comment_link() )

  27. w8in
    Member
    Posted 10 years ago #

    Thanks, I''l give that a try later today when I have time.

  28. lomara
    Member
    Posted 10 years ago #

    Anyone have a fix for the smilie that shows up as :???: ? The name of the icon is icon_confused.gif, but the text shows up as :???: for me, and on Alex's test page as well. (7th smilie from the left), kind of looks like :-S

  29. Alex King
    Member
    Posted 10 years ago #

    What needs fixing?

  30. Beel
    Member
    Posted 10 years ago #

    Well in my mind ??? means confused, but if you don't want to use it just rename ??? to confused in vars.php

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.