Skip to main content
Recent Posts
92
Feature Discussion / Re: IPv6 stil something to do?
Last post by ahrasis -
I'd suggest to remove ban by ip but one can always have troublesome ip range monitored.

The idea is to warn user from that ip whrn post or put his post on hold / for aproval or something, so that spammers may be educated or something? I am really not sure what I am trying to say. ;D
93
Support / Re: "Referring URL" Revisited
Last post by Steeley -
Not sure what hosting you are using, but most have a redirect setting of non www to www or something like that in their control panel.
That old post was for Nginx which is the webserver we use, and there is a config option to redirect bla.com to www.bla.com

Aye, thanks for the quick reply, Spuds .... and I have that set...  you can get to the forum login page either https://bla.com/forum/ or https://www.bla.com/forum/, but if you use the latter, you get the "Unable to verify referring URL. https://www.bla.com/forum" error when logging in.

Change the URL in the address bar to https://bla.com/forum/ and it's all good.

I'm hoping there's a way to make EA happy with either url..


Never mind, I figured out what you were telling me, I found the server redirect configuration and set a server redirect on that page. 

No matter how hard I try, I learn something new every day.  Thanks muchly..
95
Support / Re: "Referring URL" Revisited
Last post by Spuds -
Not sure what hosting you are using, but most have a redirect setting of non www to www or something like that in their control panel.
That old post was for Nginx which is the webserver we use, and there is a config option to redirect bla.com to www.bla.com
96
Support / "Referring URL" Revisited
Last post by Steeley -
To resurrect a 6 (7?)  year old discussion..  https://www.elkarte.net/community/index.php?topic=1832.0
 
Its something @TE needs to tweak in the site config file, in the server section, along the lines of

Code: [Select]
server_name elkarte.net;
return 301 $scheme://www.elkarte.net$request_uri;


I have just encountered that as well - makes all the difference in the world if the "referring url" is https://siteurl.com vs. https://www.siteurl.com.

Is the server_name singular exclusive or can it be configured for either/or?
 
I have a bunch of old guys (and I resemble that remark) who barely know what a bookmark is, much less how to change it if they have the wrong URL listed (and several do). I would much rather have the login handle either case than trying to teach my lazy old dogs "new tricks".
97
Theme development / Re: How Can I Show Recent Posts Below Site News on Index Page
Last post by hitokiri -
The collapse / expand icon will not work with this, you would have to add your own JS based on the JS function in the _below function, just renaming some things.
The second hack worked fine and is good enough for me even without the collapse working (although if you could help with this I wouldn't mind).

Really appreciate your help. thanks a lot for your time.


Yes. Portal can do that too. Any portal would do but I 'd prefer Simple Portal.
Thanks I will check it out.
98
Feature Discussion / Re: IPv6 stil something to do?
Last post by Spuds -
Looks straight forward enough really, just updating what is stored in the db ... most the the complexity is in the upgrade scripts.  It uses the built in php function inet_ntop to convert the binary stored IP (4 or 6) back to a string when needed.

As for the bans, I disapprove of banning by IP in general, or if you must it should be for like a day or two.  What was done will work of course but I'm uneasy about V6 bans as I'm not sure how some of those blocks work.
99
Theme development / Re: How Can I Show Recent Posts Below Site News on Index Page
Last post by Spuds -
The only other quick hack is to add the following the following function  to your original (without the previous hack) BoardIndex.template file.  Just add it above the function  template_info_center_below()
Code: [Select]
function template_info_center_above()
{
global $context, $txt;

if (($key = array_search('recent_posts', $context['info_center_callbacks'])) !== false)
{
unset($context['info_center_callbacks'][$key]);

// Here's where the "Info Center" starts...
echo '
<aside id="info_center_top" class="forum_category">
<h2 class="category_header panel_toggle">
<i id="upshrink_ic2" class="hide chevricon i-chevron-', empty($context['minmax_preferences']['info2']) ? 'up' : 'down', '" title="', $txt['hide'], '"></i>
<a href="#" id="upshrink_link2">', sprintf($txt['info_center_title'], $context['forum_name_html_safe']), '</a>
</h2>
<ul id="upshrinkHeaderIC2" class="category_boards', empty($context['minmax_preferences']['info2']) ? '' : ' hide', '">';

call_template_callbacks('ic', array(0 => 'recent_posts'));


echo '
</ul>
</aside>';
}
}
The collapse / expand icon will not work with this, you would have to add your own JS based on the JS function in the _below function, just renaming some things.