Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.02.02 Distro
Author Message
Eduardo
Worker
Worker


Joined: Jul 20, 2004
Posts: 189
Location: Italy

PostPosted: Thu Jun 15, 2006 3:22 am Reply with quote

I have installed the RavenNuke7.6 v2.02.02 but I have a problem that I am not able to resolve.

I have made 2 topics in the nukefixes and nukeforums forums.

Evaders99 will not help me.

Following the link of my 2 topics.
Only registered users can see links on this board! Get registered or login! Only registered users can see links on this board! Get registered or login!

Thanks in advance for your assistance.

Regards
 
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Thu Jun 15, 2006 4:41 am Reply with quote

Evaders99 is a moderator here, and has contributed much to helping many, including on RavenNuke, so I'm surprised to hear that. Looking at your posts, it appears that he did try to help you.

You can control the valid HTML tags by editing your config.php file. If you use nukeWYSIWYG (which is included as an addon in RavenNuke 2.02.02), you have even greater control over the possible HTML tags.

You might also need to comment out or delete the line Evaders refers to in mainfile.php.

If you enter invalid HTML, the check_html function strips it out, which is why your popup wouldn't run.

Does that make sense?

_________________
I google, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
Eduardo
PostPosted: Thu Jun 15, 2006 5:14 am Reply with quote

Please, how I must edit the config.php file ?
 
kguske
PostPosted: Thu Jun 15, 2006 7:34 am Reply with quote

There is a line in your config.php file that defines a variable called $allowable_html. You can see the details in Only registered users can see links on this board! Get registered or login!.

How is your $allowable_html defined in your config.php?
 
Eduardo
PostPosted: Wed Jun 21, 2006 4:14 am Reply with quote

Following the config.php file:


<?php

if (stristr(htmlentities($_SERVER['PHP_SELF']), "config.php")) {
Header("Location: index.php");
die();
}



$dbhost = "***********";
$dbuname = "***********";
$dbpass = "***********";
$dbname = "***********";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "*************************";
$gfx_chk = 0;
$subscription_url = "";
$admin_file = "admin";
$tipath = "images/topics/";
$display_errors = FALSE; //This should only be used (set to TRUE) when testing locally and not in a production environment


$bypassNukeSentinelInvalidIPCheck = FALSE; //This should only be used (set to TRUE) when testing locally and not in a production environment
$bypassInstallationFolderCheck = FALSE; //This should only be used (set to TRUE) when testing locally and not in a production environment



$reasons = array("As Is","Offtopic","Flamebait","Troll","Redundant","Insighful","Interesting","Informative","Funny","Overrated","Underrated");
$badreasons = 4;
$AllowableHTML = array("b"=>1,"i"=>1,"u"=>1,"div"=>2,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1);
...
 
kguske
PostPosted: Wed Jun 21, 2006 6:37 am Reply with quote

That should work (I removed the sitekey from your post as that would allow others to attack your site).

As evaders suggested in the post on NukeFixes, there is an edit in the mainfile that is removing the onclick tag.
Code:
$str = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?[[:space:]]*([^\" >]*)[[:space:]]*\"?[^>]*>",'<a href="\\1">', $str); 


Although you could comment out that line, you might be opening yourself up to bad HTML that could be used to to harm your site or visitors. You could edit it to allow the onlick tag, but that's more than I have time to do right now...
 
Eduardo
PostPosted: Wed Jun 21, 2006 9:12 am Reply with quote

Sorry! I modified the files but the popup not run.
 
kguske
PostPosted: Wed Jun 21, 2006 9:26 am Reply with quote

What happens?
 
Eduardo
PostPosted: Thu Jun 22, 2006 11:38 pm Reply with quote

Please go to:
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login!

You can see the link on the word:

(for guitar and violin) - Open Part's First Pages

When you click the link open a popup.

To make it I have inserted:

for guitar and violin - <a href="parti/molitorop3.html" onclick="NewWindow(this.href,''name'',''365'',''525'',''yes'');return false;">Open Part''s First Pages</a>

in the subtitle field of the content module

and the code:

echo "
<SCRIPT LANGUAGE="JavaS cript">
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
</scr ipt>\n";


in the includes/javascript.php files


The phpnuke version is 7.5 pached 2.6

With all other version the pop up not run.

Please go to:
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login!

Under Allegro moderato (Header Text field) the pop up is only a link that go target_top

Regards.
 
Eduardo
PostPosted: Fri Jun 23, 2006 12:06 am Reply with quote

The correct code is:

for guitar and violin - <a href="parti/molitorop3.html" onclick="NewWindow(this.href,'name','365','525','yes');return false;">Open Part's First Pages</a>

Under Allegro moderato (Header Text field) the popup today run well.
Only registered users can see links on this board! Get registered or login!

The problem is only in the subtitle field.
 
Eduardo
PostPosted: Fri Jun 23, 2006 12:51 am Reply with quote

I think that if the popup run well in the Header Text field the problem is not in the $AllowableHTML function.

I think it is in the table structure of the subtitle field.
 
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Fri Jun 23, 2006 7:56 pm Reply with quote

I know kguske is limited in time so ill throw my 2 cents in.

Its being called on twice.

This may be your problem.
Not sure where its callin in the second time from.

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
kguske
PostPosted: Sat Jun 24, 2006 5:43 am Reply with quote

Did you remove it from the subtitle field? It could be that the subtitle field doesn't have enough space to store the full link.
 
Eduardo
PostPosted: Sat Jun 24, 2006 7:56 am Reply with quote

In the version 7.5 pached 2.6 the popup run correctly.

See:
Only registered users can see links on this board! Get registered or login!
 
Eduardo
PostPosted: Sun Jun 25, 2006 2:38 am Reply with quote

I think the problem is in the new pach.
 
fade2gray
Regular
Regular


Joined: Mar 26, 2006
Posts: 87
Location: UK

PostPosted: Sun Jun 25, 2006 4:43 pm Reply with quote

I don't know if your issue has been fixed, but the popups work for me on both links in both Firefox and IE.
 
View user's profile Send private message Visit poster's website
Eduardo
PostPosted: Sun Jun 25, 2006 11:27 pm Reply with quote

The link there is not in the subtitle field. See the text line under Grande Sonata ......
Only registered users can see links on this board! Get registered or login!
 
Eduardo
PostPosted: Mon Jun 26, 2006 12:34 am Reply with quote

Other popup test with Php Nuke 7.6 pach 2.6.

Go to:
Only registered users can see links on this board! Get registered or login!

The first popup, in the subtitle field, not run.

Under, the 2nd and the 3th work well.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.02.02 Distro

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©