1
Orstio
Re: a Conjecture for others forums?
  • 2006/11/30 2:48

  • Orstio

  • Just popping in

  • Posts: 12

  • Since: 2005/11/18


Quote:
@Orstio : is your directory structure : root/modules/conjector/xoopsversion.php ?


Of course.



2
Orstio
Re: a Conjecture for others forums?
  • 2006/11/29 22:38

  • Orstio

  • Just popping in

  • Posts: 12

  • Since: 2005/11/18


Quote:
@ Orstio: Read permissions set so that the webserver can read the files?


Yes, I set them to 777.

Quote:
I read on the smf thread that the bridge is not supposed to work on separate DBs, mine seems too when tested, will test some more though.


That's a bit of a misperception. The bridge does work on separate databases, provided that your web control panel allows you to have access to multiple databases with the same database user. The XOOPS database user needs access to the SMF database, and vice versa. So, while it is not always possible, it is possible in most cases.

I am not certain about whether the conjecture module takes separate database installations into account, however.



3
Orstio
Re: a Conjecture for others forums?
  • 2006/11/28 22:29

  • Orstio

  • Just popping in

  • Posts: 12

  • Since: 2005/11/18


No, I get nothing, as if it's not there. I can see the files and folders are there by FTP, but XOOPS is not finding them.



4
Orstio
Re: a Conjecture for others forums?
  • 2006/11/28 11:48

  • Orstio

  • Just popping in

  • Posts: 12

  • Since: 2005/11/18


I have uploaded the conjecture folder. It is inside the modules folder, just like the other modules. But there is nothing in the XOOPS Modules Administration except the modules I have already installed.



5
Orstio
Re: a Conjecture for others forums?
  • 2006/11/28 11:24

  • Orstio

  • Just popping in

  • Posts: 12

  • Since: 2005/11/18


After I upload the conjecture folder to my modules, should there not be something in my Modules Administration?



6
Orstio
Re: a Conjecture for others forums?
  • 2006/11/27 23:04

  • Orstio

  • Just popping in

  • Posts: 12

  • Since: 2005/11/18


Quote:
#2: "valid SMF session" - when we are in another module, how do we ensure that the SMF session exists?


Just including SMF's SSI.php will do that just fine. It should return a valid session ID into $context['sess_id'].

Quote:
#3: Where will the user be sent afterwards? My intention is to go back to the article/download/etc. but if it goes to the thread, I guess people will live with it.


Yeah, that form would take them to the SMF topic after posting (or to the topic index, depending on the setting the admin has chosen).

There are two ways around this:

1) You could set up a form that would submit to a piece of code that would add the post and then return to the article instead. This would not be advised unless you really want to write all the security checks to go with it.

2) You could write a SMF modification package to go with the XOOPS module to check the referring submission and return to the XOOPS article. See here for more info on writing SMF mods:

http://docs.simplemachines.org/index.php?topic=506

The files you would want to look at are Post.php and Subs-Post.php.

Quote:
#4: Something like that, yes. Is there a hierarchy of categories and subforums or will a simple board table query do?


The heirarchy is user-definable, so yes, querying the smf_boards table will be the best route.



7
Orstio
Re: a Conjecture for others forums?
  • 2006/11/27 1:50

  • Orstio

  • Just popping in

  • Posts: 12

  • Since: 2005/11/18


Thanks for the heads-up, Lance_. :)

Hi Mith, I replied to Lance_'s post at SMF:

http://www.simplemachines.org/community/index.php?topic=63183.msg827706#msg827706

Hopefully my reply is of some help:

Quote:
Great news.

#1: This assumes the variable $resultid contains the given topic ID. It will return the array of posts into $posts.

$post_query=mysql_query("SELECT ID_MEMBER, posterName, subject, body, FROM_UNIXTIME(posterTime, '".$discuss_date_format."') AS msgTime FROM {$db_prefix}messages WHERE ID_TOPIC = '$resultid';");
$posts mysql_fetch_assoc($post_query);


#2: This assumes we've queried to get the board ID ($board_id), the topic ID ($resultid, same as in #1), the number of replies to the topic ($replies), and that a valid SMF session exists (will populate $GLOBALS['sc']). $title and $article_id should be taken from the XOOPS article.

<table><tr><td valign="top">
                         <
form id='.$article_id.' action="'. XOOPS_URL . '/modules/smf/index.php?action=post2"').' method="post" name="postmodify" onsubmit="submitonce(this);">
                         <
input type="hidden" name="topic" value="' . $resultid . '" />
                         <
input type="hidden" name="board" value="'.$boardid.'" />
                         <
input type="hidden" name="subject" value="' . $title . '" />
                         <
input type="hidden" name="icon" value="xx" />
                         <
input type="hidden" name="goback" value="true" />
                         <
input type="hidden" name="num_replies" value="'. $replies. '" />
                         <
textarea cols="75" rows="8" class="inputbox" wrap="VIRTUAL" style="width: 75%" name="message" tabindex="1"></textarea><br />
                         <
input type="submit" name="post" value="Reply" class="button" onclick="return submitThisOnce(this);" accesskey="s" tabindex="2" />
                         <
input type="hidden" name="sc" value="' . $GLOBALS['sc'] . '" /></form></td></tr></table>


#3: The form above will take care of it all automatically if done right.

#4: I'm not sure what exactly is required here. Perhaps just query the smf_boards table?

This is exactly the same thing that is done with the discussbot in Mambo and Joomla:

http://www.simplemachines.org/community/index.php?topic=118310.0

The invention of the discussbot, and its subsequent upgrades and forks were a big part of the popularity of the Mambo/Joomla bridge. This is very good to see for Xoops. 8)



8
Orstio
Re: Refrence problems..
  • 2006/4/25 1:31

  • Orstio

  • Just popping in

  • Posts: 12

  • Since: 2005/11/18


I was going to report this as well. I've been experiencing these notices in XOOPS since my host's upgrade to PHP 4.4.2.

PHP 4.4.x doesn't like ampersands in front of queries, function names, nor objects.

Looking forward to the release of compatible code.



9
Orstio
Re: SMF bridge
  • 2005/12/31 22:36

  • Orstio

  • Just popping in

  • Posts: 12

  • Since: 2005/11/18


Sorry, there should be some documentation.

In your XOOPS admin panel, you should see the SMF Forum icon under the System Admin icon.

When you hold your mouse over it, a popup box will appear with a small menu. Click on the word "Preferences".

Enter the absolute path to SMF in the text box, and save the configuration.

This will tell XOOPS where you installed the SMF forum, so that the module can call information from it.



10
Orstio
Re: SMF bridge
  • 2005/12/31 22:16

  • Orstio

  • Just popping in

  • Posts: 12

  • Since: 2005/11/18


Configure the module?

These warnings:

Quote:
Warning [PHP]: xoops_load_lang_file(/home/tgotch/public_html/modules/shop/language/english/modinfo.php): failed to open stream: No such file or directory in file include/functions.php line 152
Warning [PHP]: xoops_load_lang_file(): Failed opening '/home/tgotch/public_html/modules/shop/language/english/modinfo.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in file include/functions.php line 152
Warning [PHP]: xoops_load_lang_file(/home/tgotch/public_html/modules/shop/language/english/modinfo.php): failed to open stream: No such file or directory in file include/functions.php line 153
Warning [PHP]: xoops_load_lang_file(): Failed opening '/home/tgotch/public_html/modules/shop/language/english/modinfo.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in file include/functions.php line 153


Are all from a module named "shop". There seems to be some unrelated problems there.




TopTop
(1) 2 »



Login

Who's Online

155 user(s) are online (101 user(s) are browsing Support Forums)


Members: 0


Guests: 155


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits