Useful Code Snippets for Non-Programmers

Forum
Last Post
Threads / Messages

Kaeliah

Premium Member
Premium Member
Joined
Sep 28, 2010
Messages
475
Points
0
Age
31
Location
Pennsylvania, United States
Mysidian Dollar
21,285
Okay so obviously we aren't ALL programmers, but it would be nice to make small edits to your site, right? Well here's a list of small edits you can make, although you should probably know a little HTML.

1. Add Logged In User's Name
Sometimes you want to welcome someone, or identify them in some way. This is a very easy thing to do! You'll notice that all HTML & most text is between two quotes (" " or ' '). So where ever you want to add the users name between those quotes put:

PHP:
".$loggedinname."
or if that doesn't seem to work use:
PHP:
'.$loggedinname.'


Please give me requests as I'm not feeling very inspired right now. XD
 
Actually they can also use this code:

PHP:
{$loggedinname}

It is a matter of choice whether to use brackets or concatenation operators. I am more fond of brackets, but they can go wrong at times.
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,119
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top