![]() |
This is what we use on the main page of this forum.
So many people liked it and asked for it, I posted it on at least 5 threads already, but someone wanted a proper release so here it is. :) Anyway, in index.php add this: Code:
if ($bbuserinfo[userid]!=0) { Code:
$permissions=getpermissions(); Code:
$avatarimage It will display the user's avatar if he has selected one, if he hasn't selected one it will show noavatar.gif (you'll need to upload that to your images folder), and if it's a guest, it will show guestavatar.gif, and link the image to register.php. |
I like it, nice work there Firefly
|
it's good hack for me thankz FireFly~~
if i want it show up like main page of this forum what template should i put this code$avatarimage? forumhome or .....?? |
forumhome template
|
or any of the other's that are listed under forumhome
|
oh yeah, love'n it firefly!
http://www.form-kaos.com/board/ |
How would I go about using $avatarimage in my header template. Modifying something in functions.php correct?
|
Add the code to global.php, before:
Code:
$header=''; |
Thank You :D
|
Thanks FireFly!
|
Awesome Hack Firefly. What part of the code would I change to make it so the noavatar.gif is linked to userCP?
|
w00t! Works great! Excellent hack, cheers!
See it in action ;) http://www.opentechsupport.net/forums/ |
[QUOTE]Originally posted by JTMON
Awesome Hack Firefly. What part of the code would I change to make it so the noavatar.gif is linked to userCP? |
Is there anyway to encorporate this into a non-vb page?
|
For some reason that code didn't work for me firefly. I just get a red x if I don't have an avatar selected, but no noavatar.gif. I have reuploaded the gif file twice too. Otherwise it works great.
|
ok I got it working now. I had to do this:
Code:
if ($bbuserinfo[userid]!=0) { $avatarimage'<img src="'.$avatarurl.'">'; |
hmm, the only problem now is I have a box around the avatar?
|
Try changing
Code:
<img src="'.$avatarurl.'"> Code:
<img src="'.$avatarurl.'" border="0"> |
Thanks Bane!! Worked perfectly!:D
|
hey Crinos (Tolitz i presume?), gimme your forumhome template. i want your table layout for the top box with the ava in it... i'm having brain farts here. :stupid: :D
|
LOL, I wish it was that easy - the whole process of putting it together is scattered althroughout several templates:
forumhome forumhome_unregmessage forumhome_welcometext forumhome_logincode forumhome_logoutcode forumhome_pmloggedin I'm afraid giving you just the forumhome template is not gonna be useful ;) Took me about 3-4 hours of trial and error just trying to put it together ... what I did was set up a "mock-up" page with the layout as I want it to be ... then I just insert the relevant code and then chop it up by the <tr>'s and insert each one in the templates I mentioned :D |
oic. ok then... i'll manage :)
|
Hey man, I think I just posted what you are looking for. I installed it all together, then wrote a walkthrough of most of it for a friend, thought someone might find it usefull, so uploaded the zip here...
https://vborg.vbsupport.ru/showthrea...threadid=32702 See my sig for a working example. Even if it's not exactly what you are looking for, it should give you the *bones* to play with! |
Thinking about it, I prolly should have posted it here - not sure about the protocol for such things :rolleyes:
Anyway, I *think* I included all the edits :rolleyes: :rolleyes: :D :D |
thanks :)
|
cool... check out my www link
|
Quote:
ie mine is images/noavatar.gif but in the code given by Firefly its Quote:
|
Really nice hack Firefly. I would install it but the default avatar size for our message board is 105x150 making the avatar take up too much board real estate. Awesome job though Firefly!
|
Quote:
|
Hi,
Quote:
PHP Code:
westi |
Where do I put
PHP Code:
|
Bump
cant anyone help a n00b ? |
in the forumhome template, right above $postbits :D
|
I cannot find $postbits in the forumdisplay template ??
|
Put it in the forumhome template like Firefly said in his first post!
|
I have done everything step by step, but where exactly does $avatarimage go in the forumhome template.
|
If it is installed here, how come i don't have it as noavater here as i have not selected one here?
Confused. |
I got it.
I thought this hack would add it to each member in the posts. It is only on the main page. Okay. |
Quote:
Each member already has his avatar in his post...? |
Having a bit of trouble with this...
I have the two image required in the /forums/images/avatars folder on my server, BUT, i still get a little red X in a box for someone who doesnt have an avatar set here is the code in my index.php PHP Code:
please help? |
All times are GMT. The time now is 03:51 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|