![]() |
|
#11
|
|||
|
|||
|
Okay, I just spent awhile sketching out the first half of an idea...
(this needs mod_rewrite - ask your host if that's available) First up, the two example files I made you can find at http://thirdcursus.com/partial-mod.zip Now, the way I made this section of the mod work is to move all the contents of the /templates/ Next, you need to edit the spic.php file. The 6 variables at the top will need to be replaced with ones that will allow read access to the phpbb_users table (or whatever you named your equivalent). The first variable ($field) needs to be set to the field in the users table that will be used to store the person's choice of picture. the second, $default, is the picture you want someone to see if they haven't made a selection yet. The spic.exe file then goes into the 'target' folder along with the images. This system also needs you to add one field to the user table (remember to allow this to be null, or you'll have to modify the signup process as well), and to modify the profile page to allow people to chose options from a drop-down box to go into that field. *grins* That was an hour well-wasted, I think. Anyway, this is the code from the two files, feel free to play around with it. Quote:
Quote:
__________________
Me, singing: Krieg, huh... wozu ist der gut? Um Europa zu übernehmen! Vote Morphine - the party for Not Crushing Opium! Yoda, to his ice-cream: The sauce is upon you, and soon, sprinkles must fall! |
| Thread Tools | |
| Display Modes | |
|
|