I'm not a PhpBB or Php guru, but let's see if I can't help a bit:
Question 3
Is it possible (I think so ^^ because I've seen it in other phpbb forums) , is it possible to make some restriction in posting some links ?
for example , users that have less than 10 posts can't post links ..
I belive you can fix this by going to the ACP and making anyone who posts 10+ times a part of a new group which has permision to post links. I've never actualy played with the group settings before so you might end up needing some code to make it work.
Question 2
two buttons that can be pushed by all registered users , love and hate buttons or something like that .. auto increment counter of course
how can I do this ??
for these two questions, places shown in the image are important ..
I'm still trying to get a response to my thread at
viewtopic.php?f=72&t=30612
on the topic of the correct way to do these sorts of things; however, you may find some of the links there useful. But you will still need a php/MySql script for it. Here is a script for reading the rating count in php, I hope it helps you (I give no guarentees: I know php but I'm still new at using it!):
Code: Select all
// ----------------This script will read the rating for the current topic-------------------
// Make sure to replace the values "whatever_database_you_are_using", "category_row_name_here" and "$topic"
//The $topic will need to be changed to the variable PhpBB uses to figure out which topic is being viewed
// create query
$query = "SELECT * FROM whatever_database_you_are_using WHERE category_row_name_here = '$topic'";
// execute query
$result = mysql_query($query) or die ("Error in query: $query. ".mysql_error());
// see if any rows were returned
if (mysql_num_rows($result) > 0) {
// yes
// print them one after another. Line directly below has been commented out as it is not needed since the database has only one result to return. Remove the double backslashes to uncomment that line if you need it to print more then one result. Also remember to remove the double backslashes from the } below ( other wise you will get a syntax error ).
// while($row = mysql_fetch_row($result)) {
echo "$category_row_name_here";
// }
}
else {
// no
// print status message
echo "0";
}
// free result set memory
mysql_free_result($result);
The
$topic will need to be changed to the variable PhpBB uses to figure out which topic is being viewed (I'm not sure what it is called, sorry).
You will still need to edit your data base manualy or with (recomended) phpMyAdmin. You will still need to change the templates and have a $_GET php script made for changing the rating. However, you should be able to do a bit of the work by adding a custom field to the posts via the ACP.
And if you feel realy adventurious, you can even start learning a bit about php and MySQL at this wonderfull, easy reading guide:
http://devzone.zend.com/node/view/id/627
EDIT: I made an error in the code the first time I posted this - the error has now been fixxed.