User variable help

Need some coding help with a MOD or tweak you are working on? - Ask here.
Forum rules
Ask for support specifically regarding coding help with phpBB3.
Not for generic usability questions or support.

User variable help

Postby Rocky KouK » 24 Feb 2012, 21:18

Hello there!

I am currently building a new page for my forum and i am trying to use the user variables that i have been reading on.

1. So my new page, currently displays a form. I am not using a language file yet for my new custom page as i am still seeking information on how this works?

2. I am still adapting on how phpBB3's file work (template file, PHP file and language file) and i have a couple of questions:
  • Lets say i create a form on my HTML file and include it in the php file, how can i create an if statement in the php file and have the result displayed in my HTML file?
  • How does the language file fit in all this? We just end up "echoing" everything from that file in the HTML or PHP file?
  • How can i i create variables that can do the same as this:
    Code: Select all
    'USER_AVATAR'        => get_user_avatar($user->data['user_avatar'], $user->data['user_avatar_type'], $user->data['user_avatar_width'], $user->data['user_avatar_height']),

    and now i am able to use:
    {USER_AVATAR} in my HTML file?

Thanks for the help!
Regards,
ViCtor
User avatar
Rocky KouK    
Supporter
Supporter
 
Posts: 243
Joined: 06 Apr 2008, 11:55
Location: Canada, Montreal
Favorite Team: Chargers
Gender: Male
phpBB Knowledge: 5


Re: User variable help

Postby Rocky KouK » 25 Feb 2012, 16:04

Anyone?
Regards,
ViCtor
User avatar
Rocky KouK    
Supporter
Supporter
 
Posts: 243
Joined: 06 Apr 2008, 11:55
Location: Canada, Montreal
Favorite Team: Chargers
Gender: Male
phpBB Knowledge: 5

Re: User variable help

Postby stef775 » 25 Feb 2012, 18:52

Assign them to your template
ForumHulp.com
Webhosting, Custom MODs, Technical management, MOD installation and Webdesign
stef775
Ensign
Ensign
 
Posts: 88
Joined: 05 Oct 2008, 16:00
Gender: Male
phpBB Knowledge: 8

Re: User variable help

Postby Rocky KouK » 16 Mar 2012, 12:24

stef775 wrote:Assign them to your template

Further explaination would be appreciated!
Regards,
ViCtor
User avatar
Rocky KouK    
Supporter
Supporter
 
Posts: 243
Joined: 06 Apr 2008, 11:55
Location: Canada, Montreal
Favorite Team: Chargers
Gender: Male
phpBB Knowledge: 5

Re: User variable help

Postby Rocky KouK » 30 Mar 2012, 15:58

one day D:
Regards,
ViCtor
User avatar
Rocky KouK    
Supporter
Supporter
 
Posts: 243
Joined: 06 Apr 2008, 11:55
Location: Canada, Montreal
Favorite Team: Chargers
Gender: Male
phpBB Knowledge: 5


Return to phpBB3 Coding Assistance

Who is online

Users browsing this forum: Exabot [Bot], Majestic-12 [Bot] and 8 guests