News:

Wondering if this will always be free?  See why free is better.

Main Menu

Topic Count On Display

Started by Yağız..., January 20, 2008, 11:03:58 PM

Previous topic - Next topic

Badboy

Ok just delete the mod from the packages list (installed section)(Don't use uninstall). Then if you want to use this mod again reupload the original mod and then install it. And tell me if you have any error?
Nothing is true, everything is permitted.

SgtMic

That solved it. Everything is good to go now. Thanks for the help.
There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

[SiNaN]

Thanks Badboy. I don't have time these days unfortunately.
Former SMF Core Developer | My Mods | SimplePortal

[SiNaN]

#23
At last I could manage to add the upgrade. Know topic count is shown in profile summary, profile stats, forum stats and memberlist. Also it can be changed from the users' profile.

Version 1.1

http://custom.simplemachines.org/mods/index.php?mod=1003
Former SMF Core Developer | My Mods | SimplePortal

minos

is there a way to choose wich boards count topic created by user

i means no count topic created  in free talk etc¿

[SiNaN]

When you uncheck the post count for the board, topic count is not counted too.
Former SMF Core Developer | My Mods | SimplePortal

kamu8recon

I installed 1.1 and it doesn't show up on my forum, Should I have installed the original version first? I am also using the YaBB theme if their is a change in a certain file please let me know, i checked out one of your files and I really like this mod please let me know what i need to do to get this installed

[SiNaN]

No, you can directly install the version 1.1. Did you get any errors during the install? What is your forum's language?
Former SMF Core Developer | My Mods | SimplePortal

kamu8recon

sorry i was unclear earlier

it is in english, i did directly install it. and i also followed the directions (reset all forum totals)   

i am able to change the posts and topic counter in a member profile, its just that when I look under a profile on a post the topic counter does not show up. please advise. thank you.

[SiNaN]

Are you using the default theme?
Former SMF Core Developer | My Mods | SimplePortal

kamu8recon


[SiNaN]

The package only edits default theme files. For YaBB, you should make theme changes manually.
Former SMF Core Developer | My Mods | SimplePortal

kamu8recon


kamu8recon

Hey I did a new download of the current version 1.1 and when i ran it in package parser by daniel15 i came up with this error

parseArchive(): No package-info.xml in this mod! Is it corrupted?

i then went to check the zip file and it is their, could it be corrupted?

[SiNaN]

I don't now the reason but I'm sure it's not corrupted.


file name="$themedir/Display.template.php"

Find:
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';


Replace:
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />';

// Show how many topics they have started.
echo '
', $txt['topiccount'], ': ', $message['member']['topics'], '<br />
<br />';


file name="$themedir/Memberlist.template.php"

Find:
<td class="titlebg" colspan="12">', $txt[139], ': ', $context['page_index'], '</td>

Replace:
<td class="titlebg" colspan="14">', $txt[139], ': ', $context['page_index'], '</td>


Find:
<td colspan="12" class="windowbg">', $txt[170], '</td>

Replace:
<td colspan="13" class="windowbg">', $txt[170], '</td>


Find:
<td colspan="12">';

Replace:
<td colspan="14">';


Find:
<td colspan="12" class="', empty($settings['use_tabs']) ? 'catbg' : 'titlebg', '">';

Replace:
<td colspan="14" class="', empty($settings['use_tabs']) ? 'catbg' : 'titlebg', '">';


Find:
<td class="windowbg2" width="15">', $member['posts'], '</td>
<td class="windowbg" width="100" align="left">
', $member['posts'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $member['post_percent'] . '" height="15" alt="" />' : '', '
</td>


Replace:
<td class="windowbg2" width="15">', $member['posts'], '</td>
<td class="windowbg" width="100" align="left">
', $member['posts'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $member['post_percent'] . '" height="15" alt="" />' : '', '
</td>
<td class="windowbg2" width="15">', $member['topics'], '</td>
<td class="windowbg" width="100" align="left">
', $member['topics'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $member['topic_percent'] . '" height="15" alt="" />' : '', '
</td>


file name="$themedir/Profile.template.php"

Find:
<tr>
<td><b>', $txt[86], ': </b></td>
<td><input type="text" name="posts" size="4" value="', $context['member']['posts'], '" /></td>
</tr>';



Replace:
<tr>
<td><b>', $txt[86], ': </b></td>
<td><input type="text" name="posts" size="4" value="', $context['member']['posts'], '" /></td>
</tr>
<tr>
<td><b>', $txt['topicp'], ': </b></td>
<td><input type="text" name="topics" size="4" value="', $context['member']['topics'], '" /></td>
</tr>';



Find:
<td><b>', $txt[86], ': </b></td>
<td>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</td>
</tr><tr>



Replace:
<td><b>', $txt[86], ': </b></td>
<td>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</td>
</tr><tr>
<td><b>', $txt['topicp'], ': </b></td>
<td>', $context['member']['topics'], ' (', $context['member']['topics_per_day'], ' ', $txt['topics_per_day'], ')</td>
</tr><tr>

Former SMF Core Developer | My Mods | SimplePortal

kamu8recon

that is a lot, I will go ahead and take care of that. thank you for your quick response and I will let you know when I complete everything (prob tomorrow). oncea again thanks.

[SiNaN]

It's not that much. Only 8 edits and these are only in 3 files. Okay, I'll be waiting.
Former SMF Core Developer | My Mods | SimplePortal

kamu8recon

ok after laying in bed contemplating if i should get rest or finish this mod I have altered all the files that you said to alter. the  display.temp was in the my current theme so that was easy, the other 2 were in the default theme so i just altered it and changed the default because it rolls back to default anyway right? is it good practice to just change the file in the default or should i just input the file into the theme. all in all thank you for your help and this mod is working good and i love it thus far.

thanks!

[SiNaN]

I'm glad that you solved it. Have a good use.(Don't know is it true gramatically or not but sounds good. :D)
Former SMF Core Developer | My Mods | SimplePortal

Basie


Advertisement: