TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,911
  • Total Topics: 21,307
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 675
  • Total: 675

Horizontal User and Forum Stats block?

Started by keith021773, October 28, 2009, 01:30:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Freddy

Try changing the $bullet line near the top to this :

$bullet = '<img src="http://www.daddyplace.com/Themes/default/images/tinyportal/TPdivider.gif" style="margin-right: 5px; margin-left: 5px" />';

I think it is the format of the URL that is screwing with it.

keith021773

It looks to be working now.     Thanks again Freddy.    Your great at what you do!

Freddy

Hehe, thanks Keith, I'm glad we got you sorted out  :)  All the best with the site.


keith021773

Hey Freddy.   One more thing.   LOL 

It appears now, and I don't know why, that after we put the above code into place now the avatar appears on the main page and the forum page, but when you go to the post screen or unread screen the avatar is now gone.

LOL   Did I do something wrong?

Freddy

Changing that bit of code would be unlikely to cause this problem.  I would go back over your code and check you didn't alter something by mistake.

IchBin

Is this part necessary?
&& isset($context['TPortal']['userbox']['avatar'])

I haven't looked at the code or anything. But does that array/variable exists through each page load?

Freddy

#37
It should do, I tested it and it worked fine here.  The code is a rip from Bloc's code - pretty much verbatim, so it should work just the same as the original blocks do.
It was working before but that's possibly something for me to look at though...

Edit : Yeah works fine here - also works with the original blocks deactivated, so it's not that.

Keith, did you also change anything else ?

keith021773

Your gonna laugh, but it's working now.   

It really confuses me.   I didn't change anything from before (I was working outside). 

I'm gonna watch it over the next couple of days and I'll get back with you guys.

Freddy

 :D well things like that do happen sometimes...fingers crossed as I can't think of what would cause it.

This website is proudly hosted on Crocweb Cloud Website Hosting.