XHBB Very Alpha Testing

Talk about anything in here.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: XHBB Very Alpha Testing

Post by jacek »

EcazS wrote:Or make a user called "nobody" and turn into a big joke :lol:
Linux systems have a user called "nobody" in "nogroup" so it was a bit of a joke form that. I could just make the profile for it :lol:
Image
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: XHBB Very Alpha Testing

Post by jacek »

bowersbros wrote:Cannot use the bbcode buttons to insert the code into the field (not sure if this is meant ot happen, but it would make it easier)
http://betterphp.co.uk/XHBB/?page=view_ ... d=16&tid=2 8-) 8-)
Image
User avatar
Temor
Posts: 1186
Joined: Thu May 05, 2011 8:04 pm

Re: XHBB Very Alpha Testing

Post by Temor »

jacek wrote:
bowersbros wrote:Cannot use the bbcode buttons to insert the code into the field (not sure if this is meant ot happen, but it would make it easier)
http://betterphp.co.uk/XHBB/?page=view_ ... d=16&tid=2 8-) 8-)
Nice :)
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: XHBB Very Alpha Testing

Post by jacek »

I just added a fairly big feature, could do with some testing ;)

http://betterphp.co.uk/XHBB/?page=view_ ... p=1#post47
Image
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

Re: XHBB Very Alpha Testing

Post by bowersbros »

jacek wrote:I just added a fairly big feature, could do with some testing ;)

http://betterphp.co.uk/XHBB/?page=view_ ... p=1#post47
For images can you make a sort of 'thumbnail' preview?
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: XHBB Very Alpha Testing

Post by jacek »

bowersbros wrote:For images can you make a sort of 'thumbnail' preview?
maybe.
Image
Torniquet
Posts: 52
Joined: Sun Jun 19, 2011 8:10 am
Contact:

Re: XHBB Very Alpha Testing

Post by Torniquet »

Lookin good.

I coded a pretty nice multi-image uploader with thumbnail previews when i was working on my old forum.

How do you plan to work (or how have you done) the whole viewed / unviewed threads?

I spent absolute hours trying to get my old one working, and ended up doing a table structured like so

user_id topic_id post_id death_time

Then reading and updating that lol.

I have however since figured out a better way to work this.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: XHBB Very Alpha Testing

Post by jacek »

Currently I am logging the last read time for each topic. There is bug that needs fixing but it does work fairly well.

Also do the same thing for forums, so when you mark a forum as read, you can remove the rows from the topic_last_read table.
Image
Torniquet
Posts: 52
Joined: Sun Jun 19, 2011 8:10 am
Contact:

Re: XHBB Very Alpha Testing

Post by Torniquet »

ponder this for a moment if you will.

This is how i plan on producing the same effect on my new forum, without using a new table.

on your threads table, add a text field on the end of your table.

When a new thread is started, add the users ID into that field. When someone reads that new thread, their id is added onto the end of the text field deliminated by a comma. When you come to reading whether the thread has been read or not by said user, gather the content of the text field, explode it by commas and perform an if is in array check to deturmin whether the members id is in the there. If it is, post is read, if not, post is unread.

When a new reply is made, replace all the ids with only the new posters id back in there.

surely that has to be quicker than querying another table x amount of times looking to see whether a thread has been read.

Just food for thought :)
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: XHBB Very Alpha Testing

Post by jacek »

I haven't tried it but I doubt that would be better. You don't want to be getting a list of all the users with every post :?

Also, the way I did it there is only one query :? I don't see why there would a need for any more.
Image
Torniquet
Posts: 52
Joined: Sun Jun 19, 2011 8:10 am
Contact:

Re: XHBB Very Alpha Testing

Post by Torniquet »

You have to query for every thread being displayed as to whether its read or unread?, how do you manage that in a single query?
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: XHBB Very Alpha Testing

Post by jacek »

mysql can so simple (and probably complex) maths so it works out if there have been new posts since the last visit.

for a topic this is pretty simple
SELECT
    `last_read_time` >= `last_post_time` AS `read`
FROM `table`
Image
conradk
Posts: 117
Joined: Tue Jul 05, 2011 10:41 pm

Re: XHBB Very Alpha Testing

Post by conradk »

Either your username or email address is flagged as a spam account.
I tried with user = conradk and email = contact !! conradk.com.
Weird. I have not been sending out spam or anything :lol:
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: XHBB Very Alpha Testing

Post by jacek »

Search your username here http://www.stopforumspam.com/search.php looks like a spammer used it once.

For now pick a different username, for future, I will relax this check a little bit to require more than 10 entries or something.
Image
conradk
Posts: 117
Joined: Tue Jul 05, 2011 10:41 pm

Re: XHBB Very Alpha Testing

Post by conradk »

jacek wrote:Search your username here http://www.stopforumspam.com/search.php looks like a spammer used it once.

For now pick a different username, for future, I will relax this check a little bit to require more than 10 entries or something.
All I've got to say is F^CK to:
gentile.bradley@freeemailservice.info 89.212.180.105 Slovenia
Attachments
Is that the freaking Slovenian guy ?! xD
Is that the freaking Slovenian guy ?! xD
Screenshot.png (10.15 KiB) Viewed 2046 times
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: XHBB Very Alpha Testing

Post by jacek »

Most likely a fake email address ;)
Image
User avatar
Dylan
Posts: 150
Joined: Fri May 06, 2011 7:14 pm

Re: XHBB Very Alpha Testing

Post by Dylan »

Aha, I encountered the same problem with "Dylan";

Go figures though, it is a semi-common name; bound to be spammers out there with it.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: XHBB Very Alpha Testing

Post by jacek »

Perhaps not checking the username at all would be the best way then.

I think the IP is the most effective anyway.
Image
conradk
Posts: 117
Joined: Tue Jul 05, 2011 10:41 pm

Re: XHBB Very Alpha Testing

Post by conradk »

For one thing, I haven't seen any captcha on your registration form. I would ad one, as this would bug spammers to make new accounts once banned...

An email confirmation on the other hand is what I find the most annoying when I try to register. And if someone wanted to spam, he could write a script that gets the confirmation link from your confirmation email and then make as many accounts as wanted. So I guess IP is the best solution.
User avatar
Dylan
Posts: 150
Joined: Fri May 06, 2011 7:14 pm

Re: XHBB Very Alpha Testing

Post by Dylan »

Mhm; especially as, if said person is looking to spam (and assuming the bot doing so is semi-intelligent) a username rejection would be a simple fix. Rejecting the IP, though not fool proof, is probably much more reliable.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: XHBB Very Alpha Testing

Post by jacek »

conradk wrote:For one thing, I haven't seen any captcha on your registration form. I would ad one, as this would bug spammers to make new accounts once banned...
But they are such a pain right ;)

I want to find a solution that allows the user to register with minimal irritation, but will still prevent most spam accounts from registering. A epically massive blacklist may be that solution ;)
Image
Post Reply