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)
-   -   Mini Mods - Last Poster Avatar (https://vborg.vbsupport.ru/showthread.php?t=275406)

phpdesk 12-12-2011 11:00 PM

Last Poster Avatar
 
1 Attachment(s)
Info
This mod ads last posters' avatars next to their names on Forumdisplay pages. I've just finished a section of one of my bigger mods to come, and thought that some of you may just need this little enhancement on their forums. If so, feel free to download and test it.
Features
Not too many features for now, it's a pretty straight forward mod. I'm always open to your suggestions though.

- Display last poster avatars in threadbits on forumdisplay
- Display last poster avatars in forumbits on forumhome and forumdisplay
- Admin settings to enable display of last poster avatars in certain areas or disable globally
- Set an avatar size to best match the layout
- Choose an alternative avatar display on forumbits
- Zero database queries to keep things running smoothly
https://vborg.vbsupport.ru/attachmen...d=135122&stc=1

https://vborg.vbsupport.ru/attachmen...d=135076&stc=1


Installation
Import [phpdesk.com]-product-lpavatar.xml via AdminCP > Plugin System > Manage Products > [Add/Import Product]
Mod Support
- Do not forget to mark as installed to qualify for further assistance
- A small donation would always be welcome to support further development of this hack (Support Developer)
- I'll do my best to listen to your comments and suggestions as long as time permits
Ghangelog
1.0.0 | 2011-12-13
- First Release

1.0.1 | 2011-12-13
- Fixed file path issue affecting some forum setups

1.0.2 | 2011-12-14
- Added last poster avatars to forumbits on forumhome and forumdisplay

- Added admin options to control display of avatars


1.0.3 | 2011-12-15
- Added option to display a default avatar for users that have not uploaded a custom avatar of their own


1.0.4 | 2011-12-15
- Re-enabled last posters' avatars display on forumhome after fixing the reported issue


1.0.5 | 2011-12-16
- Added option to set the avatar size individually for the forumbits and threadbits display


1.1.0 | 2012-01-04
- Link the avatar to member profile page

- Offer additional way to position last poster avatars on forumbits

- Remove the unnecessary extra database queries

1.1.1 | 2012-01-04
- Fix display issue when avatars are set to be saved as files


1.X.X | PLANNED
- Add avatar to search results, new posts, today posts, etc

mitch84 12-13-2011 04:40 AM

hi, a preview please? thx

CoZmicShReddeR 12-13-2011 06:03 AM

Bad ass! Love it so far!

phpdesk 12-13-2011 07:19 AM

Quote:

Originally Posted by mitch84 (Post 2277234)
hi, a preview please? thx

Sorry for missing the screenshot last night, I've just uploaded it.
Quote:

Originally Posted by CoZmicShReddeR (Post 2277237)
Bad ass! Love it so far!

Glad to see someone likes it :)
Don't forget to mak it as installed, and make me happy, too.

sticky 12-13-2011 07:33 AM

Caused error, could not open forum, uninstalled.

On 4.1.7, maybe that is why.

phpdesk 12-13-2011 07:47 AM

Quote:

Originally Posted by sticky (Post 2277255)
Caused error, could not open forum, uninstalled.

On 4.1.7, maybe that is why.

I haven't got a test version 4.1.7 installed but could you post the error message here, maybe I could help resolve it.

sticky 12-13-2011 07:56 AM

Quote:

Originally Posted by phpdesk (Post 2277257)
I haven't got a test version 4.1.7 installed but could you post the error message here, maybe I could help resolve it.

I would but I'm scared to install it again. Error went away when I uninstalled and I don't want to test again.

warrior uw 12-13-2011 08:18 AM

did not work on 4.1.8 - uninstalled

thecore762 12-13-2011 08:53 AM

Tagged modification, hopefully it works before I install it.

synseal 12-13-2011 09:00 AM

Didn't work with 4.1.8 running vbseo.

Code:

Warning: require_once([path]./includes/functions_user.php) [function.require-once]: failed to open stream: No such file or directory in [path]/forumdisplay.php(1065) : eval()'d code on line 2

Fatal error: require_once() [function.require]: Failed opening required '/home/******/public_html./includes/functions_user.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/******/public_html/forumdisplay.php(1065) : eval()'d code on line 2


sticky 12-13-2011 09:04 AM

^ My error was similar

phpdesk 12-13-2011 09:19 AM

Quote:

Originally Posted by synseal (Post 2277269)
Didn't work with 4.1.8 running vbseo.

Code:

Warning: require_once([path]./includes/functions_user.php) [function.require-once]: failed to open stream: No such file or directory in [path]/forumdisplay.php(1065) : eval()'d code on line 2

Fatal error: require_once() [function.require]: Failed opening required '/home/******/public_html./includes/functions_user.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/******/public_html/forumdisplay.php(1065) : eval()'d code on line 2


Thanks for trying to be helpful, I'll check out and get back to you with an update as soon as I have one.

phpdesk 12-13-2011 09:42 AM

Could you test the attached product installer and see if the error is gone? I will then update the thread with the new version if all goes well.

whitedd 12-13-2011 10:25 AM

no...dont work ...4.1.8...same error with 1.0.1

phpdesk 12-13-2011 10:36 AM

Quote:

Originally Posted by whitedd (Post 2277292)
no...dont work ...4.1.8...same error with 1.0.1

Do you mind getting in touch via PM and share your install details with me so that I could take a quick look into it? I installed a test vB 4.1.8, and it worked well with the original mod version. I then installed vBSEO and it did not break anything. So I assume you're facing some sort of a mod incompatibility issue there.

sticky 12-13-2011 10:44 AM

I was not running VBSEO and had the error so likely a mod incompatibility.

Mariner1 12-13-2011 11:16 AM

Didnt work on 4.18 for me either.Just get white screens

synseal 12-13-2011 11:20 AM

I disabled vbseo then uploaded the new file and I still get this error.

Code:

Warning: require_once([path]./includes/functions_user.php) [function.require-once]: failed to open stream: No such file or directory in [path]/forumdisplay.php(1065) : eval()'d code on line 2

Fatal error: require_once() [function.require]: Failed opening required '/home/deleted/public_html./includes/functions_user.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/deleted/public_html/forumdisplay.php(1065) : eval()'d code on line 2

Regards.

pxd 12-13-2011 12:52 PM

Guys, keep in mind this is product is in beta stage.

phpdesk 12-13-2011 12:54 PM

Quote:

Originally Posted by synseal (Post 2277307)
I disabled vbseo then uploaded the new file and I still get this error.

Code:

Warning: require_once([path]./includes/functions_user.php) [function.require-once]: failed to open stream: No such file or directory in [path]/forumdisplay.php(1065) : eval()'d code on line 2

Fatal error: require_once() [function.require]: Failed opening required '/home/deleted/public_html./includes/functions_user.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/deleted/public_html/forumdisplay.php(1065) : eval()'d code on line 2

Regards.

In that case it's not vBSEO the conflicting part here. I installed it on my end as well, and it did not affect my mod. Could you at least message me the list of plugins that you have installed? Ideally, I'd prefer to take a look personally, that would be the quickest way to a fix.

On a side note, to everyone, this is a beta stage mod, cooperation is more than welcome, rather than ignorance.

CoZmicShReddeR 12-13-2011 12:55 PM

I have 4.18 worked fine when I installed it... No isssues... And I use vBSEO 360

phpdesk 12-13-2011 01:08 PM

Quote:

Originally Posted by CoZmicShReddeR (Post 2277343)
I have 4.18 worked fine when I installed it... No isssues... And I use vBSEO 360

Thanks for confirming that to me. I wish the others we a bit more responsive in trying to help me determine the cause of the error and provide a fix for them rather than just stop by to say "doesn't work" and then leave.

Quote:

Originally Posted by synseal (Post 2277307)
I disabled vbseo then uploaded the new file and I still get this error.

The error message points to a missing file on the server. Could you manually check for the presence of functions_user.php inside /includes directory? Can you see it there? Perhaps with a different file extension like .php5 etc? Just a guessing.

Mariner1 12-13-2011 01:15 PM

I explained my prob,get white screens.Nice mod btw :)

synseal 12-13-2011 01:33 PM

1 Attachment(s)
Yes I already checked whether it was there after seeing the error, I will pm you the modifications I use.

phpdesk 12-13-2011 01:33 PM

Quote:

Originally Posted by Mariner1 (Post 2277353)
I explained my prob,get white screens.Nice mod btw :)

Thanks. Could you as well manually check for the presence of functions_user.php inside /includes directory on your site? Can you see it there? What php extension do the files have, is it .php, is it .php4 or .php5?

phpdesk 12-13-2011 01:35 PM

Quote:

Originally Posted by synseal (Post 2277358)
Yes I already checked whether it was there after seeing the error, I will pm you the modifications I use.

Sounds good, I'll then try to reproduce a copy of your site's structure on my end and see what I get in return. Also, are you running it on a Linux or Win server?

synseal 12-13-2011 02:00 PM

Sent you the info needed via pm, just one thing to add, my acp location has been renamed for security, could this be causing the problem?.

sigh 12-13-2011 02:07 PM

Here's my error, running 4.1.7 with no vBSEO:
Code:

[13-Dec-2011 09:58:58] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/xxxx/public_html/forums./includes/functions_user.php' (include_path='xxxxx') in /home/xxxx/public_html/forums/forumdisplay.php(1063) : eval()'d code on line 2
The problem is the "." after the "forums" in the required path. It's like your script is assuming only a relative path but something in vB is asserting and absolute path first.

phpdesk 12-13-2011 02:23 PM

Quote:

Originally Posted by sigh (Post 2277367)
The problem is the "." after the "forums" in the required path. It's like your script is assuming only a relative path but something in vB is asserting and absolute path first.

Yes, I've just noticed that a bit earlier, and have updated the xml installer so you can download a new copy from the original post in this thread and try again.

mitch84 12-13-2011 02:37 PM

installed on vb4.1.8, work very nice, good jod!

synseal 12-13-2011 02:38 PM

Yes working now with 4.1.8, thanks for the update and help.

sigh 12-13-2011 03:11 PM

Working now - marked as Installed :)

Mariner1 12-13-2011 03:40 PM

Quote:

Originally Posted by phpdesk (Post 2277359)
Thanks. Could you as well manually check for the presence of functions_user.php inside /includes directory on your site? Can you see it there? What php extension do the files have, is it .php, is it .php4 or .php5?

Yes its there and i use .php

Jazzinto 12-13-2011 04:30 PM

Yes working on my forum, thanks.

Mariner1 12-13-2011 05:01 PM

just installed 1.0.1 ver,works great now thank you

whitedd 12-13-2011 07:11 PM

Warning: require_once([path]./includes/functions_user.php) [function.require-once]: failed to open stream: No such file or directory in [path]/forumdisplay.php(1065) : eval()'d code on line 49

Fatal error: require_once() [function.require]: Failed opening required '/home/*******/public_html./includes/functions_user.php' (include_path='.:/usr/lib/php') in /home/*******/public_html/forumdisplay.php(1065) : eval()'d code on line 49

phpdesk 12-13-2011 10:41 PM

Looks like everyone's happy now, good to see that!

whitedd, please download the fresh copy of the installer which has addressed the issue that you're facing. All is going to be just fine.

whitedd 12-14-2011 09:51 AM

...thnx...work perfect ;) ....

phpdesk 12-14-2011 09:55 AM

Quote:

Originally Posted by whitedd (Post 2277655)
...thnx...work perfect ;) ....

Great. Marking it as installed is a good way to say thank you and show your support.

phpdesk 12-14-2011 02:54 PM

Today I added some extra functionality to this mod and published a new version along with new screenshots. Hope you like it.

Suggestions are welcome, as usual.


All times are GMT. The time now is 06:22 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.01722 seconds
  • Memory Usage 1,829KB
  • 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
  • (5)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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