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 -> w/Nuke 6.5
Author Message
Susann
Moderator



Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Sat Nov 19, 2005 5:11 pm Reply with quote

After a lot of changes in the last 3 weeks and upgrade to 2.0.17 I checked my forums.html today with the spider view. I found some links where I got "Sorry, such file doesn´t exist". I logged in and checked all my links in the forums again but there are no death links. However this are the links from the source code:



Quote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">

<link rel="top" href="forums.html?amp;file=modules&amp;name=Forums&amp;file=modules/Forums/index" title="mysite Foren-Übersicht" />

<link rel="search" href="forums.html?amp;file=modules&amp;name=Forums&amp;file=modules/Forums/search" title="Suchen" />
<link rel="help" href="forums.html?amp;file=modules&amp;name=Forums&amp;file=modules/Forums/faq" title="FAQ" />
<link rel="author" href="forums.html?amp;file=modules/Forums/modules&amp;name=Members_List&amp;file=index" title="Mitgliederliste" />

Only the last link rel"author" to memberlist works. I´don´t know since when I have these wrong links there. In wich file can I change this ?


Last edited by Susann on Mon Nov 21, 2005 4:26 am; edited 1 time in total 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Nov 19, 2005 8:01 pm Reply with quote

Check includes/page_header.php and includes/page_header_review.php. There's a dynamic routine that looks like this
Code:
//

// Generate HTML required for Mozilla Navigation bar
//
$nav_links_html = '';
$nav_link_proto = '<link rel="%s" href="%s" title="%s" />' . "\n";
while( list($nav_item, $nav_array) = @each($nav_links) )
{
   if ( !empty($nav_array['url']) )
   {
      $nav_links_html .= sprintf($nav_link_proto, $nav_item, append_sid($nav_array['url']), $nav_array['title']);
   }
   else
   {
      // We have a nested array, used for items like <link rel='chapter'> that can occur more than once.
      while( list(,$nested_array) = each($nav_array) )
      {
         $nav_links_html .= sprintf($nav_link_proto, $nav_item, $nested_array['url'], $nested_array['title']);
      }
   }
}
 
View user's profile Send private message
Susann







PostPosted: Sun Nov 20, 2005 9:08 am Reply with quote

Thanks,
I found the code in both files.
I´ve checked nukecops.com and some other sites. So I found the difference between my links and the others.
For example link rel "search":

Code:



<link rel="search" href="forums.html?file=modules&name=Forums&file=modules/Forums/search" title="Search" />


goes to:nukecops.com/modules.php?name=Forums&file=search

our link rel"search" is the same but it goes to:

http://www.mysite.com/modules.php?name=Forums&file=modules&name=Forums&file=modules/Forums/search
instead of:
http://www.mysite.com/modules.php?name=Forums&file=search

I guess there is no way to repair this I can only comment out the code.
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Nov 20, 2005 8:38 pm Reply with quote

Perhaps this will help: http://www.nukefixes.com/ftopict-1287-link.html+rel

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Susann







PostPosted: Mon Nov 21, 2005 4:34 am Reply with quote

Thanks ! This solved my problem in 2.0.17. Very Happy
My nice links:

Quote:
<link rel="top" href="forums.html" title="mysite Foren-Übersicht" />
<link rel="search" href="forums-search.html" title="Suchen" />
<link rel="help" href="forums-faq.html" title="FAQ" />
<link rel="author" href="members.html" title="Mitgliederliste" />
 
VinDSL
Life Cycles Becoming CPU Cycles



Joined: Jul 11, 2004
Posts: 614
Location: Arizona (USA) Admin: NukeCops.com Admin: Disipal Designs Admin: Lenon.com

PostPosted: Tue Nov 22, 2005 7:44 pm Reply with quote

Evaders99 wrote:
Perhaps this will help: http://www.nukefixes.com/ftopict-1287-link.html+rel

Evaders99 wrote:
Wondered why I was getting warnings from Admin Secure, this is why.
I don't think this has been updated in the Patched files, maybe it was looked over.
chatserv, will it be added into the next release of BBToNuke or Patched?

Hrm...

Indeed, it appears that this problem has been fixed in the 2.0.18 version of 'includes/functions.php', plus a couple of other things. In addition to the changes listed in that thread:

In the 2.0.17 version of 'includes/functions.php', you should...

Around line 341, change:

Code:
$default_style=$get_info[config_value];

To:

Code:
$default_style=$get_info['config_value'];


Around line 565, change:

Code:
$orig_word[] = '#\b(' . str_replace('\*', '\w*?', phpbb_preg_quote($row['word'], '#')) . ')\b#i';


To:

Code:
$orig_word[] = '#\b(' . str_replace('\*', '\w*?', preg_quote($row['word'], '#')) . ')\b#i';

_________________
.:: "The further in you go, the bigger it gets!" ::.
.:: 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! ::.

Last edited by VinDSL on Tue Nov 22, 2005 7:49 pm; edited 1 time in total 
View user's profile Send private message Visit poster's website ICQ Number
Raven







PostPosted: Tue Nov 22, 2005 7:49 pm Reply with quote

I must be going blind because your line 341 From and To line appear to be the same?
 
VinDSL







PostPosted: Tue Nov 22, 2005 7:51 pm Reply with quote

config_value has single-quotes around it... Wink
 
Raven







PostPosted: Tue Nov 22, 2005 8:01 pm Reply with quote

ROTFL - Now if this was not on that post Last edited by VinDSL on Tue Nov 22, 2005 7:49 pm; edited 1 time in total then you'd convince me I missed that Wink
 
VinDSL







PostPosted: Tue Nov 22, 2005 10:19 pm Reply with quote

Sorry! That information is available on a circumspect “need to know basis” only.

I could tell you, but (you know the rest)... Mr. Green
 
Susann







PostPosted: Wed Nov 23, 2005 7:10 pm Reply with quote

Thanks VinDSL

I changed the lines in the functions.php too.
And thanks to Chatserv found a fix for my posting problem with update_points in 2.017. Smile
 
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 -> w/Nuke 6.5

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 ©