Log in

View Full Version : Great problem!! (vB 3.6.5)


Desesperao
05-10-2007, 10:18 PM
I?ve a great problem and I need help.

This is my vBulletin community:

http://www.foromotos.com

A friend has designed a contest that uses the login of the forum to be able to accede to it but, after the last update - (6.3.5) - isn?t possible.

I need the minimum code necessary to be able to write php external to vbulletin but that it uses its session to be able to accede to the data (login) of the user.

Thank?s

PD: sorry for my English.

HMBeaty
05-10-2007, 10:19 PM
So you're wanting to be able to log the logins of your users?

Desesperao
05-12-2007, 11:01 AM
I need that the users of the forum could enter to the contest with the same login of the forum.

shortbus1662
05-12-2007, 05:40 PM
you're saying you want your contest to use the same user table as the forums?

tort
05-13-2007, 07:11 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=100150&highlight=competitions.php" target="_blank">https://vborg.vbsupport.ru/showt...mpetitions.php</a> I would post the code to mine, but mine has been customized to charge points, and automatically pick a winner out of the participants (based not on an answer like the base mod, but on the number of entries).

nevertheless this is what i use....and it is highly customizable as you can see I have done.

Desesperao
05-13-2007, 11:21 PM
you're saying you want your contest to use the same user table as the forums?Exactly, any idea?

shortbus1662
05-14-2007, 02:27 AM
I don't know jack about programming, php/mysql, etc., however I can say that it can be easily done.

I had someone create a contest program for me in the past.

I also used a program from www.ubidog.com (http://www.ubidog.com) (event handler) that worked really well.
It may be overkill for what you need though, as you can do just about anything under
the sun with it.

Basically, I used it to run contests on my site, and the login integrated with the forum. I first used it with ubbthreads, then switched to vbulletin. They don't have an option for a vbulletin plugin on their site, but they can make you one for like 40 bucks. The software costs 100 dollars, so you're looking at 150 give or take for the program and the integration.

Otherwise, I'm sure you could find someone on here with a solution.

Desesperao
05-17-2007, 08:17 PM
Thank you, shortbus1662

Has someone an idea?

Michael Morris
05-18-2007, 05:14 AM
If your code includes global.php it will have access to all vbulletin functions, classes and properties - including information about the currently logged in user. The information is kept in $vbulletin->userinfo or $bbuserinfo. There's a tutorial around here somewhere about writing your own vbulletin powered pages.

Dismounted
05-18-2007, 11:24 AM
There's a tutorial around here somewhere about writing your own vbulletin powered pages.
It's always listed in the top five of the vBulletin Articles section. So it's not hard to find :p.

Michael Morris
05-18-2007, 01:55 PM
Cut a guy a break - I posted that at 2 in the morning local time and didn't feel like looking it up :D

Desesperao
05-19-2007, 10:23 AM
I have searched in the articles section but i don´t find anything. Please, can you help me to find it?

My English is very little and it´s a great work for my to find it between lots of threads.

Dismounted
05-19-2007, 11:59 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=62164" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=62164</a>

You didn't need to search for it, you should've just looked in the Articles section.