News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Mambo bride problem

Started by S25, August 09, 2005, 07:07:58 PM

Previous topic - Next topic

S25

OK well I'm using the MamboSMFForum_1.3.2b1 bridge to try and intergate SMF into mambo i ran the conversion script from PHPBB witch worked flawlessly and i have them both in the same database and the component part on mambo is working fine but I'm having problems on the SMF side you see i get the following error when i try and install it

QuoteInstall Actions for archive SMFMamboMod_1.3.2b1.zip:
Installing this package will perform the following actions:
       Type                           Action                              Description
1.    Execute Modification    ./index.php                           Failure
2.    Execute Modification    ./Themes/default/script.js    Success
3.    Execute Modification    ./Sources/Post.php               Failure
4.    Execute Modification    ./Sources/Subs-Post.php    Success
5.    Execute Modification    ./Sources/Profile.php                 Success
6.    Execute Modification    ./Sources/Subs.php                  Failure
7.    Execute Modification    ./Sources/LogInOut.php               Success
8.    Execute Modification    ./Sources/QueryString.php      Success

IM running the most recent version and i think this is stopping it from working (the component) All help is welcome.By the way this forum really kills phpBB.

I think this is where the problem lies.You see it all seems to work but does not convert it over.I tried doing it manually but got confused when i could not find the right part of the file completely .

Aravot

You are using the mambohacks version of the bridge which is different from the bridge supported here.

S25

#2
OK well now im trying to do it with MOS_SMF Bridge and i get the following error

Quote
Install Actions for archive smf_mambo3.1.tar.gz:
Installing this package will perform the following actions:
                Type                          Action               Description
1.    Execute Modification    ./Sources/Subs.php    Failure
2.    Execute Modification    ./index.php                  Success
3.    Extract File                   ./Sources/MOS_SMF.php

So when i read the help it tells me this
Quote
If it will not install, unzip it, and upload MOS_SMF.php to your SMF Sources directory,
and follow the instructions in the mambo.mod file to make changes to your SMF files.
So when i attempt to do that on the second modification of Subs.php i am told to


<search for>
[code]// Put the session ID in.
if (defined('SID') && SID != '')
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '(?!\?' . preg_quote(SID, '/') . ')(\?)?/', $scripturl . '?' . SID . ';', $setLocation);
</search for>


<add after>

   if (function_exists('mambo_smf_url'))
      $setLocation = mambo_smf_url($setLocation);
</add after>[/code]

But if you look at Subs.php there is no
<search for>
// Put the session ID in.
if (defined('SID') && SID != '')
$setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '(?!\?' . preg_quote(SID, '/') . ')(\?)?/', $scripturl . '?' . SID . ';', $setLocation);
</search for>

<add after>

if (function_exists('mambo_smf_url'))
$setLocation = mambo_smf_url($setLocation);
</add after>

Aravot

Make sure you are using correct version of the bridge

MOS_SMF_BRIDGEv3.19a_SMF1.1b3 is for SMF 1.1

and

MOS_SMF_BRIDGEv3.19a_stable is for SMF 1.0.x

S25

#4
All has seemed to work i fear i was using the wrong version.Well got some small problems to sort out now things to do with templates but thats normal.

Edit:
Damn i tried to do it myself but am failing i want my subBlack template to work with this but i am having problems first of all how do i edit the SMF cms to stop it from messing with my colours ect and also when i log in the menu is put halfway down the page rather than at the top.

Thanks guys

S25

OK i am having a bit of a problem i tried to install a new template and get the following error

QuoteWarning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/a0tu/public_html/mambo/bbs/Sources/Subs.php on line 232

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/a0tu/public_html/mambo/bbs/Sources/Load.php on line 40

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/a0tu/public_html/mambo/bbs/Sources/Load.php on line 42

Notice: Undefined index: time_format in /home/a0tu/public_html/mambo/bbs/Sources/Load.php on line 176

Notice: Undefined index: theme_guests in /home/a0tu/public_html/mambo/bbs/Sources/Load.php on line 657

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/a0tu/public_html/mambo/bbs/Sources/Subs.php on line 232

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/a0tu/public_html/mambo/bbs/Sources/Load.php on line 683

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/a0tu/public_html/mambo/bbs/Sources/Load.php on line 693

Notice: Undefined index: theme_url in /home/a0tu/public_html/mambo/bbs/Sources/Load.php on line 700

Notice: Undefined index: images_url in /home/a0tu/public_html/mambo/bbs/Sources/Load.php on line 701

Notice: Undefined index: theme_dir in /home/a0tu/public_html/mambo/bbs/Sources/Load.php on line 702

Notice: Undefined index: smiley_sets_known in /home/a0tu/public_html/mambo/bbs/Sources/Load.php on line 721

Notice: Undefined index: smiley_sets_default in /home/a0tu/public_html/mambo/bbs/Sources/Load.php on line 721

Warning: array_unshift(): The first argument should be an array in /home/a0tu/public_html/mambo/bbs/Sources/Load.php on line 762

Notice: Undefined index: theme_dir in /home/a0tu/public_html/mambo/bbs/Sources/Load.php on line 822

Notice: Undefined index: default_theme_dir in /home/a0tu/public_html/mambo/bbs/Sources/Load.php on line 824

Notice: Undefined index: default_theme_dir in /home/a0tu/public_html/mambo/bbs/Sources/Load.php on line 831
index

xenovanis

You'll need to add the code required in step 4 to the index.php of every Mambo template you install.
"Insanity: doing the same thing over and over again and expecting different results."

S25

Thank you.Is there anyway i can make the forum follow the same stylesheet as the mambo one?

Kindred

yes..

1) use a template/theme combination that's already been optimized...
2) do your own merge and optimize of the mambo and SMF CSS files.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

S25

How would i do it myself if i already have the template?

S25

Uhhh i dont know whats going on but now whenever i try to goto the forums it shows up all messed up.
http://www.a0tu.com/mambo/index.php?option=com_smf&Itemid=28

Hmm any ideas guys on fixing this one?

Kindred

don't show the recent posts module on the same screen as the forum...

for some reason, modules using straight SSI will cause the forum to choke...

(which is yet another reason to extract the SSI function into a separate module for mambo, as I did with my modules...)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

S25

If i make the SMF css the same as the mambo css will that make it look the same as mambo?OR if i just delete the similar names in the SMF one will that work?

Thank you Kindred by the way that did the trick ;)

Kindred

yes and yes....  I have found the best bet is to merge the two CSS files, including merging same-name types and then save the "merge" file to both smf and mambo...
This can lead to some issues with dynamic menu things...

So....   alternatively, save only the smf specific ones to SMF...  anything for mambo or shared can be saved in the mambo one...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

S25

Ok well ive been at this for a while and in youre opinion is there any things in the default template that i gotta change to make it fit in well.

Thanks for all youre helps guys
James  ;)

Kindred

yes...  personally, when I merge a forum into mambo, the first thing I do is remove the entire "top" section of SMF code...   I get ride of the login box, the news box, the keystats and the menu buttons...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

S25

Please aprdon my ignorance but i was trying to do that but i kept messing up my php i was editing the index.php file in my template folder.With the CSS i tried just throwing in my mambo CSS and it worked to a extent but things did not look right.What are the most common things you have to change specificaly with the SMF CSS like wich parts

Sorry for all the questions but im struggling on my own
James

tentronik

#17
THe SMF template use a diffrent CSS stylesheet then mambo does.
So if you want to merge them start with the links.

eg.
copy all the a. codes over to the other css  which you  wish to replace.
Then look for body .td stuff then for color and quote tags.

Windowbg is for smf background table colors.

S25

#18
Where do i edit the code to remove the use menu at the top of the page?

Kindred

the SMF CSS is included in the SMF download package, available int he download section of this site.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

xenovanis

Sure, just take the one from the installationpackage and upload it to your server. However, I strongly advise you to create a new theme (Admin -> Themes and Layout -> Install a new theme -> Create a copy of Default named: ...) and alter that. You'd better leave your default theme intact for easier upgrading etc.
"Insanity: doing the same thing over and over again and expecting different results."

S25

I  shall do as both of you say but damn i realy suck at this  ;)
Where would you guys recomend me to look for the user menu?And with youre modules is there anyway of stopping a module not displaying on a page (like the SMF recent topics ones as that disorts my page BADLY)

Cheers guys

Kindred

yup... in mambo admin, for modules... each module can be set to be visible for all, none or some menu links...

the menu (I assume you mean the horizontal button menu in SMF) itself is at the bottom of index.template.php... but that is a function. The function is called to display somewhere just after the keystats box...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

S25

Uh ohhh

OK guys im using the bridge registration and my users cant log in and also it wont let me view my file remository because it says i must register!As a matter of fact anything you have to be registerd to see i cant acess with this i presume because it imported my username and info from SMF also i think i can fix the user not being able to register problem by simply adding all my users to mambo and re-running the SMF thingy as i was a user on mambo before i did the SMF mod.

Looking forward to youre help guys
James  ;D

tentronik

Which bridge version you using?
This is the official mamboforge.net/frs/?group_id=543 .


S25

Yep 3.19A i dunno what it could be to be honest :(

Kindred

you do not have the SMF package from step 1 correctly installed...

SMF does not know what to do with the mambo_login action... andf without that, you can not log into mambo and smf...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

S25

That was it thank you im extremly gratefull  :D

S25

I know i asked this before but im still struggling with it how do i remove the
Quote
a0tu.com

Hey, S25, you have 43 messages, 0 are new.
Total time logged in: 9 hours and 4 minutes.
Show unread posts since last visit.
Show new replies to your posts.
August 14, 2005, 10:23:01 AM
Search:     Advanced search
   
SMF - Just Installed
5702 Posts in 478 Topics by 137 Members
Latest
Thing since its unnesaceary as im using it in mambo

Thanks

Kindred

go into smf's Themes/themename/index.template.php

or use one of the pre-designed/integrated themes with it already removed.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

S25

I removed

// The logo, user information, news, and menu.
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="95%" class="tborder">
<tr style="background-color: #ffffff;">
<td valign="middle" align="left"><img src="', $settings['images_url'], '/smflogo.gif" alt="" /></td>
<td valign="middle">';

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
', $txt['hello_member'], ' <b>', $context['user']['name'], '</b>', $context['allow_pm'] ? ', ' . $txt[152] . ' <a href="' . $scripturl . '?action=pm">' . $context['user']['messages'] . ' ' . ($context['user']['messages'] != 1 ? $txt[153] : $txt[471]) . '</a>' . $txt['newmessages4'] . ' ' . $context['user']['unread_messages'] . ' ' . ($context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1']) : '', '.';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '<br />
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=regcenter">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'];

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '<br />
<b>', $txt[616], '</b>';
}
// Otherwise they're a guest - so politely ask them to register or login.
else
echo '
', $txt['welcome_guest'];

echo '
<br />', $context['current_time'], '
</td>
</tr>
<tr class="windowbg2">
<td colspan="2" valign="middle" align="center" class="tborder" style="border-width: 1px 0 0 0; font-size: smaller;">';

// Show the menu here, according to the menu sub template.
template_menu();

echo '
</td>
</tr>';

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<tr class="windowbg2">
<td colspan="2" height="24" class="tborder" style="border-width: 1px 0 0 0; padding-left: 1ex;">
<b>', $txt[102], ':</b> ', $context['random_news_line'], '
</td>
</tr>';

echo '
</table>

<br />


As i felt thats probably the thing to remove but it had no effect.

Kindred

well, it certain would have an effect....   removing things like that would horribly screw up your forum.
(you'll get template errors, galore.)

If it had NO effect, then I would say you did not edit the correct theme...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

xenovanis

Did you also remove or change the searchbox? This box can mess up your layout as well.
"Insanity: doing the same thing over and over again and expecting different results."

S25

#33
Well a guy was helping me making the forums look right and he must have had no idea what he was doing as he got the server shut down cos he messed up alload of script (acted as a DOS style attack)and got me suspended but the error message is this
DB function failed with error number 1016
Can't open file: 'mos_session.MYI'. (errno: 145) SQL=SELECT session_id FROM mos_session WHERE session_id=MD5('5a2586a360221fcf7cc06c88769e1da8')
SQL =

SELECT session_id FROM mos_session WHERE session_id=MD5('5a2586a360221fcf7cc06c88769e1da8')


When i try to log into admin i get
DB function failed with error number 1016
Can't open file: 'mos_session.MYI'. (errno: 145) SQL=SELECT * FROM mos_session WHERE session_id='5ac8ec01b8a6fbbb4f6b17ca2fff6c3e'
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/a0tu/public_html/mambo/includes/database.php on line 271



Any ideas whats wrong thanks  >:(

Kindred

I have no idea what he may have done...  but at this point, I think your best bet is to
re-upload the SMF and mambo files and start fresh.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

[Unknown]

Getting Errors From MySQL?

Your table crashed, which means MySQL probably crashed.

-[Unknown]

S25

Ok guys ive had plenty of problems and am proud to say i fixed them myself (thanks to the search feature here :D  )
But anyways im stuck on this one.....
When im on my home page this comes up in the header......
Quote< ?php include $GLOBALS['mosConfig_absolute_path'] . '/pathway.php'; ?>
Check it out for youreself http://a0tu.com/index.php?option=com_frontpage&Itemid=1

Kindred

you ahev a space between the openning < and the question mark...

it should read <?php   not < ?php
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

S25

I looked through index.php  and did not see it any idea where it may be(wich file or what part)?

Kindred

search your mambo template's index.php for pathway
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

S25

#40
Fixed that and i get another error
QuoteFatal error: Cannot redeclare pathwaymakelink() (previously declared in /home/a0tu/public_html/includes/pathway.php:13) in /home/a0tu/public_html/includes/pathway.php on line 13
Did a search and did not find it here :S

Pathway.php lines 10 to 19
/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

function pathwayMakeLink( $id, $name, $link, $parent ) {
$mitem = new stdClass();
$mitem->id = $id;
$mitem->name = $mitem->name = html_entity_decode( $name );
$mitem->link = $link;
$mitem->parent = $parent;
$mitem->type = '';

Kindred

that error, in the location it is in leads me to believe that you are attempting to call pathway.php in multiple locations on the page....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

S25

I just re-upped my modded index.php page and that seemed to fix my problem :)

S25

Has any of you ever experienced youre menus (the drop down ones) disapearing in admin???I dont know could be an internet connection and if its still happening tommorow its a big problem but has anyone ever experienced it???

tentronik

Drop doiwn menu?
This is basicly a menu entry which "drops down" on rollover or a mouse click(often with DHTML).

I guess you mean the admin menu panel on the left side from the admin panel?


Kindred

tentronik...  I think he's probably talking about the MAMBO admin...   the standard mambo admin theme has drop down menus for each of the functions.

And no...  they've never disappeared while I was using them...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

tentronik

Ahhh ok ;D
Well there are special admin themes MAYBE they got damaged or you installed a new admin template which is buggy somehow- change the default template to see if its a template issue.
Try reuploading the old template and check the mamboserver forum if you dont get it working there.

Cheers

Orstio

Quote from: S25 on August 19, 2005, 07:07:59 PM
Has any of you ever experienced youre menus (the drop down ones) disapearing in admin???I dont know could be an internet connection and if its still happening tommorow its a big problem but has anyone ever experienced it???

Yes, it means your computer is running low in resources.  Close some browser windows, or other applications, and it will work fine.

S25

#48
Well i had my usage down to 5% and still that did not fix it have a look at this screenshot
http://www.a0tu.com/problem.jpg

I shall try and install a back-end template but i cant find a link for it in the admin menu!What is the link in youre menus?(ill just edit it to work in mine).  :-\

Orstio

When the menus start disappearing for me, often closing things like IM programs helps a lot, but inevitably, you will need to reboot your computer.

I don't think that installing a different admin template is going to solve your problem, unless different admin templates require far less javascript.

S25

I did reboot no help i shall try closing down my IM program but the template i am looking at does not appear to require js as it is a side navigation but i am unsure about it anyways......

Can anyone show me there install backend template link?

Orstio

administrator/index2.php?option=com_templates&client=admin

S25

#52
I uploaded the origional over itself but no its still the same :s and i cant change it from that screen :(

So i have been trying different solution i got a moderator off my site and asked him to have a go so logged in as admin experienced the missing windows i created a new account and tryed that did not work i even tryed to log in off IE and that did not work :*(

Any ideas guys?Does SMF work with any other CMS do you reccomend any others???

tentronik

#53
Hi,
what again is your problem?
System slowness? What kind of CPU you have and RAM?
Also did you tried diffrent browser and deleteing all cached files?

You can install new admin themes from the admin backend (install admin template from 2nd drop down navigation bar).

And i currently only can reconommend mambo, didnt tried yet mkportal, dupal, xoops and pragmamx.
Mkportal, pragmax has at least a SMF bridge i dunno the other.

S25

Well ive decided to give up on mambo at the moment and im extremly gratefull to you all.
Thanks S25  ;)

tentronik

Well why dont try a fresh install with the latest versions?
It works!

Btw.
I also tried out diffrent but in the end ...

Cheers

Advertisement: