Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help
Author Message
pan
Involved
Involved



Joined: Jul 25, 2006
Posts: 354

PostPosted: Fri Jun 26, 2009 4:44 pm Reply with quote

I just want every comment to be made using the 'Post comment' button


Last edited by pan on Thu Oct 29, 2009 10:15 pm; edited 1 time in total 
View user's profile Send private message
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sat Jun 27, 2009 12:20 am Reply with quote

This is a simple edit have you tried?

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
pan







PostPosted: Sun Jun 28, 2009 5:48 pm Reply with quote

Yes, the most I could find was in the language file and I removed 'Reply to this'

There are still brackets there though


[ ]
 
Palbin







PostPosted: Sun Jun 28, 2009 7:05 pm Reply with quote

Do a search for the constant.
 
pan







PostPosted: Sun Jun 28, 2009 11:12 pm Reply with quote

Palbin wrote:
Do a search for the constant.

I've been able to find it in the other file inside the survey module

But I'm not sure how much I can delete, and I don't want to wreck it
 
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Mon Jun 29, 2009 10:00 am Reply with quote

in modules/Surveys/comments.php look under function DisplayTopic and find this
Code:
if ($anonpost==1 OR is_admin($admin) OR is_user($user)) {

            echo ' [ <a href="modules.php?name='.$module_name.'&amp;file=comments&amp;op=Reply&amp;pid='.$tid.'&amp;pollID='.$pollID.'&amp;mode='.$mode.'&amp;order='.$order.'&amp;thold='.$thold.'">'._REPLY.'</a>';
        }
        if ($pid != 0) {
            $row4 = $db->sql_fetchrow($db->sql_query('SELECT pid from '.$prefix.'_pollcomments where tid=\''.$pid.'\''));
            $erin = intval($row4['pid']);
            echo '| <a href="modules.php?name='.$module_name.'&amp;file=comments&amp;pollID='.$pollID.'&amp;pid='.$erin.'&amp;mode='.$mode.'&amp;order='.$order.'&amp;thold='.$thold.'">'._PARENT.'</a>';
        }
        modtwo($tid, $score, $reason);

        if(is_admin($admin)) {
            echo ' | <a href="'.$admin_file.'.php?op=RemovePollComment&amp;tid='.$tid.'&amp;pollID='.$pollID.'">'._DELETE.'</a> ]';
        } elseif ($anonpost != 0 OR is_admin($admin) OR is_user($user)) {
            echo ' ]';
        }
        echo '<br /><br />';

        DisplayKids($tid, $mode, $order, $thold, $level);
        if($hr) echo '<hr noshade="noshade" size="1" />';
        $count_times += 1;
        CloseTable();


That is where you need to edit this out at. It's around line 617 to 637. You will need to comment out some, but not all of this. Just save a backup of the file and play around with it.

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©