Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1122

PostPosted: Tue Nov 23, 2021 6:52 am Reply with quote

Hi Guys,

Since a couple of days I am checking file by file searching for some errors. I wonder if the download module could be renew and more easy to use for administrators.



Code:
function Rankings() {

   global $prefix, $db, $bgcolor2, $bgcolor3, $content;
   include_once 'header.php';
   OpenTable();
   echo '<div style="text-align:center; font-weight:bold">::.::Ultimele Titluri Adaugate::.::</div>' , PHP_EOL
      , '<table cellpadding="0" cellspacing="0" width="100%" border="0">' , PHP_EOL
      , '<tr>' , PHP_EOL
      , '<td colspan="3" style="background:url(\'content.gif\')"><span style="color:#FFFFFF; font-weight:bold">Romaneasca</span></td>' , PHP_EOL
      , '<td colspan="1" style="background:url(\'content.gif\'); text-align:right;" title="Adaugat pe:"><span style="color:#FFFFFF; font-weight:bold">Hits</span></td>' , PHP_EOL
      , '</tr>' , PHP_EOL;
   $result = $db->sql_query('SELECT `lid`, `title`, `date`, `hits`, `version`, `filesize` FROM `' . $prefix . '_nsngd_downloads` WHERE `cid` = 19 ORDER BY `date` DESC LIMIT 10');
   for ($a = 1; $row = $db->sql_fetchrow($result); $a++) {
      $title2 = ereg_replace('_', ' ', $row['title']);
      $title2 = htmlspecialchars($title2, ENT_QUOTES, _CHARSET);
      if ($a <= 15) {
         echo '<tr style="background:' , $bgcolor3, '">' , PHP_EOL
            , '<td style="text-align:center"><span class="title"><img src="http://img294.imageshack.us/img294/2172/mp3nj1.gif" alt="" /></span></td>' , PHP_EOL;               
      } else {
         echo '<tr>' , PHP_EOL
            , '<td style="text-align:center">&nbsp;</td>' , PHP_EOL;
      }

      # neralex: not in use - why is it here?
      $content .= '<img src="images/mp3.gif" alt="" />&nbsp;' . $a . ': <a href="modules.php?name=Downloads&amp;d_op=viewdownloaddetails&amp;lid=' . $lid . '&amp;ttitle=' . $transfertitle . '"><span style="font-weight:bold">' . $title2 . '</span></a>&nbsp;(' . $hits . ')<br />[' . $addedon . ': <span style="font-weight:bold">' . $datetime . '</span>]<br /><hr>';



When I check external image, I noticed it doesn't work anymore.

Code:
'<td style="text-align:center"><span class="title"><img src="http://img294.imageshack.us/img294/2172/mp3nj1.gif" alt="" /></span></td>' , PHP_EOL; 


Does anyone have a better download module?
 
View user's profile Send private message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1772

PostPosted: Wed Nov 24, 2021 2:07 pm Reply with quote

hicuxunicorniobestbuildpc wrote:
When I check external image, I noticed it doesn't work anymore.

Code:
'<td style="text-align:center"><span class="title"><img src="http://img294.imageshack.us/img294/2172/mp3nj1.gif" alt="" /></span></td>' , PHP_EOL; 


Does anyone have a better download module?


This isn't a part of the RN core-package! Maybe edited by yourself on a custom way...?!

_________________
Github: RavenNuke 
View user's profile Send private message
hicuxunicorniobestbuildpc







PostPosted: Wed Nov 24, 2021 6:36 pm Reply with quote

Yes but I still don't like the way download module is made.
 
neralex







PostPosted: Wed Nov 24, 2021 11:02 pm Reply with quote

Do your own...
 
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6432

PostPosted: Thu Nov 25, 2021 6:48 am Reply with quote

I have similar concerns regarding the Web_Links module, but don't have time right now to do something different. I am considering using a content page instead since I don't really track hits. I could use another tool for tracking hits, too.

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©