eMoneySpace
Welcome, Guest. Please login or register.
Did you miss your activation email?
News: Welcome to eMoneySpace! Aug 15, 2022 10:47 pm




[2nd UPDATE] Nice Additions For Developz's Warning Add-On from GSBux
Print
Author Topic: [2nd UPDATE] Nice Additions For Developz's Warning Add-On from GSBux  (Read 4215 times)
gsbux
Reputation: (+11)
*

Offline

Gender: Male
Posts: 1633
Referrals: 34

View Profile
Aug 23, 2010 02:26 pm

Hi,

Do you use Developz's Warnings Add-On?? By adding one of these little codes, you can easily show the number of warnings that a user has.

You can show the member's warning by two different ways: Showing a text message at the profile page or showing just the number of warnings a user has at the account menu.






1) Go to your CPanel, and edit /Members/profile.php


2) Find:
Code:
<script>
function deselectAllHeaders() {
var headerList = document.getElementById('dropBoxHeaderCont').getElementsByTagName(\"div\");
for (var i=0; i<headerList.length; i++) {
if(headerList[i].className == 'dropBoxHeaderSelected') {
headerList[i].className='dropBoxHeader';
}
}
It is around line 250.


3) Just above it, add this code:

Code:
".iif($thismemberinfo[numofwarn] >= 1,"
<div style=\"background-color: lightblue; border: 1px solid green; margin: 10px;\"><center>You have<font color=red> $thismemberinfo[numofwarn]</font> warning(s)!<br><a href=\"http://www.YOURDOMAIN.COM/index.php?view=account&ac=mywarnings&".$url_variables."\">Click here to check them</a></div>")."



OR



You can just show the number of warnings at the account page:

Find:
Code:
<table width=\"530\" height=\"600\" cellspacing=5 cellpadding=0 align=\"center\">
<tr>".iif($thismemberinfo[confirm] ==1,"
<td width=\"155\" valign=\"top\">
<div id=\"dropBoxHeaderCont\">
<div id=\"dropBoxHeaderAccount\" class=\"dropBoxHeader\"><img src=\"images/icons/about.gif\"/> <a href=\"\" onclick=\"loadDropBox('Account'); return false;\">Account Settings</a></div>
<div id=\"dropBoxHeaderPref\" class=\"dropBoxHeader\"><img src=\"images/icons/preferences.gif\"/> <a href=\"\" onclick=\"loadDropBox('Pref'); return false;\">Preferences</a></div>
<div id=\"dropBoxHeaderWarnings\" class=\"dropBoxHeader\"><img src=\"images/icons/warning.png\"/> <a href=\"index.php?view=account&ac=mywarnings&".$url_variables."\">My Warnings ($thismemberinfo[numofwarn])</a></div>
<div id=\"dropBoxHeaderWithdraw\" class=\"dropBoxHeader\"><img src=\"images/icons/money.gif\"/> <a href=\"\" onclick=\"loadDropBox('Withdraw'); return false;\">Request Money</a></div>
<div id=\"dropBoxHeaderStats\" class=\"dropBoxHeader\"><img src=\"images/icons/chart.gif\"/> <a href=\"\" onclick=\"loadDropBox('Stats'); return false;\">Account Stats</a></div>


Change this:
Code:
<div id=\"dropBoxHeaderWarnings\" class=\"dropBoxHeader\"><img src=\"images/icons/warning.png\"/> <a href=\"index.php?view=account&ac=mywarnings&".$url_variables."\">My Warnings</a></div>

with this:
Code:
<div id=\"dropBoxHeaderWarnings\" class=\"dropBoxHeader\"><img src=\"images/icons/warning.png\"/> <a href=\"index.php?view=account&ac=mywarnings&".$url_variables."\">My Warnings ($thismemberinfo[numofwarn])</a></div>

This code will show only the number as follows:




************************************************

If you add the below code to the following destination, you will be able to see how many warnings a user has through your admin panel when you click Members/Manage Members/[USERNAME]/Overview.

1) Go to admin2/edit_user.php and find:

Code:
.
.
.
                                <tr class=\"tableHL2\">
<td>Country:</td>
<td>$userinfo[country]</td>
</tr>
<tr class=\"tableHL2\">
<td>Sex:</td>
<td>$userinfo[sex]</td>
</tr>
.
.
.

It is around line 675 for MRV4.

3) Change it as:
Code:
<tr class=\"tableHL2\">
<td>Country:</td>
<td>$userinfo[country]</td>
</tr>
<tr class=\"tableHL2\">
<td>Number of Warnings</td>
<td>$userinfo[numofwarn]</td>
</tr>
<tr class=\"tableHL2\">
<td>Sex:</td>
<td>$userinfo[sex]</td>
</tr>

4) and it will seem like this:




***************************************






If you face any problem or any error, let me know.

 Smiley
« Last Edit: Sep 04, 2010 10:21 am by gsbux » Logged
Rjs725
Reputation: (+11)
*

Offline

Gender: Male
Posts: 1349
Referrals: 100

View Profile WWW
Reply #1: Aug 23, 2010 04:52 pm

Hi,

Do you use Developz's Warnings Add-On?? By adding this little code, you can easily show the number of warnings that a user has.






1) Go to your CPanel, and edit /Members/profile.php


2) Find:
Code:
<script>
function deselectAllHeaders() {
var headerList = document.getElementById('dropBoxHeaderCont').getElementsByTagName(\"div\");
for (var i=0; i<headerList.length; i++) {
if(headerList[i].className == 'dropBoxHeaderSelected') {
headerList[i].className='dropBoxHeader';
}
}
It is around line 250.


3) Just above it, add this code:

Code:
".iif($thismemberinfo[numofwarn] >= 1,"
<div style=\"background-color: lightblue; border: 1px solid green; margin: 10px;\"><center>You have<font color=red> $thismemberinfo[numofwarn]</font> warning(s)!<br><a href=\"http://www.YOURDOMAIN.COM/index.php?view=account&ac=mywarnings&".$url_variables."\">Click here to check them</a></div>")."


If you face any problem or any error, let me know.

 Smiley


This is actually good. Myself as a user wouldn't usually go in and check my warnings daily so if I did something wrong I wouldnt know it. But with this is gets the users attention
Logged

gsbux
Reputation: (+11)
*

Offline

Gender: Male
Posts: 1633
Referrals: 34

View Profile
Reply #2: Aug 23, 2010 05:03 pm

This is actually good. Myself as a user wouldn't usually go in and check my warnings daily so if I did something wrong I wouldnt know it. But with this is gets the users attention

That was my purpose friend Smiley

Almost nobody goes and checks if there is a warning for him/her or not. This little addition will let everybody know their warning status Smiley Additionally, it will always show the message if there is a warning, the message is not temporary. So, nobody can forget his/her warning Smiley
Logged
Addons
Reputation: (+10)
*

Offline

Gender: Male
Posts: 2179
Referrals: 3


View Profile WWW
Reply #3: Aug 30, 2010 11:02 am

Need 1 time notification, u said u will make that

What about that ?
Logged

Lead Capture Page, Email Template, Image Croping/removing Background etc... PTCevolution, Gen4, Aurora GPT, Xeon, Zeus (Template, Banners)
gsbux
Reputation: (+11)
*

Offline

Gender: Male
Posts: 1633
Referrals: 34

View Profile
Reply #4: Aug 30, 2010 11:12 am

Need 1 time notification, u said u will make that

What about that ?


Nowadays I have problems with my own website and couldn't find time for it.

You may temporarily remove the code, and when I wrote the necessary code, I will pm you.
Logged
Addons
Reputation: (+10)
*

Offline

Gender: Male
Posts: 2179
Referrals: 3


View Profile WWW
Reply #5: Aug 30, 2010 12:10 pm

ok

Logged

Lead Capture Page, Email Template, Image Croping/removing Background etc... PTCevolution, Gen4, Aurora GPT, Xeon, Zeus (Template, Banners)
valkerion
Reputation: (+43)
*

Offline

Posts: 3032
Referrals: 1

Cause I am the game and I want to play

View Profile
Reply #6: Sep 01, 2010 05:01 pm

nice job gs Smiley
Logged

gsbux
Reputation: (+11)
*

Offline

Gender: Male
Posts: 1633
Referrals: 34

View Profile
Reply #7: Sep 02, 2010 03:02 am

nice job gs Smiley

When I share the temporarily shown code, it will be better Smiley
Logged
gsbux
Reputation: (+11)
*

Offline

Gender: Male
Posts: 1633
Referrals: 34

View Profile
Reply #8: Sep 03, 2010 08:04 am

Need 1 time notification, u said u will make that

What about that ?


I couldn't make the 1 time notification, but I considered your opinion about the psychological matter and added a simpler code. I think it is better now.
Logged
Addons
Reputation: (+10)
*

Offline

Gender: Male
Posts: 2179
Referrals: 3


View Profile WWW
Reply #9: Sep 03, 2010 08:51 am

thanks for ur effort

Second one is good but ur first one is great  thumbs up

I will talk to other coders if anyone can make 1 time noti. for Warning & Massages

once again thanks
Logged

Lead Capture Page, Email Template, Image Croping/removing Background etc... PTCevolution, Gen4, Aurora GPT, Xeon, Zeus (Template, Banners)
gsbux
Reputation: (+11)
*

Offline

Gender: Male
Posts: 1633
Referrals: 34

View Profile
Reply #10: Sep 03, 2010 09:02 am

thanks for ur effort

Second one is good but ur first one is great  thumbs up

I will talk to other coders if anyone can make 1 time noti. for Warning & Massages

once again thanks

You are welcome Smiley
Logged
gsbux
Reputation: (+11)
*

Offline

Gender: Male
Posts: 1633
Referrals: 34

View Profile
Reply #11: Sep 04, 2010 10:22 am

Admin Panel/Manage Members/[USERNAME]/Overview  information has been added    Smiley 
Logged
Print
 
Jump to:  
Copyright © 2008-2022 eMoneySpace. All rights reserved.