Jump to content

Wes1890

Members
  • Posts

    242
  • Joined

  • Last visited

Contact Methods

  • AIM
    YoNuthin2do
  • Website URL
    http://

Profile Information

  • Gender
    Not Telling

Wes1890's Achievements

Member

Member (2/5)

0

Reputation

  1. First off, here is the (sample) code, note that this is in wordpress, so I included the WP default htaccess code as well: # View Certain Page RewriteRule ^([a-z0-9\-]+)\/directory\/?$ view-directory/?directory=$1 [L,NC] # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /path/to/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress I built a site on my localhost, and the above rewrites worked perfect. I would go to http://localhost/dir-name/directory and it would load the corresponding page (view-directory/?directory=dir-name) (which is then re-processed through the WP rewrites to display the WP page with the query string appended). See how it works? Hopefully I've not lost you Now, I transferred this to an online server, but it's not wanting to work anymore. Instead of the correct page, I get the default wordpress 404 page. If I put a fake page name for the rewrite to redirect to (something besides view-directory), then I get an actual server 404 error. So this tells me that the redirect is going through, but maybe it's not processing the wordpress portion of the rewrites? I don't know. Check this out though, if I change my rewrite to: RewriteRule ^([a-z0-9\-]+)\/directory\/?$ http://www.site-name.com/view-directory/?directory=$1 [L,NC] Then the rewrite works PERFECT! The only downside to this is obviously that it redirects the URL and shows the "?" in the current page URL, we don't want that. Any ideas on this? Hopefully I didn't confuse anyone. Let me know if you have questions! Wes on a side note, this (wes1890) is my old account that didn't use to work. so from now on out you'll be seeing me post as my current account "wesf90". sorry for the confusion it may cause, but i've not logged on phpfreaks in so long!
  2. Thank you, please keep me informed on this issue by PM or email.
  3. Well i guess i have been re-created lol but see my sig and postcount? they're both different
  4. ^ lmao That will find the mid point of the line but takes no account of the length of the text or its angular rotation i didnt think about angles, i was just figuring mid points.. and yes, that would work if you know the center's x/y and the points x/y.. if the center x/y is 0/0 and the point x/y is 50/50 (down and right) dividing 50/2(x) and 50/2 (y) would get a midpoint between the center and outer point
  5. ^ view the html source page, and i've linked you to the CSS page.. if you need me to post the sources instead then just say so... but they are easily accessible as-is.. and thanks for the link
  6. haha.. nope, im still me a mod has changed my sig tho.. that kinda pisses me off
  7. idk calculate center point (easy) calculate radius (easy) draw circle (easy) i assume you have these since you put "easy" calculate points along the circle's circumference (hard) are you having 6 points? just divide 360 (degrees) by 6 (points) then, you know the coordinates of each point: point1 = $centerx - 0, $centery - 60; point2 = $centerx + 60/2, $centery - 60/2; point3 = $centerx + 60, $centery + 0; etc. etc. etc. draw icons centered on these points (medium) if you get the points then it should be no problem draw lines connecting points to center (easy) you got it draw text midway between along this line indicating what the line represents (not so easy) divide the x/y of the point by 2 (from the center), put the text there thats all i can ponder up.. idk if i even understand you right so if im way off then my bad lol
  8. you mean select a random DB row? use: mysql_query("SELECT * FROM your_table ORDER BY RAND() LIMIT 1"); that will select 1 random row
  9. ^ checking a wordlist isn't cracking if you think you can get it though, then here is my md5 password for these phpfreaks forums cd07ddb17471e8ff66014578c8e93280 enjoy
  10. i dont mean to burst your bubble... actually, im meaning to do just that, but md5 virtually cant be cracked homie
  11. reminder date for what? just have a script check your DB for the reminder date, and if it's within X amount of days, then send and email
  12. ^ thats the exact same thing i did.. only yours is less explanitory edit.. i had a booboo in my code use this $name = "some long string hey"; $max_length = 8; // 8 chars max if (strlen($name) > $max_length) { $name = substr($name,0,$max_length-1); // i didnt have the $name = on this line the first time lol $name .= "..."; // add an ellipses ... at the end } else {}
  13. ^ well does it give an error?
  14. $name = "some long string hey"; $max_length = 8; // 8 chars max if (strlen($name) > $max_length) { substr($name,0,$max_length-1); // make it 8 chars long $name .= "..."; // add an ellipses ... at the end } else {}
  15. http://www.ebenezer-ministries.net/testy/em.htm http://www.ebenezer-ministries.net/testy/style.css (the stylesheet) I've always made webpages with html tables.. but these people want me to redesign their site in CSS (no tables).. well im new to it so heres my prob On the left where it says "Contact info", above it there is about a 5px blank space that i dont want.. also, there is a little space between the "contact info" and the box below it.. how do i fix this? thats all for now btw, where is a good place to learn css webdesign? i found a few, but none of them are really in-depth about it
×
×
  • 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.