| Author |
Message |
zacklk
Newbie


Joined: Mar 20, 2010
Posts: 35
|
Posted:
Tue Mar 23, 2010 5:00 am |
|
I try to tap advanced download block. this is what i did.
GTB-block-Advanced_Downloads.php
| Code: |
<?php
/******************************************************************************
* Script: TegoNuke(tm) ShortLinks "Block Tap" for the block-Top10_Downloads.php
* block file.
* Version: 1.0
* Author: Rob Herder (aka: montego) of http://montegoscripts.com
* Contact: montego@montegoscripts.com
* Copyright: Copyright © 2006 by Montego Scripts
* License: GNU/GPL (see provided LICENSE.txt file)
******************************************************************************/
$urlin = array(
'"(?<!/)modules.php\?name=Downloads&d_op=viewdownloaddetails&lid=([0-9]*)"'
);
$urlout = array(
'downloadview-details-\\1.html'
);
?> |
problem is after the shot link which is
http://www.mysite.com/downloadview-details-12.html
it is taking &title="download title"
so it make the url
http://www.mysite.com/downloadview-details-12.html&title="download title"
Can you please tell me how to remove title from the url. thank you. |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Tue Mar 23, 2010 8:08 am |
|
Unfortunately, the best way to accomplish this is to remove that title from being produced on the link from within the block. I could give you the big long string of Reg Ex that is needed to "tap" title text, but this can be a real pain if you use odd characters in your titles or have a multi-lingual site.
If you are unsure of how to modify the block PHP code, feel free to email me the block file here:
montego {-at-} montegoscripts --dot-- com |
| |
|
|
 |
zacklk
Newbie


Joined: Mar 20, 2010
Posts: 35
|
Posted:
Tue Mar 23, 2010 10:36 am |
|
thank you so much.i did email u the file. thanks again for helping out. |
| |
|
|
 |
zacklk
Newbie


Joined: Mar 20, 2010
Posts: 35
|
Posted:
Tue Mar 23, 2010 11:41 am |
|
I got it. hope this is correct.
i change this code:
| Code: |
| $content .= "<strong><big>·</big></strong> $a: <a href=\"modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$lid&title=$title\">$title2</a><br>[$hitstext: $hits]<br><br>"; |
to this:
| Code: |
| $content .= "<strong><big>·</big></strong> $a: <a href=\"modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$lid\">$title2</a><br>[$hitstext: $hits]<br><br>"; |
this is correct right? and please tell me whether my GTB-block-Advanced_Downloads.php code is correct. thank you. |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Tue Mar 23, 2010 1:24 pm |
|
Too funny... I just sent you the code. I hadn't seen your reply yet. Yes, you did this correctly. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
zacklk
Newbie


Joined: Mar 20, 2010
Posts: 35
|
Posted:
Tue Mar 23, 2010 1:30 pm |
|
Great. thanks a lot sir. learned a lot from you. thanks for all ur help. |
| |
|
|
 |
|
|