Jump to content

unsider

Members
  • Posts

    610
  • Joined

  • Last visited

    Never

Everything posted by unsider

  1. site.com/example/terms Way I've been doing my SEO re-writing for a while now *shrug*
  2. I've alowed my users to "preview" the article their creating, check that the WYM editor is functioning properly, but in order to place the article into a category I'm using a <select> form, and the page is refreshed upon previewing the creation, and the select form value is reset. So I'm curious, is it possible to store the selected option in a session value, or would this involve using JS client side to hold the value. Maybe a mixture of both? Thanks.
  3. Thank you very much. Knew it had a fancy little name
  4. Alright I'll get right to it, as the solution is probably simple. I have my content being displayed in the below form after it's retrieved from the database. |1|2|3|4| |5|6|7|8| |9|10|11|12| |etc..| But I'm using a while loop to retrieve the information, but every four outputs, I need to create a new </tr><tr> like in the example above. As opposed to allowing it to loop |1|2|3|4|5|6|7|8|etc... I hope this makes sense..and if so can you explain what this is or how to accomplish it? Thanks.
  5. You gotta be kidding me. http://facespace.com/
  6. If you could for me, link me to some of the sites you think are loaded with the "wow" effect.
  7. You sure you want to use PHP & JAX for this? Wouldn't it be wiser to attempt this with AS3.0 & Flash, or Java, etc..? I wouldn't know what to tell you about the DB, but I certainly wouldn't be attmepting it the way you are. Good luck though.
  8. Here's the code I'm calling with: I'm calling with: <?php $ch = curl_init("URL"); curl_exec($ch); curl_close($ch); ?> The code: <?php if ($_GET['action'] == 'active' || $_GET['action'] == 'new') { $order_by = ($_GET['action'] == 'active') ? 't.last_post' : 't.posted'; $forum_sql = ''; if (isset($_GET['fid']) && $_GET['fid'] != '') { $fids = explode(',', trim($_GET['fid'])); $fids = array_map('intval', $fids); if (!empty($fids)) $forum_sql = ' AND f.id IN('.implode(',', $fids).')'; } else { $show = isset($_GET['show']) ? intval($_GET['show']) : 10; if ($show < 1 || $show > 50) $show = 10; $result = $db->query('SELECT t.id, t.subject, t.poster FROM forum_topics AS t INNER JOIN forum_forums AS f ON f.id=t.forum_id LEFT JOIN forum_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.moved_to IS NULL'.$forum_sql.' ORDER BY '.$order_by.' DESC LIMIT '.$show) or error('Unable to fetch topic list:', $db->error()); while ($cur_topic = $db->fetch_assoc($result)) { $subject_truncated = htmlspecialchars($cur_topic['subject']); echo '<li><a href="'.$config['base_url'].'/viewtopic.php?id='.$cur_topic['id'].'&action=new" title="'.htmlspecialchars($cur_topic['subject']).'">'.$subject_truncated.'</a> by: '.htmlspecialchars($cur_topic['poster']).'</li>'."\n"; } } return; } I'm using this to determine the load time: <?php $m_time = explode(" ", microtime()); $m_time = $m_time[0] + $m_time[1]; $starttime = $m_time; $round = 3; $m_time = explode(" ", microtime()); $m_time = $m_time[0] + $m_time[1]; $endtime = $m_time; $totaltime = ($endtime - $starttime); echo "<b>" . round($totaltime, $round) . "</b> secs"; Before calling the code above I was usually returning 0.004-0.009 secs on connection, after calling the code I am returning anywhere from 0.244-0.835 secs. While those numbers seem small, I am running a fast cable connection, so I shutter to think what those numbers would be on a slower conn. Is there anyway I can reduce the load time? Disable settings, rewrite my query, a different calling method, anything? Thanks a bunch.
  9. unsider

    bumptop

    Thats my situation as well, but the real question is...do you know where everything is? If I organized my stuff, I'd be a mess...
  10. Mine? And may I be so blunt as to ask what SA is? Only thing I can think of is SomethingAwful
  11. @NHoj, I fixed my mistake, you can take another look if you'd like. @unkwn I've tried using "two/extern.php", that was the most logical, and first thing I thought of, but unfortunately it still returns the error.
  12. That quote reminded me of Flight of the Choncords. Haha, ya it does, funny show. The opening for another song.
  13. ok I have a file "extern.php" in: root/one/two/extern.php directory that I've tried calling in: root/one/index.php with the two most basic methods: <?php include("../two/extern.php?action=active"); include("two/extern.php?action=active"); ?> The file exists, the action exists, and my don't worry my $_GET arrays are sanatized, but it throws this error: include(../two/extern.php?action=active) [function.include]: failed to open stream: No such file or directory. What's frustrating about this is, it's not only one of the most basic things, this is the only include, or very many that is throwing this error. Thanks. If you need any more information let me know. Argh. EDIT: caught my mistake, changed up the dir names, two = forum. Sorry about that
  14. unsider

    bumptop

    I signed up for the beta as well. Although I'm not testing. It would be a rather interesting UI to mess with, coupled with the speculative "iTouch" (w/e it's called) of course. Thanks for sharing. Looks really cool. Demo video was pretty cool.
  15. EDIT: thanks I feel incredibly dumb now, I am ultimately going to switch to <div> to match the rest of my content, but this was a quick fix, and tr.forum + example above fixed my problem. AHHH I need a new brain
  16. I guess I should have been more specific, it worked perfectly as it was, but... it's still not displaying correctly inside of the table, if i tested It's really just the placement of the background 'hover' <div class="boxes"> <div class="forum"> test </div> </div> It would work correctly, but inside the table structure it does not. *shrug*
  17. Clearly I'm trying to hover a background behind the second <tr>, but unfortunately it is not complying, and I can not figure out why. if there are any obvious answers, which i think is what it might be, please let me know, but if you need to see the CSS of the other classes, which you may, let me know. Or anything else, thanks. HOVER CSS div.boxes { background: #FFF; border: 1px; } div.forum:hover { background-color: #EEE; } <div id="idx<?php echo $cat_count ?>"> <h2><span><?php echo htmlspecialchars($cur_forum['cat_name']) ?></span></h2> <div class="box"> <div class="inbox"> <table cellspacing="0"> <tr> <th class="tcl" scope="col"><?php echo $common['Forum'] ?></th> <th class="tc2" scope="col"><?php echo $common['Topics'] ?></th> <th class="tc3" scope="col"><?php echo $common['Posts'] ?></th> <th class="tcr" scope="col"><?php echo $commen['Last post'] ?></th> </tr> <div class="boxes"> <div class="forum"> <tr<?php if ($item_status != '') ?>> <td class="tcl"> <div class="intd"> <div class="<?php echo $icon_type ?>"> <div class="nosize"><?php echo $icon_text ?> </div> </div> <div class="tclcon"> <?php echo $forum_field."\n" ?> </div> </div> </td> <td><?php echo $num_topics ?></td> <td><?php echo $num_posts ?></td> <td class="tcr"><?php echo $last_post ?></td> <div style="clear:both"> </div> </tr> </div> </div> if ($cur_category > 0) echo '</table>'.'</div>'.'</div>'."<br>";
  18. http://www.templatemonster.com/ A start ... a google search rendered dozens of these sites. Google is your friend.
  19. if you can't find what you're looking for here try the #php irc channel. ...but welcome
  20. I'm in the process of making a relatively extensive forum right now for my website (not freeware ), and a lot of small projects, like parent-child tutorial systems, and small blogs, etc... But nothing too amazing or worthwhile, but I've got big plans for my website + things I've already done for it, so in a few months I will be able to say I've accomplished a lot more + a website worthwhile EDIT: and I was going to ask a similar question to this, no need anymore though , you read my mind.
  21. Also, I'm curious, how old are you and your friend. If both don't have jobs or any source of income I wouldn't expect you to get much $ out of this whole situation, especially for a 'clan' website. But lke everyone else has said, it's what you think you're time is worth. And try to make sure your friend gets his money's worth...security and all..
  22. LOL @ myRevengeOnPHPfreaks He's really showing you guys.
  23. extensive PM system Admin Control Panel Parent/Child forum structure Statistics Graph of activity Etc.. Hell if you've written even a decent forum there are so many aspects you could focus on, and even imbelish, if you can live up to the rep. Good luck either way.. PS: I like your name, lol, sounds like you signed up for some online dating service.
×
×
  • 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.