Members: 16,996
Threads: 38,866
Posts: 159,475
Online: 43

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 14.05.2004, 16:02   #1 (permalink)
Expert Mamber
 
mrjinx's Avatar
 
Join Date: Apr 2004
Location: Germany
Posts: 433
mrjinx is on a distinguished road
Question AkoComment - change settings - user must be author> to post comments

hi everyone

can anybody tell me if it`s possible to change the settings of akocomment in a way, that only users with "author" or even higher rights are able to create comments?

thx for answers
mrjinx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 14.05.2004, 19:05   #2 (permalink)
Senior Mamber
 
Join Date: Apr 2004
Location: Cordoba, Argentina
Posts: 148
fede-k3 is on a distinguished road
Send a message via MSN to fede-k3
Default Re: AkoComment - change settings

Go to akogallery.php file

Find :
$is_editor = (strtolower($my->usertype) == 'editor' || strtolower($my->usertype) == 'administrator' || strtolower($my->usertype) == 'superadministrator' );

and change editor for 'author' or make another one, just like it is...

Then go to sub_commentpic.php and replace the code after #Save New Values, until "?>" with this one...

#New Code - Only authors can comment...
if ($is_editor) {
if ($id) {
# Save new values
$cmtip = getenv('REMOTE_ADDR');
$cmtdate = time();
# Clear any HTML
$cmttext = strip_tags($cmttext);
$cmtname = strip_tags($cmtname);
$query1 = "INSERT INTO ".$mosConfig_dbprefix."akogallery_comments VALUES ('', '$id', '$cmtip', '$cmtname', '$cmttext', '$cmtdate', '1')";
$database->openConnectionNoReturn($query1);

# Get back to details page
echo "<SCRIPT> alert('Comentario Agregado!.'); document.location.href='index.php?option=com_akoga llery&Itemid=$Itemid&func=detail&id=$id';</SCRIPT>";

}
}

I think that would solve the problem...
fede-k3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 15.05.2004, 17:43   #3 (permalink)
Expert Mamber
 
mrjinx's Avatar
 
Join Date: Apr 2004
Location: Germany
Posts: 433
mrjinx is on a distinguished road
Default Re: AkoComment - change settings

Quote:
Originally Posted by fede-k3
Go to akogallery.php file
...
Then go to sub_commentpic.php
..
I think that would solve the problem...
but i`m talking about akocomment and not akogallery.
mrjinx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 15.05.2004, 21:41   #4 (permalink)
Senior Mamber
 
Join Date: Apr 2004
Location: Cordoba, Argentina
Posts: 148
fede-k3 is on a distinguished road
Send a message via MSN to fede-k3
Default Re: AkoComment - change settings

Well, check the code of akogallery and it will help you making the code for the akocomment... it's just code... dont be afraid of it...

not that difficult...
fede-k3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Akocomment from Guest drink182money Mambo 4.5 'How Do I' Questions 9 14.06.2005 21:36
Akocomment Change Guest drink182money Mambo 4.5 General Talk 1 30.06.2004 18:17
change default Nr. of lines in Backend? Tobias Development Discussions 8 28.05.2004 10:36
Change default font size? TerryG Mambo 4.5 'How Do I' Questions 1 02.05.2004 14:57
Change Date Display at Frontpage dingin Mambo 4.5 'How Do I' Questions 5 14.04.2004 11:08


All times are GMT +2. The time now is 12:51.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.