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)

squawell 11-22-2001 06:43 AM

Quote:

Originally posted by FireFly

After you installed it, it's in the postbit template.

FireFly i cann't find this word why in postbit

template??why??should i reinstall this hack again~~

Admin 11-22-2001 11:43 AM

Hmm, sorry.
It should be in the postbit_editedreason template.

squawell 11-22-2001 12:53 PM

Quote:

Originally posted by FireFly
Hmm, sorry.
It should be in the postbit_editedreason template.

thankz~~~FireFly~~

i find it!!:D

Ambex Net 11-23-2001 11:48 PM

Help I'm lost on this hack :confused:. Sorry to sound dumb but I just bought a vB licence today, I got my color scheme all done so I decicded to start to do some hacks and this is nothing like ubb lol, well actualy the hacking part but anywho I get to this step:

Changes to
postbit template (1)

postbit template

Step 1 of 1 FIND:


$post[editedby]

AFTER that ADD
<br>$post[editedreason]


Now where are these template or postbit template files :confused:. This is probely a stupid question b/c I bet it's right under my nose but I never did a vB hack yet and this would be my first one so I'm just wondering where the heck this is. All help apprecaited, thanks!

Ambex Net 11-23-2001 11:57 PM

I really hate to double post but I just wanted to say a friend of mine showed me where the templates were and that i had to click show all. I knew it was right under my nose ;)...anyways it's install now. and awesome hack!

Nupraptor 11-24-2001 04:05 PM

Going to try it soon. :)

Prezident 11-24-2001 07:19 PM

Very cool. Love the install script.

Thanks for the hack...

SgtSling 11-25-2001 01:23 AM

I installed this hack.. but for some reason..
my posts do not say
"Edited By"

anymore

I made sure that this was enabled in the admin panel.. so it should appear like before..

Any clues?

Ambex Net 11-25-2001 01:27 AM

Quote:

Originally posted by SgtSling
I installed this hack.. but for some reason..
my posts do not say
"Edited By"

anymore

I made sure that this was enabled in the admin panel.. so it should appear like before..

Any clues?

Maybe you deleted a code segment that had to do with that or maybe you deleted something in a template. I dunno just a thought on what might've happened.

SgtSling 11-25-2001 01:56 AM

Ok I found out why!

Something is messed up in my functions.php!

The "edited by"
won't show when I make the new changes in it.

anyone see anything the matter with this?

I am including the chunk on code before and after on my functions.php

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]);

// 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]) {
$post[foldericon]="<img src=\"{imagesfolder}/posticonnew.gif\" border=\"0\" alt=\"New Post\">";
} else {
$post[foldericon]="<img src=\"{imagesfolder}/posticon.gif\" border=\"0\" alt=\"Old Post\">";
}
if (!$forum[allowicons] or $post[iconid]==0) {
if ($showdeficon) {
$post[icon]='<img src="{imagesfolder}/icons/icon1.gif" border="0" alt="">';


All times are GMT. The time now is 07:01 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.01243 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_quote_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