vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Display Enhancements - Digital Point Thread Avatars (https://vborg.vbsupport.ru/showthread.php?t=271540)

Juggernaut 10-09-2011 06:38 AM

Quote:

Originally Posted by digitalpoint (Post 2255002)
An example of the sort of thing you could do with the new hook location...

On digitalpoint.com, premium members can see the "true country" of a poster... I extended it a bit so premium members show the flag of the country the thread starter is in. I made it so the flag only shows when you mouseover the thread (that way it's normally hidden so it's not too obnoxious).

https://vborg.vbsupport.ru/external/2011/10/66.png

That's awesome :eek:

alfanexus 10-09-2011 06:56 AM

When this plugin is enabled it sometimes courses an error on search results. To make sure that its not just on my test site it happens, I testet this on digitalpoint.

http://forums.digitalpoint.com/searc...4927464&page=3 searched for "service" and got the following error on page 3:
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/packages/vbforum/search/result/thread.php(194) : eval()'d code on line 10

Another search for "rebel" page 14 (http://forums.digitalpoint.com/searc...927528&page=14)


It dosent happen that often on your site, its more frequent on my internal testsite.

digitalpoint 10-09-2011 07:03 AM

Hmmm... yeah, that could happen if search results returns a thread that was created by a user that no longer exists. If you open the plug-in at the search_results_threadbit location, change this:

PHP Code:

$thread array_merge($thread$avatar_info); 

to this:
PHP Code:

$thread array_merge($thread, (array)$avatar_info); 

I made the change to our dev version, so will be part of next version.

alfanexus 10-09-2011 07:13 AM

wow you are fast :) works perfectly, thanks!

nacaruncr 10-09-2011 10:33 AM

Who I can change in the mini-avatar the title say "Thread description...." for the username of the mini-avatar??

excuse me my english :S

cykelmyggen 10-09-2011 11:16 AM

Installed - working perfect - nominated for MOTM :)

grey_goose 10-09-2011 12:50 PM

This is beautiful and amazing -- thank you so much. Nom'd.

Mostjolly 10-10-2011 01:22 AM

1 Attachment(s)
Hey Shawn,

Thanks for sharing this fantastic hack, is it possible you can add the rounded border effect avatar for "Postbit" template, I've attached the attachment, hopefully it'll give you an idea of what I'm talking about.

Nhat :D

digitalpoint 10-10-2011 01:30 AM

That would really just be a CSS entry. Add this to your additional.css template and it should work...

Code:

.postbit .postuseravatarlink img {
        padding: 5px;
        border: 5px solid blue;
        border-radius: 15px;
}

Obviously replace the blue color with whatever you want.

Mostjolly 10-10-2011 01:48 AM

1 Attachment(s)
Thanks that was easy,

Also are you planning to integrate the exact functionality for the "Forumhome" page listing? (see attachment)

Hmmm.. and for a more advanced developments, I was thinking you could use this same feature for the "Quote" functionality, so basically when I quoted you.. you'd see a little avatar of me at the top bottom right of your avatar.. it's pretty sweet knowing who you're/they're directly communicating to ;)

Nhat


All times are GMT. The time now is 01:18 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.02430 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)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