MyBB Community Forums

Full Version: Avtar in threadlist problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Does anyone know why on my main forum : http://forum.my-notepad.biz/forumdisplay.php?fid=10

The avtar in threadlist is full size but on my test forum they are how they should look.

http://my-notepad.biz/mnp-testing/forumd...php?fid=10

Thanks Smile

Main forum login (as skin is for registered members)
User : blue
pass : blueblue
Well... in your test forum - source page I see you use this css code:
#threadlistavatar img

and is missing from your original forum.

Try this: In AdminCP -> Templates & Style -> Themes -> (click on your default used theme - something with the name "lust" I think) and edit "global.css" in "Advanced Mode". At the end add this:
#threadlistavatar img {
    -moz-border-radius: 3px;
    background-color: #FCFCFF;
    border: 1px solid black;
    max-height: 35px;
    max-width: 35px;
    padding: 2px;
}
and save.

// Later edit:
You not have defined "#threadlistavatar" in your css (used by <td id="threadlistavatar"> in "forumdisplay_thread" template).
Anyway... in http://my-notepad.biz/mnp-testing/ check "forumdisplay_thread" template for this theme. There is your css code of "threadlistavatar" which is missing from "forumdisplay_thread" template in http://forum.my-notepad.biz/
I hope you understand. Smile
(2011-12-21, 04:19 AM)MyBB Tuneup Wrote: [ -> ]Well... in your test forum - source page I see you use this css code:
#threadlistavatar img

and is missing from your original forum.

Try this: In AdminCP -> Templates & Style -> Themes -> (click on your default used theme - something with the name "lust" I think) and edit "global.css" in "Advanced Mode". At the end add this:
#threadlistavatar img {
    -moz-border-radius: 3px;
    background-color: #FCFCFF;
    border: 1px solid black;
    max-height: 35px;
    max-width: 35px;
    padding: 2px;
}
and save.

// Later edit:
You not have defined "#threadlistavatar" in your css (used by <td id="threadlistavatar"> in "forumdisplay_thread" template).
Anyway... in http://my-notepad.biz/mnp-testing/ check "forumdisplay_thread" template for this theme. There is your css code of "threadlistavatar" which is missing from "forumdisplay_thread" template in http://forum.my-notepad.biz/
I hope you understand. Smile

This is what's in my forum_display_thread template, what do I need to change?

<tr>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}" title="{$folder_label}" /></td>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>
	<td class="{$bgcolor}{$thread_type_class}">
		{$attachment_count}
		<div>
			<span>{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}"><span style="color: {$thread['tcolor']}">{$thread['subject']}</span></a>{$thread['multipage']}</span>
			<div class="author smalltext">{$thread['profilelink']}</div>
		</div>
	</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
	{$rating}
	<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
		<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
		<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
	</td>
{$modbit}
</tr>

(2011-12-21, 01:20 PM)markwesley Wrote: [ -> ]This is what's in my forum_display_thread template, what do I need to change?

<tr>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}" title="{$folder_label}" /></td>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>
	<td class="{$bgcolor}{$thread_type_class}">
		{$attachment_count}
		<div>
			<span>{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}"><span style="color: {$thread['tcolor']}">{$thread['subject']}</span></a>{$thread['multipage']}</span>
			<div class="author smalltext">{$thread['profilelink']}</div>
		</div>
	</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
	{$rating}
	<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
		<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
		<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
	</td>
{$modbit}
</tr>

Try to replace with this code:
<tr>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}" title="{$folder_label}" /></td>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>
	<td class="{$bgcolor}{$thread_type_class}">
<!-- start: avatarthreadlist_index -->
<style type="text/css">
#threadlistavatar img {
    -moz-border-radius: 3px;
    background-color: #FCFCFF;
    border: 1px solid black;
    max-height: 35px;
    max-width: 35px;
    padding: 2px;
}
</style>
<!-- end: avatarthreadlist_index -->
		{$attachment_count}
		<div>
			<span>{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}"><span style="color: {$thread['tcolor']}">{$thread['subject']}</span></a>{$thread['multipage']}</span>
			<div class="author smalltext">{$thread['profilelink']}</div>
		</div>
	</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
	{$rating}
	<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
		<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
		<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
	</td>
{$modbit}
</tr>

//Later edit: please, let me know if this working or not. I think your code of this theme contain some "<div>" that are not closed...
Thank you , that worked a treat another problem I have is when I select threads for moderation the number at the bottom where (0) is does not increase & if I press go it gives me some message saying that nothing was selected or that my session has expired, but the session has not expired as I logged in few mins previous.

See screenshot.

Any ideas?
It seems like there are some Javascript errors on your site. I didn't look in too much detail, but maybe jQuery and Prototype are conflicting? Try adding this to the bottom of your headerinclude template:
<script>
    jQuery.noConflict();
</script>
Thanks Dennis but it did not work.
<link rel="alternate" type="application/rss+xml" 
title="{$lang->latest_threads} (RSS 2.0)" 
href="{$mybb->settings['bburl']}/syndication.php" />

<link rel="alternate" type="application/atom+xml" 
title="{$lang->latest_threads} (Atom 1.0)" 
href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />

<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />

<meta http-equiv="Content-Script-Type" content="text/javascript" />

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1603"></script>

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>

<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
{$stylesheets}

<script type="text/javascript">

<!--

&nbsp;&nbsp;&nbsp;&nbsp;var cookieDomain = "{$mybb->settings['cookiedomain']}";

&nbsp;&nbsp;&nbsp;&nbsp;var cookiePath = "{$mybb->settings['cookiepath']}";

&nbsp;&nbsp;&nbsp;&nbsp;var cookiePrefix = "{$mybb->settings['cookieprefix']}";

&nbsp;&nbsp;&nbsp;&nbsp;var deleteevent_confirm = "{$lang->deleteevent_confirm}";

&nbsp;&nbsp;&nbsp;&nbsp;var removeattach_confirm = "{$lang->removeattach_confirm}";

&nbsp;&nbsp;&nbsp;&nbsp;var loading_text = '{$lang->ajax_loading}';

&nbsp;&nbsp;&nbsp;&nbsp;var saving_changes = '{$lang->saving_changes}';

&nbsp;&nbsp;&nbsp;&nbsp;var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";

&nbsp;&nbsp;&nbsp;&nbsp;var my_post_key = "{$mybb->post_code}";

&nbsp;&nbsp;&nbsp;&nbsp;var imagepath = "{$theme['imgdir']}";

// -->

</script>

{$newpmmsg}





{$highslide_script}
<script>

&nbsp;&nbsp;&nbsp;&nbsp;jQuery.noConflict();

</script>

That is what is in my headerinclude template, I have no idea why it automatically adds &nbsp;
Sorry I didn't notice, you already had that code earlier in your template... hmm
It's ok, any more ideas?
Pages: 1 2