PDA

View Full Version : vB3 small question.


Mijae
08-05-2003, 03:34 AM
I just upgraded and I need to adapt my gallery script to work with it. Its just a small piece of code that I need.

I used to have the gallery.php file work like this:

if user was registered, he/she could view the gallery. If user was not logged in/registered it would give him a custom error template message saying that he/she needed to register before viewing the gallery.

I cant make it work with vB3, I dont know what code to add :-\

N!ck
08-05-2003, 03:41 AM
It's going to require a complete rewrite, but the coding of vB3 baffles me, so I can't be of any help. Sorry.

Erwin
08-05-2003, 09:08 AM
Just add the includes/global.php instead of global.php to the top of that file - just look at different stock vB3 php files, and you will get the idea very easily.

Mijae
08-05-2003, 04:32 PM
Damn, I lost the code. Could anyone show me it again?