Page Index Toggle Pages: 1 [2] 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) URL Dereferer mod SP1.3 (Read 20760 times)
Outlaw
Full Member
***
Offline


I love YaBB 1G - SP1.2!

Posts: 191
Location: Essex County
Joined: Apr 9th, 2003
Gender: Male
Re: URL Dereferer mod SP1.3
Reply #15 - Jun 12th, 2003 at 12:37pm
Print Post  
I await your fix.   
   
Thanks!   
  
Back to top
 
IP Logged
 
Outlaw
Full Member
***
Offline


I love YaBB 1G - SP1.2!

Posts: 191
Location: Essex County
Joined: Apr 9th, 2003
Gender: Male
Re: URL Dereferer mod SP1.3
Reply #16 - Jun 13th, 2003 at 11:29pm
Print Post  
I still await your fix... Wink
  
Back to top
 
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: URL Dereferer mod SP1.3
Reply #17 - Jun 14th, 2003 at 12:44pm
Print Post  
Outlaw wrote on Jun 13th, 2003 at 11:29pm:
I still await your fix... Wink

1.0b is online now, which is the fixed code for board url's
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
Javvy
Full Member
***
Offline


YaBB ROCKS!!

Posts: 207
Location: Jacksonville
Joined: Oct 7th, 2002
Gender: Male
Re: URL Dereferer mod SP1.3
Reply #18 - Jun 15th, 2003 at 3:44am
Print Post  
Quote:
1.0b is online now, which is the fixed code for board url's


Works nicely now Ron. Thanks!


  
Back to top
WWW  
IP Logged
 
tango_girl
New Member
*
Offline


¿Qué tal?

Posts: 15
Location: Suffolk, England and Buenos Aires
Joined: Feb 12th, 2003
Gender: Female
Re: URL Dereferer mod SP1.3
Reply #19 - Jun 16th, 2003 at 9:44pm
Print Post  
Perfect! Thank you very, very much, Ron.   Smiley
  
Back to top
WWW  
IP Logged
 
Jannah
Guest


Re: URL Dereferer mod SP1.3
Reply #20 - Jul 7th, 2003 at 8:59pm
Print Post  
Hi

Will this mod work with earlier versions? I assume not since there's no Sources/SubList.pl in earlier versions, but is there a way we can modify it for sp1.1?

btw I assume the idea behind this mod is so that if users on your board link to certain things that may be copyright etc... that the link owner cannot trace where the user came from (ie. your yabb board)... correct me if i'm wrong..

thanx Smiley


  
Back to top
 
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: URL Dereferer mod SP1.3
Reply #21 - Jul 8th, 2003 at 10:03pm
Print Post  
No it will not (you have to convert the SubList.pl part back to SP1.1 YaBB.pl to make it work and yes it hides your referal url.
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
-:MiKAeL:-
Junior Member
**
Offline



Posts: 95
Location: Karlskrona
Joined: Nov 13th, 2002
Gender: Male
Re: URL Dereferer mod SP1.3
Reply #22 - Jul 8th, 2003 at 11:08pm
Print Post  
Hi Ron,

do you think this mod can be made compatible with Dave's file attachment mod? That mod makes this change to the Subs.pl file:

Code
Select All
sub readform {
	my(@pairs, $pair, $name, $value);
	my $query = new CGI;
	if($ENV{QUERY_STRING} =~ m~;~) { @pairs = split(/;/, $ENV{QUERY_STRING}); }
	else { @pairs = split(/&/, $ENV{QUERY_STRING}); }
	foreach $pair (@pairs) {
		  ($name,$value) = split(/=/, $pair);
		  $name =~ tr/+/ /;
		  $name =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
		  $value =~ tr/+/ /;
		  $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
		  $value =~ s/<!--(.|\n)*-->//g;
		  $INFO{$name} = $value;
	}
	my (@keylist) = sort($query->param());
	foreach $key (@keylist) {
		if ($query->param('file')) {
			$filename = $query->param('file');
			$postsize -= length($query->param('file'));
			$tmpfile = $query->tmpFileName($filename);
		}

		$postsize += length($query->param($key));
		# may be dealing with multiple values; need to join with comma
		$value = join(', ', $query->param($key));
		$FORM{$key} = $value;
	}
	$action = $INFO{'action'};
	&ToHTML($INFO{'title'}); &ToHTML($FORM{'title'});
	&ToHTML($INFO{'subject'}); &ToHTML($FORM{'subject'});
} 



and I can't figure out how to fit your code in here.

This is the step that fails:
Code
Select All
<search for>
	split_string(\$ENV{QUERY_STRING}, \%INFO, 1);
</search for>

<replace>
	split_string(\$testenv, \%INFO, 1);
</replace> 



  
Back to top
WWW  
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: URL Dereferer mod SP1.3
Reply #23 - Jul 9th, 2003 at 9:50pm
Print Post  
Michael,

You are trying to find SP1.3.1 code in SP1.1.
This is one routine in 1.1 that has been changed 99% so no way you can fit this in.
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
-:MiKAeL:-
Junior Member
**
Offline



Posts: 95
Location: Karlskrona
Joined: Nov 13th, 2002
Gender: Male
Re: URL Dereferer mod SP1.3
Reply #24 - Jul 9th, 2003 at 11:11pm
Print Post  
I understand. There was no file attachment mod available for SP1.3.1 so I installed Dave Baughman's for SP1.1 and had to make some changes in the Subs.pl file accordingly. Maybe I should see what attachment mods are available for SP1.3.1 today?

Thanks for answering.
  
Back to top
WWW  
IP Logged
 
Valtiel
God Member
*****
Offline


Copy & paste coder

Posts: 873
Joined: Sep 5th, 2003
Gender: Male
Re: URL Dereferer mod SP1.3
Reply #25 - Feb 9th, 2005 at 4:42pm
Print Post  
Old thread but found a little problem... on internal links pointing to an specific post, for example

http://www.boardmod.org/yabb/YaBB.pl?board=newssp13;action=display;num=105066568...

your mod deletes the anchor in the url and instead of the specific post you see the first post of that page (which would be #15 instead of #23 in this example):

http://www.boardmod.org/yabb/YaBB.pl?board=newssp13;action=display;num=105066568...
  

Proud copy & paste coder Grin
Admin @ Silent Hill Forum
Back to top
WWW  
IP Logged
 
Valtiel
God Member
*****
Offline


Copy & paste coder

Posts: 873
Joined: Sep 5th, 2003
Gender: Male
Re: URL Dereferer mod SP1.3
Reply #26 - Feb 11th, 2005 at 1:44pm
Print Post  
I also recognized the mod even doesn't work with all links... I had a link in a post in the form www.website.de and if you click on it the site is opened without any redirection.
  

Proud copy & paste coder Grin
Admin @ Silent Hill Forum
Back to top
WWW  
IP Logged
 
Valtiel
God Member
*****
Offline


Copy & paste coder

Posts: 873
Joined: Sep 5th, 2003
Gender: Male
Re: URL Dereferer mod SP1.3
Reply #27 - May 16th, 2006 at 7:47pm
Print Post  
After a long time I installed this mod again on my board and tried to fix the issues I posted above myself.

Finally I had a look at the code of YaBB 2.1 and copied some of it to my Y1 Sources. It works!

I did a small patch for Ron's mod that will result in the following:

- Also auto-linked URL's are derefered now

- URL's with anchors don't lose the anchors anymore after being derefered


Of course you have to install Ron's mod from post #1 of this thread before applying my patch.

The patch is not tested - I did it "blind" - but it should install and work. See attachment.
  

Dereferer_SP1.3._Patch_1.mod ( 2 KB | Downloads )

Proud copy & paste coder Grin
Admin @ Silent Hill Forum
Back to top
WWW  
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: URL Dereferer mod SP1.3
Reply #28 - May 16th, 2006 at 9:30pm
Print Post  
Super Valtiel, as I hardly have time to breath Wink
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
Valtiel
God Member
*****
Offline


Copy & paste coder

Posts: 873
Joined: Sep 5th, 2003
Gender: Male
Re: URL Dereferer mod SP1.3
Reply #29 - May 17th, 2006 at 12:18am
Print Post  
No prob Wink . I doubt anyone will still need/use this, but just in case...
  

Proud copy & paste coder Grin
Admin @ Silent Hill Forum
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 
Send TopicPrint