Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
zacklk
Newbie
Newbie



Joined: Mar 20, 2010
Posts: 35

PostPosted: Tue Mar 23, 2010 5:00 am Reply with quote

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&amp;d_op=viewdownloaddetails&amp;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.
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Tue Mar 23, 2010 8:08 am Reply with quote

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
 
View user's profile Send private message Visit poster's website
zacklk
Newbie
Newbie



Joined: Mar 20, 2010
Posts: 35

PostPosted: Tue Mar 23, 2010 10:36 am Reply with quote

thank you so much.i did email u the file. thanks again for helping out.
 
View user's profile Send private message
zacklk
Newbie
Newbie



Joined: Mar 20, 2010
Posts: 35

PostPosted: Tue Mar 23, 2010 11:41 am Reply with quote

I got it. hope this is correct.

i change this code:

Code:
$content .= "<strong><big>·</big></strong> $a: <a href=\"modules.php?name=Downloads&amp;d_op=viewdownloaddetails&amp;lid=$lid&amp;title=$title\">$title2</a><br>[$hitstext: $hits]<br><br>";


to this:

Code:
$content .= "<strong><big>·</big></strong> $a: <a href=\"modules.php?name=Downloads&amp;d_op=viewdownloaddetails&amp;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.
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Tue Mar 23, 2010 1:24 pm Reply with quote

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 
View user's profile Send private message Visit poster's website
zacklk
Newbie
Newbie



Joined: Mar 20, 2010
Posts: 35

PostPosted: Tue Mar 23, 2010 1:30 pm Reply with quote

Great. thanks a lot sir. learned a lot from you. thanks for all ur help.
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch