Pligg CMS Forums


Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials



2 FREE Modules (Top Users Published , Top Users Comments)

Advanced Tutorials for Modifying your Pligg site


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-03-2008, 09:56 AM
grusha's Avatar
Coder/Designer
 
Join Date: Jul 2007
Posts: 187
2 FREE Modules (Top Users Published , Top Users Comments)

Create 2 new modules - Top 10 Users Published and Top 10 Users Comments

Instruction !


1) Upload file to folder your_site/templates/your_template/sidebar_modules/
top_users_comments.tpl
top_users_publ.tpl

2) Open file add_language.conf
And copy code
Code:
//<SECTION>EASYNEWS</SECTION><ADDED>0.5</ADDED> 
PLIGG_Visual_EASYNEWS_TOPUSERS_PUBL = "Top Users Published"
//<SECTION>EASYNEWS</SECTION><ADDED>0.5</ADDED> 
PLIGG_Visual_EASYNEWS_TOPUSERS_COMMENTS = "Top Users Comments"
Paste to your lang_english.conf (folder your_site/languages/)

3) Open file sidebar.tpl(folder your_site/templates/your_template/)
And add this code

Code:
{assign var=sidebar_module value="top_users_publ"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}

{assign var=sidebar_module value="top_users_comments"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
4) Add in your main.css (folder your_site/templates/your_template/css/)
Code:
#topuser_img img{
vertical-align:middle;
padding:2px;
margin:2px;
}
Demo >>
Attached Files
File Type: zip top_users.zip (1.9 KB, 116 views)

PliggTemplates.eu is the most popular Pligg Templates Club.

Last edited by grusha; 06-03-2008 at 04:26 PM.
Reply With Quote
Sponsor
  #2 (permalink)  
Old 06-03-2008, 10:22 AM
graphicsguru's Avatar
Pligg Donor
Pligg Version: 9.9.5
 
Join Date: Aug 2006
Location: USA
Posts: 414
installed works great

my only suggestion would to change to small avatars or not at all
the large avatars take up to much real-estate
I did not play around or try to tweak it yet


very kind of you to make this and offer it free to all of us
Reply With Quote
  #3 (permalink)  
Old 06-03-2008, 10:28 AM
Bargainhunter's Avatar
Casual Pligger
Pligg Version: 9.9
Pligg Template: yget
 
Join Date: May 2008
Posts: 39
Simple to add, and works instructions clear, ecxept where to add add_language.conf and where to find lang_english.conf which would make this fool proof and take any room for error out. Thank you for a free be this easy and that works
Reply With Quote
  #4 (permalink)  
Old 06-03-2008, 01:54 PM
grusha's Avatar
Coder/Designer
 
Join Date: Jul 2007
Posts: 187
Quote:
Originally Posted by graphicsguru View Post
installed works great

my only suggestion would to change to small avatars or not at all
the large avatars take up to much real-estate
I did not play around or try to tweak it yet


very kind of you to make this and offer it free to all of us
If you want small avatars ...change

Code:
$imgsrc = my_pligg_base . User_Upload_Avatar_Folder . "/" .$users->user_login. "_30.jpg";
to

Code:
$imgsrc = my_pligg_base . User_Upload_Avatar_Folder . "/" .$users->user_login. "_15.jpg";
And change

Code:
$imgsrc = my_base_url . my_pligg_base . Default_Gravatar_Large;
to

Code:
$imgsrc = my_base_url . my_pligg_base . Default_Gravatar_Small;

PliggTemplates.eu is the most popular Pligg Templates Club.
Reply With Quote
  #5 (permalink)  
Old 06-03-2008, 10:58 PM
Designer
 
Join Date: Oct 2007
Posts: 38
nice mod, is there any way to sperated into 2 colums? ( 5 - 5 )

luv
Reply With Quote
  #6 (permalink)  
Old 06-06-2008, 11:16 AM
Constant Pligger
 
Join Date: May 2007
Posts: 161
I got blank on those module..
is there any setting that have to turned on?
Reply With Quote
  #7 (permalink)  
Old 06-06-2008, 03:25 PM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 913
Hey very nice mods! I will give it a shot but I'm afraid I don't have much room in the sidebar anymore

Thanks for the mods!
Reply With Quote
  #8 (permalink)  
Old 06-06-2008, 04:41 PM
Designer
Pligg Version: 9.8.2
Pligg Template: Custom
 
Join Date: Jun 2007
Location: Norway [Form BKK]
Posts: 72
Cute & Nice modules
Reply With Quote
  #9 (permalink)  
Old 06-07-2008, 01:15 AM
Constant Pligger
 
Join Date: May 2007
Posts: 161
Ok did manage to get the module show up.
Buy I only got default avatar display although enable_avatar_upload has been set on admin.
Reply With Quote
  #10 (permalink)  
Old 06-24-2008, 02:52 PM
micxuy's Avatar
Casual Pligger
 
Join Date: May 2007
Posts: 89
Yeah same with me; it always shows the default avatar instead of the user's avatar
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Host Yankidank Wiki Articles 2 06-26-2008 02:31 PM
I can populate your site with users Pligglet Off-topic 0 10-10-2007 12:49 AM
can users delete their own comments mizar General Help 1 08-13-2007 06:44 AM
published by number of comments... sixlaneve General Help 0 05-13-2007 12:48 PM

Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Use the coupon code PLIGG at Dreamhost.com to receive a discount of up to $84.00 Make a donation to support Pligg CMS development