Jump to content

Club Sponsors Page - Supporttopic

Featured Replies

Posted

 

Do you have an image of what the sponsor page looks like?

  • Author
6 minutes ago, Bluto said:

Do you have an image of what the sponsor page looks like?

59b524c318ddf_TestClub-InvisionCommunity(2017-09-1013-38-05).png.0115bf47ba70e9a7b2728480903a25e4.thumb.png.75718a3be3ed67e19dfbaddf4461765e.png

Looks good.

Will buy this tomorrow

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

clubsponsors.thumb.jpg.790385db9134c289a2e35bcc20d0ca45.jpg

 

But the sponsors tab does not show on the club as per here

 

club-sponsors.thumb.jpg.035f230323bede3c510ef51b2fc8f383.jpg

 

  • Author

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

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 by Adriano Faria

Hi,

Any idea of timescales for the fix?

Any fix soon? Been over a week...

  • Author
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 by Fosters

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?

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;
	}

ywIqu4R.png

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.

  • Author

OK, I still think that the node method should return only nodes and not additional pages (that's what it's called nodes() :D ) 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

I appreciate that. Will fix mine in a further version. 

  • Author

Version 1.0.7.1 was released. Please use this version ONLY if you use the clubs enhancements app.

  • Author

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');
               }
           });

 

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.

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:

Capturar.thumb.PNG.33bd7fbccb52f09ea0d81a42222e5680.PNG

I must release it in a couple of days.

Thanks @Fosters.

  • 2 weeks later...

Is there any way to use Grid system for displaying sponsors (eg 3 per row), instead one per row?

Thank you

  • Author
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:)

  • 2 weeks later...

Hi, is there any way to reorder the sponsors?

  • Author
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

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...

59ee2af9558a4_Capturadepantalla2017-10-23alas19_45_08.thumb.png.491fada74d73d1b502b50a244028bd9d.png

Recently Browsing 0

  • No registered users viewing this page.