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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 651
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 163
  • Total: 163

Remove the "by username"

Started by peterjc, December 24, 2007, 03:51:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

peterjc

I want to use the categorybox to add the game category.  So, usually, the list that display at the categorybox will have the example "by peterjc".  So, how to remove it so it just show the link and does not show who create the list?

Thank you

lebisol

is it that you are using an article in the block?
...what is that you consider "categorybox" ? can u link...

peterjc

The URL is http://www.compufo.totalh.com.

Look at the right panel lable "play the game".

I want to remove the "by peterjc".  Do you know how?

lebisol

so they look like articles from the same category in the block named "play the game"....to easily customize this look for Dragoons snip "recent articles". you can not change this in default.
All the best!

peterjc

Quoteto easily customize this look for Dragoons snip "recent articles".

sorry, what do you mean by dragoons snip???

thank.

Dragooon

http://www.tinyportal.net/index.php?topic=20261.0 <== Is what he/she meant.

If thats not comfortable with you,
In /Themes/default/TPortalBlocks.template.php Find:
function TPortal_categorybox()
{
    global $context, $settings, $options, $txt, $scripturl;

if(isset($context['TPortal']['blockarticle_titles'][$context['TPortal']['blocklisting']])){
echo '<div class="smalltext" ', (sizeof($context['TPortal']['blockarticle_titles'][$context['TPortal']['blocklisting']])>$context['TPortal']['blocklisting_height'] && $context['TPortal']['blocklisting_height']!='0') ? ' style="overflow: auto; width: 100%; height: '.$context['TPortal']['blocklisting_height'].'em;"' : '' ,'>';
foreach($context['TPortal']['blockarticle_titles'][$context['TPortal']['blocklisting']] as $listing){
if($listing['category']==$context['TPortal']['blocklisting'])
echo '<b><a href="'.$scripturl.'?page='.$listing['id'].'">'.$listing['subject'].'</a></b> '.$txt[525].' '.$listing['poster'].'<br />';
}
echo '</div>';
}
}

And replace it with
function TPortal_categorybox()
{
    global $context, $settings, $options, $txt, $scripturl;

if(isset($context['TPortal']['blockarticle_titles'][$context['TPortal']['blocklisting']])){
echo '<div class="smalltext" ', (sizeof($context['TPortal']['blockarticle_titles'][$context['TPortal']['blocklisting']])>$context['TPortal']['blocklisting_height'] && $context['TPortal']['blocklisting_height']!='0') ? ' style="overflow: auto; width: 100%; height: '.$context['TPortal']['blocklisting_height'].'em;"' : '' ,'>';
foreach($context['TPortal']['blockarticle_titles'][$context['TPortal']['blocklisting']] as $listing){
if($listing['category']==$context['TPortal']['blocklisting'])
echo '<b><a href="'.$scripturl.'?page='.$listing['id'].'">'.$listing['subject'].'</a></b>';
}
echo '</div>';
}
}

Backup before editing though.
Untested but should work.

lebisol

Quote from: peterjc on December 24, 2007, 07:01:04 AM
sorry, what do you mean by dragoons snip???

thank.
He is this weird guy that makes cool snips for free...
Sorry Dragoon could not resist. :)

Dragooon

Quote from: lebisol on December 24, 2007, 08:36:36 AM
He is this weird guy that makes cool snips for free...
Yes I make snippets for free(Don't know if they are cool). But...Hey How am I weird....:P

Skhilled

Admit it! You like being weird! LOL

This website is proudly hosted on Crocweb Cloud Website Hosting.