General Community > Off-Topic
WebsiteBaker SMF Forum Modul Update
VCRulez:
--- Quote from: marathoner on October 31, 2008, 02:42:21 PM ---@VCRulez
You need to use the full path...the easiest way to do that is with WB_PATH constant.
--- End quote ---
Yeah my path is correct.
--- Quote from: marathoner on October 31, 2008, 02:42:21 PM ---Have you looked at the documentation for SMF functions? If so, you'll see that ssi_recentTopics() returns an array. Assuming that your required path is correct then your code worked fine...you just didn't do anything with the array.
--- End quote ---
Well, I read some basic SSI FAQs and there's nothing said about arrays.
I inserted the code I posted above into a simple php file and uploaded it to my webspace. It runs fine! But if I use the same code with a page created by WebsiteBaker nothing happens (even with the code you've posted).
https://forum.WebsiteBaker.org/index.php/topic,6721.msg41873.html#msg41873
In this thread beeblebrox got the same thing working what I would like to do. It seems really simple (no words about arrays) but I can't get it working. :(
VCRulez:
Ok, I got it a step further. :)
I found this posting:
--- Quote ---Allways after creating an external database connection re-open the WB database connection otherwise WB doesn't know where to look for it's data, simple as that
Indeed the best way to do so is :
$database = new database();
use that at the end of your code!
This has nothing to do with chCounter,
wb starts building the page, it opens the database connection, code is executed, when in code another connection is made wb looses his.
--- End quote ---
So I added the following code to a code form:
--- Code: ---require("/users/soo/www/forum/SSI.php");
ssi_recentTopics();
$database = new database();
--- End code ---
The output is this:
So at least it is working now!
But two more questions:
1. Why does it put out "test116test119"? How can I get rid of this?
2. How can I modify the output so that it shows german umlauts ö,ä,ü?
ruebenwurzel:
Hello,
looks like the two databaseshave different charsets. (one seems to be UTF8 and the other ISO-8859-1) So you have to "convert" what you wanna have displayed.
Matthias
VCRulez:
Thank you, finally all working like a charm here! :D
Navigation
[0] Message Index
[*] Previous page
Go to full version