#1 (permalink)  
Old 03-31-2008, 12:33 AM
Active Member
 
Join Date: Nov 2007
Posts: 174
mpdaddy is on a distinguished road
Default Improved Link Validation Mod

I have a new mod that I would like to enter into the Mod of the Month Contest. It totally changes the way IndexU validates links. In reality, it makes it easier and quicker to validate a large number of links.

I have set this mod up at my demo website. I have added 16 links to the demo, feel free to test it out for yourself. The demo is reset every hour and is limited to functions related to my mods. The links are:

User Area: http://www.scriptdragon.com/demo/

Admin Area http://www.scriptdragon.com/demo/admin/

Admin area login:
U:admin
P:admin

Details

Right now when you validate links, you need to:
  • Click the checkbox next to each item you want to "Approve".
  • Click on the "Approve" button.
  • Click the checkbox next to each item you want to "Reject with Notice".
  • Click on the "Reject with Notice" button.
  • Click the checkbox next to each item you want to "Reject Silently".
  • Click on the "Reject Silently" button.

If you had 40 links to validate, you would need to validate 3 pages of links. If they were all approved, you would have to submit the page 3 times to validate them all. If you wanted to approve some, reject some with notice, and reject silently a few others, you could maybe have to submit the form 10 or more times. This is not efficient.

With this mod, when you validate links, you need to:
  • Click the radio box to either "Approve", "Reject with Notice", or "Reject Silently" each link.
  • Click on the "Submit" button.

If you had 40 links to validate, you could show all 40 on one page and validate them all in 1-click. Now, that is efficient.

Now for the fun part, installing the mod.... Here we go.

Step 1 - Make a backup of the following files:
  • IndexU\indexu_5_4_0\upload\admin\link_validate.php
  • IndexU\indexu_5_4_0\upload\admin_tpl\link_validate .html
  • IndexU\indexu_5_4_0\upload\admin_tpl\link_validate _rows.html
  • IndexU\indexu_5_4_0\upload\lib\link.class.php

Note: Please do not skip making a backup of your files. If you need to uninstall the mod or have a conflict with another mod, these backup files will be needed.



Step 2 - IndexU\indexu_5_4_0\upload\admin\link_validate.php :

This file had major changes to it, therefore editing may not be appropriate for you. For this reason, I have added this file as an attachment to this thread. This file should replace your exising link_validate.php file. Please Note: If you have made any prior modifications to your link_validate.php, you should add those modifications to this file. If you have downloaded this file, you can skip this step. If not, here is what you need to do.

Open up the file admin\link_validate.php and select everything (ctrl+a), now hit the delete key. Once you have a blank file to work with, insert this code into the file:

Code:
Content visible to License Owner only.
Now save this file, we are done with it.



Step 3 - Editing IndexU\indexu_5_4_0\upload\admin_tpl\link_validate .html:

Find this code:
Code:
Content visible to License Owner only.
And replace it with this code:
Code:
Content visible to License Owner only.

Now, find this code:
Code:
Content visible to License Owner only.
And replace it with this code:
Code:
Content visible to License Owner only.
What we did above:
  • We removed the "Select All" buttons from both the top and bottom of the page.
  • We added a dropdown to select the number of results to display on the page.
  • We removed the "Approve", "Reject with Notice", and "Reject Silently" buttons from the bottom of the page.
  • We replaced those buttons with a "Submit" button.

You are done with this file, save it.




Step 4 - Editing IndexU\indexu_5_4_0\upload\admin_tpl\link_validate _rows.html:

Find the code like this:
Code:
Content visible to License Owner only.
Replace it with this:
Code:
Content visible to License Owner only.

Then find this code:
Code:
Content visible to License Owner only.
Directly below it, insert this:
Code:
Content visible to License Owner only.
This section should now look like this:
Code:
Content visible to License Owner only.
What we did above:
  • We removed the checkbox next to each link.
  • We added radio buttons below each link listing.

You are done with this file, save it.



Step 5 - Editing IndexU\indexu_5_4_0\upload\lib\link.class.php:

Find the code like this: Hint: It's near line 1027
Code:
Content visible to License Owner only.
Replace it with this code:
Code:
Content visible to License Owner only.

What we did above:
  • We added the variable "$adds" which is called from the link_validate_rows.html file. It displays the radio buttons.
  • We assigned the variable "$adds" so the template file knows what to do when "<%$adds%>" is called.


You are done with this file, save it.

Step 6 - Uploading:
Upload all the files you edited. If you downloaded the file (link_validate.php) attached to this thread, make sure you upload it too.


You are done installing this mod. It should now look like my demo.

I want to thank FSGDAG for the idea to create this mod. He gave me the idea and tested it on his website at http://www.Web4URL.com.

This mod is also available for Free at my mod store at http://store.scriptdragon.com. I have many more mods, both paid and Free, available and installation is always free (I will also install my Free mods for Free).
Attached Files
File Type: zip link_validate.zip (2.2 KB, 12 views)
__________________
For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com
Reply With Quote
  #2 (permalink)  
Old 03-31-2008, 01:19 AM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default

I've got to tell everyone that this MOD is saving me a TON of time and makes the validating link process in IndexU easier!!!

mydaddy did a GREAT job on this!!!! He does a really good job on all of his MODs. I have a couple of his installed now and his MODs are a GREAT asset to the IndexU community!
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #3 (permalink)  
Old 03-31-2008, 08:33 AM
Registered User
 
Join Date: Feb 2008
Location: Winnipeg Canada
Posts: 23
fxdir is on a distinguished road
Default

wow , really amazing mod !
Installed , everything works perfect , I just modified a little - inserted also Reciprocal Url field for every link
Thank you !
Reply With Quote
  #4 (permalink)  
Old 03-31-2008, 01:59 PM
esm's Avatar
esm esm is offline
Active Member
 
Join Date: Apr 2003
Location: Atlanta GA
Posts: 3,411
esm is on a distinguished road
Default

Code:
Content visible to License Owner only.
Shucks...!!! and here I thought bruce was going to award my little IP MOD the winner of the $100 MOD-of-the-Month for this month (yeah, right. like that was really going to happen ).

Dagnabit...*&#^#%&@! Foiled again....! Curses...!




.
__________________
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

.
Reply With Quote
  #5 (permalink)  
Old 04-06-2008, 08:49 AM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

nice
__________________
Some interesting INDEXU bits :http://www.indexu.co.uk
Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )
Reply With Quote
  #6 (permalink)  
Old 04-09-2008, 06:55 PM
esm's Avatar
esm esm is offline
Active Member
 
Join Date: Apr 2003
Location: Atlanta GA
Posts: 3,411
esm is on a distinguished road
Default

Mod Of The Month Winner - March

all of what I said was with tongue-in-cheek. Well, except for the part about yours being a really great MOD.

Seriously, though, congratulations. Very nicely done.



.
__________________
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

.
Reply With Quote
  #7 (permalink)  
Old 04-09-2008, 10:04 PM
Active Member
 
Join Date: Nov 2007
Posts: 174
mpdaddy is on a distinguished road
Default

Thank You
__________________
For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com
Reply With Quote
  #8 (permalink)  
Old 04-10-2008, 12:33 AM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default

WAHOOO!!!!! Congrats mpdaddy!!!!
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #9 (permalink)  
Old 04-13-2008, 01:45 PM
Registered User
 
Join Date: Feb 2008
Posts: 22
secero is on a distinguished road
Default

works this also with version 6.0?
Reply With Quote
  #10 (permalink)  
Old 04-13-2008, 05:45 PM
Active Member
 
Join Date: Nov 2007
Posts: 174
mpdaddy is on a distinguished road
Default

It does not work with 6.0 yet. I am waiting for an official release, then I will make all my mods compatible with the new version. Each time a new IndexU version is released, I will upgrade all my mods.

Regards
Wayne
__________________
For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com
Reply With Quote
  #11 (permalink)  
Old 04-15-2008, 03:17 PM
Registered User
 
Join Date: Feb 2008
Posts: 22
secero is on a distinguished road
Default

ok, thank you.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Field validation beto v5.x 3 12-24-2006 09:48 AM
User Validation Fix mbarnett v5.x 1 08-20-2006 08:55 PM
How to allow registration with email validation vittle v5.x 4 03-05-2006 06:26 AM
improved serchlog tjoerg v3.2 3 05-19-2003 10:20 PM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 05:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate