Advertise Here
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
News
: Welcome to eMoneySpace!
Feb 02, 2023 06:17 am
Home
Search
Login
Register
eMoneySpace
»
Webmaster's Corner
»
Developer Board
»
[2nd UPDATE] Nice Additions For Developz's Warning Add-On from GSBux
[2nd UPDATE] Nice Additions For Developz's Warning Add-On from GSBux
Pages: [
1
]
« previous
next »
Print
Author
Topic: [2nd UPDATE] Nice Additions For Developz's Warning Add-On from GSBux (Read 4221 times)
gsbux
Reputation: (
+11
)
Offline
Gender:
Posts: 1633
Referrals: 34
[2nd UPDATE] Nice Additions For Developz's Warning Add-On from GSBux
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.
«
Last Edit: Sep 04, 2010 10:21 am by gsbux
»
Logged
Rjs725
Reputation: (
+11
)
Offline
Gender:
Posts: 1349
Referrals: 100
Re: Nice Addition For Admins Who Uses Developz's Warning Add-On
Reply #1:
Aug 23, 2010 04:52 pm
Quote from: gsbux on Aug 23, 2010 02:26 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.
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:
Posts: 1633
Referrals: 34
Re: Nice Addition For Admins Who Uses Developz's Warning Add-On
Reply #2:
Aug 23, 2010 05:03 pm
Quote from: Rjs725 on Aug 23, 2010 04:52 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
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
Additionally, it will always show the message if there is a warning, the message is not temporary. So, nobody can forget his/her warning
Logged
Addons
Reputation: (
+10
)
Offline
Gender:
Posts: 2179
Referrals: 3
Re: Nice Addition For Admins Who Uses Developz's Warning Add-On
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:
Posts: 1633
Referrals: 34
Re: Nice Addition For Admins Who Uses Developz's Warning Add-On
Reply #4:
Aug 30, 2010 11:12 am
Quote from: Addons on Aug 30, 2010 11:02 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:
Posts: 2179
Referrals: 3
Re: Nice Addition For Admins Who Uses Developz's Warning Add-On
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
Re: Nice Addition For Admins Who Uses Developz's Warning Add-On
Reply #6:
Sep 01, 2010 05:01 pm
nice job gs
Logged
Play a video game and get paid!!!!
gsbux
Reputation: (
+11
)
Offline
Gender:
Posts: 1633
Referrals: 34
Re: Nice Addition For Admins Who Uses Developz's Warning Add-On
Reply #7:
Sep 02, 2010 03:02 am
Quote from: valkerion on Sep 01, 2010 05:01 pm
nice job gs
When I share the temporarily shown code, it will be better
Logged
gsbux
Reputation: (
+11
)
Offline
Gender:
Posts: 1633
Referrals: 34
Re: [UPDATED] Nice Addition For Admins Who Uses Developz's Warning Add-On
Reply #8:
Sep 03, 2010 08:04 am
Quote from: Addons on Aug 30, 2010 11:02 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:
Posts: 2179
Referrals: 3
Re: [UPDATED] Nice Addition For Admins Who Uses Developz's Warning Add-On
Reply #9:
Sep 03, 2010 08:51 am
thanks for ur effort
Second one is good but ur first one is great
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:
Posts: 1633
Referrals: 34
Re: [UPDATED] Nice Addition For Admins Who Uses Developz's Warning Add-On
Reply #10:
Sep 03, 2010 09:02 am
Quote from: Addons on Sep 03, 2010 08:51 am
thanks for ur effort
Second one is good but ur first one is great
I will talk to other coders if anyone can make 1 time noti. for
Warning
&
Massages
once again thanks
You are welcome
Logged
gsbux
Reputation: (
+11
)
Offline
Gender:
Posts: 1633
Referrals: 34
Re: [2nd UPDATE] Nice Additions For Developz's Warning Add-On from GSBux
Reply #11:
Sep 04, 2010 10:22 am
Admin Panel/Manage Members/[USERNAME]/Overview information has been added
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EMS
-----------------------------
=> Forum Rules, FAQ and Announcements
=> Suggestions, Feedback and Forum Support
=> EMS Games & Contests
-----------------------------
Get Paid To Websites
-----------------------------
=> General Discussion
=> Crypto Currencies
=> Praises and Applause
=> Complaints
=> New and Pending Websites
=> Suspect Websites
=> Stable Websites
=> Downline Builder
=> Referral Exchange
=> Referral Deals
-----------------------------
Webmaster's Corner
-----------------------------
=> Developer Board
=> List your Website or Blog
=> Industry Announcements
=> Advertising Offers
-----------------------------
Members Lounge
-----------------------------
=> Chit-Chat Main
=> Buy and Sell
=> Introduce Yourself!
=> Non English Forum
=> Advertise Here