Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Tutorials Online List && Breadcrumbs
Calamity
Posted on 21 Jul 2009, 08:52:21

Access: Member
Total Posts: 33
Joined: 2008-04-11

I've never been sure on how to do this.
Like i plan to make my own forum system in the future.

And don't know how to do either. for online list i would think it would be something to do with the login sessions.

And the Breadcrumbs. How does this site do it? How does it know that e18476d2a1fadb31 is PHP Tutorials.

Do you store (e18476d2a1fadb31) into the database, that way you list out all the rows containing e18476d2a1fadb31 in the parent. And then when you do the breadcrumbes you do:

if (parent == e18476d2a1fadb31) previous breadcrumb = php tutorials.
I'm bit confused.


Well thanks chris!
#680
Last edited by Calamity at 2009-07-21 12:45:54 Reason:
Chris
Posted on 21 Jul 2009, 13:54:27

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

This should give you an idea how the forum works.

[img]http://network-13.com/images/forumschema.jpg[/img]
#681
Calamity
Posted on 21 Jul 2009, 16:07:54

Access: Member
Total Posts: 33
Joined: 2008-04-11

Thanks a million!
Really helps!

Also question =>

Say i where to make my forum's work similar to yours (if thats cool with you)

And used this

Code:
<?php 
function algorithm($length = 16, $chars = 'abcdef1234567890'){
    
$chars_length = (strlen($chars) - 1);
    
$string = $chars{rand(0, $chars_length)};
    
    for (
$i = 1; $i < $length; $i = strlen($string)){
       
$r = $chars{rand(0, $chars_length)};
       if (
$r != $string{$i - 1}) $string .=  $r;
    }
    return 
$string;
}
?>


I won't run into a repeat will I? If i'm worried about it, i could always make it check. =/ But that is 16 characters long. Pretty good chance i won't though.
#682
Last edited by Calamity at 2009-07-22 23:08:55 Reason:
Calamity
Posted on 22 Jul 2009, 23:11:00

Access: Member
Total Posts: 33
Joined: 2008-04-11

Is this how the topic table works. Like when you go to get Topic and Posts count?

Topic Table: (example)

Title | PID | UID | C |
TEST | 555 | 111 | 555 |
RE: TEST | 111 | 222 | 555 |

For Posts it counts where C = cat UID
For Topics it counts where PID = cat UID

Or do you have another table for posts? If so, then what the heck is C?

You think i could just see all the tables? Get feeling of how the whole forum works?
#685
Last edited by Calamity at 2009-07-22 23:42:03 Reason:
Calamity
Posted on 26 Jul 2009, 19:31:46

Access: Member
Total Posts: 33
Joined: 2008-04-11

Never mind i did my own method
#699
Network-13.com © 2013