Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

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
  #152  
Old 08-23-2009, 11:50 PM
nascartr nascartr is offline
 
Join Date: Jun 2008
Posts: 317
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheLastSuperman View Post
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.

When I install the attached XML I get this error.

Quote:
Fatal error: Call to a member function query_first() on a non-object in /home/nascartr/public_html/community/includes/functions_forumlist.php(393) : eval()'d code on line 402
Reply With Quote
  #153  
Old 08-24-2009, 05:27 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
When I install the attached XML I get this error.
That was for IdanB to review not for use!

I'll double check it later I'm just in the middle of something and need to find a mod real quick but hold tight I'll see what I can fix up for you but better to let the developer fix imo.

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

I appreciate it TLS!
Reply With Quote
  #155  
Old 08-25-2009, 02:07 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 ArnyVee View Post
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:
sorry Arny I completely missed that post but no, I would wait for IdanB to re-release with an update, I had to change other codes for mine considering how we store our avatars something with avatar[0] I believe but let me look into it again real quick for nascartr as I said last night.

Quote:
Originally Posted by nascartr View Post
I appreciate it TLS!
No problem
Reply With Quote
  #156  
Old 08-27-2009, 07:21 PM
kalisekj kalisekj is offline
 
Join Date: Dec 2006
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have DNP Media Installed with the forumhome addon. So this Mod works on forum display and on forumhome but on forumhome I get the following errors at the top of the site. I have disabled forumhome until I get hopefully some feedback. I am running a heavily modded VB 3.82 @ http://freeonlinemoviesforum.com

Warning: Cannot use a scalar value as an array in [path]/index.php(67) : eval()'d code(200) : eval()'d code on line 1

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at [path]/includes/class_core.php:3318) in [path]/musicajax.php on line 15
Reply With Quote
  #157  
Old 09-06-2009, 02:37 AM
Aclikyano Aclikyano is offline
 
Join Date: Apr 2006
Posts: 481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please help, i dont know why i am getting this link on all the avatars on forumhome
they come up as the anonymous avatar even when user has avatar selected and it links to
mysite/forums/User%20Was%20Deleted%20From%20DB
Reply With Quote
  #158  
Old 09-06-2009, 08:05 AM
Log on Log on is offline
 
Join Date: Aug 2009
Location: KSA
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice

thank u
Reply With Quote
  #159  
Old 09-06-2009, 09:03 PM
mattwmc2001 mattwmc2001 is offline
 
Join Date: Jun 2009
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool!

Looks good.

Wonder if there is a separate way to do this for threads in a forum - so the avatar pics could be smaller?
Reply With Quote
  #160  
Old 09-06-2009, 10:08 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks great thanks.

Installed.
Reply With Quote
  #161  
Old 09-06-2009, 10:38 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would like to see:

if we set: Use "Last Post" text as title ? to NO

then

in forum display last post appears: like

TimberFloorAu Avatar
Thread Game: Word Association
by TimberFloorAu
2 Minutes, 11 Seconds ago

instead of

TimberFloorAu Avatar Thread Game: Word Association by TimberFloorAu
2 Minutes, 11 Seconds ago

as it ruins our style. Perhaps its just a <br /> addition within the xml
Reply With Quote
Reply

Thread Tools

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:28 AM.


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.14562 seconds
  • Memory Usage 2,350KB
  • 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
  • (5)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
  • (5)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