Go Back   Pictual Design Forums > Miscellaneous > Downloads
Top Posters Referers Register Members List Calendar Search Today's Posts Mark Forums Read

Downloads All links from downloads are posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-30-2005, 08:31 AM
FireNova FireNova is offline
Returning Member
Elite Member (500+ posts)
 
Location: Uk
Rep Power: 0
FireNova is an unknown quantity at this point
Send a message via MSN to FireNova
Default

File Name :: Latest 10 Downloads List
Author :: FireNova
Category :: Ipb Mods
Description ::
This script will show the last x downloads from your ipb forums. This requires you to have the download mod already installed. This mod was made using the D2-Downloads System 2.0 databse fields. The forum that this has been tested on were the ipb 2.0x.

This is a PHP script. In order for it to run, you must have PHP on your webhosting account. If you are not sure about this, then ask your webhost about it.

It is only a very simple script and an example of what it looks like is here.

http://p3rc3pt10n.net

In the downloads box.

Please leave the copyright notice in. It will NOT show up when the script is used.

enjoy using it!
FireNova[P3rc3pt10n.net]

View File
Reply With Quote
  #2  
Old 09-20-2005, 12:19 PM
Chaos King Chaos King is offline
Returning Member
 
Rep Power: 0
Chaos King is off the scale
Default

nice, i saw it on invisionize!
Reply With Quote
  #3  
Old 11-06-2005, 06:04 PM
GR3Z GR3Z is offline
Returning Member
 
Rep Power: 0
GR3Z is off the scale
Default

You didn't seem to reply on invisionize so i posted here

http://fractical.teamhalo.co.uk/Forum_Stats is where it is at the bottom.

the only problem is that instead of showing as
Code:
http://fractical.teamhalo.co.uk/forum/index.php?download=22


its like this


Code:
http://fractical.teamhalo.co.uk/forumindex.php?download=22


i followed the steps and it doesn't work here is my code. (xx is my database info)

Code:
<? /* P3rc3pt10n Downloads List. Thank you for using this simple ipb mod. Version 1.0.2 Created August 17th 2005 COPYRIGHT P3rc3pt10n.net 2005 You are not permitted to sell this script, but you can use it, copy it or distribute it, providing that you do not delete this copyright notice, and you do not remove any reference to P3rc3pt10n.net DESCRIPTION This script will show the last x downloads from your ipb forums. This requires you to have the download mod already installed. This mod was made using the D2-Downloads System 2.0 databse fields. The forum that this has been tested on were the ipb 2.0x. This is a PHP script. In order for it to run, you must have PHP on your webhosting account. If you are not sure about this, then ask your webhost about it. SETUP INSTRUCTIONS Step 1: Replace Username and Password to your actual Mysql username and password. Step 2: Replace Database_name with the name of your ipb mysql database. Step 3: Replace http://siteurl.com/forums/ with the actual url to your forums. Step 4: Upload the file to your webspace and link it to where you want to show it. You can link it by <?php include('downloadlist.php'); ?> Note: If you wish to change it from lastest 10 to X amount find the following phrase limit 10"); change the 10 to the number of downloads you wish to show. Thanks for using this Firenova[P3rc3pt10n.net] Edits: 30 August 05 Add boardurl varible to make things easier. */ echo 'Latest 10 Downloads: <br /> <br /> '; //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","xxx","xxx"); //select which database you want to edit mysql_select_db("Database_Name"); //enter your forum url $board_url = 'http://fractical.teamhalo.co.uk/forum/'; //Do NOT edit below this unless you know what you are doing! $result = mysql_query("select * from ibf_files order by id desc limit 10"); while($r=mysql_fetch_array($result)) { $fname=$r["fname"]; $id=$r["id"]; echo " ▪ <a href='/forum/index.php?download=$id' title='$fname'>$fname</a> <br /><br /> "; } echo "<div align='center'> <a href='/forum/index.php?act=downloads' title='View All Downloads'>View All Downloads</a></div>"; ?>


can you give me code to fix this please ?

thanks
Reply With Quote
  #4  
Old 11-07-2005, 07:55 AM
Insaze Insaze is offline
Returning Member
Advanced Member (50+ posts)
 
Rep Power: 0
Insaze is off the scale
Default

Quote:
//connect to mysql
//change user and password to your mySQL name and password
mysql_connect("localhost","xxx","xxx");

//select which database you want to edit
mysql_select_db("Database_Name");

//enter your forum url
$board_url = 'http://fractical.teamhalo.co.uk/forum/';

//Do NOT edit below this unless you know what you are doing!
$result = mysql_query("select * from ibf_files order by id desc limit 10");

while($r=mysql_fetch_array($result))
{

$fname=$r["fname"];
$id=$r["id"];

echo " ? $fname



";
}
i think thats how it works
one backslash too much spoils the whole thing
im not sure though :S
Reply With Quote
  #5  
Old 11-07-2005, 12:02 PM
FireNova FireNova is offline
Returning Member
Elite Member (500+ posts)
 
Location: Uk
Rep Power: 0
FireNova is an unknown quantity at this point
Send a message via MSN to FireNova
Default

if what insaze said doesnt work then on this line you have

$board_url = 'http://fractical.teamhalo.co.uk/forum/';

remove the last slash

$board_url = 'http://fractical.teamhalo.co.uk/forum';

because the code already has the slashes in
Reply With Quote
  #6  
Old 11-07-2005, 04:45 PM
GR3Z GR3Z is offline
Returning Member
 
Rep Power: 0
GR3Z is off the scale
Default

non of the above work
Reply With Quote
  #7  
Old 11-07-2005, 05:11 PM
FireNova FireNova is offline
Returning Member
Elite Member (500+ posts)
 
Location: Uk
Rep Power: 0
FireNova is an unknown quantity at this point
Send a message via MSN to FireNova
Default

oh im really sorry i havent updated the rar file in the download section the bottom of the code should look like this

while($r=mysql_fetch_array($result))
{

$fname=$r["fname"];
$id=$r["id"];

echo " ▪ $fname



";
}

echo "<div align='center'>
View All Downloads</div>";

?>
Reply With Quote
  #8  
Old 11-11-2005, 12:15 PM
GR3Z GR3Z is offline
Returning Member
 
Rep Power: 0
GR3Z is off the scale
Default

it still doesnt work :S
http://fractical.teamhalo.co.uk/Forum_Stats
Reply With Quote
  #9  
Old 11-11-2005, 12:20 PM
FireNova FireNova is offline
Returning Member
Elite Member (500+ posts)
 
Location: Uk
Rep Power: 0
FireNova is an unknown quantity at this point
Send a message via MSN to FireNova
Default

is this what your code looks like? Is it an exact copy part from the parts need to be changed?


Quote:
<?
/*

P3rc3pt10n Downloads List.

Thank you for using this simple ipb mod.

Version 1.0.2 Created August 17th 2005

COPYRIGHT P3rc3pt10n.net 2005

You are not permitted to sell this script, but you can use it, copy it or distribute it, providing that you do not delete this copyright notice, and you do not remove any reference to P3rc3pt10n.net

DESCRIPTION

This script will show the last x downloads from your ipb forums. This requires you to have the download mod already installed. This mod was made using the D2-Downloads System 2.0 databse fields. The forum that this has been tested on were the ipb 2.0x.

This is a PHP script. In order for it to run, you must have PHP on your webhosting account. If you are not sure about this, then ask your webhost about it.

SETUP INSTRUCTIONS

Step 1: Replace Username and Password to your actual Mysql username and password.
Step 2: Replace Database_name with the name of your ipb mysql database.
Step 3: Replace http://siteurl.com/forums/ with the actual url to your forums.
Step 4: Upload the file to your webspace and link it to where you want to show it. You can link it by

<?php include('downloadlist.php'); ?>

Note: If you wish to change it from lastest 10 to X amount find the following phrase

limit 10");

change the 10 to the number of downloads you wish to show.

Thanks for using this
Firenova[P3rc3pt10n.net]

Edits:

30 August 05
Add boardurl varible to make things easier.

*/

echo 'Latest 10 Downloads:




';

//connect to mysql
//change user and password to your mySQL name and password
mysql_connect("localhost","Username","Password");

//select which database you want to edit
mysql_select_db("Database_Name");

//enter your forum url
$board_url = 'http://siteurl.com/forums/';

//Do NOT edit below this unless you know what you are doing!
$result = mysql_query("select * from ibf_files order by id desc limit 10");

while($r=mysql_fetch_array($result))
{

$fname=$r["fname"];
$id=$r["id"];

echo " ▪ $fname



";
}

echo "<div align='center'>
View All Downloads</div>";

?>
Reply With Quote
  #10  
Old 11-11-2005, 01:20 PM
Insaze Insaze is offline
Returning Member
Advanced Member (50+ posts)
 
Rep Power: 0
Insaze is off the scale
Default

a slash is missing FN... maybe u did a backslash somewhere or forgot sommat im too lazy to look through this now
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 01:25 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.