Navigation

Pligg Support

1
Question: Category Doubt
Answer: provided by paulmac 256 days ago
- 0 + I think you can but I suspect it might be just as much hard work. If you have phpmyadmin on your server then you can look at the structure of the MySQL database that powers your Pligg website. There is a table called pligg_categories, which holds all the details of the catergories that make up your website. If you create an excel file with one line entry (row) for each of your catergories and a column equivalent to each of the fields (columns) in the table, populate it with the relevant data, save the file as a csv file - hint don't include any commas in your catergory titles - then you can import the file into your pligg database using the import command. You should be able to work out some of the field contents fairly easy; for example the catergory_parent field by looking at the field contents for the records you already have. The are 2 fields; rgt and lft, which I think are to do with the sort order of the catergories in a dropdown menu list. I haven't worked out how these 2 fields work yet. You could try importing with these blank and see what happens then if the import doesn't work, just go back into phpmyadmin and delete the records (rows). If you haven't used phpMyAdmin before don't be put off by what you see, look at it logically and you will see the structure there. I'm guessing you've already customised some of the pligg code to get your site to the point where it currently is. You will just have to get your hands dirty.

Good luck

Paul
2
Question: Password length
Answer: provided by paulmac 258 days ago
- 0 + Not exactly the answer I was looking for, rather where in the numerous files I could find out where the limit is controlled. However, I found what I was looking for in register.php, around line 123 it has the following code:

if(strlen($password) < 5 ) { // if password is less than 5 characters

$form_password_error[] = $main_smarty->get_config_vars('PLIGG_Visual_Register_Error_FiveCharPass');

$error = true;

I'm guessing that changing the '5' to say 10 will do the trick.

Thanks

Paul
2
Question: Password length
Answer: provided by paulmac 258 days ago
- 0 + Mmmm, not exactly the answere I was looking, rather I wanted to know ehger in the numerous system files was the password length conntrolled. However i found it in register.php, line 123 has the following code

if(strlen($password) < 5 ) { // if password is less than 5 characters

$form_password_error[] = $main_smarty->get_config_vars('PLIGG_Visual_Register_Error_FiveCharPass');

$error = true;

This looks like the rigth place to me, chaning the 5 to a 10 should do the trick, adding further format restrictions should be fairly staright forward.

Thanks

Paul
2
Question: How to show customized homepage rather than the popular stories ?
Answer: provided by paulmac 258 days ago
- 0 + Hi sayog, I've alraedy provided an answer to this in one of my otehr postings, do a search on front page and it should turn up.

Regards

Paul
2
Question: Show a specific numbered article in a particular position
Answer: provided by paulmac 267 days ago
- 1 + Hi nellaitamil, Could you post how you did it so that others can benefit?
3
Question: Front page content
Answer: provided by paulmac 278 days ago
- 1 + Hi,

I think I've worked out how to do this. In index_center.tpl I changed

{ if !$link_summary_output && $pagename == 'index' && count($templatelite.get) == 0 } - near the top of the page to

{if $pagename == 'index' && count($templatelite.get) == 0}

and near the bottom changed

{/if}

{$link_summary_output}

to:

{else}

{$link_summary_output}

{/if}

seems to do what I wanted - so far so good

Paul
3
Question: Front page content
Answer: provided by paulmac 278 days ago
- 1 + Open up index_center.tpl using the template editor and you will find the "Welcome to Pligg CMS!" text about 10 or so lines into the tempalte after

{* Welcome message for new installations *}



Delete the text, not the above tag, and replace it with what you want - text and HTML

Paul
2
Question: How can I create 'Question Answer' website using Pligg?
Answer: provided by paulmac 278 days ago
- 2 + Hi sayog,

I'm in the process of doing the same thing and have done the following so far:

+ Open up languageslang_english.conf - this contains all the tags that appear under boxes, page headers etc etc. Many of these are built round a site that collates links to stories from otehr sites. You will need to replace the word 'story' with 'submission' or something similar. What I've done is comment out the default line with // and then make a copy of my version of the line, then you can always go back :)

+ Under admin/settings/stories I've set 'Require a URL when Submitting' to false, 'Show the URL Input Box' to false, 'Validate URL' to false

+ Go into Admin/Manage/Catergories amd add in the catergories and sub-catergories that you want people to do their Q&A on.

+ I suggest to add a site rules catergory and set it to Admin only access, also for the News catergory

You will also need to empty the cache directory for the lang_english.conf changes to take effect. I read somewhere there is a setting in admin to do this but haven't found it yet.

The page contents are stored in the template files, use the template editor to edit the content. Work through the files making small changes and see what happens. If you have any experience of programming you shoudl be able to follow the lgicc and work out what is going on. index_centre.tpl is a good place to start. If you want to comment out a smarty tag with normal HTML comment tags then you will need to remove the curly brackets { } to see the effect - just leave yourself a comment to the effect so you can go back.

That's as far as I have got - hope this helps - good luck

Paul
2
Question: How can I create 'Question Answer' website using Pligg?
Answer: provided by paulmac 278 days ago
- 1 + 1. Go to Admin/Catergories/Add Catergory - Set 'Required Level To Post' to Admin

2. This will be via the style sheet for the site. Goto Admin/Templates/Template editor and open the css files, find the css tag associated with the element you are trying to change - use Firefox DOM Inspector or IE equivalent to identify the element and the relevant css tag for the part of the page you are interested in - and amend it.
2
Question: How can I create 'Question Answer' website using Pligg?
Answer: provided by paulmac 278 days ago
- 1 + Hi sayog, For my Q&A site I wanted a front page briefly describing the site purpose and overview to always be the diaplyed page when people landed on the site - if you want to do this see my posting on front page content and the answer I worked out.