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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 500
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 445
  • Total: 445

How can I get read of the extra space in this link?

Started by ApplianceJunk, January 06, 2008, 10:57:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ApplianceJunk

In the userbox on our forums I have a link for messages:



There is a spaces after the word Messages: and before the number of messages you have that I would like to remove.


For example it looks like this now. "Messages:  134".

I want it to look like this. "Messages:134"

I believe this is the code for it the way it is now, but I do not know what to change in it.

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm']){
echo '<br />'.$bullet.'<a href="', $scripturl, '?action=pm">' .$txt['tp-pm'].' ', $context['user']['messages'], '</a>';
if($context['user']['unread_messages']>0)
echo '<br />'.$bullet.'<a style="font-weight: bold; " href="', $scripturl, '?action=pm">' .$txt['tp-pm2'].' ',$context['user']['unread_messages'] , '</a>';
}


Could someone tell me what to change in it?

Guess we will need this info too so I stay with in the posting guide lines.

1. If you have a URL, please post it.

http://www.ApplianceJunk.com

2. If you are getting an error message, copy it and paste it into your post. You can delete any privacy info, like usernames, etc., but try to keep as much of the error message intact as possible.

We are not getting any error messages at this time.


3. Let us know what version(s) you are using.
       
SMF 1.1.4/TinyPortal v0.9.8


4. Do you have any mods installed? If yes, tell us.

We have these mods installed.

1. SMF 1.1.2 Update Package 1.1.2
2. SMF 1.0.11 / 1.1.3 Update 1.1 
3. Ad Managment 2.3
4. Streaming 3 4.2.2b
5. nwsw.nwswAdminAttachAnything 1.1 RC3
6. SMF Sitemap 1.2.1
7. Users Online Today Mod 1.4.0
8. SMF Arcade 2.0.11
9. URL Popup 1.0
10. SMF Trader System 1.1 
11. SMF Classifieds Recent Classifieds Board Index 1.0 
12. TinyPortal 0.983 
13. SMF Gallery Pro 1.3beta3 
14. SMF Gallery Pro Upgrade 1.3
15. SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0 
16. Internal Links Use Same Window 1.1 
17. SMF Classifieds 1.1
18. Social Bookmarks 1.1
19. SSI Topic and Replies 0.1 
20. SMFBlog 0.1 Beta 
21. Treasury 2.04
22. Topic description 1.1

IchBin

' .$txt['tp-pm'].' ', $context['user']['messages'], '

Needs to be:
' .$txt['tp-pm'].'', $context['user']['messages'], '

ApplianceJunk

IchBin,

I tired the code you posted first.

That alone did not do it.

So then I thought maybe the word "Messages:" has a extra space too.

So I found the text code

$txt['tp-pm']='Messages: ';

and changed it to

$txt['tp-pm']='Messages:';

So with the code you posted and the other I found it worked. :)

You taught me something new again, thanks!


This website is proudly hosted on Crocweb Cloud Website Hosting.