Advertisement:

Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
SMF 2.0.x Support / Re: I Don't have access to my Smf forum any longer
« Last post by margarett on Today at 06:32:55 AM »
Anyway, if you are sure you changed nothing then it's your host's fault...

If it works sometimes and some other don't, it means that MySQL is sometimes available and others not. It's not clear in your message if this is random or permanent but if it is random, then it's your host. If it's permanent AND YOU ARE SURE YOU CHANGED NOTHING, then it's probably your host, but with a couple of other possible causes...
22
SMF Coding Discussion / Re: Child Boards Links - How to Hide Them?
« Last post by margarett on Today at 06:25:12 AM »
Actually it's quite easy :)

If you want to hide the child boards in MessageIndex, just remove this chunk of code:
Code: [Select]
if (!empty($context['boards']) && (!empty($options['show_children']) || $context['start'] == 0))
{
echo '
<div class="tborder childboards" id="board_', $context['current_board'], '_childboards">
<div class="cat_bar">
<h3 class="catbg">', $txt['parent_boards'], '</h3>
</div>
<div class="table_frame">
<table class="table_list">
<tbody id="board_', $context['current_board'], '_children" class="content">';

foreach ($context['boards'] as $board)
{
echo '
<tr id="board_', $board['id'], '" class="windowbg2">
<td class="icon windowbg"', !empty($board['children']) ? ' rowspan="2"' : '', '>
<a href="', ($board['is_redirect'] || $context['user']['is_guest'] ? $board['href'] : $scripturl . '?action=unread;board=' . $board['id'] . '.0;children'), '">';

// If the board or children is new, show an indicator.
if ($board['new'] || $board['children_new'])
echo '
<img src="', $settings['images_url'], '/' .$context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" />';
// Is it a redirection board?
elseif ($board['is_redirect'])
echo '
<img src="', $settings['images_url'], '/' .$context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
// No new posts at all! The agony!!
else
echo '
<img src="', $settings['images_url'], '/' .$context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';

echo '
</a>
</td>
<td class="info">
<a class="subject" href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a>';

// Has it outstanding posts for approval?
if ($board['can_approve_posts'] && ($board['unapproved_posts'] || $board['unapproved_topics']))
echo '
<a href="', $scripturl, '?action=moderate;area=postmod;sa=', ($board['unapproved_topics'] > 0 ? 'topics' : 'posts'), ';brd=', $board['id'], ';', $context['session_var'], '=', $context['session_id'], '" title="', sprintf($txt['unapproved_posts'], $board['unapproved_topics'], $board['unapproved_posts']), '" class="moderation_link">(!)</a>';

echo '

<p>', $board['description'] , '</p>';

// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<p class="moderators">', count($board['moderators']) === 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '</p>';

// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="stats windowbg">
<p>', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' <br />
', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'], '
</p>
</td>
<td class="lastpost">';

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<p><strong>', $txt['last_post'], '</strong>  ', $txt['by'], ' ', $board['last_post']['member']['link'], '<br />
', $txt['in'], ' ', $board['last_post']['link'], '<br />
', $txt['on'], ' ', $board['last_post']['time'],'
</p>';

echo '
</td>
</tr>';

// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
if (!$child['is_redirect'])
$child['link'] = '<a href="' . $child['href'] . '" ' . ($child['new'] ? 'class="new_posts" ' : '') . 'title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . ($child['new'] ? '</a> <a href="' . $scripturl . '?action=unread;board=' . $child['id'] . '" title="' . $txt['new_posts'] . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')"><img src="' . $settings['lang_images_url'] . '/new.gif" class="new_posts" alt="" />' : '') . '</a>';
else
$child['link'] = '<a href="' . $child['href'] . '" title="' . comma_format($child['posts']) . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>';

// Has it posts awaiting approval?
if ($child['can_approve_posts'] && ($child['unapproved_posts'] | $child['unapproved_topics']))
$child['link'] .= ' <a href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] > 0 ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'], $child['unapproved_topics'], $child['unapproved_posts']) . '" class="moderation_link">(!)</a>';

$children[] = $child['new'] ? '<strong>' . $child['link'] . '</strong>' : $child['link'];
}
echo '
<tr id="board_', $board['id'], '_children"><td colspan="3" class="children windowbg"><strong>', $txt['parent_boards'], '</strong>: ', implode(', ', $children), '</td></tr>';
}
}
echo '
</tbody>
</table>
</div>
</div>';
}
OR, you can change the first "if" so that it is always "false", this way you don't delete anything, just have it like this:
Code: [Select]
if (!empty($context['boards']) && (!empty($options['show_children']) || $context['start'] == 0) && (1==2))

To change it to the bottom, you just need to move that chunk of code and put it BEFORE:
Code: [Select]
// Show breadcrumbs at the bottom too.
theme_linktree();
23
Veelgestelde vragen / Uitschakelen van de "print topic"-functie
« Last post by Johanvd on Today at 06:17:35 AM »
Is het mogelijk om het voor gasten onmogelijk te maken om hele topics te printen?
Het liefst ook de ?action=printpage linkjes niet tonen.

De reden dat ik dit wil verbergen is dat de server zich verslikt in grote topics en tegen de geheugenlimiet van PHP aanloopt. Bij meerdere van zulke requests in korte tijd loopt zelfs al het servergeheugen vol waardoor Apache gekilled wordt. Zoekmachines indexeren om de één of andere redenen regelmatig een hele reeks van zulke pagina's, ondanks een aangepaste robots.txt en de "canonical url" tags in de pagina die naar de juiste url wijst.


De "Out Of Memory" error is nog wel op te lossen door de configuratie van Apache te tweaken, maar daarmee los je het geheugenprobleem van PHP niet op. En de geheugenlimiet van PHP ophogen doe ik liever niet, want dan loopt het geheugengebruik helemaal uit de klauwen.

Een praktische oplossing is het beperken van de lengte van topics tot 1000 reacties, maar dat lost het probleem van oude topics niet op. Handmatig alle oude topics splitsen is ook een hoop werk en kan ervoor zorgen dat linkjes naar die topics niet meer kloppen.

Een ander probleem met de printfunctie is dat zoekmachines dubbele content spideren.

Daarom dus: kan de printfunctie uitgeschakeld worden voor gasten?
Ik gebruik SMF 2.04
24
SMF 2.0.x Support / Re: Irestore database with new host
« Last post by Storman™ on Today at 06:10:51 AM »
Did any tables actually populate when you imported or did it just stop with that error ?
25
SMF 2.0.x Support / Re: Irestore database with new host
« Last post by kfir86 on Today at 06:08:11 AM »
Trying to import sing to phpmyadmin
after selecting the database file thats the error i have
26
Those entries will be unique to your setup.

You would have chosen the values when you initially installed SMF.
27
SMF 2.0.x Support / Re: Irestore database with new host
« Last post by Storman™ on Today at 06:03:35 AM »
You could try adding this line before it:
Code: [Select]
USE database_name;
Where database_name is the name of your database.

What method are you using to import the database ?

I know it sounds obvious but you have actually created the new empty database first, and then selected it when importing, didn't you ?
28
Polski (Polish) / Re: Podwójne Logowanie na forum
« Last post by Odyseusz on Today at 06:03:11 AM »
Być może nastąpiło to po instalacji modów. Wgrałem 3 mody:

1. Good Post/Bad Post Mod
2. SMFPacks Shoutbox    1.0.4    
3. Ohara YouTube Embed

Żeby wgrać mody musiałem dać uprawnienia plikom na 777. Później to zmieniłem na 755.
29
SMF 2.0.x Support / Re: Main and Child Board counts not in sync
« Last post by Storman™ on Today at 05:59:05 AM »
There seems to be this mod:

http://custom.simplemachines.org/mods/index.php?mod=3009

However I would SERIOUSLY advise you not to take that route and reconsider. Having child boards in child boards will seriously hinder the performance of your forum. Even the mod mentions this:

"This MOD may cause a performance slowdown on sites with many descendant boards."

Walk away now and reconsider your setup......  ;)
30
Vamos gente!!! nadie me puede ayudar???  ???
Pages: 1 2 [3] 4 5 ... 10