Welcome, Guest. Please Login or Register.
May 04, 2024, 11:36:54 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Beta][Code] SubForums 0.1 « previous next »
Pages: 1 2 [3] 4 Reply Ignore Print
Author Topic: [Beta][Code] SubForums 0.1  (Read 14650 times)
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta][Code] SubForums 0.1
« Reply #30 on: May 25, 2003, 07:04:00 PM »
Reply with quote

Hi,

step 20 is searching for this......


$request2 = mysql_query("SELECT name,ID_BOARD FROM {$db_prefix}boards WHERE ID_CAT=$row[1] ORDER BY boardOrder") or database_error(__FILE__, __LINE__);


but I have the allowed user mod, and so I have this


$request2 = mysql_query("SELECT name,ID_BOARD FROM {$db_prefix}boards WHERE ID_CAT=$row[1] ".AU_GetWhereClause(' AND', '', false)." ORDER BY boardOrder") or database_error(__FILE__, __LINE__);


Now it wants it to become this....


$request2 = mysql_query("SELECT name,ID_BOARD FROM {$db_prefix}boards WHERE ID_CAT=$row[1] AND parent1 != 1 ORDER BY boardOrder") or database_error(__FILE__, __LINE__);


I tried manually changing it to this.....



$request2 = mysql_query("SELECT name,ID_BOARD FROM {$db_prefix}boards WHERE ID_CAT=$row[1] ".AU_GetWhereClause(' AND', '', false)." AND parent1 != 1 ORDER BY boardOrder") or database_error(__FILE__, __LINE__);



but it doesnt seem to work even though all the other steps passed without a problem.

When I try and update the subboards from the admin centre - it doesnt do anything - it just takes me back to the board index. When I go backinto the sub board manager in the admin center, the change I made doesnt show - so it isnt saving any settings.

I have run the db modification and moved the subboard.php to the sources directory :(

Am I doing something wrong?

I have yabse 1.5.3

(oh and im using subboards v1.6)
« Last Edit: May 25, 2003, 07:04:58 PM by Coyote » Logged

To the world - you are just one person, but to one person you are the world!
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta][Code] SubForums 0.1
« Reply #31 on: May 25, 2003, 07:21:51 PM »
Reply with quote

I just tried manually adding the settings in mysql - and I can get a board to list itself as a sub board - I can also move a board into it. But when I click on the sub board - it just refreshes the index(after a couple of seconds thinking.

Any ideas? I really could do with this mod, as my index is getting way too long.



Logged

To the world - you are just one person, but to one person you are the world!
MC600
YaBB God
*****
Posts: 968


Jetzt habe ich Zähne!

ICQ - 168723559 WWW
Re:[Beta][Code] SubForums 0.1
« Reply #32 on: May 25, 2003, 08:03:32 PM »
Reply with quote

I have a look at it
Logged

Freundliche Grüße aus Hönow - MC600 - Forum Gegen Krebs
Newsletter Service - Info´s über MOD´s von MC600 - Hier eintragen
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta][Code] SubForums 0.1
« Reply #33 on: May 25, 2003, 08:05:02 PM »
Reply with quote

 ;D Thank you.
Logged

To the world - you are just one person, but to one person you are the world!
MC600
YaBB God
*****
Posts: 968


Jetzt habe ich Zähne!

ICQ - 168723559 WWW
Re:[Beta][Code] SubForums 0.1
« Reply #34 on: May 25, 2003, 08:32:31 PM »
Reply with quote

Excuse me, my English is bad.
I have installs SubBoard V1.6 and Allowed user V1.2

couldn't state any problems.
Where do you have problems in the AdminCenter?

please send me your index.php / ManageBoards.php / Admin.php
« Last Edit: May 25, 2003, 08:44:08 PM by MC600 » Logged

Freundliche Grüße aus Hönow - MC600 - Forum Gegen Krebs
Newsletter Service - Info´s über MOD´s von MC600 - Hier eintragen
MC600
YaBB God
*****
Posts: 968


Jetzt habe ich Zähne!

ICQ - 168723559 WWW
Re:[Beta][Code] SubForums 0.1
« Reply #35 on: May 25, 2003, 08:43:21 PM »
Reply with quote

Quote from: Gus on May 25, 2003, 03:35:36 PMArmy Medic Site Forum  |  Main  |  Market Place  | Wanted (Moderator: Gus Haines)

"Market Place" which is a subforum of "Main" is not a link.

Do you have the MOD with BoardMod installed or by hand?

Those of all link usually are!
Logged

Freundliche Grüße aus Hönow - MC600 - Forum Gegen Krebs
Newsletter Service - Info´s über MOD´s von MC600 - Hier eintragen
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta][Code] SubForums 0.1
« Reply #36 on: May 25, 2003, 08:49:23 PM »
Reply with quote

Thanks, I have emailed the files to you.

Tony.
Logged

To the world - you are just one person, but to one person you are the world!
MC600
YaBB God
*****
Posts: 968


Jetzt habe ich Zähne!

ICQ - 168723559 WWW
Re:[Beta][Code] SubForums 0.1
« Reply #37 on: May 25, 2003, 08:56:15 PM »
Reply with quote

@Gus

Check the following steps again

<edit file>
Sources/MessageIndex.php
</edit file>

<search for>
   global $curposlinks, $cgi, $yytitle, $settings, $start, $modSettings, $viewResults, $ID_MEMBER, $db_prefix;
</search for>

<add after>
   global $subid, $subid2, $subid3;
</add after>

<search for>
   $curboardurl = ($curposlinks ? "<a href=\"$cgi\" class=\"nav\">$boardname</a>" : $boardname);
   # Build the link tree
   $displayLinkTree = ($modSettings['enableInlineLinks'] ? "<font size=\"1\" class=\"nav\"><b><a href=\"$scripturl\" class=\"nav\">$mbname</a> </b> | <b> " : "<font size=\"2\" class=\"nav\"><b><img src=\"$imagesdir/open.gif\" border=\"0\" alt=\"\" />  <a href=\"$scripturl\" class=\"nav\">$mbname</a><br />");
   $displayLinkTree .= ($modSettings['enableInlineLinks'] ? "<a href=\"$scripturl#$currcat\" class=\"nav\">$cat</a> </b> | <b> " : "<img src=\"$imagesdir/tline.gif\" border=\"0\" alt=\"\" /><img src=\"$imagesdir/open.gif\" border=\"0\" alt=\"\" />  <a href=\"$scripturl#$currcat\" class=\"nav\">$cat</a><br />");
   $displayLinkTree .= ($modSettings['enableInlineLinks'] ? "$curboardurl</b> $showmods</font>" : "<img src=\"$imagesdir/tline2.gif\" border=\"0\" alt=\"\" /><img src=\"$imagesdir/open.gif\" border=\"0\" alt=\"\" />  $curboardurl</b> $showmods</font>");
</search for>

<replace>

   # Build the link tree
   if ($subid2 == 0)
   {
      $curboardurl = ($curposlinks ? '<a href="' . $cgi . '" class="nav">' . $boardname . '</a>' : $boardname);
      $displayLinkTree = ($modSettings['enableInlineLinks'] ? '<font size="1" class="nav"><b><a href="' . $scripturl . '" class="nav">' . $mbname . '</a> </b> | <b> ' : '<font size="2" class="nav"><b><img src="' . $imagesdir . '/open.gif" border="0" alt="" />  <a href="' . $scripturl . '" class="nav">' . $mbname . '</a><br />');
      $displayLinkTree .= ($modSettings['enableInlineLinks'] ? '<a href="' . $scripturl . '#' . $curcat . '" class="nav">' . $cat . '</a> </b> | <b> ' : '<img src="' . $imagesdir . '/tline.gif" border="0" alt="" /><img src="' . $imagesdir . '/open.gif" border="0" alt="" />  <a href="' . $scripturl . '#' . $curcat . '" class="nav">' . $cat . '</a><br />');
      $displayLinkTree .= ($modSettings['enableInlineLinks'] ? '' . $curboardurl . '</b> ' . $showmods . '</font>' : '<img src="' . $imagesdir . '/tline2.gif" border="0" alt="" /><img src="' . $imagesdir . '/open.gif" border="0" alt="" />  ' . $curboardurl . '</b> ' . $showmods . '</font>');
   }
   else
   {
      $curforumurl = ($curposlinks ? '<a href="' . $scripturl . '?action=subboard;subid=' . $subid . '" class="nav">' . $subid3. '</a>' : $subid3);
      $curboardurl = ($curposlinks ? '<a href="' . $cgi . ';subid=' . $subid . ';subid2=' . $subid2 . ';subid3=' . $subid3 . '" class="nav">' . $boardname . '</a>' : $boardname);
      $displayLinkTree = ($modSettings['enableInlineLinks'] ? '<font size="1" class="nav"><b><a href="' . $scripturl . '" class="nav">' . $mbname . '</a> </b> | <b> ' : '<font size="2" class="nav"><b><img src="' . $imagesdir . '/open.gif" border="0" alt="" />  <a href="' . $scripturl . '" class="nav">' . $mbname . '</a><br />');
      $displayLinkTree .= ($modSettings['enableInlineLinks'] ? '<a href="' . $scripturl . '#' . $curcat . '" class="nav">' . $cat . '</a> </b> | <b> ' : '<img src="' . $imagesdir . '/tline.gif" border="0" alt="" /><img src="' . $imagesdir . '/open.gif" border="0" alt="" />  <a href="' . $scripturl . '#' . $curcat . '" class="nav">' . $cat . '</a><br />');
      $displayLinkTree .= ($modSettings['enableInlineLinks'] ? '<font class="nav"><b>' . $curforumurl . '</b></font>  | '  :  '<font class="nav"><img src="' . $imagesdir . '/tline2.gif" border="0" alt="" /><img src="' . $imagesdir. '/open.gif" border="0" alt="" /><b>  ' . $curforumurl . '</b></font><br />');
      $displayLinkTree .= ($modSettings['enableInlineLinks'] ? '' . $curboardurl . '</b> ' . $showmods . '</font>' : '<img src="' . $imagesdir . '/tline3.gif" border="0" alt="" /><img src="' . $imagesdir . '/open.gif" border="0" alt="" />  ' . $curboardurl . '</b> ' . $showmods . '</font>');
   }

</replace>
Logged

Freundliche Grüße aus Hönow - MC600 - Forum Gegen Krebs
Newsletter Service - Info´s über MOD´s von MC600 - Hier eintragen
MC600
YaBB God
*****
Posts: 968


Jetzt habe ich Zähne!

ICQ - 168723559 WWW
Re:[Beta][Code] SubForums 0.1
« Reply #38 on: May 25, 2003, 09:05:13 PM »
Reply with quote

Quote from: Coyote on May 25, 2003, 08:49:23 PM
Thanks, I have emailed the files to you.

Tony.


The following entries were missing in the index.php:

'subboard' => array("$sourcedir/SubBoard.php", 'SubBoard'),
'modifyboardsub' => array("$sourcedir/ManageBoards.php", 'ModifyBoardSub'),


you have post, it is good now ?
« Last Edit: May 25, 2003, 09:06:05 PM by MC600 » Logged

Freundliche Grüße aus Hönow - MC600 - Forum Gegen Krebs
Newsletter Service - Info´s über MOD´s von MC600 - Hier eintragen
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta][Code] SubForums 0.1
« Reply #39 on: May 25, 2003, 09:10:40 PM »
Reply with quote

Yes  - thank you.

I was starting to test and my server went down :(

but its looking good :)

I guess board mod must of skipped it ?!?

Thanks again.
Logged

To the world - you are just one person, but to one person you are the world!
MC600
YaBB God
*****
Posts: 968


Jetzt habe ich Zähne!

ICQ - 168723559 WWW
Re:[Beta][Code] SubForums 0.1
« Reply #40 on: May 25, 2003, 09:33:27 PM »
Reply with quote

@Coyote

Ok,

I have the function looked in your forum, everything is ok now
Logged

Freundliche Grüße aus Hönow - MC600 - Forum Gegen Krebs
Newsletter Service - Info´s über MOD´s von MC600 - Hier eintragen
Gus
Jr. Member
**
Posts: 56


www.armymedic.info

WWW
Re:[Beta][Code] SubForums 0.1
« Reply #41 on: May 25, 2003, 10:44:12 PM »
Reply with quote

Quote from: MC600 on May 25, 2003, 08:56:15 PM
@Gus

Check the following steps again

Checked.  Still not working  :-\

*request.  Can you get the "Jump to:" box to work with this please? :)
« Last Edit: May 25, 2003, 10:46:01 PM by Gus » Logged

MC600
YaBB God
*****
Posts: 968


Jetzt habe ich Zähne!

ICQ - 168723559 WWW
Re:[Beta][Code] SubForums 0.1
« Reply #42 on: May 26, 2003, 06:19:35 AM »
Reply with quote

please send me by e-mail:

MessageIndex.php / Display.php / BoardIndex.php / SubBoard.php and Subs.php

eMail see PM
« Last Edit: May 26, 2003, 06:22:16 AM by MC600 » Logged

Freundliche Grüße aus Hönow - MC600 - Forum Gegen Krebs
Newsletter Service - Info´s über MOD´s von MC600 - Hier eintragen
Gus
Jr. Member
**
Posts: 56


www.armymedic.info

WWW
Re:[Beta][Code] SubForums 0.1
« Reply #43 on: May 26, 2003, 12:20:47 PM »
Reply with quote

Done, tnx  :)
Logged

MC600
YaBB God
*****
Posts: 968


Jetzt habe ich Zähne!

ICQ - 168723559 WWW
Re:[Beta][Code] SubForums 0.1
« Reply #44 on: May 26, 2003, 01:44:35 PM »
Reply with quote

@Gus

Excuse me, too many faults are for her code in which. I cannot help

Example:

in this one Subs.php

}
// Added by Allowed User MOD - End
?>
)


in this one MessageIndex.php

   MessageIndex();
   obExit();
}

?>)


in this one Display.php

   footer();
   obExit();
}
?>)


Logged

Freundliche Grüße aus Hönow - MC600 - Forum Gegen Krebs
Newsletter Service - Info´s über MOD´s von MC600 - Hier eintragen
Pages: 1 2 [3] 4 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Beta][Code] SubForums 0.1 « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.023 seconds with 18 queries.