Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
  #1  
Old 02-03-2017, 12:25 PM
Inna Inna is offline
 
Join Date: Jul 2016
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Display forum threads on WP

Hi, I've downloaded some files to show my vB threads and posts in my WP, but it seems when I upload MTForumsBlock.php which is the main file, WP is not shown anymore!
Can you please see if there's something wrong with the codes and files?
Thank all
Attached Files
File Type: zip VB to WP.zip (7.4 KB, 4 views)
Reply With Quote
  #2  
Old 02-06-2017, 11:26 AM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you want to show them on your Wordpress install? There are a couple of widgets that will show them in your sidebar without this type of hassle.
Reply With Quote
Благодарность от:
Inna
  #3  
Old 02-06-2017, 11:31 AM
Inna Inna is offline
 
Join Date: Jul 2016
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your response
I know there are some widgets, but I my WP theme does not support widgets and also I prefer using no widget
Reply With Quote
  #4  
Old 02-06-2017, 11:51 AM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When you uploaded the files did you include your database name, database pass, and url. Here is the code in that file you need to make changes to or else it will not work.

Code:
$db_name = 'HERE';
$db_username = 'HERE';
$db_password = 'HERE';
$forumurl = 'http://YourSite.com/forum/';
Replace the red HERE with the details it is requesting.

This is what these lines of code mean and what you need to put between the two single quote marks 'some nice stuff here, blah blah blah'. What information you need to put is in bold red.

$db_name = Your database name
$db_username = Your database username
$db_password = Your database password
$forumurl - Your forum URL

If you do not know your database, username & password just navigate using a FTP or your File Manager in your web host to your forums directory and then find includes/config.php and download it. Open it in notebook or a HTML text editor and look for the info that I've marked in red...

Code:
	//	****** DATABASE NAME ******
	//	This is the name of the database where your vBulletin will be located.
	//	This must be created by your webhost.
$config['Database']['dbname'] = 'vbulletin';
Code:
	//	****** MASTER DATABASE USERNAME & PASSWORD ******
	//	This is the username and password you use to access MySQL.
	//	These must be obtained through your webhost.
$config['MasterServer']['username'] = 'username';
$config['MasterServer']['password'] = 'password';
Input those values into the script you have and try it again. Your script, using the example above would like like this:

Code:
$db_name = 'vbulletin';
$db_username = 'username';
$db_password = 'password';
$forumurl = 'http://www.myforum.com';
Also make sure that you include this code in your theme, I think where you want it to display although I'm not completely sure. You may need to check with the developer of the plugin for that info.

Code:
<script type="text/javascript">
setInterval(function(){ChangeForumPage('Current');}, 30 * 1000);</script>
<div id="MTForumBlock">
<?php include('MTForumsBlock.php'); ?>
</div>
<div id="MTForumBlockControl">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="MTForumButton"><a href="javascript:ChangeForumPage('Prev')"><img border="0" src="MTForumBlock_buttonParrow.png" />&nbsp;???</a></td>
<td id="MTFloader"></td>
<td class="MTForumButton"><a href="javascript:ChangeForumPage('Next')">???&nbsp;<img border="0" src="MTForumBlock_buttonNarrow.png" /></a></td>
</tr>
</table>
</div>
Reply With Quote
  #5  
Old 02-06-2017, 11:55 AM
Inna Inna is offline
 
Join Date: Jul 2016
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know these information sir, and they're fulfilled correctly.
It seems there are something wrong with the whole codes of the mail file (not the info of DB I wrote in)
Reply With Quote
  #6  
Old 02-06-2017, 12:52 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Inna View Post
I know these information sir, and they're fulfilled correctly.
It seems there are something wrong with the whole codes of the mail file (not the info of DB I wrote in)
Ok then I do not know what the issue is. Have you tried contacting the original developer for the plugin? That maybe you only safe bet as they should know how to fix the issue.
Reply With Quote
  #7  
Old 02-06-2017, 12:56 PM
Inna Inna is offline
 
Join Date: Jul 2016
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Original dev is not accessible unfortunately
Reply With Quote
  #8  
Old 02-06-2017, 01:01 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That sucks Hopefully someone will have an answer for you soon.
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:02 PM.


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.04073 seconds
  • Memory Usage 2,249KB
  • Queries Executed 12 (?)
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
  • (5)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (1)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete