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: 195,994
  • Total Topics: 21,325
  • Online today: 142
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 72
  • Total: 72

User info block problems when looking at TP download page.

Started by ApplianceJunk, February 06, 2008, 01:27:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ApplianceJunk

Link to my site: http://appliancejunk.com
SMF version: SMF 1.1.4
TP version: TinyPortal v0.9.8
Theme name and version: Dilber MC
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 
23. Auto Embed Video Clips 1.9
Related Error messages: No Error Messages.

As showen in the two attachments below the last line in my user info block is not showing up when I'm on the download page.

This only seem to happen when a user is logged in and looking at the download page.
http://appliancejunk.com/forums/index.php?action=tpmod;dl

Can you give me some idea were to start looking and what to look for?

Thanks,
AJ





ApplianceJunk

#3
I would guess it's something I did when I modified it then.

Here is that part of the code.

if(isset($context['TPortal']['userbox']['unread'])){
echo '<br />'.$bullet.'<a href="', $scripturl, '?action=profile;u='.$context['user']['id'].';sa=showPosts">'.$txt['tp-showownposts'].'</a>
     <br />'.$bullet.'<a href="', $scripturl, '?action=unreadreplies">'.$txt['tp-replies'].'</a>      
                 <br />'.$bullet.'<a href="', $scripturl, '?action=unread;all;start=0">' .$txt['tp-unread'].'</a>';
}


See anything obvious?

Thanks,

Edited to add...

This is what I have in Themes\default\languages\TPortal.english.php

Quote// for userbox block
$txt['tp-pm']='Messages:';
$txt['tp-pm2']='New: ';
$txt['tp-unread']='Unread topics & post';
$txt['tp-replies']='Show unread replies';
$txt['tp_unapproved_members']='Unapproved: ';
$txt['tp_maintenace'] = 'Maintenance Mode';
$txt['tp-loggedintime'] = 'Total Logged In:';
$txt['tp-writearticle']= 'Submit an article!';
$txt['tp-editarticles']= 'Edit articles';
$txt['tp-editarticle']= 'Edit article';

IchBin

What is probably happening is that tp-unread is also declared in the downloads. Check the langauage files. I think there's a language file for the download section. Make sure you make the same change you have done in the TPortal.english.php if its there.

ApplianceJunk

Quote from: IchBinâ,,¢ on February 06, 2008, 04:01:57 PM
What is probably happening is that tp-unread is also declared in the downloads. Check the langauage files. I think there's a language file for the download section. Make sure you make the same change you have done in the TPortal.english.php if its there.

That is what I was thinking last night as I search through a number of english.php files to see if I could find the same $txt['tp-unread']= but I could not find anything.

I dont' really see a file that has a name that would indicate it was for the download section. Maybe I just am not looking in the right place yet.


IchBin

I think it may be in the TPortalAdmin.english file. See if that has an effect on it.

ApplianceJunk

Quote from: IchBinâ,,¢ on February 06, 2008, 04:49:53 PM
I think it may be in the TPortalAdmin.english file. See if that has an effect on it.

Thats were it was.
The one I have not looked at, lol...

line 404
$txt['tp-unread'] = 'Unread';

Changed it, looks good now.



This website is proudly hosted on Crocweb Cloud Website Hosting.