https://www.icyphoenix.com/viewtopic.php?f=35&t=5001 ----------------------------------- gearhead Sun 09 Nov, 2008 02:22 New Blocks? ----------------------------------- Hello everyone! I was wondering if anyone good with PHP could make a block for each of these items; Who Is online (forum default not the current Who is online block) And possibly a Users block (like the forum default one). See photo: [img]http://www.icyphoenix.com/files/images/1660/whois.jpg[/img] Thanks. :mricy: :mrgreen: :mrblue: ----------------------------------- Limun Thu 13 Nov, 2008 11:58 Re: New Blocks? ----------------------------------- i m working on it...trying to create this block.. but i have some problems... maybe someone can help :mrorange: see pic - i dont see some things (i copyed code for block from index_body.tpl) [img]http://www.icyphoenix.com/files/images/3336/13_11a.png[/img] ----------------------------------- New Player Thu 13 Nov, 2008 16:25 Re: New Blocks? ----------------------------------- [quote] see pic - i dont see some things (i copyed code for block from index_body.tpl) [/quote] and you must copy the sql query's from the index.php for the blocks no query - no results ----------------------------------- Limun Thu 13 Nov, 2008 19:19 Re: New Blocks? ----------------------------------- [quote user="New Player" post="33791"][quote] see pic - i dont see some things (i copyed code for block from index_body.tpl) [/quote] and you must copy the sql query's from the index.php for the blocks no query - no results[/quote] how , any idea :oops: btw i created this blocks_imp_gearhead.php in blocks [spoiler]assign_vars(array( ) ); } } imp_gearhead_func(); ?> [/spoiler] and gearhead_block.tpl in templatesmg_themesblocks [spoiler]
{IMG_THL}{IMG_THC}{L_HIDE}{L_WHO_IS_ONLINE}{IMG_THR}
{L_WELCOME}
{USER_NAME}

{AVATAR_IMG}
{L_ONLINE_EXPLAIN}
{TOTAL_USERS_ONLINE}
{LOGGED_IN_USER_LIST}
{BOT_LIST}
{AC_LIST_TEXT} {AC_LIST} [ {L_AJAX_SHOUTBOX} ]
{L_Online_today}
{L_USERS_TODAY} {L_USERS_LASTHOUR}
{ADMINS_TODAY_LIST}
{MODS_TODAY_LIST}
{USERS_TODAY_LIST}
{L_LEGEND}: {GROUPS_LIST_LEGEND}
{IMG_TFL}{IMG_TFC}{IMG_TFR}
{IMG_THL}{IMG_THC}{L_HIDE}{L_STATISTICS}{IMG_THR}
{TOTAL_POSTS}
{TOTAL_USERS}
{NEWEST_USER}
{RECORD_USERS}
{L_RECENT_TOPICS}: | {recent_topic_row.L_TITLE} | 
{L_RANDOMQUOTE}: {RANDOM_QUOTE}
{L_TOP_POSTERS}: {TOP_POSTERS}
{IMG_TFL}{IMG_TFC}{IMG_TFR}
[/spoiler] ----------------------------------- gearhead Fri 14 Nov, 2008 04:34 Re: New Blocks? ----------------------------------- Thanks guys, and Limun, I will show you the before and after and why I needed the blocks. I really like php, but am not good at it yet. I'm glad you guys are!! New Player, you of course are correct. Can you detail the proper way to add the full sql query? Thanks. :mricy: :mrgreen: :mrblue: ----------------------------------- New Player Fri 14 Nov, 2008 18:04 Re: New Blocks? ----------------------------------- oh...not index.php...i mean forum.php.... but sorry i have not enough skills for this and not the time ----------------------------------- gearhead Sat 15 Nov, 2008 07:08 Re: New Blocks? ----------------------------------- Ok, thanks, anyway. :mricy: