Author |
Topic |
|
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 20 July 2009 : 13:20:22
|
I have had the Email Mod successfully installed for over a while and no troubles. Recently I have added another user who has been given administrator tights straight away but so has not posted any threads. The new admin, tried to email me and was given the rejection (Sorry, You have not contributed enough posts on the forum to email other members) because no posts have been done. Is there a quick fix to allow admins ie mlev=>3 to post email despite number of threads. The if intMPosts < 3 then checks for number of posts, can we add an if statement near here to ensure admins can post email irrespective of thread count.
Just to put the icing on the cake, is there a simple alignment that we can centre these error messages.
Thank you Andy |
|
modifichicci
Average Member
Italy
787 Posts |
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 20 July 2009 : 14:50:48
|
What "Email MOD" are you talking about? If its the one Rui put together then there's been some code floating around that allows Admin's to override the required post count on a person-by-person basis. This was added in to 3.4.07 so even if you're not going to upgrade you've got something to look at for reference.
Having said that, it wouldn't be a bad idea to add a check to make sure that Admins and/or Moderators don't get blocked... |
|
|
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 20 July 2009 : 17:21:09
|
Anon it [email spam mod] is the code that Rui has posted before, I searched it out a while ago.. Thank you modifichicci.. for your 'if' statement addition, all works as requested, as simple as that.. Appreciated dot com! |
|
|
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 20 July 2009 : 17:40:13
|
Just for the 'icing on the cake' - how do you align the error message to center
Err_Msg = "<li>Sorry, You have not contributed enough posts on the forum to email other members.</li>"
thanking u andy |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 20 July 2009 : 19:27:03
|
quote: Originally posted by Andy Humm
Just for the 'icing on the cake' - how do you align the error message to center
Err_Msg = "<center><li>Sorry, You have not contributed enough posts on the forum to email other members.</li></center>"
thanking u andy
|
|
|
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 21 July 2009 : 02:58:07
|
CF, I did try the provided <center> tag and the message still aligns left, for some strange reason. I also tried to remove the <li> tags but no success. I wonder if there is an alternative. |
|
|
iane87
Starting Member
USA
42 Posts |
Posted - 21 July 2009 : 04:28:35
|
Try using the newer style tags instead
Err_Msg = "<span style='text-align: center'>Sorry, You have not contributed enough posts on the forum to email other members.</span>"
If that doesn't work post some of the HTML that is outputted around the error message another tag could be affecting it too. |
Twitter MOD | Search Provider MOD | W3C Valid RSS MOD | Google Translate MOD |
Edited by - iane87 on 21 July 2009 04:33:11 |
|
|
Etymon
Advanced Member
United States
2385 Posts |
Posted - 21 July 2009 : 05:03:33
|
You are centering just that one Err_Msg but there are others and each one has it's own message. You have to find the final Err_Msg where it actually sits in the table row and then control it from there with either HTML or CSS or a SPAN or a DIV - whatever is your preference. Try that and see where you get.
You are looking for something like this:
<td><font=""whatever goes here like face, color, size"">" & Err_Msg & "</font></td>
or it could be in between something like that and just look like this:
Response.Write Err_Msg |
Edited by - Etymon on 21 July 2009 05:06:04 |
|
|
|
Topic |
|