Jump to content

AlexWright

Clients
  • Posts

    1,373
  • Joined

  • Days Won

    1

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by AlexWright

  1. 1 hour ago, Andy (FTF) said:

    Can anyone advise on how to set the thing up based on the new interface with Amazon? 

    I have created a bucket but I am stuck on being able to assign a user to the bucket and also creating a policy. This has all changed slightly from the video tutorial where it looked much simpler!

    I can try to get a video up later, but here's the general steps:

    1. On the user menu drop down, select "My Security Credentials".

    2. I selected "continue to security credentials".

    3. Select Policies. Create new policy and name it what you like. Under the permissions, select ALL of the s3 permissions (s3 Full Access).

    4. Go to groups, create a new one, attach the policy you created to a group.

    5. Create a new user, place user into the group you created.

    6. Once that user is created, select it and then select Security Credentials. Generate an access key.

    Done iirc.

  2. 38 minutes ago, forumdev99 said:

    I haven't been able to figure out where to even begin w/ APA and Rules to make this work.. 

    Maybe I can help or maybe the mod authors can. Essentially I just have Rules which say "When member posts in X app, add new canonical URL of Y". Thats then forwarded on to the APA. But seriously if IPS fixes this, it wouldn't be needed.

  3. 12 hours ago, Optic14 said:

    Hi @Lord Nowe thanks for advising the furl.json workaround

    Does this workaround also update the URLs that are generated in the IPS sitemap?

    That would be my only concern.

    It should update all associated furls, though you may want to check them.

  4. 1 hour ago, forumdev99 said:

    I am able to change a couple of them, actually, so let's focus on one in particular that won't change:

    I need this URL /forums/topic/{#id}-{?}

    ..to look like this: /topic/{#id}-{?}

    But when I change it and save, it reverts back to: /forums/topic/{#id}-{?}

    In /applications/forums/data/furl.json it looks like this:

    
        "forums_topic": {
                "friendly": "topic/{#id}-{?}",
                "real": "app=forums&module=forums&controller=topic",
                "verify": "\\IPS\\forums\\Topic"
            },

    ..are you able to change this specific URL in your board?

    BTW I am running IPSv4.2.5

     

    The issue here is the top-level portion of this, the "topLevel": "forums", bit will always be included in any URL while inside of the Forums app. I do not believe this part can be changed while this current bug persists.

     

    Edit: On 2nd thought, this might be able to be done by using the "Rules" and "URL Paths" addons:

     

     

     

    You would probably be able to do this with these two applications. There is an APA-Lite, but that only supports up to 25 URLs IIRC.

  5. On 10/11/2017 at 7:32 PM, forumdev99 said:

    I tried editing /applications/forums/data/furl.json as suggested, and cleared cache via support system, and unfortunately, the URLs still can't be changed. 

    They revert back to the default when I change them in the 'friendly URLs' section of ACP, and they reflect what is in the ACP on the live site.

    This is a tough issue as we want to upgrade to 4.x without breaking all of our existing URLs - we already went through that once when migrating from another Forum software and it killed our traffic for a long time. Still not at the level it was before moving to IPS.

    Thanks again for taking a stab at this - I'm willing to try anything, and willing to pay someone who can find a hack that works.

    Really? I was able to change all of my URLs using this trick.

  6. Ok so I've found a way around this, but it's more for advanced users. @forumdev99, this should work for you:

    For FORUMS: Find the folder public_html/applications/forums/

    Open up the furl.json in your chosen editor (I use Brackets). Inside this file, you should find the following code:

    /**
     * Friendly URL Structure
     *
     * For each value in the $furl array:
     *	The key should be the "SEO Template" - an identifier which you'll use when displaying a URL.
     *	The value should be an associative array with two or three elements: 'friendly' and 'real', and optionally 'verify':
     *		'friendly'
     *			The friendly URL to use - encase variables in {curly braces} containing a symbol, followed by the name of the parameter that matches in the "real" URL
     *			The symbol should be # for numbers or @ for strings
     *			For example, if the "real" URL contains id=XXX, where XXX is a number, you should include {#id} somewhere in the friendly URL.
     *			You can also use the tag {?} for the "SEO Title" (that is, any variables that shouldn't be part of the real URL, such as the name of the topipc being viewed).
     *			If you want to support more than one SEO Title, you can give them zero-indexed keys like so: {?0} {?1} {?2}
     *		'real'
     *			This should be the base of the real URL. You should not include parameters which will be parsed out from the friendly URL.
     *      'verify'
     *          This should be the name of a class that contains a loadFromUrl() and an url() method.  The dynamic URL (i.e. app=core&...) will be passed to loadFromUrl(), and the url()
     *          method will subsequently be called to retrieve the correct URL, ideal with ActiveRecord pattern classes.
     *
     * IMPORTANT: Ensure values are listed with the most specific ones first. This is to ensure that non-FURL redirects are done correctly. For example, if you have these FURLs:
     *	/index.php?app=myapp&module=mymodule&controller=mycontroller&do=myaction	->	/myfolder/myaction
     *	/index.php?app=myapp&module=mymodule&controller=mycontroller				->	/myfolder
     * They must be provided in that order, otherwise the former will redirec to /myfolder/?do=myaction rather than /myfolder/myaction
     */
    {
    	"topLevel": "forums",
    	"pages": {
    	    "forums_rss": {
    		    "friendly": "forum/{#id}-{?}.xml",
    		    "real": "app=forums&module=forums&controller=forums&rss=1"
    	    },
    	    "forums_forum": {
    		    "friendly": "forum/{#id}-{?}",
    		    "real": "app=forums&module=forums&controller=forums",
    		    "verify": "\\IPS\\forums\\Forum"
    	    },
    	    "topic_copy": {
    	        "friendly": "topic/{#id}-{?}/copy",
    	        "real": "app=cms&module=database&controller=topic"
    	    },
    	    "forums_topic": {
    		    "friendly": "topic/{#id}-{?}",
    		    "real": "app=forums&module=forums&controller=topic",
    		    "verify": "\\IPS\\forums\\Topic"
    	    },
    	    "forums": {
    	        "friendly": "",
    	        "real": "app=forums&module=forums&controller=index"
    	    },
    		"topic_create": {
    		  "friendly": "submit",
    		  "real": "app=forums&module=forums&controller=forums&do=createMenu"
    		},
    		"topic_non_forum_add_button": {
    		  "friendly": "startTopic",
    		  "real": "app=forums&module=forums&controller=forums&do=add"
    		}
    	}
    }

    The things to change here would be the "friendly" parts. For instance, to change it from yoursite.com/forums/ to yoursite.com/forum/, replace "topLevel": "forum".

    This is in the same location for -all- installed applications. After reuploading the file to the same place, you will need to run "Something isn't working" in your "System -> Support" page. After that, you can edit or install language files to deal with the rest of it.

     

    Regards

  7. Just now, Adriano Faria said:

    That's an okd bug in the core and happens with any app. See: 

    Hope it's fixed in 4.2. I'll teste it tomorrow. 

     

    Ah, cheers. I figured as much, as I had found that topic earlier. Here's hoping!

  8. Sorry, another (probably not quick) question. Is there a way to rename the app from "Classifieds" to "Commissions" in the URL? We've managed everything else in the language file changes, I think. Editing the FURLs to /commissions/ just changes them to /classifieds/commissions. Thanks again Adriano!

  9. Hi there, we just purchased this application for our suite. Is there a way to disable the member dropdowns?

    I think it's these two hooks:

    clUserBar.php \IPS\Theme\class_core_front_global
    clMobileNavigation.php \IPS\Theme\class_core_front_global

    Thanks!

  10. 49 minutes ago, Ryan H. said:

    No, it does not have such a feature, and I don't have any plans to add it at this time. Unless we were just hiding rows (so pages could have less than 20 records, or whatever the case), the performance penalty would be tremendous.

    Thanks.

    That would be the general plan. I don't mind displaying less than 20 records per page in the forums. Though my thought was more for the Gallery.

  11. Wondering why I'm set back to a member? I've got an active license for IP.Board, and was looking for support before I was going to send a ticket in, but now it appears (for the moment at least) that I will have to submit a ticket instead.

×
×
  • Create New...