Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Alternate Last Post Display Details »»
Alternate Last Post Display
Version: 1.1.4, by IdanB IdanB is offline
Developer Last Online: May 2010 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.8.2 Rating:
Released: 05-28-2009 Last Update: 06-11-2009 Installs: 93
Uses Plugins Auto-Templates
Additional Files Is in Beta Stage  
No support by the author.


Alternate Last Post Display
By: Idan B.

1. Description & Usage:
Alternate Last Post hack will allow the forum admin to make the "Last Post" column on forum look different (have another/better layout):
Hack will make it with user avatar picture & instead of showing post date, it will show "time diff" since the post (for example: 4 Hours, 5 Minutes ago") - See pictures in attachment for better understanding. :up:
This Hack can be enabled on both Forum Home & forum Display or Forum Display Only.
The hack was develop for request of Theater (request was made here: https://vborg.vbsupport.ru/showthread.php?t=214212 )
I assumed this request might be "handy" to other users of community, so developed it to be a fully working modification.

2. Installation:
Please click Mark as Installed.
Installation is pretty easy - just download & install:
  • Extract zip for product xml & no-avatar picture.
  • Goto: AdminCP->Plugin System->Manage Products : Choose "Add/Import Product" and import this product xml (product-alt_last_post.xml)
  • Upload the "anonymous_avatar.gif" file onto /images/avatars/ directory. If testing it on your develop board, be sure to upload there as well.
3. Upgrade From Older Version:
1. uninstall previous version
2. Download new version xml & install as instructed in previous section.

4. Configuration:
Once installed, the "Vbulletin Options" under admincp will have extra section:
Section name: "Alternate Last Post Display"
  • Enabled ? - Yes/No (default YES)
  • Enable on Forum Home ? - Yes/No (default NO)
  • Enable on Forum Display ? - Yes/No (default YES)
  • Use "Last Post" text as title ? - Yes/No (default YES)
  • Show differential time ? - Yes/No (default YES)
  • Align "Never" to LEFT ? - Yes/No (default YES)
  • Use profile picture instead of avatar ? - Yes/No (default NO)
  • Picture width - INT (default: 40)
  • Picture height - INT (default: 40)
5. Known Bugs:
  • Forum Tabbbed modification has known competability with this mod - result it is not showing on forumhome. Currently debugging this one to allow fix on next version.
  • v1.1.4 released. Since v.1.1.0 code was re-writeen completely from "scratch" and now it should support multi-languages (other than english) ! Note: Cyrillic & Latin chars reported to have some issues, still under check)
  • See changelog below for full description of stuff fixed.

6. TO-DO's LIST (Next Versions):
  • Allow thread view option on admincp.
  • Other mods (such as Forum Tabbed Modification) conflict fixes - under checking !.
  • [S]Admincp option to set avatar width/height.[/S] added in v.1.1.4
  • [S]Admincp option to select between profile and avatar picture.[/S] added in v.1.1.4

NOTE: Currently supported format chars for date/time (v1.1.4) are :
Date: "j","d", "m", "n", "F", "M", "Y", "y","S"
Time: "h", "H", "g", "G", "i", "s", "a", "A".
Any other chars will result with Post Time: N/A displayed !


NOTE: i've left v1.1.3 and added in addition the v1.1.4, just in case anyone has problem, he can download old version & rollback.

Enjoy hack & dont forget to click Mark as Installed

Download Now

File Type: zip Alt Last Post.zip (11.4 KB, 192 views)
File Type: zip Alt Last Post_v1.1.4.zip (12.4 KB, 593 views)

Screenshots

File Type: jpg updated_preview.jpg (60.0 KB, 0 views)
File Type: jpg v113_admincp_options.jpg (100.4 KB, 0 views)
File Type: jpg v114_admincp_options.jpg (138.2 KB, 0 views)

Show Your Support

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

Comments
  #142  
Old 08-09-2009, 01:22 AM
mike2902's Avatar
mike2902 mike2902 is offline
 
Join Date: Apr 2009
Posts: 186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The avatars are showing on Forum home but not inside each individual forum. Any ideas? And yes I have it set to yes in the admin cp.
Reply With Quote
  #143  
Old 08-09-2009, 05:44 PM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This will be checked as soon as i can.
As mentioned in previous posts, i've been quite busy with other urgent projects, some are still underway.
I will do my best to upload fix for it this weekend (14/8/809 night).
Reply With Quote
  #144  
Old 08-09-2009, 09:34 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by IdanB View Post
This will be checked as soon as i can.
As mentioned in previous posts, i've been quite busy with other urgent projects, some are still underway.
I will do my best to upload fix for it this weekend (14/8/809 night).
I assume you had already figured out the tabbed forum home and it will be included w/ the update or did I just fall in to the saying?

Let me know if not so I can PM you what I found. Also I found another mod for user avatars on threadbit so it shows in all threads and plan to merge it with this one or splice etc.

S-MAN
Reply With Quote
  #145  
Old 08-10-2009, 10:31 PM
Front Range 4x4 Front Range 4x4 is offline
 
Join Date: Jan 2009
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Marked as Installed. Very nice addition and improves the look considerably. Thanks IdanB!

One issue: Enable on Forum Display? - Yes/No (default YES) isn't working for me. I can't get it to show on Forum Display probably due to some template mods I've made, Forum Home is fine.

Any tip on what to check to try to get it working on Forum Display?

Thanks again.
Reply With Quote
  #146  
Old 08-11-2009, 02:24 PM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheLastSuperman View Post
I assume you had already figured out the tabbed forum home and it will be included w/ the update or did I just fall in to the saying?
tbh i never had a chance to inspect it closely to figure this one out, as i wasnt using this mod myself.
Few people offered to help use their board as debug platform for this bug, but due to different timezone i had trouble get online same time as other users that offered to help debug this one.

If you can pm me everything you fixed & i'll continue work from there.

Thanks.
Idan.
Reply With Quote
  #147  
Old 08-12-2009, 05:22 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by IdanB View Post
tbh i never had a chance to inspect it closely to figure this one out, as i wasnt using this mod myself.
Few people offered to help use their board as debug platform for this bug, but due to different timezone i had trouble get online same time as other users that offered to help debug this one.

If you can pm me everything you fixed & i'll continue work from there.

Thanks.
Idan.
I sure will and it will be sent later today, I believe my problem was related to not storing avatars in a folder instead of the DB however I don't want to change that yet... I'll forward what I have so far as some can use it w/ the tabbed mod and some won't depending on the avatar settings I assume. Sit tight, I'll have it forwarded in about an hour or so when I finish up my searches on here

S-MAN
Reply With Quote
  #148  
Old 08-23-2009, 05:31 PM
nascartr nascartr is offline
 
Join Date: Jun 2008
Posts: 317
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I store my avatars in a folder and not the database so I believe the problem is just the way the modification is coded. I'm still hoping for a fix soon for the Tabbed Forum Home mod!
Reply With Quote
  #149  
Old 08-23-2009, 10:23 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nascartr View Post
I store my avatars in a folder and not the database so I believe the problem is just the way the modification is coded. I'm still hoping for a fix soon for the Tabbed Forum Home mod!
CRUD!!! I knew I was forgetting something the other night, I found a fix for naother mod and PM'd it thinking I had covered everything lol.. IdanB and nascartr I'll BRB w/ info.

S-MAN
Reply With Quote
  #150  
Old 08-23-2009, 10:37 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok IdanB... in the actual xml I modified this part you'll see what I added...

Code:
// Code written by Idan Bismut (c) 2009
// Copy and/or re-use of this code (or part of it) without author approval in writing is forbidden

if ( $vbulletin->options['alt_lp_global_enabled'] == 1)
{
   
   if ( ( ($vbulletin->options['alt_lp_enable_on_forumhome'] == 1) && (THIS_SCRIPT == 'index') ) || ( ($vbulletin->options['alt_lp_enable_in_forumdisplay'] == 1) && (THIS_SCRIPT == 'forumdisplay') ) || ( ($vbulletin->options['alt_lp_enable_in_forumdisplay'] == 1) && (THIS_SCRIPT == 'tabforumhome') )  )
   {
Plus another instance near the bottom:

Code:
			<title>Forum Home - Template Change</title>
			<hookname>forumhome_start</hookname>
			<phpcode><![CDATA[// Alternate Last Post Display Modification
// ----------------------------------------
// Code written by Idan Bismut (c) 2009
// Copy and/or re-use of this code (or part of it) without author approval in writing is forbidden

if ( $vbulletin->options['alt_lp_global_enabled'] == 1)
{
   
   if ( ($vbulletin->options['alt_lp_enable_on_forumhome'] == 1) && (THIS_SCRIPT == 'index')  || ( ($vbulletin->options['alt_lp_enable_on_forumhome'] == 1) && (THIS_SCRIPT == 'tabforumhome') ) )
   {
      // Fixed in v.1.1.4 - now all inside template, so user may update it as they please !
      //$vbulletin->templatecache['forumhome_lastpostby'] = "<div align='left'><table width='100%'><tr><td align='left' width='40'>\$vbulletin->options['usefileavatar']</td><td align='left' NOWRAP><a href='\$GLOBALS[alt_lp_last_post_link]'>\$GLOBALS[alt_lp_last_post_title]</a> $vbphrase[alt_lp_by] <a href='\$GLOBALS[alt_lp_last_poster_profle_link]'>\$GLOBALS[alt_lp_last_poster]</a><br>\$GLOBALS[alt_lp_last_post_time_ago]</td></tr></table></div>";

      $vbulletin->templatecache['forumhome_lastpostby'] = $vbulletin->templatecache['forumhome_lastpostby_alternate_view'];

      //eval('$vbulletin->templatecache[\'forumhome_lastpostby\'] = "' . fetch_template('forumhome_lastpostby_alternate_view') . '";');

      // Reload template so the first bit will be updated as well
      eval('$forum[\'lastpostinfo\'] = "' . fetch_template('forumhome_lastpostby') . '";');
   }
}]]></phpcode>
		</plugin>
And I believe that was it... I had another similar mod for Avatars in another area of the forum so I had to change that as well but don't think they were directly related. So to sum it up all I did (sorry I had to backtrack due to heavily modifying that similar mod that was for threadbit etc) was add in another && this script etc w/ the forumhometab named as the if this script.

S-MAN

Edit: See attached copy of XML that has been modified for my forum w/ this && this_script for Tabbed Forum Home.
Attached Files
File Type: xml product-alt_last_post.xml (35.2 KB, 10 views)
Reply With Quote
  #151  
Old 08-23-2009, 11:23 PM
ArnyVee's Avatar
ArnyVee ArnyVee is offline
 
Join Date: Mar 2008
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Michael, you think it's safe for me to use your product for my site? I haven't been following this one too closely as of late, but noticed this post tonight :up:
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 09:27 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05724 seconds
  • Memory Usage 2,367KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete