PDA

View Full Version : Avatar in Navbar


tomshawk
07-25-2004, 11:23 PM
Hello Everyone;

For anybody that knows how.

On my forums homepage in the Navbar by where it says Welcome $username to the left, I have it show the users Avatar

On the vbAdvanced homepage, it worked fine, but

With the vbAdvanced CMPS it does not show up.

It appears to use the same navbar template, but.. it just doesn't show up.

Anybody have any ideas as to why?

Thanks in advance for any help with this ;)

Brian
07-26-2004, 12:07 PM
What do you use in the navbar template to display the avatar?

Our Sponsors
 

tomshawk
07-26-2004, 07:23 PM
What do you use in the navbar template to display the avatar?
Hi Brian,

It is a hack I downloaded from vBulletintemplates (http://www.vbulletintemplates.com/mods)

Kuddo's to Pennylessz28 for thinking of it.

Attached is the text file instructions.

Again, this did work with the vbAdvanced Homepage, just not sure why it doesn't with this, as it uses the vBulletin navbar template

any help would be great, thanks ;)

KW802
07-26-2004, 07:49 PM
Tomshawk, If I may ask a tangent question.... is that Amazon module static with a hard-coded item number or is it dynamic to automatically rotate the displayed product?

Thanks

Our Sponsors
 

tomshawk
07-26-2004, 08:30 PM
Tomshawk, If I may ask a tangent question.... is that Amazon module static with a hard-coded item number or is it dynamic to automatically rotate the displayed product?

Thanks
I assume you mean the block

It's dynamic, it rotates between different items in a Subject, in my case, Computer Certification books.

If you mean the page http://www.tomshawk.com/amazon.php?getpage=books
It is importing from a cgi script that I got for affiliation.

KW802
07-26-2004, 08:39 PM
I assume you mean the block

It's dynamic, it rotates between different items in a Subject, in my case, Computer Certification books.

If you mean the page http://www.tomshawk.com/amazon.php?getpage=books
It is importing from a cgi script that I got for affiliation.
It's been so long since I've signed up with Amazon that I haven't even checked lately what kind of ads they have now. Guess I have to go check them out. :D When I go to the page URL I'm getting a script error (line 460, char 2, error object expected, code 0).

Thanks

tomshawk
07-26-2004, 08:41 PM
It's been so long since I've signed up with Amazon that I haven't even checked lately what kind of ads they have now. Guess I have to go check them out. :D When I go to the page URL I'm getting a script error (line 460, char 2, error object expected, code 0).

Thanks
:eek: What browser and OS are you using, because it works fine for me?

KW802
07-26-2004, 09:02 PM
:eek: What browser and OS are you using, because it works fine for me?

WinXP & IE 6.0.28 -- Give me a few minutes and I'll grab a screen shot.

Edit: OK, that took me a tad longer than I thought it would; had to U/L to my own site because it was going to be too big as an attachment unless I really killed it. Screen shot is here (http://www.farpointstation.org/temp/tomshawk_error.gif).

Edit 2: The page does display if I keep ignoring the error. Are you sure you're not getting a yellow icon in the bottom left of IE when you're viewing the page? Interestingly enough Firefox .91 doesn't seem to balk at it.

tomshawk
07-26-2004, 09:55 PM
Well, as strange as it is, I am running Windows XP with I.E. 6.0.28 as well

and it works perfectly

Try this.

In interenet explorer, go to Tools\Internet Options\Hit the Advanced button up top\
Put a checkmark in the box that says "disable script debugging"

Click OK, then shut down internet explorer and restart it, then try again.

Let me know what happens?

KW802
07-26-2004, 10:05 PM
See edit #2 above.... Page loads but with yellow warning icon in bottom left and "Done, but with errors on page." displayed.

tomshawk
07-26-2004, 10:12 PM
I saw the edit 2

I dont get the yellow warning icon.

I was hoping this would solve the problem. Guess not.

Sorry, I wish I knew what it was <shrugs>

Brian
07-26-2004, 11:33 PM
In your forum/includes/vba_cmps_include_bottom.php file look for:

global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox;

Replace that with:

global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox, $welcomeavatar;

And that should allow the avatar. :)

tomshawk
07-27-2004, 08:12 AM
Perfect,

Does the happy dance http://www.tomshawk.com/forums/images/smilies/banana.gif

Thank you Sir ;)

KW802
07-27-2004, 09:33 AM
I saw the edit 2

I dont get the yellow warning icon.

I was hoping this would solve the problem. Guess not.

Sorry, I wish I knew what it was <shrugs>
Hey, I'm not exactly concerned about it but I figured you'd might want to know if any of your potential customers are having problems. <shrugs>.

Anyway, I think I tracked the problem down. If you visit the main site first (http://www.tomshawk.com) and then go to the http://www.tomshawk.com/amazon.php?getpage=books page everything works fine. But, if you change your style first and then go to the page then the error occurs.

You can see this in action by going to http://www.tomshawk.com/amazon.php?getpage=books and then changing your style to "Professional" -- It then launches http://www.tomshawk.com/amazon.php?getpage=books&styleid=5. Notice the URL? The style option "&styleid=5" is getting passed into the script as a variable.

In IE the problem manifests itself immediately in the way of a script error. In FireBird if you do the above and then choose "Tools / Javascript Console" you can see the errors.

Oh well, it was a nice mental challenge last night to get it working as a CMPS module (it was hokey requiring some JavaScript tricks, but eventually got it working).

tomshawk
07-27-2004, 07:40 PM
Hey, I'm not exactly concerned about it but I figured you'd might want to know if any of your potential customers are having problems. <shrugs>.

Anyway, I think I tracked the problem down. If you visit the main site first (http://www.tomshawk.com (http://www.tomshawk.com/)) and then go to the http://www.tomshawk.com/amazon.php?getpage=books page everything works fine. But, if you change your style first and then go to the page then the error occurs.

You can see this in action by going to http://www.tomshawk.com/amazon.php?getpage=books and then changing your style to "Professional" -- It then launches http://www.tomshawk.com/amazon.php?getpage=books&styleid=5. Notice the URL? The style option "&styleid=5" is getting passed into the script as a variable.

In IE the problem manifests itself immediately in the way of a script error. In FireBird if you do the above and then choose "Tools / Javascript Console" you can see the errors.

Oh well, it was a nice mental challenge last night to get it working as a CMPS module (it was hokey requiring some JavaScript tricks, but eventually got it working).
Nice catch, thank you KW802;

I see the problem now. It is definately the professional style and that page causing the problem.

But it is not a CMPS Module it is a hack called "simplepage" I downloaded from http://www.vbulletinstyles.com

Thank you ;) I will look into this ;)

KW802
07-27-2004, 07:51 PM
Nice catch, thank you KW802;

I see the problem now. It is definately the professional style and that page causing the problem.

But it is not a CMPS Module it is a hack called "simplepage" I downloaded from http://www.vbulletinstyles.com

Thank you ;) I will look into this ;)
Sorry, I should've clarified..... since I'm having problems with a different project of mine I needed a mental break last night so I ended up trying to make the Amazon Products Feed CGI script into a module. I thought I had it but then I realized that Firebird 0.9 was behaving differently than I was expecting. I'm hoping tonight to have a 'rough hack' of some code done for it. Don't know if I'll use it or not but it was still a good learning exercise for me. The method you're doing it now will ensure the most compatibility with different browsers while the brute force method I did to get working in a module would assume IE 4+ or Firebird.

Yes, yes, I'm a programming geek..... when I can't figure out my own problems I need to keep the mind busy by doing other tasks. :o

Edit: If you want to see one the experiments, check out http://www.farpointstation.org/index.php?page=amazon&styleid=12 ... for testing I've been using IE6 and Mozilla .91 at 1024x768... seems to work fine in IE but I have a nagging issue with Mozilla yet ... the initial page loads fine and if you make your browser window wider it works fine but if you make the Mozilla browser narrower after the initial load then it starts truncating the buttom the more narrow you get (doesn't do it in IE, just Mozilla).

SGT Rock
03-20-2005, 01:43 PM
Hey, I did all this, but all I get is a red x icon where the avatar should be. Can I get a little help please :D

http://hikinghq.net