Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)
  • Thread Starter vasoczkiferencgmailcom

    (@vasoczkiferencgmailcom)

    I always love, when peoples try to suggest workarounds, not solutions.

    My job is to use sidebar login, because i should hide the wp-login.php from users, and they should login only from sidebar.

    So, why is it not working?

    “So i’ve added theses entries into “fore to not cache” section:

    wp-login\.php
    \wp-login\.php”

    Forum: Plugins
    In reply to: [SlickQuiz] Many languages?

    ok, i missed a lot of thing in my first post. of course, the first function is not _. it’s called _e($str, SQ_TEXT_DOMAIN);

    But nevermind. I did it for you.
    Download the zip file from here:
    https://vaso.sma.hu/slickquiz_localized.zip

    Check the main file of your plugin, the slickquiz.php

    From line 37 – 54.
    Change your WPLANG to hu_HU in your wp-config.php (on local or a dev site), and you will see, the “Get Started!” string will be “Indulj el!”

    Also check the slickquiz-helper.php how i translated that text.

    Forum: Plugins
    In reply to: [SlickQuiz] Many languages?

    and TEST_DOMAIN is TEXT_DOMAIN of course, sorry, morning here ??

    Forum: Plugins
    In reply to: [SlickQuiz] Many languages?

    I misstyped:

    this is load the en-EN.mo (or hu-HU, etc…) file from the wp-plugins/yourpluginname/languages/

    Forum: Plugins
    In reply to: [SlickQuiz] Many languages?

    Hi!

    A little help for you. This is not to difficult. Here is my function for this:

    public function loadLanguage() {
    		$moFile = $this->languageDir . WPLANG . '.mo';
    		if (file_exists($moFile)) {
    			$dir = $this->pluginName . '/languages';
    			load_textdomain($this->pluginName, $moFile);
    			load_plugin_textdomain($this->pluginName, false, $dir);
    		} else {
    			trigger_error('The language you did set in the configuration.php is not exists in ' . $this->languageDir, E_USER_ERROR);
    			die();
    		}
    	}

    this is load the en-EN.mo (or hu-HU, etc…) file from the wp-plugins/

    After this, you can use 2 functions for translated texts:

    one is _(“This is a string”, $this->pluginName);
    (If your plugin name is slickQuiz, you can use it:
    _(“This is a string”, “slickQuiz”);

    but is more lucky, if you define a constant, define(“SQ_TEXT_DOMAIN”, “slickQuiz”); and after that, use:
    _(“This is a string”, SQ_TEXT_DOMAIN);

    so, _($str, SQ_TEST_DOMAIN); will echo the translated $str texts from the .mo file.

    the other function is: __($str, SQ_TEST_DOMAIN);
    with 2 underscores. it’s mean, it will return with the translated text, so you can use it as return values.

    So, you should mage a language/ directory under your plugins root directory, make a catalog en-EN.po file here, set the sources path to “..” in poEdit progam (https://www.poedit.net/), refresh the catalog from source, and after this, everybody can translate it.

    if you have any question about this, let me know.

    Sorry, i misstyped this:

    So if we have not set this setting, or set it to zero, do this count check, otherwise do not care about it.

    If we do not set it for anything, or set it to zero, we do not care about this.

    I wrote it opposite way.

    Also sorry for my bad english.

    Thread Starter vasoczkiferencgmailcom

    (@vasoczkiferencgmailcom)

    Sorry, i misstyped this:

    So if we have not set this setting, or set it to zero, do this count check, otherwise do not care about it.

    If we do not set it for anything, or set it to zero, we do not care about this.

    I wrote it opposite way.

    Also sorry for my bad english.

    I agree with you. This could be a great plugin, if developers do some minor jobs.

    “During fetching, if the Plugin find the same Post than it breaks without to jump to the next one”

    I checked the plugin, and when it loop through the items in the feed, if it found 1 duplicate, it jump out from the cycle, so if your first article is a duplicate, you lose, and items wont imported after that.

    I also checked the count of max items should be fetch, and here are another error also. If you do not set anything for that field, or that limitation is zero, it break out from cycle too.

    With 5 minutes work, i made my workaround, and now the plugin is working like a charm.

    If you want to fix it do the following (i hope you will understand).

    Open the campaign_fetch.php:
    In the “private function processFeed” method, find the first foreach cycle:

    Now i am working on the date of post, because that isn’t correct too.

    $simplepie = WPeMatico :: fetchFeed($feed, false, $this->campaign['campaign_max']);
    	foreach ($simplepie->get_items() as $item) {

    Right after the foreach line insert this line:

    $duplicated = false;

    Find these lines in this method:
    trigger_error(__('Filtering duplicated posts.', WPeMatico :: TEXTDOMAIN), E_USER_NOTICE);

    (These lines are appears two times).

    And change it for this:

    trigger_error(__('Filtering duplicated posts.', WPeMatico :: TEXTDOMAIN), E_USER_NOTICE);
    			$duplicated = true; //By MEDIAFEST
    			//break;

    As you see, i inserted a new variable, called $duplicate at the begining of the cycle with a value false, and if the post is duplicated, i set it to true. Don’t forget to comment out the “break;” line. Break command is jump out from cycle. This was why plugin stops at the firs duplicate article.

    Ok, so now we know, this is a duplicate content, so add a new condition after the checkings of duplicates.

    Find thees rows:

    $count++;
    		array_unshift($items, $item); // add at Post stack in correct order by date

    What happens here? Incrase the count of valid items, and add this item to an array.

    So, we should do it only if this item not a duplicated one.
    So extend your code with this:

    if (!$duplicated) {
    		$count++;
    		array_unshift($items, $item); // add at Post stack in correct order by date
    	    }

    As you see, here are a new condition.

    Ok, but we do not finish yet.
    After this line, find this:
    if ($count == $this->campaign['campaign_max']) {

    and change it to this:
    if ($this->campaign['campaign_max'] != 0 && $count == $this->campaign['campaign_max']) { //Do it only if campaing max != 0

    We check, is the setting of $this->campaign[‘campaign_max’] is zero or not. So if we have not set this setting, or set it to zero, do this count check, otherwise do not care about it.

    I hope i could help you guys.

    Have same problem.

    Intresting, because i checkcked the previous version, and there it worked.
    Maybe i’ll see through the changings.

    Anyway, i dedicated a register page also, and when i submit this:
    xxxxxx.com/register/

    it is redirect me to:
    /login/?action=register

    Intresting.

    Forum: Plugins
    In reply to: Woocommerce

    nope…

    search for this selector:
    inside_content_container

    you will get files where this selector are.
    now go there and add an extra class:

    <div id=”inside_content_container” class=”[some classes herer] mynewclass”>

    and then, in your css, add a new selector:
    .mynewclass {width: 500px; float: left;}

    Forum: Plugins
    In reply to: Woocommerce

    @warheardf1:

    try to search for this selector:

    inside_content_container

    you should add to this div an extra class what is set the width of this div.

    Forum: Plugins
    In reply to: Woocommerce logout menu
    Thread Starter vasoczkiferencgmailcom

    (@vasoczkiferencgmailcom)

    There is on option on the dashboard to turn on/off to show this login link in menu.

    Ok, i figured out my problem. It was bad in all browser.

    And that is because, if you use wSecure authentication, the plugins are conflicting.

    Maybe you have a problem with an FF extension.

    Try to disable or remove them all, and also turn off any other plugins.

    If it solve your problem, one by one turn them on to figure out what causes the problem.

    I have the same problem, but i have this issue in chrome, opera, and safari.
    Only FF is works for me. (not tried IE, i have no IE)

    Same here….

    I am using the wp_logout_url(get_option(‘siteurl’));

    I think, because wsecure tilt this logout url, this is why i can not logout.

    We need help with this, dear developer.

Viewing 15 replies - 1 through 15 (of 19 total)