How to share session between Symfony2 and Wordpress - php

I have a project built in Symfony2. I'm using FOSUserBundle to manage users. Now I have to integrate Wordpress into my project. Wordpress has to be available in subfolder: http://example.com/blog. I already managed to achieve such state, everything works like a charm, but now I need to share session between Symfony2 project and Wordpress. Actually I don't really know if session share is right solution to my problem. The thing is that I want to the same design in Wordpress as I use in Symfony project. In my Symfony project I have a top bar which indicates that user is authenticated. If user will authenticate via Symfony (I want it to be the only possible way) I want him to see that he is authenticated also while browsing the Wordpress blog. So session share was my first thought, but maybe there are other, more effective solutions? Maybe loading this top bar into iframe in Wordpress? Can EkinoWordpressBundle solve my problem?

If the WordPress installation is on the same domain in a folder, the session should be available trough PHP. You can check it by using the $_SESSION variable from PHP and add some code to your header.php to show the authentication details .

Related

View Yii2 theme without database?

I'm the frontend developer (strictly frontend) for a Yii2 project, and I've never worked with Yii2 before. I was sent the repo of the whole Yii2 site - front & backend, but my colleagues forgot to send me a database dump to work with.
But going through the views folder, I see what looks like everything required for a PHP site. Can I just set up a webserver and view / modify these locally without requiring the entire rest of the system including database?
Not really my area of expertise here, any advice is appreciated.

VBulletin Change Registration URL

I'm trying to connect a VBulletin site to a Wordpress installation so when you create WP account it automatically creates one for the forums. I already found a way to do that, now all I need is to change the registration URL for the forums to point to the wordpress site.
I understand this has to be done by changing the code, but for the life of me I can't find the right file.
Where do I need to change this?
You didn't mention your vBulletin version which makes it hard to help you.
A solution for vBulletin 4 to rename the registration url can be found on http://www.vbulletin.org/forum/showthread.php?t=297834

how to add joomla site header in my custom php file without using ready made plugin or module?

I have been develope one site in joomla framework. Now my trouble is that client want one custom page in this site. so, please guide me how to i setup theme interface in this custom page?
Although this is not my favorite solution, instead of including Joomla in your script, you can put your script inside an article with an extension that can read your code, like DirectPHP and others.
You can make something like error.php which is really a mini application that renders a single page. You can see in the core how elements of the emplae are used and you can evn pull in modules and so on.

PHP-based CMS that can use static files as pages and include a forum and blog?

I am currently working on a project documentation site for an OSS PHP project. Presently all of the docs are written in Markdown and stored as separate files.
I would really like to keep the core documentation as static files within the project so that they can be downloaded and used as well as read on my website. But on the website, I'd like to render those pages from within a CMS.
In addition to presenting the code docs, I also want to provide a forum for discussion and a blog.
Wordpress is what I have experience with, but is there a better system for what I am trying to accomplish specifically?
For Blog and CMS I would suggest stick with Wordpress since you already have experience on it. And as far as Forum is concerned I would suggest SimplePress forum. I have been using it on my Wordpress installation and found it really good. You can see live forum on the link above to see how it looks in real world.
Also Wordpress has several nice plugins like Download Manager that will give you ability to manage your downloads/files.
Can't confirm if wp is the best, but it's certainly good enough.
To include your docs, you'll have to write a plugin, not likely that you will find one existing that does exactly what you want.
For forum, you should find a plugin. Google for posts similar to this to choose a best match.
Firstly Wordpress isn't a framework.
I believe CakePHP has the functionality to load hardcoded pages when they're placed in the webroot folder of the app. I'm unsure as to how they're loaded in regards to routing/templating however.

Joomla and PHPBB3 integration

I'm on a current web project, on which there's a working PHPBB3 installation in
(root)/phpbb3
All other files of the page are directly on (root)/ and are manually programmed.
now I have to refactor the whole page with Joomla and want to integrate the PHPBB3 directly into the main page, so that header, menu and footer of the joomla page are still beeing displayed, only the content shall be the PHPBB.
There are no further log in mechansims on my page, so this is not an issue. It's just about an optical integration of the board into the page...is this possible?
If yes, how?
Could you please give me a hint?
greets, poeschlorn
I've done it before. There's a component/application called RokBridge that does basically this. Note that phpBB isn't running exactly "inside" of Joomla, since that would be disadvantages for performance reasons...

Categories