PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
pan
Involved
Involved


Joined: Jul 25, 2006
Posts: 354

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

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: 2456
Location: Pittsburgh, Pennsylvania

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

This is a simple edit have you tried?
View user's profile Send private message
pan
Involved
Involved


Joined: Jul 25, 2006
Posts: 354

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

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

There are still brackets there though


[ ]
View user's profile Send private message
Palbin
Site Admin


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

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

Do a search for the constant.
View user's profile Send private message
pan
Involved
Involved


Joined: Jul 25, 2006
Posts: 354

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

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
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


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

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

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.
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum