Search found 2270 matches

by Merlin Sythove
Fri Sep 07, 2007 6:55 am
Forum: [2.0.x] MOD Database Releases
Topic: keep unread flags
Replies: 1990
Views: 208254

Re: keep unread flags

Try this: In includes/sessions.php find $last_visit = ( $userdata['user_session_time'] > 0 ) ? $userdata['user_session_time'] : $current_time; and change it to this: $last_visit = ( $userdata['user_session_time'] > 0 ) ? $userdata['user_session_time'] : $current_time; //Testing to get brand new user...
by Merlin Sythove
Thu Sep 06, 2007 8:14 pm
Forum: [2.0.x] MOD Database Releases
Topic: keep unread flags
Replies: 1990
Views: 208254

Re: keep unread flags

On my forum that would be 240.000 messages... :D There is a limit of 300 entries (roughly), that is 300 topics that are unread from a given point onwards. But there are no options to set that many recent topics to unread for newcomers. You may try to experiment with the last visit date, artificially...
by Merlin Sythove
Thu Sep 06, 2007 8:05 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've solved it, thanks to some help by Very Powerful Friends... :lol: Just try this in viewtopic.php: Find in viewtopic.php near the end // // Again this will be handled by the templating // code at some point // $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( ...
by Merlin Sythove
Thu Sep 06, 2007 12:49 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.

No the problem is inside the function preg_replace, it works as specified, not the way I thought it might.
I've tested replacing whole words but it makes mistakes there too. Back to the drawing board.
by Merlin Sythove
Thu Sep 06, 2007 11:47 am
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.

This is what the line should be to replace card codes by card images: $message = preg_replace("/(\[.*)([A2-9TKQJ][cdhs])(.*\])/", "\\1<img src='images/cards/\\2.gif' alt='card' title='\\2' border='0' />\\3", $message); As you can see it only addresses the final group of characters within []. Hmmm, I...
by Merlin Sythove
Thu Sep 06, 2007 8:14 am
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 figured out the reason for the image not displaying. Brilliant, change all the lines like that. Also what is the B for in TAKQB King Queen and whatever you use for Knave, obviously not a K or maybe a lower case k? I'm Dutch and the only cards I use are Tarot cards so I'm not the person to ask... ...
by Merlin Sythove
Wed Sep 05, 2007 3:17 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.

Suits cdhs Cards 2-9 T and A only? I've added KQB - feel free to edit below. This is my solution: I have a slight delemia with posting. .... *** FLOP *** [9d Ah 7d] <--------- The problem that I have is the Ah, As, Ac, Ad and Th First of all, you already have posts with this particular format. So id...
by Merlin Sythove
Wed Sep 05, 2007 1:27 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.

Technically, you want to change any post that has [Th] in it, to show a card, not only the posts that are made after you implement this mod, correct? This is a display functionality, the choice of showing [Th] or the card image, nothing to do with the post that is made or saved. (Changing Th to :Th:...
by Merlin Sythove
Fri Aug 31, 2007 6:43 am
Forum: [2.0.x] MODs in Development
Topic: [Beta] Topic renew
Replies: 42
Views: 2935

Re: [Beta] Topic renew

Find

Code: Select all

message_die(GENERAL_ERROR, 'Could not update last post in locked topic'
The code before that, is where the link is inserted in the last post in the old closed topic.
by Merlin Sythove
Thu Aug 30, 2007 9:01 am
Forum: [2.0.x] MODs in Development
Topic: [Beta] MOD Format_style
Replies: 0
Views: 389

[Beta] MOD Format_style

MOD Format_Style A simple mod but so very useful: a drop down list of styles that you can apply to your text in messages. These styles like headers or paragraph styles allow the board owner to control the styles and match them to various themes that you may have installed. It allows you to use [h1]...
by Merlin Sythove
Mon Aug 27, 2007 7:35 am
Forum: [2.0.x] MODs in Development
Topic: [Beta] Topic renew
Replies: 42
Views: 2935

Re: [Beta] Topic renew

Is there a way to have the new topic that is created show the quoted 1st as a quote or separated in some way from the post that caused the topic to lock and recreate? Right now it looks like the entire post is the 1st poster's post. So that you'd have: This topic is the continuation of XXX Old topi...
by Merlin Sythove
Sat Aug 25, 2007 10:48 am
Forum: [2.0.x] MODs in Development
Topic: [BETA] MOD Logbook
Replies: 177
Views: 40159

Re: [BETA] MOD Logbook

stduentforums wrote:I will try and have a go, but unfortunately I do not have any programming skills :(
In that case you may consider leaving it alone, it is not as easy as that single line I gave, for example you need to figure out in your own modded admin files where such lines should go and so forth.
by Merlin Sythove
Sat Aug 25, 2007 9:31 am
Forum: [2.0.x] MODs in Development
Topic: [BETA] MOD Logbook
Replies: 177
Views: 40159

Re: [BETA] MOD Logbook

What I meant was that I know it logs actions to topics and posts... but can I make it log actions carried out in the ACP, which my Junior Admins have access to? Actions like banning users, deleting users, setting permissions, creating new forums, creating new groups etc... I can't answer the questi...
by Merlin Sythove
Sat Aug 25, 2007 7:28 am
Forum: [2.0.x] MODs in Development
Topic: [BETA] MOD Logbook
Replies: 177
Views: 40159

Re: [BETA] MOD Logbook

Hi Merlin... is there any way you can easily make this modification track all actions done by my moderators, junior administrators (Junior Admin Mod) and administrators, especially those actions carried out in the ACP (bans, deleting of users etc)? If not, do you know of a modification that will do...
by Merlin Sythove
Tue Aug 21, 2007 6:54 am
Forum: [2.0.x] MODs in Development
Topic: [BETA] MOD Logbook
Replies: 177
Views: 40159

Re: [BETA] MOD Logbook

Hi Jörg, Hi Merlin, great mod, but i have small problems with it. Because i see in the top off the template only this :: Details I think i have here a problem with this part <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center"> <tr> <td align="left" width="100%"><span class=...

Go to advanced search