Search found 2270 matches

by Merlin Sythove
Thu Oct 04, 2007 6:26 pm
Forum: [2.0.x] MOD Database Releases
Topic: keep unread flags
Replies: 1990
Views: 208360

Re: keep unread flags

Sorry, that is beyond me. I have noticed that index.php is very slow if you have the birthday mod installed, so there may be another mod that is causing a delay. But if the code executes in X time directly on the SQL server, I expect it to execute in X time via php too. You COULD make a php page wit...
by Merlin Sythove
Thu Oct 04, 2007 6:37 am
Forum: [2.0.x] MOD Database Releases
Topic: keep unread flags
Replies: 1990
Views: 208360

Re: keep unread flags

In viewtopic.php, look for the word 'newest'. There should be code to translate newest to an actual post id, and then a redirect statement to actually go to that post.
Compare your files with the original phpbb 2.0.22, using a utility such as CompareIT (free) to see the differences.
by Merlin Sythove
Wed Oct 03, 2007 6:45 am
Forum: [2.0.x] MOD Database Releases
Topic: keep unread flags
Replies: 1990
Views: 208360

Re: keep unread flags

I'm sure we would like some more information. Such as what "disconnected" means. The little orange icon, is that the one where, if you hover with the mouse over it, the status bar says "viewtopic.php?t=nnnn&view=newest"? If the link is NOT lke this, the problem is in the current page (maybe search.p...
by Merlin Sythove
Thu Sep 27, 2007 9:07 am
Forum: [2.0.x] MODs in Development
Topic: [Beta] Login and jump to post
Replies: 4
Views: 560

[Beta] Login and jump to post

If you follow a link to a post, maybe from a topic watch message, that looks like this http://www.mydomain.com/forum/viewtopic.php?p=248930 #248930 but you have to log in first, the direct jump to the post is lost, like this: http://www.mydomain.com/forum/viewtopic.php?p=248930 At least, that is how...
by Merlin Sythove
Thu Sep 20, 2007 6:44 pm
Forum: [2.0.x] MODs in Development
Topic: [Beta] MOD Playing cards
Replies: 21
Views: 3211

Re: [Beta] MOD Playing cards

OK here are some examples to try: A: Change this type of coding (board: XX XX XX): into [XX XX XX] $regexp = '\(board:([A2-9TKQJ cdhs]*)\):*'; $message = preg_replace('/' . $regexp . '/', '[\\1]', $message); B: Replace card codes like [XX XX XX] by images, IF followed by (more card code characters o...
by Merlin Sythove
Thu Sep 20, 2007 4:45 pm
Forum: [2.0.x] MODs in Development
Topic: [Beta] MOD Playing cards
Replies: 21
Views: 3211

Re: [Beta] MOD Playing cards

The main problem if you try to change ONLY the two letter codes, without checking for brackets, that you will translate perfectly normal words like "Ah" into a card image. I'll see if I can make a list, eventually you'll get the idea of how things work.
by Merlin Sythove
Thu Sep 20, 2007 6:55 am
Forum: [2.0.x] MODs in Development
Topic: [Beta] MOD Playing cards
Replies: 21
Views: 3211

Re: [Beta] MOD Playing cards

I came across a few variations in the why other sites post their Hand Histories. One of them uses () instead of [] (board: 6d Kc Tc): In order to replace this type of code, after installing this mod, open includes/bbcode.php FIND function decode_playing_cards ($message) { ADD AFTER //Change this ty...
by Merlin Sythove
Wed Sep 19, 2007 6:26 pm
Forum: [2.0.x] MODs in Development
Topic: [Beta] MOD Playing cards
Replies: 21
Views: 3211

Re: [Beta] MOD Playing cards

I came across a few variations in the why other sites post their Hand Histories. One of them uses () instead of [] (board: 6d Kc Tc): and then there is this strange one. [6s 3s 8h 4d 2d 5d 6d - B:2d,P:3s,B:4d,B:5d,B:6d] Not sure if this can he easily rectified. First question is of course how impor...
by Merlin Sythove
Mon Sep 10, 2007 1:05 pm
Forum: [2.0.x] MODs in Development
Topic: [Beta] MOD Playing cards
Replies: 21
Views: 3211

Re: [Beta] MOD Playing cards

I want to remove all instances : before and after :Ac:, :Ah:, :Ad:, :As:, :Th: prior to viewing. You should be able to remove those using an SQL query. To test it, first find a post that you made with those combinations in it and note down the post ID (put the mouse on the little icon at the top of...
by Merlin Sythove
Sat Sep 08, 2007 9:24 am
Forum: [2.0.x] MODs in Development
Topic: [Beta] MOD Playing cards
Replies: 21
Views: 3211

Re: [Beta] MOD Playing cards

Thanks, I'll start adding links to sets in the first post above. You can also use the mod for mah yong tiles in a mah yong discussion forum, or for dice etc. To resize the images find this in the mod file or in includes/bbcode.php <img src="images/cards/\\1.gif" and after it, inline, insert width=20...
by Merlin Sythove
Fri Sep 07, 2007 5:04 pm
Forum: [2.0.x] MOD Database Releases
Topic: keep unread flags
Replies: 1990
Views: 208360

Re: keep unread flags

This is the final micro-mod, that will set all posts from the last 6 months to unread for new, first time users of your forum. Adjust the number (6 months = 6 * 30 * 24 * 3600) as you like. In includes/sessions.php find $last_visit = ( $userdata['user_session_time'] > 0 ) ? $userdata['user_session_t...
by Merlin Sythove
Fri Sep 07, 2007 4:58 pm
Forum: [2.0.x] MOD Database Releases
Topic: keep unread flags
Replies: 1990
Views: 208360

Re: keep unread flags

the test worked like a charm. exactly what i want it to do. Brilliant. I'm sure asinshesq can add it as a micro-mod to the bundle :-) i'm not sure though exactly what you mean here about user_session_time must be checked. Because of what I did in the code, if user_session_time ever got set to zero,...
by Merlin Sythove
Fri Sep 07, 2007 12:59 pm
Forum: [2.0.x] MOD Requests
Topic: Help with adding code to Fucntion_Posting.PHP.
Replies: 30
Views: 689

Re: Help with adding code to Fucntion_Posting.PHP.

I have made a new topic with the full MOD in it

[Beta] MOD Playing cards

I will no longer be watching this current topic.
by Merlin Sythove
Fri Sep 07, 2007 12:58 pm
Forum: [2.0.x] MODs in Development
Topic: [Beta] MOD Playing cards
Replies: 21
Views: 3211

[Beta] MOD Playing cards

This is a simple mod, that translates playing card codes such as [9d Ah 7d] for 9 of Diamonds, Ace of Hearts and 7 of Diamonds into their corresponding card image files. The codes must be between square brackets and consist of 2 letters each. They are NOT limited to playing cards, anything that can ...
by Merlin Sythove
Fri Sep 07, 2007 12:48 pm
Forum: [2.0.x] MOD Requests
Topic: Help with adding code to Fucntion_Posting.PHP.
Replies: 30
Views: 689

Re: Help with adding code to Fucntion_Posting.PHP.

Glad to hear it worked. And yes, old existing posts that have words like :Ah: in it should be changed.

Go to advanced search