vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Reason for post edit (https://vborg.vbsupport.ru/showthread.php?t=32540)

69-FLy-gUy 01-20-2002 09:29 AM

I am having a little problem with this..

When i edit a post.. it just shows the Edited By: blah blha

but doesn't even show the reason at all...?? Any ideas?

Ciao

Shenlong 01-20-2002 03:18 PM

spectacular hack firefly!

Stretchr 01-20-2002 04:17 PM

Great hack. Allows me to pull foot from mouth....and add a smile when I do it! Thanks, FireFly!
:D

69-FLy-gUy 01-20-2002 11:36 PM

Can anyone help me?

Ciao

-Trip

Admin 01-21-2002 08:03 AM

Are you sure you added the right stuff to the edit templates?

69-FLy-gUy 01-21-2002 03:28 PM

Yes, I believe so.. However, I will uninstall this hack, and then reinstall it and i will let you know how it turns out ok?

Thanks for your patience FireFly!

Ciao

69-FLy-gUy 01-22-2002 11:04 AM

Well I hvae uninstalled it, and reinstalled it.. I am guessing it is something to do with functions.php

here is the part of the code that contains where i have to edit...
Code:

if ($post[edituserid]!=0) {
                if ($post['edituserid']!=$post['userid']) {
                        $edituser=getuserinfo($post[edituserid]);
                } else {
                        $edituser = $post;
                }
                $post[edittime]=vbdate($timeformat,$post[editdate]);
                $post[editdate]=vbdate($dateformat,$post[editdate]);

                eval("\$post[editedby] = \"".gettemplate("postbit_editedby")."\";");

// Edit Reason (v1.0)
                if ($post[editreason]= !'') {
                        eval("\$post[editedreason] = \"".gettemplate("postbit_editedreason")."\";");
                } else {
                        $post[editedreason]='';
                }
// Edit Reason (v1.0)

        } else {
                $post[editedby]="";
        }

        if ($post[dateline]>$bbuserinfo[lastvisit]) {


and this is the part in my postbit template ->

Code:

$post[attachment]
        <p>$post[signature]</p>
        <p> $post[editedby]</p> <br> $post[editedreason]

       
        </td>
</tr>
<tr>

Any idea?

Ciao

Admin 01-22-2002 12:00 PM

Looks fine... hmm are you sure you edited editpost.php correctly? Can you see the Edit Reason input box when you edit a box?

69-FLy-gUy 01-22-2002 07:30 PM

Yes. I can see the edit box.. and i can enter in a message.....

Ciao

Stretchr 01-22-2002 10:16 PM

Don't know if someone's already suggested this but if you can see the edit box and nothing shows, make sure you aren't doing what I did. I had the "Show edits by Admins" box ticked to NO. Once I changed that, everything was fine.


All times are GMT. The time now is 08:51 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01117 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete