Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
afc
Worker
Worker



Joined: Aug 16, 2003
Posts: 107
Location: USA

PostPosted: Wed Jul 06, 2011 12:29 am Reply with quote

I installed phpbb3 bridge and i want to get the top menu working. you can turn the forum on and the forum link appears, I just want to edit the links so i can direct them to the phpbb3 forums. Where is the files located with the links to the forum?

Is there a way to put phpbb3 into module like iframes so it shows up inside my theme.
 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Wed Jul 06, 2011 8:16 am Reply with quote

To answer your first question about the nuke nav menu directing to the phpbb3 install, look in includes/jquery/nukeNAV.php on around line 82 and find the following code:

Code:
if (is_active('Forums')) {

   $nukeNAV .= '
<li><a title="">' . _NAV_FORUMS . '</a>
  <ul>
  <li><a href="forums.html" title="">' . _NAV_FORUMS . '</a></li>
  <li><a href="forums.html?amp;file=search&amp;search_id=newposts" title="">' . _NAV_NEWPOSTS . '</a></li>
  <li><a href="forums.html?amp;file=search&amp;search_id=unanswered" title="">' . _NAV_UNANSWERED . '</a></li>';
   if (is_user($user)) $nukeNAV .= '
  <li><a href="forums.html?amp;file=search&amp;search_id=egosearch" title="">' . _NAV_YOURPOSTS . '</a></li>';
   $nukeNAV .= '
  </ul>
</li>';
}



Replace it with this code:

Code:
$nukeNAV .= '

<li><a title="">' . _NAV_FORUMS . '</a>
  <ul>
  <li><a href="phpBB3" title="">' . _NAV_FORUMS . '</a></li>
  <li><a href="phpBB3/search.php" title="">Forum Search</a></li>
     </ul>
</li>';


I will look into your other question.

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
nuken







PostPosted: Wed Jul 06, 2011 9:00 am Reply with quote

You could use something like NukeWrap to iframe it, but if you want a forum that is "included" into your site, I would stick with the included RavenNuke Forums. They are fully integrated into the site and work great.
 
afc







PostPosted: Wed Jul 06, 2011 9:04 am Reply with quote

Thanks for the help i did change it a little more so there was no changes in the links.

Code:


if (is_active('Forums')) {
   $nukeNAV .= '
<li><a title="">' . _NAV_FORUMS . '</a>
  <ul>
  <li><a href="phpBB3/index.php" title="">' . _NAV_FORUMS . '</a></li>
  <li><a href="phpBB3/search.php?search_id=newposts" title="">' . _NAV_NEWPOSTS . '</a></li>
  <li><a href="phpBB3/search.php?search_id=unanswered" title="">' . _NAV_UNANSWERED . '</a></li>';
   if (is_user($user)) $nukeNAV .= '
  <li><a href="phpBB3/search.php?search_id=egosearch" title="">' . _NAV_YOURPOSTS . '</a></li>';
   $nukeNAV .= '
  </ul>
</li>';
 
nuken







PostPosted: Wed Jul 06, 2011 9:18 am Reply with quote

You may want to remove the

Code:


if (is_active('Forums')) {



}


if you are not going to have the other forums active.
 
bobbyg
Worker
Worker



Joined: Dec 05, 2007
Posts: 212
Location: Tampa, Florida

PostPosted: Thu Jul 07, 2011 9:24 pm Reply with quote

What about changing

if (is_active('Forums')) {

to

if (is_active('phpBB3')) {
 
View user's profile Send private message Visit poster's website
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Fri Jul 08, 2011 5:12 am Reply with quote

bobbyg wrote:
What about changing

if (is_active('Forums')) {

to

if (is_active('phpBB3')) {


No because phpBB3 is not a module in the real sense of the word.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
bobbyg







PostPosted: Sat Jul 09, 2011 10:49 am Reply with quote

Yeah, I forgot that it was not added as a module.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

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 ©