Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Tutorials and Tips (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=27)
-   -   Useful Code Snippets for Non-Programmers (http://www.mysidiaadoptables.com/forum/showthread.php?t=2064)

Kaeliah 04-02-2011 02:07 AM

Useful Code Snippets for Non-Programmers
 
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 Code:

".$loggedinname." 

or if that doesn't seem to work use:
PHP Code:

'.$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:

PHP 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.


All times are GMT -5. The time now is 05:16 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.