reza1217
11-25-2008, 08:22 AM
Mod Title: Advanced directory stats
Last Updated: 24-11-2008
Supported by Mod Developer: No
Where to Download: This thread
Support Via This Thread or Download Site: This Thread
Compatible With: V3.3
I have implemented an advanced directory statistics which is an expansion to the default one. This shows the sites that were rejected along with a percentage of inclusion possibility. I believe it will help established directories to keep away unworthy/junk submission.
You can check out a demo at http://linkpls.com (http://linkpls.com/) the statistics box on the right side column.
You need to edit both source code and template file in order for this to function.
First open up init.php and find the following code:
Content visible to registered users only.And add below:
Content visible to registered users only. The above code will calculate the percentage of inclusion and pass it to smarty. However, the code shown here will calculate the percentage using the total sites submitted including sites that are pending. This is good for keeping those junk submissions away and sites that want to encourage people to buy featured listing instead. Remember, using this code will show a very low percentage if you have a lot of sites pending approval.
Optional: If you don’t want to include pending links and rather want to calculate the percentage using sites that are verified. Use the following code instead:
Content visible to registered users only. Now save and upload to replace the init.php file on your site.
Edit the template sidebar.tpl or wherever you have the stats code which might look like the following (This maybe different depending on the template you are using). You need to know a little about smarty, html and CSS to edit the file as the stats code are different in each template. The code I am using is as follows:
Content visible to registered users only. Add the following css to the style.css file in your templates/template_name/style/ folder. You can edit this code as you desire to change the look of your stats code.
Content visible to registered users only. Let me know what you guys think.
Last Updated: 24-11-2008
Supported by Mod Developer: No
Where to Download: This thread
Support Via This Thread or Download Site: This Thread
Compatible With: V3.3
I have implemented an advanced directory statistics which is an expansion to the default one. This shows the sites that were rejected along with a percentage of inclusion possibility. I believe it will help established directories to keep away unworthy/junk submission.
You can check out a demo at http://linkpls.com (http://linkpls.com/) the statistics box on the right side column.
You need to edit both source code and template file in order for this to function.
First open up init.php and find the following code:
Content visible to registered users only.And add below:
Content visible to registered users only. The above code will calculate the percentage of inclusion and pass it to smarty. However, the code shown here will calculate the percentage using the total sites submitted including sites that are pending. This is good for keeping those junk submissions away and sites that want to encourage people to buy featured listing instead. Remember, using this code will show a very low percentage if you have a lot of sites pending approval.
Optional: If you don’t want to include pending links and rather want to calculate the percentage using sites that are verified. Use the following code instead:
Content visible to registered users only. Now save and upload to replace the init.php file on your site.
Edit the template sidebar.tpl or wherever you have the stats code which might look like the following (This maybe different depending on the template you are using). You need to know a little about smarty, html and CSS to edit the file as the stats code are different in each template. The code I am using is as follows:
Content visible to registered users only. Add the following css to the style.css file in your templates/template_name/style/ folder. You can edit this code as you desire to change the look of your stats code.
Content visible to registered users only. Let me know what you guys think.