![]() |
/me wonders what is meant by "pubish it"?
|
sweet hack thanks.
|
Hmm, I created the Profile Field and altered the Template. But the default avatar is showing and not the flash. Have I missed something?
Profile Field 11 (I also changed Field20 to Field11 to match the profile field that was created) Thanks, ~ Domokun |
I apologize for the late reply, Domokun; been quite busy...
Please post your entire code in Step #3. :) |
Ah, sorry for the late reply. Ironically, been swamped with work.
Ok, here's the code you requested ;) Thanks for the help ~ Domokun Code:
<!-- post #$post[postid] --> |
From what I see the code above is correct. You've mentioned that your Profile Field is 11; when you enter the .swf file into that field it should override the default Flash and display in the Postbit. You've also modified the postbit_legacy; the template that you're currently using on your site, so that's correct.
In your Profile Field 11 ("CUSTOM AVATAR (FLASH" text area), can you please post an example URL of the .swf avatar? |
Ok, I used this test link for my .swf avatar:
http://anime.scanlover.com/forum/flash/desudesu.swf I uploaded it directly to my site so that I wouldn't have to worry about the link changing. My site also uses a default avatar if none is selected. Hope this helps. ~ Domokun |
Anytime you're able to link internally, do so. You should be able to strike out the domain name and just use:
/forum/flash/desudesu.swf Now if that URL is posted in the Profile 11 Field it should display in place of any other avatar. I also use a default avatar (if none were chosen) that I made using a custom template and plugin; so the Flash code on my own forum is slightly different than this mod. I'm curious, how are you doing the default avatar? |
Hmm, good question. It's been a long time since I've installed the default avatar... It should be an installed plugin if I remember correctly.
Code:
if (!$this->post['avatarurl']) ~ Domokun |
I don't know for sure but there may be a conflict with that plugin code and my mod. So try this: Disable that plugin. Does the Flash avatar work now? If yes, then follow these additional steps (if you want to have the default avatar) below.
1) Add new plugin. Product: vBulletin Hook: postbit_display_start Title: avatardefault Plugin PHP code: Code:
eval('$avatardefault = "' . fetch_template('avatardefault') . '";'); Save 2) Add new template. Title: avatardefault Template: Code:
<img src="/forum/images/avatar/default_avatar.jpg" alt="Default Avatar" /> Save 3) Uploade your default avatar to the path you specified. 4) Replace your Flash code with this one: Code:
<!-- _______ Flash Avatar _______ --> Hopefully, by doing these steps you'll now be able to use the Flash avatar and have a default avatar if no avatar was chosen. *These are similar codes I did on my forum. |
All times are GMT. The time now is 12:32 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|