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,966
  • Latest: safir45
Stats
  • Total Posts: 195,985
  • Total Topics: 21,321
  • Online today: 1,061
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 312
  • Total: 312

Finding your own posts

Started by nokonium, October 27, 2005, 07:58:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nokonium

What would be even better, Bloc, would be to only display the posts, currently it seems to load the whole of the profiletemplate, including the smaller 'Profile Info' table. Is there an easy way around that?

redeye

Quote from: nokonium on October 30, 2005, 01:51:47 PM
Have you updated both files?

Have you refreshed the page Ctrl+F5?

Yes, both the template.php and the TPenglish.php

Tried the "flush" also, without success.

The original unread and replies links are still showing as before.

Nokonium

#12


This is the code I have for the whole userbox section. My default theme is currently on 0.75 but I've got it working in my customised theme which is still partly 0.74

// Tportal userbox
function TPortal_userbox()
{
ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  global $context, $settings, $options, $scripturl, $txt, $modSettings;

ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  $bullet = '<img src="'.$settings['images_url'].'/TPdivider.gif" alt="" border="0" style="margin:0 2px 0 0;" />';
ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  $bullet2 = '<img src="'.$settings['images_url'].'/TPdivider2.gif" alt="" border="0" style="margin:0 2px 0 0;" />';
ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  echo'<table width="99%" cellpadding="0" cellspacing="5" border="0"><tr>';
ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  echo '<td width="100%" valign="top" class="smalltext" style="font-family: verdana, arial, sans-serif;">';

ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  if (!empty($context['user']['avatar']) && isset($context['TPortal']['userbox']['avatar']))
ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  echo $context['user']['avatar']['image'] . '<br />';

ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  // If the user is logged in, display stuff like their name, new messages, etc.
ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  if ($context['user']['is_logged'])
ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  {

ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  echo '<span class="normaltext">
ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ', $txt['hello_member'], ' <b>', $context['user']['name'], '</b></span>';

ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  // 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>';

ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  }
ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  // Are there any members waiting for approval?
ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  if (!empty($context['unapproved_members']))
ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  echo '<br />'.$bullet.'<a href="', $scripturl, '?action=regcenter">'.$txt['tp_unapproved_members'].'<b> '. $context['unapproved_members']ÂÃ,  . '</b></a>';

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


[edit]Just done a screengrab[/edit]

redeye

Nokonium

"Just shoot me!"  :uglystupid2:

I'd downloaded the files, edited them and then loaded them into my test forum and was checking my live forum!   ???

Nokonium



Nokonium

#16
I've been getting errors from this 'tweak'

8: Undefined index: member
File: /homepages/6/d119724375/htdocs/sgr/Themes/South-Gwent/TPortalBlocks.template.php (eval?)
Line: 232

If you change [member] to [user] in line 232 it appears to stop the errors. B******d if I know what else it does though .......ÂÃ,  :uglystupid2:



QuoteFatal error: Cannot redeclare recentposts() (previously declared in /homepages/6/d119724375/htdocs/sgr/Sources/Recent.php:146) in /homepages/6/d119724375/htdocs/sgr/Sources/Load.php(1600) : eval()'d code on line 432

This website is proudly hosted on Crocweb Cloud Website Hosting.