News:

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

Main Menu

help two problem

Started by xena1997, January 09, 2018, 04:25:39 PM

Previous topic - Next topic

xena1997

1 problem duplicated installation



2 problem mod Restrict Posts Per Board

https://custom.simplemachines.org/mods/index.php?mod=3586

I would like to use this mod to set a limit of responses to users
but when I go to apply the settings, I get this error

{"result":false,"data":"Opps! It seems your session is invalid, please try again"}

can you solve or is there a way to limit responses to users?

SaltedWeb

The Mod issue can probably best be helped by posting the question with the mod developer including any other mods you may have installed.
The mods discussion url.
https://www.simplemachines.org/community/index.php?topic=494061.0
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Shambles

Quote from: xena1997
1 problem duplicated installation




Attach your theme's index.template.php file and we'll correct it.

xena1997

ok, always kind friend
the theme template file in use?
I take it from the theme folder in use by da cpanel?

Shambles


xena1997


Sir Osis of Liver

That's interesting.  Which theme are you using?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

xena1997


Sir Osis of Liver

Your template is broken, doesn't work in The Gray theme.  Is that the file from your production forum?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

xena1997

my forum e theme work

https://crackingeurope.eu/index.php

I just have to correct a double-appearing entry

Sir Osis of Liver

Look for this in index.english.php (or your corresponding language file) -



$forum_copyright = '<a href="' . $scripturl . '?action=credits" title="Simple Machines Forum" target="_blank" class="new_win">%1$s</a> |
<a href="http://www.simplemachines.org/about/smf/license.php" title="License" target="_blank" class="new_win">SMF &copy; 2017</a>, <a href="http://www.simplemachines.org" title="Simple Machines" target="_blank" class="new_win">Simple Machines</a>';



Mods may have added duplicate lines.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

xena1997

hello not practic

@ sǝ ๅ qɯɐɥS I'm waiting for him to correct the file

Sir Osis of Liver

There's nothing wrong with the index template you posted, the code is correct.  $forum_copyright contains the copyright text, and it's pulled into the template from the language file.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

xena1997

friend as in the image you see that there are double written?


Sir Osis of Liver

<sigh>  You're not paying attention.  The copyright text is in the language file.  It's called in index.template.php by theme_copyright() function -



// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footer_section"><div class="frame">
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';

// Show the load time?



Which is put together in Subs.php -



// Show the copyright...
function theme_copyright($get_it = false)
{
global $forum_copyright, $context, $boardurl, $forum_version, $txt, $modSettings;

// Don't display copyright for things like SSI.
if (!isset($forum_version))
return;

// Put in the version...
$forum_copyright = sprintf($forum_copyright, $forum_version);

echo '
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;">' . $forum_copyright . '
</span>';
}



The actual text is in the language file -



$forum_copyright = '<a href="' . $scripturl . '?action=credits" title="Simple Machines Forum" target="_blank" class="new_win">%1$s</a> |
<a href="http://www.simplemachines.org/about/smf/license.php" title="License" target="_blank" class="new_win">SMF &copy; 2017</a>, <a href="http://www.simplemachines.org" title="Simple Machines" target="_blank" class="new_win">Simple Machines</a>';



Look in the language file for the duplicate code.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

xena1997

thanks bro

@sǝๅqɯɐɥS
I prefer to wait for him to correct the template
so I just have to load it

Shambles


Kindred

Also, a few things...
1- problems with mods should be asked for help in the thread dedicated to supporting that specific mod.
(this is the second or third mod problem that you asked in the smf general support -- ask in the mod support next time, please)

2- if the mod double installed that code, there is a good change that other code was also double installed and you will have to manually remove the other duplicated code.
Сл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."

xena1997

I'm not practical to make changes anyone can help me edit the template?

xena1997

I only have the index.english.php file in the theme folder in use
there is no index.italian file, php
I enclose the file index.english.php in the post

p.s while in the default theme I found the index.italian.php file
I also attach this thanks

Advertisement: