vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   User Info Block (https://vborg.vbsupport.ru/showthread.php?t=275570)

Skivey 12-16-2011 02:23 PM

User Info Block
 
I have been looking for 2 days now and I am now completely at a loss...

Im sure I had this before with the user info including messages and the user avatar, but I cannot find it anywhere.

www.eurodonks.com/community currently I have just username and last post (copied from another thread) but would like to include the above things.

Im not a genius at programming... but i am capable of doing various php stuff

Any help would be greatly appreciated

Matt

Lynne 12-16-2011 05:22 PM

I have no idea what you are talking about. Can you show us an image of what you are looking for?

Are you talking about this widget:
Hello Unregistered
Your last post was:

That is from some example code I posted in an article - https://www.vbulletin.com/forum/show...-or-PHP-Widget

Skivey 12-17-2011 03:46 PM

Hi Lynne,

Ya thats the block... I stole the code from one of the posts I found that you made before.

Within this block I want the avatar of the user, and basically most of whats in teh postbit legacy. and also something on the lines of You have No new messages, or you have 1 unred message ?

Im pretty sure I have used something like this before on vb3

Sorry if im being vaigue :(

Matt

Lynne 12-17-2011 06:20 PM

I didn't write all that stuff in my example, but I'm sure you could write a query to get all the information and then post in into the block. But, that was never part of my example.

Skivey 12-18-2011 01:16 PM

Just had the custom made skin put on my site!

And ya, im pretty sure there is.. just i really have no idea! :(

Thanks for your replies!

Matt

Skivey 12-20-2011 09:41 AM

im trying to work it out, or even write the code myself but geting no luck.

I tried to use my initiative here, but as I thought it doesent work :(

$my_output = "Hello ". vB::$vbulletin->userinfo['username'];
$my_output = vB::$vbulletin->userinfo['useravatar'];

all i wnna do is show the user avatar under the username

Thanks for any help

Matt

Lynne 12-20-2011 06:55 PM

I don't believe there is a default variable called "useravatar". You would need to write the code to define it first before using it.


All times are GMT. The time now is 09:12 AM.

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.00940 seconds
  • Memory Usage 1,719KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete