vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   similar to vbulletin.org (https://vborg.vbsupport.ru/showthread.php?t=32196)

cyrus 11-06-2001 03:44 PM

on the forums page, like on this site, I would like the section at the top with the avatar, which Says " >> Welcome Back $username"

How can this be done ??

thank you

cyrus 11-09-2001 09:42 PM

???

Dalius 11-09-2001 11:46 PM

Welcome back, $username
!

If you now how to use variables, it shouldnt be to hard...

Admin 11-10-2001 05:24 AM

Use $bbuserinfo[username] to display the username of the viewer in any template you wish.

Mohamed 11-10-2001 04:20 PM

dear FireFly

it's didn't work with me :(

cyrus 11-10-2001 09:00 PM

i dont want only the username, I want it all , avatar etc, liek on this site :p

u can tell me if you dont wanna share this hack :p

Mohamed 11-11-2001 05:58 AM

yes ..

I want that also

cyrus 11-11-2001 04:29 PM

FireFly ?? :)

Admin 11-11-2001 05:19 PM

Sorry, it involves lots of templates and new code to index.php, I can't really release it.

But if you look at the releases forum, you'll see a "Since your last visit" hack, that does the "There have been xx new posts and xx new threads since your last visit", and if you search a bit you'll find the code for the avatar thing. :)

cyrus 11-12-2001 08:15 AM

damn, i was really looking forward to that ! Looks great on this forum.

not a problem though, thanks for responding

ixian 11-14-2001 12:53 PM

I've searched more than a bit, but I can't find the "avatar thing". I'm not trying to make my site like like this one, but I would like the users's avatar up top with their name.

I've tried several different options - adding this to forum_welcometext:

PHP Code:

<img src="avatar.php?userid=$post[userid]&dateline=$post[avatardateline]align="left"

Trying "$bbuserinfo[avatarurl]" instead, etc. Nothing works. By not working, I mean nothing shows up, except when I try one of the avatarurl vars - then I get a broken link image.

Can anyone show me the light?

ixian 11-14-2001 02:52 PM

Firefly,

I finally found the post you were referring to, or at least I think it is - the one where you add the info to index.php for avatarurl, and give alternate images for no avatar and guest users? (I am at work now, so I can't find it).

Anyway, I did that, and here's the weird thing - it does show the image, but only the "No avatar" one. For some reason, even when entering the "avatar.php etc etc" directly for the image link, it does not pull up the avatar. It just shows no image. In the case of using the $avatarurl in the image tag, it apparently can't look up my avatar and goes to the default one. You can see what I mean at my site below.

Any ideas?

Admin 11-14-2001 02:56 PM

ixian,
I should have mentioned that my code only works for users with custom avatars, like we have set up here.
Making it support regular avatars will be a bit different.

If you want it so bad, I'll do it...?

ixian 11-14-2001 03:35 PM

Yikes!

Darn. I was hoping I could just take the same code that makes the avatars appear in posts and move it to the front page. Could you give me an idea of what's different?


All times are GMT. The time now is 05:03 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.01191 seconds
  • Memory Usage 1,734KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)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