Jaxia
Forum Replies Created
-
Forum: Plugins
In reply to: Gravatars and threaded commentsI figured it out:
I put this
<img src=”<?php gravatar(“”, 20) ?>” alt=”” />below this line:
<img class=”collapseicon” src=”<?=get_settings(“siteurl”)?>/wp-content/plugins/briansthreadedcomments.php?openedthreadimage=true” onclick=’collapseThread(“div-comment-<?php comment_ID() ?>”)’ />above this line:
<?php comment_author_link() ?></cite> Says:You can see it here:
https://www.stealtheblinds.net/2005/05/15/step-right-up/#commentsSkippy – Thanks so much!
I hope this helps someone else!Forum: Plugins
In reply to: Gravatars and threaded commentsI cannot find that loop within the comments file. I even did a “find” on it.
Forum: Plugins
In reply to: Gravatars and threaded comments<i>somewhere inside<i>
Heh. That’s the problem. There is so much going on in the comments.php file for threaded comments that I cannot figure out what it takes. The if’s and else’s are more than my brain can figure out! ??
Does the example use threaded comments, too? Thanks for posting it!
Forum: Your WordPress
In reply to: my nearly complete multiple-blog siteThis is kinda strange…
My IE defaults to not maximized. When I entered your site, I max’d the window so I could see everything. I looked around, but when I hit back on the browser, it resized my window too! I’ve never had that happen before.
Forum: Plugins
In reply to: new plugin: multiple random imagesHmm. In order to associate a name with the image, I think you’d have to do something like I did:
https://www.stealtheblinds.net/2005/05/13/stbquote
(This only outputs one image)My php skills aren’t that great, but maybe I can combine the two plugins somehow…?
Forum: Plugins
In reply to: New Plugin: Random Quotes with CSSGlad you like it ??
If you have any suggestions, let me know!Forum: Plugins
In reply to: array_rand helpColdForged, if you’re around — I got it! I did TWO explodes. I needed to explode by line, and then on the pipes.
Thanks for telling me about var_dump — it helped a lot!
Forum: Plugins
In reply to: array_rand helphehe – Thank you.
I will look at it some more tonight and see if I can figure it out. Right now, I have to go take a few finals.Thanks again!
Forum: Plugins
In reply to: array_rand helpOh! It says NULL. (Honestly, I didn’t understand what the var_dump was doing before)
array_rand(): First argument has to be an array
But I suppose the NULL explains that. I guess I don’t have my file defined right…?
Forum: Plugins
In reply to: array_rand helpAh. Okay. I moved them within the function. Now, it’s getting closer because it outputs the title, but I still get this error:
First argument has to be an array
I tried removing the var dump and adding the 1 back in and it didn’t help. Does this mean there is a problem with my txt file?
Forum: Plugins
In reply to: array_rand helpHmm
When I do that, it only prints this:
array(0) { }That’s it.
This is what the whole thing looks like right now:
$quotetitle=”Words of Wisdom”;
$quotefile=”quotes.txt”;$dir=dirname($_SERVER[‘SCRIPT_FILENAME’]);
$url=dirname($_SERVER[‘PHP_SELF’]);function STBquote() {
if (file_exists($dir.”/”.$quotefile))
$quote=file($dir.”/”.$quotefile);
var_dump($quote);
$rand_key=array_rand($quote);
list($text, $author, $link, $linktext) = explode(“|”, trim($quote[$rand_key]));echo “<div>”;
echo “<h2>”.$quotetitle.”</h2>”;
if (isset($text) && $text!=””) { echo “<p class=\”pullquote\”>”.$text.””; }
if (isset($author) && $author!=””) { echo “”.$author.””; }
if (isset($link) && $link!=”” && isset($linktext) && $linktext!=””) { echo ““.$linktext.”“; }
echo “</div>”;
}?>
Ideas? I really appreciate your help!
Forum: Plugins
In reply to: array_rand helpSorry. I’m so new I don’t even know what’s important!
$quotefile=”quotes.txt”;
$dir=dirname($_SERVER[‘SCRIPT_FILENAME’]);
$url=dirname($_SERVER[‘PHP_SELF’]);if (file_exists($dir.”/”.$quotefile))
$quote=file($dir.”/”.$quotefile);And yes, the file has data in it.
Thanks!
Forum: Themes and Templates
In reply to: Creating a Category page in KubrickAlso, I’m confused about the header image call part that I’m supposed to put in the header. Why can’t I call my header image in each css like this:
#header {
background: url(‘category4.jpg’) no-repeat bottom;
height: 185px;
margin: 0 auto;
width:700px;
padding:0;That’s how I call my header image now…
Thanks!Forum: Themes and Templates
In reply to: Creating a Category page in KubrickWe can use the is_category( ) tag
Does anybody know what that would look like instead?
NativeMind — If I already have WP installed, I have to reinstall it to allow one login across WP and phpbb?