vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Post Edit History (PEH) (https://vborg.vbsupport.ru/showthread.php?t=132708)

MThornback 05-18-2007 05:55 PM

Quote:

Originally Posted by ChopBam (Post 1250303)
Just installed it. It works fine for me in 3.6.7.
Here's a change I made.
I edited the phrase to "Edit History" like you can see on the first page. However, I also made use of the $post[editcount] feature by not having the "Edit History" link even show up if there is no edit history. Just a small change, but real handy dandy.

Code:

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

Oh, and I suggest that you add to the readme the fact that you need to allow this for usergroups before it'll work. I was confused at first but started reading the thread and found out that way. Other people might not be so fortunate.

OR...you could use the template mod I released that uses some of the exact same code :)

https://vborg.vbsupport.ru/showthread.php?t=136683

ChopBam 05-18-2007 05:58 PM

Wow, I didn't even see yours, and our code does exactly the same thing.

Great minds think alike I guess. :p
I haven't read through this thread, so I may have missed it because of that.

BadgerDog 05-20-2007 04:29 PM

Installed on v3.6.7 PL1 then un-installed as it didn't work.

Edit function never appeared anywhere....

Ensured it was turned ON and all files were in correct places, but no go...

Regards,
Badger

Edit: Sorry meant MThornback 's version of template edits, as I would have preferred those had this worked.

ChopBam 05-25-2007 06:24 PM

You did enable it for usergroups, yes?

BadgerDog 05-25-2007 10:32 PM

Quote:

Originally Posted by ChopBam (Post 1254598)
You did enable it for usergroups, yes?

Yes, but that wasn't my problem...

I am using MThornback's optional version and I did the following...

Quote:

To: MThornback in another thread....

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

vengefuldeath87 06-12-2007 08:25 PM

The default template didnt really work for me, so i made a button for it:

Code:

In postbit Find:

<img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />

Add under:

<if condition="$show['edithistorylink']"><a href="edithistory.php?do=viewedithistory&postid=$post[postid]" rel="nofollow"><phrase 1=$post[editcount]><img src="$stylevar[imgdir_button]/postedits.gif" alt="$vbphrase[saved_edits]" border="0" /></phrase><a></if>

Pop the attached image in your images/buttons dir, and you should be good to go.

you should be able to do similer with the legacy template, but i didnt bother on my board.

Surviver 06-13-2007 03:28 AM

Quote:

Originally Posted by vengefuldeath87 (Post 1267150)
The default template didnt really work for me, so i made a button for it:

Code:

In postbit Find:

<img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />

Add under:

<if condition="$show['edithistorylink']"><a href="edithistory.php?do=viewedithistory&postid=$post[postid]" rel="nofollow"><phrase 1=$post[editcount]><img src="$stylevar[imgdir_button]/postedits.gif" alt="$vbphrase[saved_edits]" border="0" /></phrase><a></if>

Pop the attached image in your images/buttons dir, and you should be good to go.

you should be able to do similer with the legacy template, but i didnt bother on my board.

Wow very nice, Thank you!

Can you translate this to german? If so, i will integrate these Buttons in the Hack as default ;)

The Germany Text: Editierungs-Verlauf

Thanks in advance!

Greetings Surviver

vengefuldeath87 06-13-2007 10:49 AM

ok, give these a try

Surviver 06-13-2007 06:00 PM

Thanks :)

I'll release a new version in a few weeks (after holidays :P)

Greetings Surviver

Surviver 06-13-2007 07:08 PM

Quote:

Originally Posted by dutchbb (Post 1267872)
I'm importing the product but it takes ages...still loading after 5 min??

Yes this is right because it alteres the post-tabel - if its very big this can take much time ;)


All times are GMT. The time now is 06:40 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.01384 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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