PDA

View Full Version : Useful Code Snippets for Non-Programmers


Kaeliah
04-02-2011, 02:07 AM
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:

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


Please give me requests as I'm not feeling very inspired right now. XD

rickasawr
04-29-2011, 04:57 PM
How many users that are currently online?
How many Pets that are adopted?
Layout stuff.

all i could think of. :smile:

Kaeliah
04-30-2011, 01:11 AM
Those can be found in some modifications if you check out that forum. :3

Hall of Famer
05-05-2011, 11:21 AM
Actually they can also use this code:

{$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.