News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

TinyPortal

Started by lurkalot, February 12, 2005, 04:43:00 AM

Previous topic - Next topic

Skivey

Quote from: Kindred on September 26, 2011, 10:10:08 AM
no....   although there is the smfadmanager mod that can do that sort of thing

is this mod compatible with SMF 2.0.1 and adsense?

Thanks

Matt

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."


Bazino

Hey there!

First off all this is a great mod!
A friend helped me install it on my first SMF which is still a 1.xx, there is works perfect!

Now I'm starting another forum using SMF 2.0.1 which I have installed.
I haven't installed anything else yet.

Then I installed the Tinyportal RC2... well I tried. It didn't work at first... I got a parse modification error on the like one person mentions here:
http://www.tinyportal.net/index.php?topic=34138.msg273785#msg273785 [nofollow]

The workaround was to
a) create a temp-folder in packages
b) create a tinyportal-folder in packages and move all the tinyportal-files there
c) copy the tp_upgrarde.php into the root-folder

After that, it did say Tinyportal was installed successfully...

Only problem is... I have no menu for the TP anywhere? No way to access it's options? The forum does say TP is installed (it's under installed packages as well), but I can't use it... it didn't change my page to have a portal, it's just like nothing happened other than that the SMF now says it's installed...

Anyone got any ideas?

IchBin™

If I were you I'd look at the SMF files and see if the code has been altered with the TP edits it requires. Since you didn't post a link to your site, I can't tell if it actually did install or not. Sounds like it did not. Take a look at the parse instructions on the mod site and see if the edits are done in your files.
IchBin™        TinyPortal

Bazino

Quote from: IchBin™ on September 29, 2011, 02:43:11 PM
If I were you I'd look at the SMF files and see if the code has been altered with the TP edits it requires. Since you didn't post a link to your site, I can't tell if it actually did install or not. Sounds like it did not. Take a look at the parse instructions on the mod site and see if the edits are done in your files.

Actually I'm confused a bit by those pare-infos... there is a section "CODE" ... what do I have to do with that?

IchBin™

Sorry I'm not following you on what you are asking.

If you follow the file edits on this page, you should be able to verify if the code has been edited properly.
IchBin™        TinyPortal

Bazino

Quote from: IchBin™ on September 29, 2011, 03:04:25 PM
Sorry I'm not following you on what you are asking.

If you follow the file edits on this page, you should be able to verify if the code has been edited properly.

Yes the "file edits" I do understand.
But then there are two more headers below: "Code" and "File Operations".
The "File operations" are clear... to copy the directories SMF2 and common into /root.
But what about the "Code" part? Just execute the file in SMF2?

IchBin™

The code part tells you which file you are editing first, then it tells you which code to search for, then it tells you which code to edit,replace,remove.
IchBin™        TinyPortal

WillyP

Ich, you must be thinking of something else... under code there is a file listed, 'SMF2/tp_upgrade.php' and the instructions 'This file should be able to execute standalone.' To run standalone,  you just access it with your browser, after you upload it. It will update the db, and maybe some settings and stuff.

IchBin™

Sorry, by "code part" I mean that section that lists all the code edits which is under the "file edits" label.
IchBin™        TinyPortal

kablan

#1631
Hey all,

I'm getting the error:

7.   Execute Modification   SMF2/tinyportal200.mod   Modification parse error

When installing.

Any1 seen this?

Thanks!

Regards,
Kablan.

edit: This is the first mod I'm trying to install on my SMF btw, so no earlier versions conflicting and stuff like that.

IchBin™

IchBin™        TinyPortal

Biology Forums

Hi everyone, I've been using this snippet for the longest while

http://www.tinyportal.net/index.php?topic=31670.0

However, how can I modify it so that it includes the top posters for this week only, rather than all time?

IchBin™, I believe you're the author of it, would you happen to know?

I really like the layout, i.e. the avatar, posts, and profile name.

IchBin™

Sorry Shuban I don't have the time to write out the code for you. It completely changes the query and stuff. I'd suggest posting at TP where one of the others on the team may be able to help.
IchBin™        TinyPortal

Biology Forums

Quote from: IchBin™ on October 02, 2011, 02:14:51 PM
Sorry Shuban I don't have the time to write out the code for you. It completely changes the query and stuff. I'd suggest posting at TP where one of the others on the team may be able to help.

:( That thread is locked.

IchBin™

Yes because it's a snippets board only. You can't create a topic in the requests board?
IchBin™        TinyPortal

Biology Forums

Quote from: IchBin™ on October 02, 2011, 02:45:09 PM
Yes because it's a snippets board only. You can't create a topic in the requests board?

I posted something in the support board. I just really wanted to complete this project today lol.

Biology Forums

#1638
Okay, I got it to work to this point ;D However, it only displays avatars of users who don't have an avatar and of users who have an avatar stored elsewhere (i.e. some other website). It won't, however, show users that have uploaded an avatar to the actual server of my website or who have picked one already found on the website's server. What should I do in this case?

global $db_prefix, $scripturl, $context, $settings;

// Top 10 Posters so far this week  (starts sunday)
$starttime = mktime(0, 0, 0, date("n"), date("j"), date("Y")) - (date("N")*3600*24);
// Offset based on forum time
$starttime = forum_time(false, $starttime);



$request = db_query("
SELECT me.ID_MEMBER, me.avatar, me.money, me.realName, COUNT(*) as count_posts
FROM {$db_prefix}messages AS m
LEFT JOIN {$db_prefix}members AS me ON (me.ID_MEMBER = m.ID_MEMBER)
WHERE m.posterTime > " . $starttime . "
AND m.ID_MEMBER != 0
GROUP BY me.ID_MEMBER
ORDER BY count_posts DESC
LIMIT 7", __FILE__, __LINE__);

$context['top_posters_week'] = array();
$max_num_posts = 1;
while ($row_members = mysql_fetch_assoc($request))
{
$context['top_posters_week'][] = array(
'money' => $row_members['money'],
'name' => $row_members['realName'],
'id' => $row_members['ID_MEMBER'],
'num_posts' => $row_members['count_posts'],
'href' => $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'],
'avatar' => $row_members['avatar'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'] . '">' . $row_members['realName'] . '</a>'
);

if ($max_num_posts < $row_members['count_posts'])
$max_num_posts = $row_members['count_posts'];
}
mysql_free_result($request);

foreach ($context['top_posters_week'] as $i => $j)
$context['top_posters_week'][$i]['post_percent'] = round(($j['num_posts'] * 100) / $max_num_posts);

// Tidy up
unset($max_num_posts, $row_members, $j, $i);

echo '
<table cellpadding="0" cellspacing="4">';

foreach ($context['top_posters_week'] as $poster) {
echo '
<tr>

<td style="overflow: hidden;">';

if(empty($poster['avatar']))

echo'
<a href="'.$poster['href'].'"><img src="'.$settings['images_url'].'/noavatar.gif" width="30" height="30" alt="" title="'.$poster['name'].'" /></a>';

if(!empty($poster['avatar']))

echo '<a href="'.$poster['href'].'"><img src="', $poster['avatar'], '" width="30" height="30"></a>';

echo'
</td>

<td style="overflow: hidden;"><h5 style="margin: 4px;">', $poster['link'], '</h5><h5 style="margin: 4px;">', $poster['num_posts'], '</h5></td>
</tr>'; }
echo '
</table>';

IchBin™

Take a look at the avatar code in the snippet you linked to in the firt place. There are several checks needed in order to determine what type of avatar the user is using.
IchBin™        TinyPortal

Advertisement: