Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Bluto Posted September 10, 2017 Posted September 10, 2017 Do you have an image of what the sponsor page looks like?
Fosters Posted September 10, 2017 Author Posted September 10, 2017 6 minutes ago, Bluto said: Do you have an image of what the sponsor page looks like? Bluto 1
Unlucky Posted September 10, 2017 Posted September 10, 2017 Looks good. Will buy this tomorrow Fosters 1
Unlucky Posted September 11, 2017 Posted September 11, 2017 Hi, I have installed this but hit a problem Not sure if this is because we have @ Adriano Faria Clubs Enhancements installed? We go to the manage club menu and add a sponsor All is fine as shown here But the sponsors tab does not show on the club as per here Adriano Faria 1
Fosters Posted September 11, 2017 Author Posted September 11, 2017 All we're doing with this app is to add the tab to the tablist which works with several of our apps and their all compatible with each other. 'selector' => '#tabs_club > ul[role=\'tablist\']', 'type' => 'add_inside_end', 'content' => '<li> <a href=\'{$club->url()->setQueryString(\'do\',\'sponsors\')}\' class="ipsTabs_item {{if $club->isSponsorTab}}ipsTabs_activeItem{{endif}}" id="club_sponsortab" role="tab"> {lang="club_sponsors"} </a> </li> I'll see what I can do here Adriano Faria 1
Adriano Faria Posted September 11, 2017 Posted September 11, 2017 (edited) I see the issue. I had to overload the foreach tab loop to add Home/Activity tabs, not sure why. Since yours will always be the last tab, can't you just add your tab via code hook instead of template hook? Take a look at Members Map app; it has a plugin that does this. Edited September 11, 2017 by Adriano Faria Unlucky 1
Fosters Posted September 20, 2017 Author Posted September 20, 2017 (edited) On 11.9.2017 at 11:58 AM, Adriano Faria said: I see the issue. I had to overload the foreach tab loop to add Home/Activity tabs, not sure why. Do you know in the meanwhile why you had to replace it?This breaks all other apps trying to add tabs to this template without using a really hackish way via nodes because it's not a node in 2 other apps which we're going to release soon. For the same reason the club members page was implemented as own tab and method and not as node. e.g. nodes are only returned when $club->canRead() returns true, and it works only with nodes, which isn't always the case. Are you using an own template for the tabs output which you're replacing? Then other apps could at least hook into your template and add their tabs Edited September 20, 2017 by Fosters
Unlucky Posted September 20, 2017 Posted September 20, 2017 1 hour ago, Fosters said: Do you know in the meanwhile why you had to replace it?This breaks all other apps trying to add tabs to this template without using a really hackish way via nodes because it's not a node in 2 other apps which we're going to release soon. For the same reason the club members page was implemented as own tab and method and not as node. e.g. nodes are only returned when $club->canRead() returns true, and it works only with nodes, which isn't always the case. Are you using an own template for the tabs output which you're replacing? Then other apps could at least hook into your template and add their tabs Hi @ Adriano Faria can you give him any pointers?
Adriano Faria Posted September 20, 2017 Posted September 20, 2017 4 hours ago, Fosters said: Do you know in the meanwhile why you had to replace it?This breaks all other apps trying to add tabs to this template without using a really hackish way via nodes because it's not a node in 2 other apps which we're going to release soon. For the same reason the club members page was implemented as own tab and method and not as node. That's how you can add tabs withtout nodes: - Hook to \IPS\Member\Club: * Get Node names and URLs * * @return array */ public function nodes() { $return = call_user_func_array( 'parent::nodes', func_get_args() ); $return[] = array( 'name' => "Something", 'url' => \IPS\Http\Url::internal( 'app=core&module=system&controller=settings', 'front', 'settings' ), 'node_class' => NULL, 'node_id' => '', ); return $return; } As you can see, you can send the user to any URL you want. In this case, I'm using Account Settings. You just need to add your own URL there and a template with the club header and bottom divs. 4 hours ago, Fosters said: e.g. nodes are only returned when $club->canRead() returns true, and it works only with nodes, which isn't always the case. \IPS\Member\Clubs::nodes() will return nodes from the "open" club, so the permission is alredy checked. 3 hours ago, Unlucky said: Hi @ Adriano Faria can you give him any pointers? I was planning a new version for today or tomorrow, according to this and this posts. Due to that, I will need, at least, more 7 days to refactor this specific part of my resource.
Fosters Posted September 21, 2017 Author Posted September 21, 2017 OK, I still think that the node method should return only nodes and not additional pages (that's what it's called nodes() ) but I'll go with this way to avoid any further conflicts with your app. A new upgrade of this app with the compabilityfix should be ready later today @Unlucky Adriano Faria 1
Adriano Faria Posted September 21, 2017 Posted September 21, 2017 I appreciate that. Will fix mine in a further version.
Fosters Posted September 21, 2017 Author Posted September 21, 2017 Version 1.0.7.1 was released. Please use this version ONLY if you use the clubs enhancements app. Adriano Faria 1
Fosters Posted September 21, 2017 Author Posted September 21, 2017 If anybody else is interested into a solution for club tabs... As mentioned before, the nodes method won't work because it works only with nodes:P You'll have to use javascript to deal with the tabs and set the tab active var tabs = data.tab.parent().parent(); tabs.find('li>a').each(function(i,v) { if (v.href.indexOf("sponsors") != -1) { $(v).addClass('ipsTabs_activeItem'); } });
Unlucky Posted September 22, 2017 Posted September 22, 2017 Hi, Nice it is working - https://www.walkingfootball.com/clubs/8-demo-club/?do=sponsors Is there a way though for members to organise the order of them like the partner page for the main software? When I add a new one it justs add them underneath at the moment Fosters 1
Adriano Faria Posted September 22, 2017 Posted September 22, 2017 Just to let you know, I started to work in the fix for my plugin, so this may be not necessary anymore. I will release a new version somewhere next week. Fosters 1
Adriano Faria Posted September 24, 2017 Posted September 24, 2017 On 22/09/2017 at 9:47 AM, Adriano Faria said: Just to let you know, I started to work in the fix for my plugin, so this may be not necessary anymore. I will release a new version somewhere next week. Working: I must release it in a couple of days. Thanks @Fosters. Unlucky, Joel R and Fosters 2 1
Fosters Posted September 24, 2017 Author Posted September 24, 2017 Great cooperation Thx @Adriano Faria Adriano Faria and Unlucky 1 1
ChrisTERiS Posted October 9, 2017 Posted October 9, 2017 Is there any way to use Grid system for displaying sponsors (eg 3 per row), instead one per row? Thank you Fierce God 1
Fosters Posted October 9, 2017 Author Posted October 9, 2017 1 hour ago, ChrisTERiS said: Is there any way to use Grid system for displaying sponsors (eg 3 per row), instead one per row? Thank you Nope but that's just another great idea:) Fierce God 1
Pedro Ibáñez Posted October 23, 2017 Posted October 23, 2017 Hi, is there any way to reorder the sponsors?
Fosters Posted October 23, 2017 Author Posted October 23, 2017 18 minutes ago, Pedro Ibáñez said: Hi, is there any way to reorder the sponsors? Not yet, but it's on our todo list
Pedro Ibáñez Posted October 23, 2017 Posted October 23, 2017 2 hours ago, Fosters said: 2 hours ago, Pedro Ibáñez said: Hi, is there any way to reorder the sponsors? Not yet, but it's on our todo list Ok thanks and please I need to reorder the sponsor tab...
Recommended Posts