Jump to content

nathanmaxsonadil

Members
  • Posts

    305
  • Joined

  • Last visited

    Never

Everything posted by nathanmaxsonadil

  1. register sidebar is not the problem the question was how to make cor() appear in the array?
  2. this is in my functions file in wordpress http://automattic.com/code/widgets/themes/ here's the code for my function cor() $num = "category_"; $num1 = "category_"; $num2 = "category"; function cor() { if ($num == $num1){ $num = $num2; }ELSE{ $num = $num1; } echo $num; }
  3. Hi there, I was wondering what am I doing wrong here? when I go to my site the div is completely empty if ( function_exists('register_sidebar') ) register_sidebar(array( 'before_widget' => '<div id="'.cor().'"><ul><li>', 'after_widget' => '</ul></li></ul><br/></div>', 'before_title' => '<div class="submenu"><div class="submenu_line1">', 'after_title' => '</div></div><ul class="list-cat">', ));
  4. I think I can use that I have a 2 column wordpress theme that I want to make widget compatible into 1 sidebar, the two column 's are right next to each other so div1 would be telling it to go on the left and div1_ on the right.
  5. Hi all, I'm wondering how to make every other div have an _ at the end of it? like div1 and then div1_ and then div1 again so on Hope you guys can help Nathan
  6. Hi all, I was wondering how I would open and phrase a file in php? for instance I had a file like this <xml><title>not intersting</title><onething>I get this</onething><otherthing>I dont get this</otherthing><onething>I get this again</onething></xml> And I only wanted to get the things in side the onething tag's how would I do that?
  7. change $_SESSION['member_username'] = $loginrow['$member_username']; to $_SESSION['member_username'] = $loginrow['member_username'];
  8. I was wondering how to subtract a date(like I have 2007-10-05 and I want it to subtract 5 days)?
  9. not if you just post tons on code and ask for your problem to be fixed!!!
  10. I want to open somthing like this on the body load <a href="#TB_inline?height=155&width=300&inlineId=hiddenModalContent&modal=true" class="thickbox">Show hidden modal content.</a> is there a way to do that?
  11. make a new file called info.php and in it put <?php phpinfo(); ?>
  12. I'm getting this error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/nathan/public_html/invites.php on line 9 I checked to see if there was something wrong with my query by going or die(mysql_error()) but it didn't give me any error's
  13. something like this? if(empty($_SESSION['numbervar']) { $_SESSION['numbervar'] == 1; }else{ $_SESSION['numbervar']++; } echo "<img src='image{$_SESSION['numbervar']}' />";
  14. that would work but I would want everything after a ? how would I do that?
  15. I was wondering how to get everything after the ? in a url? I need to have a file redirect with all it's GET variable's..
  16. error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'MATCH(title, content) AGAINST ('test' IN BOOLEAN MODE) AS score FROM news WHERE ' at line 1 query SELECT id, title, author, date, content MATCH(title, content) AGAINST ('test' IN BOOLEAN MODE) AS score FROM news WHERE MATCH(title, content) AGAINST ('test' IN BOOLEAN MODE) ORDER BY score DESC what's wrong with my query??
  17. no because someone can use somthing like firebug...
  18. I was wondering how to have it so that if someone searches hi any posts with hi will come up? or if some searches hi how are you any posts that have "hi" "how" "are" "you" (without the quotes)comes up?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.