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,021
  • Total Topics: 21,332
  • Online today: 582
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 299
  • Total: 299

Downloads: Show x New Files

Started by OzButcher, January 11, 2007, 12:21:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

OzButcher

I'm displaying the standard Downloads: Show x New Files in a block.

How can I add a bullet in front of each new download?

SRaven

#1
if you want to use them in a list, you could use:

<ul>
<li>Download 1
<li>Download 2
<li>Download 3
<li>Download 4
<li> etc...
</ul>

or put  • infront of each download name.

haxen

Oz, what is your code and what type of block did u use to get that?

OzButcher

ah I forgot to mention... I used a TPMODULE to display that data.

Went into admin center, created a new block 'TPmodule' selected 'Downloads: Show x New Files'. I know its somewhere in the php files... if someone knows where the appropriate code is and how to change it that would be great. :)

akulion

#4
i dont have the time to test it out right now so this is a wild guess from a quick view in the file...

check in TPortalBlocks.template.php file (in the default themes folder)

in it find this code:

case 'art-recent';
$it=array();
$it=art_recentitems('5','date');
if(sizeof($it)>0){
foreach($it as $item){
echo '<span class="smalltext"><a title="'.$item['date'].'" href="'.$scripturl.'?page='.$item['id'].'">'.$item['subject'].'</a>
</span><br />';


To add a bullet to each try this: (replace above with below code)

case 'art-recent';
$it=array();
$it=art_recentitems('5','date');
if(sizeof($it)>0){
foreach($it as $item){
echo '<li><span class="smalltext"><a title="'.$item['date'].'" href="'.$scripturl.'?page='.$item['id'].'">'.$item['subject'].'</a>
</span></li><br />';


just be sure to make a backup of the tportalblocks.template.php file before attempting modifications :up:

in case u have problem finding the code just search for function TPortal_module() the code is in that function, infact it deals with thedifferent types of download modules that function

OzButcher

#5
thanks Aku, will give it a go.

bugger didnt change anything. I had a look at all themes but nothing changed.

This website is proudly hosted on Crocweb Cloud Website Hosting.