Search found 2065 matches

by Joe Belmaati
Wed Feb 21, 2007 6:26 pm
Forum: [2.0.x] MOD Writers Discussion
Topic: How can I know the username inside includes/bbcode.php?
Replies: 3
Views: 389

Remember to add

Code: Select all

global $userdata;
at the top of the function you are mod'ing.
by Joe Belmaati
Wed Feb 21, 2007 6:23 pm
Forum: [2.0.x] MOD Database Releases
Topic: [01/12/06] Spam Words
Replies: 643
Views: 158552

smokejax You must have some other mods installed - I can only count 19 arguments in that function. PM me your functions_post.php and I'll have a look. crispyduck Someone actually made an add-on that does exactly that (he used a different list, though). Dunno whether he ever published the add-on. hs...
by Joe Belmaati
Tue Feb 13, 2007 6:50 am
Forum: [2.0.x] MOD Database Releases
Topic: [01/12/06] Spam Words
Replies: 643
Views: 158552

toyochan wrote: Hello,
I installed this mod today, but "mass add spam words" doesn't work well.
For example, if I type
"*o-*beep*.com*,*ofigeno.net*",
"beep","com","net","o-","ofigeno" are added to the list. :(

Do you have any idea to fix it?
Yes, I have already posted a fix for that.
by Joe Belmaati
Fri Feb 09, 2007 5:24 pm
Forum: [2.0.x] MOD Database Releases
Topic: [01/12/06] Spam Words
Replies: 643
Views: 158552

Re: Spammers posting all-link posts

Hello. Love the Mod, it has been working great. Currently, some spammers seem to have found a workaround to the mod however. If Spammers post a post with all links, it allows words included as the text of the link to slip through the filter. For example if i have blocked "spamword" through the word...
by Joe Belmaati
Fri Feb 09, 2007 4:08 pm
Forum: [2.0.x] MOD Writers Discussion
Topic: code table with scrollbars
Replies: 3
Views: 401

Do a google search using the keywords overflow auto bug. There are too many IE CCS2 bugs to mention (and quite a few FF and Opera as well). Also, max-height and max-width get shifty in some browsers...
by Joe Belmaati
Wed Feb 07, 2007 8:25 pm
Forum: [2.0.x] MOD Database Releases
Topic: [01/12/06] Spam Words
Replies: 643
Views: 158552

Ha! Not too slick that. Change that whole thing to:

Code: Select all

 {WORDS}
by Joe Belmaati
Wed Feb 07, 2007 8:11 pm
Forum: [2.0.x] MOD Writers Discussion
Topic: Ignoring a topic
Replies: 30
Views: 1325

OK, I see. I would build the ignored array so that the topic ids are the values - not the keys.

Liked your ignored joke... :D
by Joe Belmaati
Wed Feb 07, 2007 8:01 pm
Forum: [2.0.x] MOD Writers Discussion
Topic: Ignoring a topic
Replies: 30
Views: 1325

All those "posts since last visit" etc come from search.php to the best of my recollection.
by Joe Belmaati
Wed Feb 07, 2007 7:57 pm
Forum: [2.0.x] MOD Writers Discussion
Topic: Ignoring a topic
Replies: 30
Views: 1325

That's not how I read it. As the loop is traversed each repition returns a topic_id. It may or may not be in the array.
by Joe Belmaati
Wed Feb 07, 2007 7:50 pm
Forum: [2.0.x] MOD Writers Discussion
Topic: Ignoring a topic
Replies: 30
Views: 1325

RMcGirr83 wrote: just add a simple [ignored] (or whatever) to the end of the topic title
That can be done with one line:

Code: Select all

$topic_title = (in_array($topic_id, $ignored_topics)) ? $topic_title . '[' . $lang['Ignored'] . ']' : $topic_title;
by Joe Belmaati
Wed Feb 07, 2007 7:46 pm
Forum: [2.0.x] MOD Writers Discussion
Topic: Ignoring a topic
Replies: 30
Views: 1325

Well... that works fine as long as you do not have pagination. Search only returns like 20 at a time, and if you are skipping some, you might end up with short pages, or some pages with nothing at all on them. Yeah, that's true. You'd probably also end up with alternating row colors that don't alte...
by Joe Belmaati
Wed Feb 07, 2007 7:22 pm
Forum: [2.0.x] MOD Writers Discussion
Topic: Ignoring a topic
Replies: 30
Views: 1325

Personally, I would return those rows becuase you can always ommit them if you decide you don't want them with a simple continue; statement.
by Joe Belmaati
Wed Feb 07, 2007 6:45 pm
Forum: [2.0.x] MOD Writers Discussion
Topic: Ignoring a topic
Replies: 30
Views: 1325

Well, what I would do would be to query once in search.php: Build a query that gets the topic_id's from your new table where the user_id = $userdata['user_id']. Make sure you are not querying inside a loop. Use that resultset to fill an array of ignored topic_id's. Inside the existing loop that trav...
by Joe Belmaati
Tue Feb 06, 2007 7:12 pm
Forum: [2.0.x] MODs in Development
Topic: [BETA] Coppermine Latest Pics In Profile 0.0.3
Replies: 36
Views: 5613

Yes, the MOD only works when Coppermine is bridged with phpBB
by Joe Belmaati
Mon Feb 05, 2007 6:54 pm
Forum: [2.0.x] MOD Writers Discussion
Topic: Database actions
Replies: 5
Views: 637

..and also, make sure to secure $text. The standard phpBB way of doing that is

Code: Select all

$text = str_replace("\'", "''", $text);
If $text is coming straight from a POST_VAR your database is wide open to SQL injection attacks.

Go to advanced search