dnorth
Forum Replies Created
-
Forum: Plugins
In reply to: [Coming Soon / Maintenance mode Ready!] Can't get to Login pageThanks, deleting the plug-in directory did work.
I would like to use your plugin.
there seems to be a conflict with it and the iThemes Security plugin that allows me to essentially rename the wp-admin page to some non-standard name. When I turn of the feature to change the login page your plugin seems to work ok.
Any why you could figure out how to make your plugin work with this one.
Forum: Fixing WordPress
In reply to: [Plugin: Twitter Tools] URL not made tinyI think it will work there (in the function.php for the active theme)
check out all the formating of the statements, ending ; all that programing stuff has to be correct or it will not work.
Sorry, I don’t have any other ideas.
Forum: Fixing WordPress
In reply to: [Plugin: Twitter Tools] URL not made tinyIn the function.php
1. I added the
add_filter(‘tweet_blog_post_url’, ‘makeShortURL’);After the frist line <?php
2. I added the function code before the first function definition in the file.
Forum: Fixing WordPress
In reply to: [Plugin: Twitter Tools] URL not made tinyI was able to get this to work.
I add the following to the funciton.php for the template.
add_filter(‘tweet_blog_post_url’, ‘makeShortURL’);
function makeShortURL($URLToConvert) {
$shortURL= file_get_contents(“https://tinyurl.com/api-create.php?url=” . $URLToConvert);
return $shortURL;
}Forum: Fixing WordPress
In reply to: [Plugin: Twitter Tools] URL not made tinyI was reading the documentation (I know that is unusual) for Twitter Tools and it says it does not do any URL shortening, but let Twitter do it. So maybe that function is not working in Twitter any more.
Twitter tools readme file has info about adding a filter and a function to do the URL shortening.
It says:
Twitter Tools also provides a filter on the URL sent to Twitter so that you can run it through an URL-shortening service if you like.
tweet_blog_post_url
Your plugin function will receive the URL as the first parameter.
Example psuedo-code:
function my_short_url($long_url) { // do something here - return the shortened URL } add_filter('tweet_blog_post_url', 'my_short_url')
I am not sure were to put this code or where to get a urlshortening function. If anyone knows how to do it please post.
Forum: Fixing WordPress
In reply to: [Plugin: Twitter Tools] URL not made tinyI am having the same problem. Wish someone knew the answer.
Forum: Fixing WordPress
In reply to: PHP in Text Widget helpSo the problem was the the the_ID() need to be call within the loop and outside the look it alwasy genreated data when it was called regardless of the php switch or if.
Had to make a global varible in the main templact to get the id.
Forum: Fixing WordPress
In reply to: PHP in Text Widget helpI tried changing to an if statement and it also does not work.
<img src="/wp-content/uploads/images/sidebar_img_<?php $id = the_ID(); if ($id==1 or $id==14 or $id==19 or $id==11 or $id==21 or $id==24 or $id==49) echo the_ID(); else echo "1"; ?>.jpg">
If the id=11 then iget “111′
It is a mystery to me.
Anyone have any ideas on this?
Forum: Fixing WordPress
In reply to: PHP in Text Widget helpCan anyone help with this?
Forum: Fixing WordPress
In reply to: PHP in Text Widget helpHere is the code I use originally. Alhough I have tried lots of variations.
<img src="/wp-content/uploads/images/sidebar_img_<?php switch (the_ID()) { Case 11: case 14: case 19: case 21: case 24: case 49: echo the_ID();break; default: echo "1" } ?>.jpg">
Thanks for any help.
Forum: Fixing WordPress
In reply to: PHP in Text Widget helpThanks,
I had tried this, but I tried it again. On the ones tha have a value that matches like 11, it gets “111” becuase it still add the “1” from the default.
So still doesn’t work.
Forum: Fixing WordPress
In reply to: PHP in Text Widget helpI have tried that on and others.
-Exec PHP – Weber
-Executable PHP Widget – Otto
-Samsarin PHP Widget – PettittAll executle PHP in a widget on the side bar. All which work with the exceptions noted above.
The problem is not getting some PHP to execute in the widget, the problem is to get the switch statement and break to work.
David
Forum: Plugins
In reply to: Cannot load quote-rotator.phpI am having the same problem. I think it worked after the first quote I added. But I got the error after the adding the second one.
Anyone with ideas.
Forum: Plugins
In reply to: quote rotator manage tab?It is under Post Menu
Forum: Fixing WordPress
In reply to: Post showing up oldest firstFound the problem. The first post was set to be sticky, so it showed ahead of later posts.