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
  #132  
Old 06-12-2009, 08:35 PM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

question about the image sizes.

If I place a value for height and nothing for width will it automatically keep it's original ratio?
Reply With Quote
  #133  
Old 06-13-2009, 07:23 AM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dancue View Post
question about the image sizes.

If I place a values for height and nothing for width will it automatically keep it's original ratio?
No. according to feedback & common sense, my initial assumption was that for "esthetic reasons" users would want all pics to have same width & height, else result isnt looking nice (it's really matter of original avatar dimensions).
Reply With Quote
  #134  
Old 06-13-2009, 07:28 AM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dancue View Post
Same here.

I've flushed my cache through vboptimise and still not aligning to the left.
ok, i'll try to find source of problem & fix it.
Pretty much the major difference between 1.1.3 to 1.1.4 is i'v taken the replaced html from plugin code to template, but wierd thing is the "left align" is still same code as version 1.1.3, and it's defined on plugin code.

Can you try to set "left align" to NO, save settings, then set to YES & save again ?
Perhaps since options number are not the same as previous version, the db still has different value for these & needs to be updated.
Reply With Quote
  #135  
Old 06-14-2009, 06:44 PM
pet0etie pet0etie is offline
 
Join Date: May 2009
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

last night i had the forum crashing after installing this plugin (so nobody could consult the main forum page)

on our forum we have a user called "/!\K.v.K./!\Boechie/!\" who has posted in a thread ... being the last one to post, his name, avatar and posting time is (should be) displayed on the index-page

but ... when i check your code u are using this query :
Code:
$q_text = "SELECT userid, avatarid, avatarrevision  FROM `" . TABLE_PREFIX . "user` WHERE username = \"".$lastpostinfo[lastposter]."\"";
putting in the name of "/!\K.v.K./!\Boechie/!\" into that query i get :
Code:
$q_text = "SELECT userid, avatarid, avatarrevision  FROM `user` WHERE username = \"/!\K.v.K./!\Boechie/!\\"";
your query is getting 'screwed up' because he sees the last \ of the name "/!\K.v.K./!\Boechie/!\" as an escape-character

shouldn't the query be changed towards this query ?
Code:
$q_text = "SELECT userid, avatarid, avatarrevision  FROM `" . TABLE_PREFIX . "user` WHERE username = \"". $vbulletin->db->escape_string($lastpostinfo[lastposter]) ."\"";
thanks for looking up / solving the problem

pet0etie
Reply With Quote
  #136  
Old 06-15-2009, 06:34 PM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pet0etie View Post
last night i had the forum crashing after installing this plugin (so nobody could consult the main forum page)

on our forum we have a user called "/!\K.v.K./!\Boechie/!\" who has posted in a thread ... being the last one to post, his name, avatar and posting time is (should be) displayed on the index-page

but ... when i check your code u are using this query :
Code:
$q_text = "SELECT userid, avatarid, avatarrevision  FROM `" . TABLE_PREFIX . "user` WHERE username = \"".$lastpostinfo[lastposter]."\"";
putting in the name of "/!\K.v.K./!\Boechie/!\" into that query i get :
Code:
$q_text = "SELECT userid, avatarid, avatarrevision  FROM `user` WHERE username = \"/!\K.v.K./!\Boechie/!\\"";
your query is getting 'screwed up' because he sees the last \ of the name "/!\K.v.K./!\Boechie/!\" as an escape-character

shouldn't the query be changed towards this query ?
Code:
$q_text = "SELECT userid, avatarid, avatarrevision  FROM `" . TABLE_PREFIX . "user` WHERE username = \"". $vbulletin->db->escape_string($lastpostinfo[lastposter]) ."\"";
thanks for looking up / solving the problem

pet0etie
Yes, you are correct.
I'll have it fix on upcoming revision. Thanks for the heads up.
Reply With Quote
  #137  
Old 07-11-2009, 04:32 PM
nascartr nascartr is offline
 
Join Date: Jun 2008
Posts: 317
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would love to use this, has anyone found a fix for the Tabbed Forum Home mod? Thanks!
Reply With Quote
  #138  
Old 07-19-2009, 02:54 PM
goxy63 goxy63 is offline
 
Join Date: Oct 2008
Location: its like another planet:D
Posts: 657
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not working with this mod
"Hide Last Post Date For Guests"
https://vborg.vbsupport.ru/showthrea...88#post1851088

Any suggestions, or even better making this mod working with mentioned one?

Thanks
Reply With Quote
  #139  
Old 07-19-2009, 05:13 PM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been busy last few weeks with coding/re-lunch of vBHackers community. Once that goes live & behind me (soon enough) i'll try to address these open issues.
Reply With Quote
  #140  
Old 07-19-2009, 11:29 PM
nascartr nascartr is offline
 
Join Date: Jun 2008
Posts: 317
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

I modified it a bit and have it working w/ the Forum Home Tabs mod by Bobster65!

Only setback.. which I thought was posted previously while reading this mods thread earlier is custom avatars are not showing...

We upload then create custom avatars, several categories and let our users select them... only problem is (even before I modified to work w/ the tabs) with the product installed and enabled to show on forumdisplay only it will show the "dummy" avatar but not the user selected one... if I enable to show custom profile pic it works but I need our admin defined but user selected Avatars to display... I need help with this. If you don't come on here by later tonight I might join on your site and PM if not it will be first thing in the morning... then we can have it updated to fix that as some may not have my problem and can benefit from the update.

Ok, I have some unfinished work to go do so installed but disabled for now until I find time to get it working with the custom avatars we let our members choose from.

S-MAN
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 05:36 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.09158 seconds
  • Memory Usage 2,355KB
  • 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
  • (6)bbcode_code
  • (3)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