vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBulletin SOAP API (https://vborg.vbsupport.ru/showthread.php?t=100559)

ImportPassion 12-02-2005 01:53 AM

Quote:

Originally Posted by leonsio
for RHEL you should better take Centos RPMs ;)

http://rpm.pbone.net/index.php3?stat...soap&srodzaj=3

no good.

Quote:

php = 5.0.4-4.centos4 is needed by php-soap-5.0.4-4.centos4

leonsio 12-02-2005 05:05 AM

extrackt rpm file with rpm2cpio

kickorg 12-02-2005 11:18 AM

local test on win xp, apache 2.0.55 + php 5.1 as modul + php soap extension

SoapFault Object
(

.... somethingthing .....

[faultstring] => Call to undefined function vbrand()
[faultcode] => SOAP-ENV:Server
)

any idea?

leonsio 12-02-2005 11:25 AM

which vbulletin do you use?
in which folder is server.php located?
if you use other folder than /soap you must edit a patch to you forum at the top of the server.php

vbrand functions is in the functions.php, which is loaded by the constructor of the class
so that i think it can not be found

look at the CWD constant

define('CWD', '../' ); <-- i think you must change this

example to: ./ if you running server.php in the forumroot

kickorg 12-02-2005 11:31 AM

vb 3.5.1 new installed yesterday

path's:

"vbroot"/soap/server.php
"vbroot"/soap/examples/test.php

i also think that functions.php not can be found but i dont know why. i have changed nothing and i follow exactly your instructions. hope u can understand my english :)

p.s.: "i have changed nothing means that i have changed nothing in the server.php class", sure i have changed the needed paras like the key etc..

leonsio 12-02-2005 11:41 AM

hmm it can be a windows specific problem

try to set an absolute path to the CWD constant
and please check a path in the config.php file from vbulletin
(attention windows and linux have different path
c:/forum/ <-- windows
/var/www/forum <-- linux
)

hmm i think i must find anythere a windows pc and test it

but it is not so simple, as it sounds

i have at work only solaris computers, at home i'm using macosx and my root server is linux .....

kickorg 12-02-2005 11:45 AM

ok now it works. great addon man ;)

the error comes because i have not defined in config.php the path to the forum ->

$config['Misc']['forumpath'] = 'path/to/board';

in config.php i read that i must only define this path if vb print an error that i must define it - you know what i mean?

leonsio 12-02-2005 11:47 AM

Quote:

Originally Posted by kickorg
ok now it works. great addon man ;)

the error comes because i have not defined in config.php the path to the forum ->

$config['Misc']['forumpath'] = 'path/to/board';

in config.php i read that i must only define this path if vb print an error that i must define it - you know what i mean?


okay, great i will try to include forumpath check in the construct

kickorg 12-02-2005 05:14 PM

in "server.php" at function "getpost" i have found a the line "print_r($threadinfo)" ->

Code:

        public function getPost($key, $postid)
        {
                global $vbulletin;

                if($this->access_key != $key)
                {
                        throw new SoapFault("Server","Bad Key");
                }

                $postinfo = verify_id('post', $postid, 0, 1);
                $threadinfo = verify_id('thread', $postinfo['threadid'], 0, 1);
print_r($threadinfo);
....


i think u have set this line for debug mode and this should not set in the released version, right?

leonsio 12-02-2005 05:20 PM

hmm yes thx, i will remove it in the next release

leonsio 12-02-2005 05:27 PM

@kickorg

hab gesehen dass deine HP in deutsch ist, deswegen gehe ich davon aus dass du deutsch kannst *g*

damit wir uns nicht weiter in englisch quallen gibts auf vbhacks-germany auch ein release thread

http://www.vbhacks-germany.com/forum...ead.php?t=2239

gru? aus dem nachbarsland

leo

kickorg 12-02-2005 06:21 PM

ja klar sprech deutsch, bin auch urspr?nglich vom deutschen forum hier her gewandert. habe jedoch zwecks h?flichkeit gleich in englisch geschrieben, damit jene die das problem vielleicht auch haben nen plan davon haben wie wir es l?sen ;)

danke f?r den link ;-)

leonsio 12-07-2005 11:03 AM

new version is online

changes are in the release post

Wordplay 12-19-2005 08:30 PM

when importing the product i get this error:
Quote:

Originally Posted by error
Warning: mysql_real_escape_string(): 6 is not a valid MySQL-Link resource in /includes/class_core.php on line 657

Warning: mysql_query(): 6 is not a valid MySQL-Link resource in /includes/class_core.php on line 395

Warning: mysql_error(): 6 is not a valid MySQL-Link resource in /includes/class_core.php on line 837

Warning: mysql_errno(): 6 is not a valid MySQL-Link resource in /includes/class_core.php on line 855


leonsio 12-20-2005 07:13 AM

which mysql api do you use

mysql or mysqli?

hmm can you install other produkts??

this addon dont needs any database changes, so it must be a vbulletin problem

Wordplay 12-20-2005 11:10 AM

regular mysql, i get that error on all products i try to import. the thing is that one doesn't work as i get this error when i go to the example:

Quote:

Originally Posted by board/soap/examples/test.php
Parse error: parse error, unexpected '{' in public_html/board/soap/examples/test.php on line 9

Quote:

Originally Posted by soap/examples/session/login.php
Parse error: parse error, unexpected '{' in public_html/board/soap/examples/session/login.php on line 6

it says at the top that you'll make an example for xoops.

will this really work with xoops????

kickorg 12-20-2005 11:23 AM

Quote:

Originally Posted by Wordplay
Quote:
Originally Posted by board/soap/examples/test.php
Parse error: parse error, unexpected '{' in public_html/board/soap/examples/test.php on line 9

Quote:
Originally Posted by soap/examples/session/login.php
Parse error: parse error, unexpected '{' in public_html/board/soap/examples/session/login.php on line 6

Are you sure that you use PHP5 width SOAP extension? I think you use PHP4 or maybe you use PHP5 but no SOAP extension

Wordplay 12-20-2005 11:33 AM

what exactly are soap extensions? and i use .php rather then .php5 i'm on PHP Version 4.3.11 should i be running php 5? if so i can do that, but what are soap extensions?

leonsio 12-20-2005 11:40 AM

if you will use this addon you MUST have php5 installed on your server

soap-> http://en.wikipedia.org/wiki/SOAP

Wordplay i know you want to connect your joomla with vbulletin

if you have php4 installed you should use the vbulletin_sql module
it works like vbridge, but without alter the usertable (password)

Wordplay 12-20-2005 11:49 AM

leonsio thank you very much for wanting to help me.

hmm... i'm still putting to consideration whether i should upgrade my server to php5 or not. the only thing trembling my decision is that php5 extensions for vbulletin just crossed my mind. my board is pretty hacked... so moving over to php5 i think i would have to re-do like the entire board as i would have to run a completely new installation of vbulletin.php5, and upgrade from there, adding the hacks and everything from scratch. as i doubt that it is possible to upgrade to a vbulletin that runs php to php5.

furthermore... i doubt all my hacks would still work.

so i'm in a fix.

please let me know whether this will really be able to make vbulletin with xoops. and if that has already happened.

leonsio 12-20-2005 11:52 AM

also vbulletin runs unter php5 without any problems

you should install WAMP on your windows this package include apache/php5/mysql4x and then test all your applications on it with php5

Wordplay 12-20-2005 11:55 AM

did you read my last reply? if not please do...

and you just wrote unter... deutsch? predator kenn ich ja bereits, ein deutsches coder team hier ja?

leonsio 12-20-2005 12:04 PM

ja hab dein kommentar gelesen
man kann xoops modul erstellen, jedoch ist dieser von mir vorerst nicht geplannt

f?r deutschprachige hilfe benutze www.vbhacks-germany.com forum

Wordplay 12-20-2005 12:08 PM

no my english is just fine... so if you dont mind i'll just stay here... merely because registering there would just be too much extra work that i doubt will help me get on... as you're here and you're the only person i need to be talking to concerning this.

you said vbulletin works just fine on php5 server? you mean i wouldn't have to change anything when moving to a php5 server? are you certain of this?

leonsio 12-20-2005 12:12 PM

<a href="http://www.c4u.to" target="_blank">www.c4u.to</a> is my forum and it works/runs on php 5.0.x and mysql 4.1

Wordplay 12-20-2005 12:24 PM

cool. heard php 5.1.x is not too stable with vbulletin so i should be running 5.0.x then right? ok i'll upgrade my server then later tonight. and then install this.

could you please... please do me the favor of finding somebody who made it work with xoops? if you say its possible somebody must've done it by now right? or can you atleast point me in a direction to look around at?

leonsio 12-20-2005 12:29 PM

also i have not tested php5.1 with vbulletin

but i will update my server to php 5.1 and mysql 5.0 soon

xoops... also i can try to make a module but not in this year

for questions except VB_SOAP addon use other threads here ( for modules -> Vbulletin application connector )

Wordplay 12-20-2005 01:45 PM

too bad... in my opinion xoops completely outshines joomla. i wish that would work. never is it possible for me to get what i really need. i hope somebody works on it sometime soon.

thanks none the less.

Wordplay 12-21-2005 10:00 AM

leonsio i cant find anybody willing to work on the xoops and vbulletin intigration... as nobody seems to have the soap expiriance... and asking around on other forums turned out useless as people expirianced with xoops seem to not know a thing or two about vbulletin, probably because it has never before been possible to make both work together. but if you run a search on:
bbpixel.com
xoops.org

and a couple of other xoops sites. you will swiftly see how many people have been longing for these 2 to work.

you said you wont be able to work on it before new year... and i dont have a choice but to wait.

so i'll just be patient... please let me know when approximately you'll be able to make it work.

leonsio 12-21-2005 10:07 AM

also its realy easy to make common logins from other applications with vbulletin ( and this addon )

look at the examples in the package

in the login.php you can find code to "login" on vbulletin

as result you will get all needed cookies ($connection->_cookies)

you must just walt this array and set cookies

PHP Code:

                            foreach( $connection->_cookies AS $name => $value)
                            {
                                              
setcookie($name$value[0], $lifetime$value[1], $value[2]);
                            } 

if you have set all this cookies, the user will be logged in vbulletin

Wordplay 12-21-2005 10:10 AM

so basically this isnt really an intigration but rather just logs users into both programs, which remain standalone softwares?

leonsio 12-23-2005 08:29 AM

*update*

added function getOnlineUsers(KEY)
this function will return an array with all logged in users

the count of the array can be different, you will only get user which you can see
also if the user can not see we who is online list, he will get nothing ;)

for admins the list will include invisible users too

Philipp G?rard 12-27-2005 09:03 PM

This sounds promising. When are you going to implement the addTopic/addPosting-functions?

leonsio 12-27-2005 11:13 PM

not this year ;)

leonsio 01-10-2006 02:54 PM

Quote:

Originally Posted by twitch
So... would this be able to work with vwar? http://www.vwar.de and my vbulletin forum so that users will synch?

I am looking for some sort of vwar bridge or something to synch the 2 user databases together. A vwar bridge would be a great tool for the vbulletin community.


one use has created vwar module for my connector for joomla
its the same as vbulletin connector, i will port the module in the next weeks for vbulletin

to use it with this connector and vbulletin

http://forum.joomla.org/index.php/to...html#msg125646

release thread of the connector for vbulletin

so it is posible to have common login between joomla<->vbulletin->vwar ( or vbulletin<->joomla->vwar )

it will be only one login needed :D

rob.wisniewski 01-11-2006 03:02 AM

This is really interesting and almost exactly what I'm looking to do. However I don't believe my host has the SOAP extension installed for me. both of my applications are running in the same process/domain so I can theoretically call your server.php directly without the SOAP layer. I tried to hack this by removing the references and verification of the $key, but this seems to fall apart. (interestingly enough I just get a <html></body></html> response.. can't figure that one out). Any ideas on calling your libraries from another php file? Specifically I'd be calling this from the portion of MediaWiki that logs a user into mediawiki.

leonsio 01-11-2006 07:12 AM

you need php5 to run this script

key should not be a problem, you can call the functions direct $test=new VBSOAP();

$result=$test->doLogin(KEY, .....);


sorry but i dont have enouth time at the moment to make the script php4 conform
i dont know why you get html code, the script dont produce any html outputs

try to update to php5, its a easiest way to get this script working ;)

boiboi 01-18-2006 01:27 AM

Quote:

Originally Posted by leonsio
look at first post

you needs PHP5 and soap extension

for a client you can use a PEAR::SOAP, examples are at the first site of this thread

Good concept but most folks are probably still on php4

leonsio 01-18-2006 06:17 AM

php4 has very very slow performance

it is posible to run it with php4 but its not so good and not so fast like php5

( the extension in php4 is written in php, the soap extension in php5 is written in c )

jliu 01-25-2006 11:36 AM

Very nice concept. I tried it, but got message --

[faultstring] => looks like we got no XML document
[faultcode] => SOAP-ENV:Client

Any idea where I got it wrong?

Thanks!


All times are GMT. The time now is 10:01 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01486 seconds
  • Memory Usage 1,836KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete