Author Topic: Feature Requests  (Read 3578 times)

Offline flp

  • Newbie
  • *****
  • Posts: 2
  • Karma: +0/-0
Feature Requests
« on: March 02, 2013, 05:01:12 PM »
phpEnter Web Hosting
Hi,

I really like your script - very powerful!

Ideas:

Would it be possible to have an option when submitting a url for an article to be able to submit an image url  for a picture in the article? And option to submit no picture at all?

Would it be possible to implement an option for the admin to turn off/on registration of new users?


And finally how about all new users moving up from just a commentator to other user levels based on their activity on the web and/or on their comments ratings?

----Just some ideas.

Thank you.

F.
« Last Edit: January 01, 1970, 03:00:00 AM by Guest »

Offline aleks

  • Administrator
  • Full Member
  • *****
  • Posts: 266
  • Karma: +0/-0
Re: Feature Requests
« Reply #1 on: March 04, 2013, 10:49:42 AM »
Quote
Would it be possible to implement an option for the admin to turn off/on registration of new users?
This feature will be available in next release.
« Last Edit: January 01, 1970, 03:00:00 AM by Guest »

Offline flp

  • Newbie
  • *****
  • Posts: 2
  • Karma: +0/-0
Re: Feature Requests
« Reply #2 on: March 05, 2013, 03:31:41 AM »
Thank you for your answer.

Would it be possible to implement a statistic of an activity for each user? Number of comments, posted news etc.

F.
« Last Edit: January 01, 1970, 03:00:00 AM by Guest »

Offline Jeremy

  • Full Member
  • *****
  • Posts: 240
  • Karma: +1/-0
Re: Feature Requests
« Reply #3 on: March 06, 2013, 12:17:43 PM »
Only number of posted news

post.php

Find this code:

Code: [Select]
$sql3 = $conn->Prepare('UPDATE categori SET ccount = ccount +  ? WHERE catid = ?');
if($conn->Execute($sql3,array("1",$idblog)) === false) {
print '<br /><div id="error">error inserting[1]: '.$conn->ErrorMsg().'</div><br />';
}

Immediately after this code add this:

Code: [Select]
       $sql4 = $conn->Prepare('UPDATE users SET nofposts = nofposts +  ? WHERE usid = ?');
if($conn->Execute($sql4,array("1",$kori)) === false) {
print '<br /><div id="error">error inserting[1]: '.$conn->ErrorMsg().'</div><br />';
}

members.php

Replace this code:

Code: [Select]
$_query = sprintf("SELECT SQL_CALC_FOUND_ROWS * FROM users ORDER by usid DESC LIMIT %d,%d", SmartyPaginate::getCurrentIndex(),SmartyPaginate::getLimit());
With this code:

Code: [Select]
$_query = sprintf("SELECT SQL_CALC_FOUND_ROWS * FROM users ORDER by nofposts DESC LIMIT %d,%d", SmartyPaginate::getCurrentIndex(),SmartyPaginate::getLimit());

themes/THEME/members.php

Replace code:

Code: [Select]
{#since#} {$results[results].date}, {#level#}: {if $results[results].privilege eq 1}{#basic#}{/if}{if $results[results].privilege eq 2}{#editor#}{/if}{if $results[results].privilege eq 3}{#journalist#}{/if}.
With:

Code: [Select]
{#since#} {$results[results].date}, {#level#}: {if $results[results].privilege eq 1}{#basic#}{/if}{if $results[results].privilege eq 2}{#editor#}{/if}{if $results[results].privilege eq 3}{#journalist#}{/if}
, Posted news: {$results[results].nofposts}
« Last Edit: January 01, 1970, 03:00:00 AM by Guest »