stravaiger
Forum Replies Created
-
Forum: Plugins
In reply to: WP2 wp_login plugin brokenFinally sussed the rights problem – it’s the md5 and the cookie so I need to change some LDAP code.
For the record though – I wouldn’t recommend using the in-place editing of plugins. If there’s an error, you lose *all* your changes after the location where the error occurred!
Forum: Plugins
In reply to: WP2 wp_login plugin brokenYes, I’m the author. It seems to load ok though. I think it’s because wp_login has already been defined by the time I activate the LDAP plugin.
Even though it’s loaded, when I login as my normal ldap user I have no rights to post anymore.
I’ve changed it to use:
$login = get_userdatabylogin($username);instead of the old db lookup and my rights in the database (10) are fine.
I’ve also updated the LDAP version of wp_setcookie but I have no rights anymore!
Would you have any ideas?
thanks
Forum: Plugins
In reply to: Override a pluggable functionHey, that’s nice, thanks.
Is there any way to hide a plugin in the plugin menu if a user is less than a certain level?
Forum: Plugins
In reply to: Override a pluggable functionYes, a new function but where to store it? It would be nice to keep all overriding functions in a separate file, say /extensions/pluggable-functions.php and then, at the top of wp-includes/pluggable-functions.php:
require_once(dirname(__FILE__).’/../extensions/pluggable-functions.php’);Forum: Fixing WordPress
In reply to: !nf3rN.4lL Hack attack in wordpressI’ve seen the same defacement on phpbb – how can I trace this as it’s a hole in my wordpress!
Forum: Fixing WordPress
In reply to: !nf3rN.4lL Hack attack in wordpressDoes it have anything to do with this?
https://marc.theaimsgroup.com/?l=bugtraq&m=111661517716733&w=2
Forum: Fixing WordPress
In reply to: !nf3rN.4lL Hack attack in wordpressoh, and there as a post saying “hacked by !nf3rN.4lL” and it was by “admin”.
Forum: Fixing WordPress
In reply to: !nf3rN.4lL Hack attack in wordpressMy blog was just compromised – the title was changed to !nf3rN.4lL as was the description. Searching on google produces blogs and forums that are !nf3rN.4lL hacked.
Forum: Plugins
In reply to: How to have source included in distrocheers folks! will join the mailing list
Forum: Your WordPress
In reply to: My first weblogWow! that looks superb Joe. Do you have any tips on how to create templates like that? Really nice, well done!
AlistairForum: Plugins
In reply to: Recent PostsI stuck <hr width=”100%”/> at the end of each excerpt but then again I modified the template to only display the excerpt of a story rather than the full story. You get the full story when you click on the title.
To add bullets to the title of each story, modify index.php:
<h3 class=”storytitle” id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”>- <?php the_title(); ?>
</h3>
AlistairForum: Themes and Templates
In reply to: Only display excerptThanks. Just looked at the template for index.php and changed it to get what I want:
Where it displays the story content, put in an if check. On the front page the query string variable p isn’t defined. So you can use this to stop it displaying the content for each story.
When you click on the link of the story title, p is defined.
I’ve modified index.php to only display the title and excerpt:
change:
<div class=”storycontent”>
<?php the_content(); ?>
</div>
to:
<div class=”storycontent”>
<?php if ($_GET[p] != “”) the_content(); else the_excerpt(); ?>
</div>
if the excerpt is empty, it displays the content for some reason. Probably something to do with the_excerpt()