WarezCoders Forum

The Official Forum of The Warez Coders

Skip to content

Up Arrow (Mod) v2

Paid/Free Modules and any other Modifications from the community can be found here

Moderator: WarezCoders Team

Up Arrow (Mod) v2

Postby 1DDL on Sat Jan 23, 2010 11:29 pm

Original code by JMZ
benzoman managed to get this to work with v2. Don't remember if benzoman had to change anything but here you go....

Open index.php
Find:
Code: Select all
foreach($downloads as $dl) {


Replace:
Code: Select all
$lastSURL = null;
foreach($downloads as $dl) {
$siteLink = '<a href="http://'.$dl['surl'].'/" target="_blank">'.$dl['sname'].'</a>';
if($lastSURL == $dl['surl'])
$siteLink = "^";
$lastSURL = $dl['surl'];



Find where you want to echo it, use:
Code: Select all
$siteLink



For example of above:
Code: Select all
<?=$siteLink?>


Original Poster: benzoman
My Warez Site: http://1DDL.net
Image
1DDL
 
Posts: 206
Joined: Thu Apr 30, 2009 3:49 pm
Location: Pakistan

Re: Up Arrow (Mod) v2

Postby Mr. Chinn on Sat Feb 06, 2010 12:12 pm

"Find where you want to echo it, use:"

? Where do you put it? And please don't say something to the effect of "where you want it" Where do you put it in the code to show the arrows.
Mr. Chinn
 
Posts: 23
Joined: Thu Mar 12, 2009 5:44 am

Re: Up Arrow (Mod) v2

Postby Nemesis on Sat Feb 06, 2010 3:58 pm

Find:
Code: Select all
<td>Rating</td>


Add next to it:

Code: Select all
<td><center>Provider<center></td>


Next find:
Code: Select all
<td><?=$dl[rating]?></td>


Add after it:

Code: Select all
<td><center><?=$siteLink?></center></td>
Nemesis
 
Posts: 11
Joined: Fri Jan 29, 2010 2:41 pm

Re: Up Arrow (Mod) v2

Postby Gempis on Tue Feb 16, 2010 8:21 pm

Worked great...

Thanks :)
Gempis
 
Posts: 20
Joined: Tue Feb 16, 2010 8:16 pm

Re: Up Arrow (Mod) v2

Postby devilsdivine on Tue Mar 09, 2010 5:00 pm

Didnt work for me, it gives just arrow with no linking to it.
Can anyone please help??
devilsdivine
 
Posts: 23
Joined: Tue Mar 09, 2010 3:46 pm

Re: Up Arrow (Mod) v2

Postby 1DDL on Thu Mar 11, 2010 4:21 pm

Its working fine. You can check it here
http://www.1ddl.net

And screenshot please of your site
My Warez Site: http://1DDL.net
Image
1DDL
 
Posts: 206
Joined: Thu Apr 30, 2009 3:49 pm
Location: Pakistan

Re: Up Arrow (Mod) v2

Postby devilsdivine on Mon Mar 22, 2010 12:25 pm

not working for me, added the code as per said above.
Do i need to add anything else also ??
here's my site: http://devilsdivine.info/ddl/
Please help.
Thank you.
devilsdivine
 
Posts: 23
Joined: Tue Mar 09, 2010 3:46 pm

Re: Up Arrow (Mod) v2

Postby Gempis on Fri Apr 02, 2010 1:24 am

Gempis
 
Posts: 20
Joined: Tue Feb 16, 2010 8:16 pm

Re: Up Arrow (Mod) v2

Postby death.bliss on Mon May 03, 2010 6:26 pm

to get this working
search index.php
for:
Code: Select all
$downloads = $core->fetchDownloads();


replace it with:
Code: Select all
$downloads = $core->fetchDownloads(true);



you can add image instead of ^.

edit:
Code: Select all
$siteLink = "^";


as
Code: Select all
$siteLink = '<img src="your image path" />';
death.bliss
 
Posts: 14
Joined: Sat May 01, 2010 5:38 pm

Re: Up Arrow (Mod) v2

Postby worldboard on Mon Jun 21, 2010 9:24 am

can some body tell me how i can get downloads from a site

like this http://www.yourdomain.com/site/warezwitch.com

for V2
worldboard
 
Posts: 44
Joined: Wed Mar 04, 2009 12:26 am


Return to Community Modifications

Who is online

Users browsing this forum: No registered users and 1 guest

cron