View Single Post
  #2  
Old 18th September 2012, 21:46
kutup95 kutup95 is offline
Senior Member
 
Join Date: Jun 2012
Turkey
Posts: 20
Default
Quote:
Originally Posted by yupy View Post
Run this SQL query:

Code:
ALTER TABLE `tracker_users` ADD `user_semnatura` text NOT NULL;
Now open CMS\applications\profile/edit.php and find:

Code:
$db->posts_perpage = $_POST['posts_perpage'];
Under add:

Code:
$db->semnatura = $_POST['semnatura'];
Also in the same file search for:

Code:
<tr>
                            <td width="150px">
                                <?php echo _t("Forum posts per page"); ?> :
                            </td>
                            <td>
                                <input type="text" name="posts_perpage" value="<?php echo $acl->posts_perpage ?>" size="40" /><br />
                                (<?php echo _t("0 = default"); ?>)
                            </td>
                        </tr>
Under it add:

Code:
<tr>
                           <!--- Forum Signature By Yupy --->
                            <td width="150px">
                                <?php echo _t("Signature"); ?> :
                            </td>
                            <td>
                                <input type="text" name="semnatura" value="<?php echo $acl->semnatura ?>" size="40" />
                            </td>
                        </tr>
Save and close now open CMS\applications\forums/view-topic.php and find:

Code:
<?php
                        echo htmlformat($db->post_content, true);

                        if ($db->post_edited_by != 0) {
                            $edited = new Acl($db->post_edited_by);
                            echo "<br /><br /><small>" . _t("Last edited") . " " . get_date($db->post_edited_date) . " " . _t("by") . " <a href='" . page("profile", "view", cleanurl($edited->name)) . "'>" . $edited->name . "</a></small>";
                        }
                        ?>
Right under add:

Code:
<br />
                        <br /> 
                        <hr width="50%" align="left">
                        <?php 
                        //Forum Signature By Yupy... 
                        echo bbcodes($acl->semnatura); 
                        ?>
Done...

please caps ?
Reply With Quote