Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-27-2009, 07:31 AM
BRotondi BRotondi is offline
 
Join Date: Sep 2008
Location: Zurich
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default php Functions: a) to get $forumid b) to create forum

Hello

I'm working on a MediaWiki-link to vBulletin (MediaWiki/vBulletin Single Sign-On). Next Step: Hardlinks MediaWiki-Discussion -> vBulletin-Forum. (Each Article has his own Forum, not only a Thread)

After working me into the vBulletin-Code I realized, that simple SQL won’t update the vBulletin-Cache and perhaps is a too quick and dirty way to achieve my two goals:

a) How to determine the $forumid of a forum? ID_ParentForum and Page Title are known. The SQL-Query is:
PHP Code:
$sql 'SELECT `forumid` FROM `forum` WHERE `parentid` = "[ID_ParentForum]" AND `title` = "[Page Title]"; 
(here "dirty SQL" ignoring the cache won't do any harm)

b)
If there is no forum with this Name in ID_ParentForum I want to create it. vBulletin does this through forum.php > $_POST (line 246) but there is perhaps an easier way to achieve this without “emulating” the form.

I think there must be already code out there to achieve these two points...
Any help very appreciated! Thanks!
Bruno
Reply With Quote
  #2  
Old 04-14-2009, 09:52 AM
Burgy Burgy is offline
 
Join Date: Aug 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am useing MediaWiki/vBulletin Bridge - you worked on so helpfully - and it does work flowless, even in combination with facebook Login. I do apreciate this a lot. Thanks first.

Secondly I am interested as well to generate and later syndicate an "Article-Discussion"-Thread below the Article in the Wiki. Even a quick reply box would complete this.

Syndication through RSS
I searched a lot for external syndication of threads, but did not find anything. My conclusion is, that the rss syndication of hole topics is not ment to be, in order to prevent authorisation. But an working rss feed could be the conclusion for the syndication part. the generate a new topic (or forum)-part would still have to be solved.

Syndication and posting through API
Sadly vbulleting does not have any api, elsewise the api functions could be used, but perhaps someone else is pushing the api thing.

php Hardcoding
1. Generate new topic (or forum) with some or all information from the article. With Semantic MediaWiki you can adress variables to an article. But it is amasingly difficult to catch these fariables in an hook. But through Semantic Media Wiki Forms it could be possibel to have an comment variable, wich is given over to the topic / forum creation plugin.

2. Remember the topic / forum for the article can be achieved through Semantic MediaWiki, just by setting an url variable to the topics url, or forums url through the plugin.

3. To write new topic in article-forum or reply / comment in article-thread would at last a real api think, as well as generating the forum / topic bevore.

As you can see, I solved none of the problems but gothered some thoughts about how to solve it. If you have questions conserning semantic mediawiki, please ask.

Sincerely yours
Burgy
Reply With Quote
  #3  
Old 09-17-2009, 08:29 AM
BRotondi BRotondi is offline
 
Join Date: Sep 2008
Location: Zurich
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ups... forgot to thanks you for the answer! ... I skipped this one since it's not too easy for the moment.

Thanks & Greetings
Bruno
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06501 seconds
  • Memory Usage 2,183KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete