Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Post Edit History (PEH) Alternate Postbit Layout Details »»
Post Edit History (PEH) Alternate Postbit Layout
Version: 1.00, by MThornback MThornback is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Version: 3.6.7 Rating:
Released: 01-15-2007 Last Update: Never Installs: 15
Template Edits
 
No support by the author.

This is simply an alternative to Survivors layout for adding the PEH display within the postbit template....anyone whos seen my few additions here knows I don't do much fancy mostly just what I find useful and think others might too....

What this does:
If no edit exists for the post, it will hide the link, and when an edit is made the link will show up...simple yes?

Instructions(from PEH):

In postbit Find:
Code:
$post[posts]
or

In postbit_legacy find:
Code:
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>

Add Underneath:

Code:
<if condition="$post[editcount]==0">
&nbsp;
<else />
<if condition="$show['edithistorylink'] AND $post[editcount] > '0'">
<a href="edithistory.php?do=viewedithistory&postid=$post[postid]"><phrase 1=$post[editcount]>$vbphrase[saved_edits]</phrase></a>
</if>
</if>

If you use it please click install...it shouldn't need much support...but I'll answer questions as they pop up.....screenshots shouldn't be necessary if its working you'll see the link only on edited posts

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-21-2007, 11:39 PM
MThornback MThornback is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Send me your postbit as it looks now....without the edits....its probably easier for both of us
Reply With Quote
  #13  
Old 05-22-2007, 12:01 PM
MThornback MThornback is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BadgerDog View Post
Yup ...

I even created several test posts, edited them etc, as I thought it just might need to be created first..

I'll send you off a copy of "postbit"....

Did you want me to put the edits back in ( I emoved them when I uninstalled), or just send you "postbit" before I edited for this mod?

Thanks for your help... :up:

Regards,
Badger

Got it, and you have it back again and it should work fine
Reply With Quote
  #14  
Old 05-25-2007, 10:30 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MThornback View Post
Got it, and you have it back again and it should work fine

Ok, got it working.... :up:

I had to remove the hack from postbit and put it ONLY in postbit_legacy...

For whatever reason, that kick started it and it's now working. I like the elegance of the way you've approached it. No edit.. no show save history link... nice..

Thanks for your help...

Regards,
Badger
Reply With Quote
  #15  
Old 05-26-2007, 02:12 AM
MThornback MThornback is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad I could help...I guess knowing which postbit style you used might have been the question for me to ask eh?
Reply With Quote
  #16  
Old 06-14-2007, 03:55 AM
David Lama David Lama is offline
 
Join Date: Apr 2007
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this also work for 3.6.5?

Its not working for me. so i guess no
Reply With Quote
  #17  
Old 06-14-2007, 01:01 PM
dutchbb dutchbb is offline
 
Join Date: Nov 2003
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello David, yes it does. But you first have to install this: https://vborg.vbsupport.ru/showthread.php?t=132708
Reply With Quote
  #18  
Old 06-15-2007, 01:51 AM
MThornback MThornback is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It will only show up once an edit to a post is made david, otherwise it keeps it from cluttering your postbit
Reply With Quote
  #19  
Old 06-22-2007, 04:36 PM
YLP1 YLP1 is offline
 
Join Date: Aug 2004
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone view the history of the post or just admin/mods?
Reply With Quote
  #20  
Old 06-28-2007, 01:40 AM
MThornback MThornback is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by YLP1 View Post
Can anyone view the history of the post or just admin/mods?
This if statement:
Code:
<if condition="$show['edithistorylink'] AND $post[editcount] > '0'">
uses the information you enter in the usergroup settings....if you only allow the admin usergroup...only they'll be able to use it....if thats not how you have it setup...

add:

Code:
AND $post['usergroupid'] == 6
after
Code:
==0
If that isn't clear...let me know
Reply With Quote
  #21  
Old 07-15-2007, 03:25 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Mike ....

Edithistory v1.2.5 has been released....

Can I install it as surviver describes, but simply leave your template edits in-place? I hate to tinker with anything unless I have to.

He says that he now doesn't show link unless there's an edit, so should I out his template edits over yours, or would the result be academic as both do the same thing anyway?

Regards,
Badger
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:36 PM.


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.04427 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete