Display Last 5 Phorum Posts -script
Posted by dagon
Re: Display Last 5 Phorum Posts -script June 15, 2004 06:56PM |
Registered: 20 years ago Posts: 666 |
Magi, I think you could try a WHERE (something) = (something) in the sql query, to technically say select all from {name}, and put the code in the list template. I have the theory in my head, I just don't know how I would write it out.
Thank you Rheo, that worked fine. Is there a way to keep the bbcode and html, and just take out the breaks? I tried removing the bbcode altogether, and the colors on the messages showed, but at the same time it ignored the thing about taking out breaks.
Thank you Rheo, that worked fine. Is there a way to keep the bbcode and html, and just take out the breaks? I tried removing the bbcode altogether, and the colors on the messages showed, but at the same time it ignored the thing about taking out breaks.
Re: Display Last 5 Phorum Posts -script June 15, 2004 07:15PM |
Registered: 20 years ago Posts: 666 |
How might I also have the posts order not just by datestamp, but by the name of the board and the datestamp? I tried putting it in after the ORDER BY statement in the query and fouled it up, I think because I don't know where to exactly put it in according to that limit $number thing.
Originally I had taken datestamp out, and when I used f.name, I got the last posts for one of my boards, heh...
Originally I had taken datestamp out, and when I used f.name, I got the last posts for one of my boards, heh...
Re: Display Last 5 Phorum Posts -script June 15, 2004 08:47PM |
Registered: 21 years ago Posts: 793 |
Re: Display Last 5 Phorum Posts -script June 17, 2004 01:46PM |
Registered: 20 years ago Posts: 666 |
Wow, the site looks beautiful on a PC, I can see all the colors. On my labtop, everything looks here looks white (I can't seem to find a way to tone down the brightness). Very nice.
Oh, um, anyway, heh. I don't know what a hook is or does or how to write one. I also thought I'd mention that the module ignores board settings. I've got uncensored curse words showing all over the place, whereas they're censored in the forums.
Oh, um, anyway, heh. I don't know what a hook is or does or how to write one. I also thought I'd mention that the module ignores board settings. I've got uncensored curse words showing all over the place, whereas they're censored in the forums.
Re: Display Last 5 Phorum Posts -script June 17, 2004 10:50PM |
Registered: 21 years ago Posts: 793 |
Re: Display Last 5 Phorum Posts -script June 18, 2004 04:02AM |
Registered: 20 years ago Posts: 666 |
Re: Display Last 5 Phorum Posts -script June 18, 2004 04:14AM |
Registered: 21 years ago Posts: 793 |
i never took a class..
well i took a C programming class in high schol. some modula-2 in university...
but perl and php, i started just by reading.
reading and doing..
i'm actually suprised there is a professor teaching php in a school..
i guess it really is the 21st century..
seriously though.. taken any language at all.
C, perl, java, anything really.. it translates to php.
SQL is the one i would recommentd taking a class in..
php is too easy to take it as a whole course.
Re: Display Last 5 Phorum Posts -script June 21, 2004 01:30PM |
Registered: 20 years ago Posts: 666 |
I took an sql class, and just barely made it by, because the professor was seriously lenient--nobody failed that course. Sometimes I wish I could take it again (though I wouldn't get credit for that), because the things I didn't understand then I could really use now. There were so many things we went through in that course that I have a lot of trouble finding online. I didn't even know what sql was nearly the whole time--I had taken the course because it was on my major list. *ditz*
Re: Display Last 5 Phorum Posts -script June 22, 2004 07:23PM |
Registered: 21 years ago Posts: 793 |
Re: Display Last 5 Phorum Posts -script June 29, 2004 01:23PM |
Registered: 20 years ago Posts: 666 |
Sorry, only registered users may post in this forum.