PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Andrzej
Hangin' Around


Joined: Jan 22, 2004
Posts: 31

PostPosted: Mon Sep 06, 2004 10:47 am Reply with quote Back to top

I have a problem with 6.5. The same is with original distro and the patched one.

When I add a comment to News (doesn't depend - both plain text and html) when I insert:
Code:
Czytaj: <a href=<a href=http://pawica.net><u>TRATATATATATA</u></a>

In the preview it's OK, when I post it I get such a linkadress:
Code:
http://pawica.nettitle='http//pawica.net'

which I have to correct in the database.

Anybody can help? Crying or Very sad

Andrzej
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15040
Location: Kansas

PostPosted: Mon Sep 06, 2004 11:35 am Reply with quote Back to top

Do you really have?
Code:
Czytaj: <a href=<a href=http://pawica.net><u>TRATATATATATA</u></a>

If so, it should be
Code:
Czytaj: <a href="http://pawica.net"><u>TRATATATATATA</u></a>
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Andrzej
Hangin' Around


Joined: Jan 22, 2004
Posts: 31

PostPosted: Mon Sep 06, 2004 11:54 am Reply with quote Back to top

Yes you a right, but I wrote only the link, that I see in the browser adress bar after clicking on the link (and the error message of course)

It looks like in the comment:
TRATATATATATA [pawica.net]

but the adress under this text is
Only registered users can see links on this board!
Get registered or login to the forums!


After looking in the preview it's OK, then it makes sth like that messraven

Andrzej

PS I've made such a test comment on this site, and there is the same effect. Look:
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15040
Location: Kansas

PostPosted: Mon Sep 06, 2004 12:02 pm Reply with quote Back to top

I just did a test comment with a hyperlink and it worked perfectly. Please post the code here as a code block to show me how you are typing it.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Andrzej
Hangin' Around


Joined: Jan 22, 2004
Posts: 31

PostPosted: Tue Sep 07, 2004 12:25 am Reply with quote Back to top

I type it :
Code:

Czytaj: <a href=http://www.prawica.net><u>Prawica.net</u></a>


I did it in this way in your news. Did you see?

Andrzej
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15040
Location: Kansas

PostPosted: Tue Sep 07, 2004 4:11 am Reply with quote Back to top

Yes, it is an error and I will look further into it. I have no answer at this time. Are you using GT or NG?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15040
Location: Kansas

PostPosted: Tue Sep 07, 2004 6:36 am Reply with quote Back to top

The error is in modules/News/comments.php in the function format_url(). This line is the line that is in error. I will be testing a fix as soon as I can.
Code:
       $comment = ereg_replace(">$links[$i]</a>", "title='$hrefs[$i]'> $links[$i]</a>$href", $comment);
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15040
Location: Kansas

PostPosted: Tue Sep 07, 2004 6:51 am Reply with quote Back to top

Replace
Code:
      $comment = ereg_replace(">$links[$i]</a>", "title='$hrefs[$i]'> $links[$i]</a>$href", $comment);

with
Code:
       $comment = ereg_replace(">$links[$i]</a>", " title='$hrefs[$i]'> $links[$i]</a>$href", $comment);
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Andrzej
Hangin' Around


Joined: Jan 22, 2004
Posts: 31

PostPosted: Tue Sep 07, 2004 7:45 am Reply with quote Back to top

Thank yuo Raven Very Happy

You are great !
RavensScripts

It works! You are making PHPNuke better and better!

What do you think - is it possible to make such a script in comments.php, that the user, who only pastes link - like that:
Code:

Read:
http://www.wyborcza.pl/howto.html

(a lot of non-expirienced do it) to make it live? When he posts it in the plain text mode? Now it is only a text. Could it be in the comment clickable?

Thanks again

Andrzej
PS. But is it possible, that this error is still present from version 6.5???
Bang Head
View user's profile Send private message
Andrzej
Hangin' Around


Joined: Jan 22, 2004
Posts: 31

PostPosted: Wed Oct 20, 2004 9:38 am Reply with quote Back to top

The same change you need to do in comments.php on surveys module

Andrzej
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum