Jump to content


DawPi

Member Since 15 Nov 2006
Offline Last Active Private
****-

#2228127 Request for improved skin/add-on compatibility

Posted Ryan H. on 04 February 2012 - 03:48 PM

I created an install routine in one of my hooks to place some icons in every skin folder automatically, though it probably won't work for every server setup.

It is possible.

Spoiler

The code is free for use, by the way--I'd just appreciate some form of attribution if you do.


#2223644 custom package action.php demo/docs?

Posted Michael on 22 January 2012 - 09:58 AM

The files need to actually be called actions.php or items.php, and they go in the /extensions/nexus/ folder for an existing or new application.  I wrote a custom actions.php file for my site which promotes members to a Premium group when they've paid, it looks like this:

<?php

if ( !defined( 'IN_IPB' ) )
{
	print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
	exit();
}

class actions_downloads
{
	/**
	 * Package Purchased
	 *
	 * @param	array	The member purchasing
	 * @param	array	Item data
	 * @return	mixed	Will be serialized and saved in nexus_purchases.ps_extra
	 */
	public function onPaid( $member, $item )
	{
		/* Purchased a file? */
		if ( $item['type'] == 'file' )
		{
			/* Regular member?  Promote to Premium */
			if ( $member['member_group_id'] == ipsRegistry::$settings['member_group'] )
			{
				$save['member_group_id'] = 7;
			}
			
			/* Resource Author?  Add Premium as secondary if necessary */
			else if ( $member['member_group_id'] == 8 )
			{
				$current_secondary = $member['mgroup_others'] ? explode( ',', $member['mgroup_others'] ) : array();
				
				if ( !in_array( 7, $current_secondary ) )
				{
					$current_secondary[] = 7;
					$save['mgroup_others'] = implode( ',', $current_secondary );
				}
			}
			
			/* Save and return */
			if ( !empty( $save ) )
			{
				ipsRegistry::DB()->update( 'members', $save, "member_id={$member['member_id']}" );
			}
		}
	}
	
	/**
	 * Package Renewed, but was still active anyway
	 *
	 * @param	array	The member renewing
	 * @param	array	The row from nexus_purchases
	 * @return	void
	 */
	public function onRenew( $member, $purchase ) { }
	
	/**
	 * Package Reactivated (for example, renewing after had expired)
	 *
	 * @param	array	The member renewing
	 * @param	array	The row from nexus_purchases
	 * @return	void
	 */
	public function onReactivate( $member, $purchase ) { }
	
	/**
	 * Package Expired
	 *
	 * @param	array	The row from nexus_purchases
	 * @return	void
	 */
	public function onExpire( $purchase ) { }
	
	/**
	 * Package Cancelled or Deleted
	 *
	 * @param	array	The row from nexus_purchases
	 * @return	void
	 */
	public function onCancel( $purchase ) { }
}



#2213378 Suggestion: Save a post as a Draft

Posted svit on 23 December 2011 - 04:28 PM

I have noticed I am often starting topics by a post which needs more time to prepare (eg. I need to collect more data, research, translations, links). I would find useful if I had an option to save it as a draft (the same way we can do in Blogs) and publish it once it is complete and ready.

I think this could be done easily and such a draft topics could be highlighted by a DRAFT tag. This is just a suggestion for your consideration :)


#2209570 "You earned commission!" email

Posted Adriano Faria on 15 December 2011 - 05:13 AM

Why not to add the file name or file URL of the file that was just bought by the user ?

Posted Image

If you have 1 or 2 files, ok, that's easy. I have a few (only 10 or 11), but we have some contributors here that has more than 20, 25...

It's really annoying try to guess or have to check ID per ID of all files in Marketplace API to see which one was sold, especially if you use the same price range.

Thank you.


#2188731 IPS-Affiliate System

Posted IPBSupport.de on 29 October 2011 - 05:21 AM

...the fact that nothing happens after your ticket :D


#2187217 Remove CopyRights

Posted Jυra on 25 October 2011 - 05:34 PM

Best part of buying copyright removal is the chance of having someone post or PM you about how your board is illegal or that they'll report you.


#2179969 Frustration with IPS

Posted Michael on 08 October 2011 - 12:41 PM

As a developer, I've always found IPS's documentation to be a little less than what I'd hope for, but adequate.  I don't need them to document everything that is possible, it's up to me to understand PHP code, all I want is for them to be able to show me how I can write hooks and apps to connect to their framework, and they do that.  I feel if you're serious enough about wanting to develop with the product, you'll study the existing product to understand how things work.  It should be fairly easy to see what the basics are to creating an application, since IP.Board comes with several.  And then there is documentation that shows you how to expand upon that.

What would be very helpful would be if we had full phpdoc documentation for everything (maybe we do, and I just don't know where it is?), especially things like Nexus.  Nexus is pretty much a complete black box to us outside of the office walls, except for the bit that is documented.


#2156711 PM - multiple page navigation feedback

Posted The Old Man on 19 August 2011 - 05:26 AM

I had the following feedback from one of my board's members. I don't have multiple page page PM's myself, so I couldn't test, but seems a legitimate suggestion...

Quote

Hey, when in my messages, I noticed that I cannot navigate to any page I want to go, I have to click next and go through page 2 to get to page 3. Can they change that? I'm asking because that could get very time-consuming if there are a lot of pages, and even a little annoying.



#2155475 Dates should be localised

Posted martin-al on 17 August 2011 - 04:49 AM

Agree on this one.
I run a norwegian board, witch we also are using DD/MM/YYYY-format.

:)


#2155043 Marketplace - suggestions for regulating price vs quality

Posted Charles on 16 August 2011 - 09:38 AM

IPS is not going to regulate prices. We're not some sort of communist regime ;)


#2127626 Debate 3.2

Posted openfire on 25 June 2011 - 05:29 AM

Posted Image


#2119868 Marketplace Files

Posted Lindy on 08 June 2011 - 10:16 PM

I appreciate the concern, but in my mind, this honestly isn't something that warrants much development time/resources. By and large, if you're using the marketplace as a seller/author, you'll likely be maintaining an active license. I'm not sure how one would legitimately update their modifications / resources without the latest version of the software, which of course, can only be obtained by having an active license.


#2118971 3.2 - Mark Community Read - why so complicated?

Posted Mike John on 07 June 2011 - 07:10 AM

I use View New Content quite a bit and this would be my only problem with 3.2. It's not the biggest deal, only adds a scroll down to the bottom and a few clicks but as I view VNC several times an hour, I'm starting to notice it. Couple of suggestions I've been thinking of:

1. Change "Mark Community Read" to a delayed hover link, so you can mark the whole community read with one click but if you need to mark a specific application read, just wait for the hover to launch.
or
2. On the VNC page, add an option to "Mark (app_name) Read". So if you browsing the Forums, you would have an option to mark forums read. Example.


#2097355 Critical Software Flaw - All Forum Accounts Pruned in one click

Posted Aisha on 31 March 2011 - 10:16 AM

Isn't it a bug though? The limited admin was trying to prune some members, and when the unlimited admin clicked the link they pruned all the members.

Also, I'm sorry, but I find this situation to be hilarious..I'm a bad person. :(


#2084214 Sidebars... COME ON!

Posted cmiller on 25 February 2011 - 11:10 AM

View PostDawPi, on 25 February 2011 - 07:52 AM, said:

What doesn't work? I asked you in support topic for my mod but you want to post here instead of answer me. What's wrong with you? I want to help you, but it seemd you don't want it.

My mod works fine and I can give you proof - for example opinions from my clients.. Do you want?

This is unrelated to your mod. I think this should be built into the software so I posted here. I replied to your question over on your support thread. :)