News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

CuteNews (CutePHP)

Started by DistantJ, June 07, 2008, 05:13:55 PM

Previous topic - Next topic

DistantJ

Apparently, CutePHP (www.cutephp.com) can be integrated with a phpBB so that any users who sign up will also be signed up as a CutePHP commenter (so they can leave comments on your articles), I believe it links to the database. Now I don't know if this means they edit the register page so that NEW signups become CutePHP members or if it just links to the database so that all members will become CutePHP members, but I'm thinking, this must be possible with SMF, right?

I've been working on my site (www.hooplanet.co.uk) for a long time now, and I've had a commenting system and separate forum for a long time, but lately I've considered the option of having the users able to link up their accounts, but without re-doing all of the articles as forum posts and using SSI.php the only real good way of doing it would be some kind of integration.

Does anybody have any ideas or suggestions for where I aught to start?

DistantJ

So as a few ideas pop into my head, I've had the thought of using SSI.php to hide the comments form to anybody who isn't signed in and then replacing the "name" form with something that should submit the username of the person logged in.

Is it possible to obtain the member's username via SSI.php?

Orstio

QuoteIs it possible to obtain the member's username via SSI.php?

Set up a test page.  Include SSI.php, and make sure to global $context.

After the include of SSI.php, print_r($context) to see all the information you can get from the forum.

DistantJ

Thanks, but could you explain how to do this? I'm not quite sure what the PHP script is for those actions, as I'm not too familiar with SSI just yet.

Orstio


<?phpglobal $context;include ('SSI.php'); //change this to your actual location for SSI.php (a path, NOT A URL!!!)print_r($context);  //This will print out the $context array so that you can see all the information and structure in the array.?>

DistantJ

#5
So it comes up as "[username]", or "[name]", within the array named "[user]" what would I recall this as? So let's say I could do "<?php echo" what would I follow that by to bring up [username] or [name] from the [user] array?

Orstio

$context['user']['username']

DistantJ


Advertisement: