Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter firepol

    (@firepol)

    [SOLVED] I asked my hosting and they were nice enough to fix all the file permissions… cheers.

    Thread Starter firepol

    (@firepol)

    Otto42, thanks for your explanation.

    Anyway I experienced problems even if it’s an iframe loading at the end (in my blog+browser combination -firefox 1.5.0.4- it is not working as expeced: when editing a post the tinymce menu took too much time to load, like 20 seconds or so…).

    I was thinking that the update sercives where the servers to ping (pingback)…

    Is it possible to deactivate pingbacks? If yes, how?

    Forum: Plugins
    In reply to: Setting a cookie in header

    I replied to my question myself. So if you want to set a cookie from your own plugin (as in my case) you can do it as follows:

    create your plugin.php, put the plugin name, authoer etc. and insert the function as follows:

    cookiestart() {

    if (isset($_GET[‘set’])){
    setcookie (‘sitestyle’, $_GET[‘set’], time()+31536000, ‘/’, ‘localhost’, ‘0’);
    $sitestyle = $_GET[‘set’];
    }
    else if (isset($_COOKIE[‘sitestyle’])) {
    $sitestyle=$_COOKIE[‘sitestyle’];
    } else {
    setcookie (‘sitestyle’, ‘beach-green-small’, time()+31536000, ‘/’, ‘localhost’, ‘0’);
    $sitestyle = ‘beach-green-small’;
    }

    return $sitestyle;

    } //end cookie_logic()

    Then in the header.php of our theme put the following:

    <?php
    $sitestyle = cookie_logic();
    ?>

    Forum: Plugins
    In reply to: Setting a cookie in header

    I’m trying to create a plugin which needs to deal with cookies. I’d like to include the cookie “logic” inside a function in my plugin insetad of putting all the code in the header.php.

    E.g. I created a plugin called cookie_logic.php containing this:

    cookie_logic() {

    if (isset($_GET[‘set’])){
    setcookie (‘sitestyle’, $_GET[‘set’], time()+31536000, ‘/’, ‘localhost’, ‘0’);
    $sitestyle = $_GET[‘set’];
    }
    else if (isset($_COOKIE[‘sitestyle’])) {
    $sitestyle=$_COOKIE[‘sitestyle’];
    } else {
    setcookie (‘sitestyle’, ‘beach-green-small’, time()+31536000, ‘/’, ‘localhost’, ‘0’);
    $sitestyle = ‘beach-green-small’;
    }

    } //end cookie_logic()

    Then in the header.php I put:

    <?php cookie_logic(); ?>

    But it doesn’t work. Why? Can’t a cookie be set if called by a plugin?

    Thanks for helping.

    Yes, it’s stupid because if someone loses his username AND password he is f*cked.

    The lost password page should allow somebody to just insert an email address OR an username.

    Forum: Plugins
    In reply to: Custom Registration Fields?

    Well… you can hack it yourself, simply edit the file wp-register.php. I want to add the field “phone number”: I think I’ll jsut add it to the db table ansd then put it in the wp-register.php page, so people will have to insert it upon registration…

    Personally I upgraded in an easier way, if you have shell access on your server (First I disabled the plugins):

    #tar xzf latest.tar.gz

    This, to me overwrote all the files at once, then I browsed to /wp-admin/uograde.php . That’s it. Worked fine for me.

    why not post this as suggestion of improvement? I also think that “Dashboard” isn’t very appropriate. As well as “Site Admin”.

    I have a blog where people have to register in order to be able to put comments. Why should they click on “Site Admin” in order to check their profile? It would be more appropriate that if you are logged in as administrator, you see the string as “Site Admin2, but if you are logged in as normal registered user you see a more intuitive link called “Control panel” or “Members Area” or “Your profile”.

    what do you think?

    personally i believe that lots of products could work together… without the need to really join the forces, i explain u better:

    i think that it’s possible to integrate one software functionality in another by modifying or adding some interfaces.

    in example. if u have both gallery and wordpress, it would be nice to be able to browse the pictures of gallery when you r writing a post in WP, in order to add a picture to the post.

    there is already a plugin, which lets you add pictures from gallery, but it’s very basic…

    let’s say you add a WYSIWYG editor like TinyMCE (that i recently added o my WP installation). it would be nice to have a button to browse pictures from gallery, click and add them.

    this could be achieved by creatign an interface to be added to the TinyMCE plugin.

    So you see that at the end you can integrate one program functionality in another but you need to code an interface to access the other applicatino database or filesystem. Gallery is using a strange database to manage the files… Gallery2 will be easier, as it’s using mysql…

    Well, just some thoughts…

    Forum: Plugins
    In reply to: TinyMCE

    To integrate TinyMCE with WordPress (I tested it with WP 1.7), check this out: https://mudbomb.com/archives/2005/02/02/wysiwyg-plugin-for-wordpress/

    I could make it work in 5 minutes following the readme.txt inside the zip. 10 extra minutes to test it, find out an annoyance (when you press enter the scroll bar is focused at the top) and correct it: see Comment by Joe Schmoe a€?? Apr. 28, 2005 @ 12:35 pm.

    TinyMCE is a very good WYSIWYG editor. Strange that I couldn’t find in the “one-click” plugins list.

    So… good luck and enjoy.

    Paolo

    Forum: Plugins
    In reply to: TinyMCE

    Geoffrey: as it took only 2 minutes for you, it would be nice to share how you did it, if you can invest a couple more minutes to write a simple but efficient mini-tutorial and share it here it would be great. Thansk in advance for sharing ??

    Cheers,

    Paolo

    the instructions on https://wiki.www.ads-software.com/BloggerImport didn’t tell to rename also the blog filename (by default it is index.html). that’s why i was getting a white ugly page.

    i renamed it in wordpress.php. it worked.

    i have the same error (+encoding of ?????¨ problems). the posts seem to be imported, but when I browse to my wp folder i get a white page with all posts there in a ugly way, you can see it at: https://www.pbworks.net/wp/ even if i change them it doesnt change. what’s wrong?

Viewing 14 replies - 1 through 14 (of 14 total)