/blocks/statistics.php
And please, stop quoting the post above yours (Or the last post), especially when they contain a lot of detail. Use the "Reply" button instead.
Why?
Because I have to go through all this in my quick-view mail-washer just to read your few lines at the bottom.....
Spoiler: [ Show ]
Spoiler: [ Hide ]
Hello mort!
juggalo_master has posted a new reply to "Need Help adding Link Variables" in the "Templates And Styles Discussions" forum at Icy Phoenix.
You can use the following link to view the replies made (no more notifications will be sent until you visit the topic):
http://www.icyphoenix.com/viewtopic.php?p=56654#p56654
Posted text:
mort wrote: [View Post [links to #]]
Then you want something like this. (You will need to move things around, and add permissions and markup etc.) [Image ignored]
Spoiler: [ Show [links to #] ]
Spoiler: [ Hide [links to #] ]
Code: [Hide [links to #]] [Select [links to #]]
Code: [Show [links to #]]
<table class="empty-table" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="center">
<br />{AVATAR_IMG}<br /><br />
<span class="name"> {U_NAME_LINK}</span><br />
</td>
<td>
<span class="gensmall">{LAST_VISIT_DATE}</span>
<a href="{FULL_SITE_PATH}{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>
<form method="post" action="{S_LOGIN_ACTION}">
<table style="width:100%; height:28px;" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="forum-buttons" align="center" valign="middle"><span class="gensmall"> <strong> Quick {L_LOGIN_LOGOUT}:</strong> </span><span class="gensmall"><strong>{L_USERNAME}: </strong>
<input class="post" type="text" name="username" size="10" /> <strong>{L_PASSWORD}: </strong>
<input class="post" type="password" name="password" size="10" maxlength="32" /> {L_AUTO_LOGIN}
<input class="text" type="checkbox" name="autologin" />
<input type="submit" class="mainoption" name="login" value=" {L_LOGIN} " />
</span>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
Open forum.php
Spoiler: [ Show [links to #] ]
Spoiler: [ Hide [links to #] ]
Code: [Hide [links to #]] [Select [links to #]]
Code: [Show [links to #]]
Find:
$template->assign_vars(array(
'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
Before Add:
// Check For Anonymous User
if ($user->data['user_id'] != ANONYMOUS)
{
$name_link = colorize_username($user->data['user_id'], $user->data['username'], $user->data['user_color'], $user->data['user_active']);
$avatar_img = user_get_avatar($user->data['user_id'], $user->data['user_level'], $user->data['user_avatar'], $user->data['user_avatar_type'], $user->data['user_allowavatar']);
}
else
{
$name_link = $lang['Guest'];
$avatar_img = '<img src="' . $config['default_avatar_guests_url'] . '" alt="" />';
}
$template->assign_vars(array(
'U_NAME_LINK' => $name_link,
)
);
Now you can see what I meant about not ALL vars are global.
I also don't know why you don't make a copy of the CMS user block with a new ID and use that with your own template file.
That's why it's a CMS! [Image ignored]
thanks, i am not use to phpbb i am use to smf so i am still learning with phpbb and icy phoenix.
can you also show me how to get the post count and user count and total topics count for template to show up?
somewhat like this:
Code: [Hide [links to #]]
Code: [Show [links to #]]
* Our users have posted a total of 28 articles
* Total posts 19 • Total topics 19
*
and
i know the total posts and topics is from phpbb but i want to do something similar but with icyphoenix style of posts and topics.
You are receiving this email because you are watching the forum, "Templates And Styles Discussions" forum at Icy Phoenix.
If you no longer wish to watch this forum you can either click the "Stop watching this topic link" found at the bottom of the topic above, or by clicking the following link:
http://www.icyphoenix.com/viewtopic.php?t=8671unwatch=topic [links to www.icyphoenix.com/viewtopic.php?t=8671&unwatch=topic]
____________
Icy Phoenix Staff
No virus found in this message.
Checked by AVG - www.avg.com [links to 'http://www.avg.com']
Version: 2012.0.2197 / Virus Database: 2437/5251 - Release Date: 09/05/12
juggalo_master has posted a new reply to "Need Help adding Link Variables" in the "Templates And Styles Discussions" forum at Icy Phoenix.
You can use the following link to view the replies made (no more notifications will be sent until you visit the topic):
http://www.icyphoenix.com/viewtopic.php?p=56654#p56654
Posted text:
mort wrote: [View Post [links to #]]
Then you want something like this. (You will need to move things around, and add permissions and markup etc.) [Image ignored]
Spoiler: [ Show [links to #] ]
Spoiler: [ Hide [links to #] ]
Code: [Hide [links to #]] [Select [links to #]]
Code: [Show [links to #]]
<table class="empty-table" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="center">
<br />{AVATAR_IMG}<br /><br />
<span class="name"> {U_NAME_LINK}</span><br />
</td>
<td>
<span class="gensmall">{LAST_VISIT_DATE}</span>
<a href="{FULL_SITE_PATH}{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>
<form method="post" action="{S_LOGIN_ACTION}">
<table style="width:100%; height:28px;" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="forum-buttons" align="center" valign="middle"><span class="gensmall"> <strong> Quick {L_LOGIN_LOGOUT}:</strong> </span><span class="gensmall"><strong>{L_USERNAME}: </strong>
<input class="post" type="text" name="username" size="10" /> <strong>{L_PASSWORD}: </strong>
<input class="post" type="password" name="password" size="10" maxlength="32" /> {L_AUTO_LOGIN}
<input class="text" type="checkbox" name="autologin" />
<input type="submit" class="mainoption" name="login" value=" {L_LOGIN} " />
</span>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
Open forum.php
Spoiler: [ Show [links to #] ]
Spoiler: [ Hide [links to #] ]
Code: [Hide [links to #]] [Select [links to #]]
Code: [Show [links to #]]
Find:
$template->assign_vars(array(
'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
Before Add:
// Check For Anonymous User
if ($user->data['user_id'] != ANONYMOUS)
{
$name_link = colorize_username($user->data['user_id'], $user->data['username'], $user->data['user_color'], $user->data['user_active']);
$avatar_img = user_get_avatar($user->data['user_id'], $user->data['user_level'], $user->data['user_avatar'], $user->data['user_avatar_type'], $user->data['user_allowavatar']);
}
else
{
$name_link = $lang['Guest'];
$avatar_img = '<img src="' . $config['default_avatar_guests_url'] . '" alt="" />';
}
$template->assign_vars(array(
'U_NAME_LINK' => $name_link,
)
);
Now you can see what I meant about not ALL vars are global.
I also don't know why you don't make a copy of the CMS user block with a new ID and use that with your own template file.
That's why it's a CMS! [Image ignored]
thanks, i am not use to phpbb i am use to smf so i am still learning with phpbb and icy phoenix.
can you also show me how to get the post count and user count and total topics count for template to show up?
somewhat like this:
Code: [Hide [links to #]]
Code: [Show [links to #]]
* Our users have posted a total of 28 articles
* Total posts 19 • Total topics 19
*
and
i know the total posts and topics is from phpbb but i want to do something similar but with icyphoenix style of posts and topics.
You are receiving this email because you are watching the forum, "Templates And Styles Discussions" forum at Icy Phoenix.
If you no longer wish to watch this forum you can either click the "Stop watching this topic link" found at the bottom of the topic above, or by clicking the following link:
http://www.icyphoenix.com/viewtopic.php?t=8671unwatch=topic [links to www.icyphoenix.com/viewtopic.php?t=8671&unwatch=topic]
____________
Icy Phoenix Staff
No virus found in this message.
Checked by AVG - www.avg.com [links to 'http://www.avg.com']
Version: 2012.0.2197 / Virus Database: 2437/5251 - Release Date: 09/05/12
That's why!