PDA

View Full Version : New Posting Features - Rapidshare Thanks


TheInsaneManiac
07-04-2009, 10:00 PM
If your forums are based on downloads or w/e and you wish to save forum/signature space then this mod is for you. If your members wish to be thanked by having another member simply download a file from rapidshare then allow them to link a thanks button to the rapidshare file.

Template Edits: 1
File Edits: 1

Features

Thanks button links to a rapidshare file.
Members can ONLY add a rapidshare file and NOT a rapidshare folder. (So they don't mislead other members to download their stuff)
For security reasons members are blocked from using a different website. (So they can't redirect members where ever)


Upgrading
2.2 and above can simply import the product and select "Allow Overwrite".

2.1 and below you must uninstall the old product!


Step 1
Admin -> User Profile Fields -> Add New User Profile Field

Single-Line Text Box

Title
Rapidshare Thanks File ID

Description:
Enter your Rapidshare file ID that you wish for members to download in order to thank you.
EX: http://rapidshare.com/files/<b><u>000000000/filename.zip</u></b>

Private Field: Yes
Field Searchable on Members List: No
Show on Members List: No


Step 2
Open product-rapidsharethanks.xml and find both instances of $post[fieldX], replace the X with the profile field ID you just created, and save.


Step 3
Upload the contents of the upload folder to your forum root.


Step 4
In postbit find an area you wish to place the thanks button and add this code:
<!-- Rapidshare Thanks -->

To have it show before the edit button add the code before:
<if condition="$post['editlink']">
<img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>


Step 5
Install the plugin.


Changelog:
1.0 - Release
2.0 - Fixed a small issue that caused the thanks button to show for those that don't have the thanks system setup in their usercp.
2.1 - I forgot a small bit of code to make it so the thanks button only shows for those that don't have the thanks system setup in their usercp. It works now, my bad it was 8:00 A.M. when I worked on the first fix. I also updated the profile field example.
2.2 - Rewrote parts of the modification to be more server sufficient. Also all future updates will not need to be uninstalled. A simple Allow Overwrite will work. However this update will require you to uninstall and install the updated product.
2.5 - Fixed an issue with the server sufficient code caused the button to repeat. Added a message feature so that when the user clicks the Thanks button they are informed that they are being redirected to Rapidshare. Since there is more to see, I have added screenshots.
2.6 - Fixed the repeating issue for sure this time. I accidentally left out the fix in the last release.


If you have any feature requests let me know. The only reason I have this in beta stages is because I haven't got all the initial features I wanted to include in it yet. If people like it I will continue to develop this modification and work on the features I wanted to include to get this out of the beta stages.

Andy69
07-05-2009, 11:12 AM
screen shot or demo please ?

Sp32
07-05-2009, 11:17 AM
Yeahhhh... Awesome... Gonna install pwnage ftw

TheInsaneManiac
07-05-2009, 11:24 AM
screen shot or demo please ?
Honestly I don't know what to screenshot? I don't run a download forum so I don't have a demo for you guys either as I don't have this installed. (I installed it on my test forum, but uninstalled it after testing purposes)

To better describe it's uses:
Member A types in their rapidshare file ID, which is then used in all of the member A posts. So when another member B comes along that thinks member A is helpful, he can click member A's thanks button which leads him to a rapidshare file download of member B's choice.

I already found a minor issue, which I have fixed. Nothing really all that big. Anyway to upgrade you MUST uninstall the previous version.

Note: This will not affect your settings.

ShadowAssassin1
07-05-2009, 11:58 AM
Ah, so when you click that button, it simply opens up a new tab to download the file?

Andy69
07-05-2009, 12:01 PM
its putting the link in twice on the search bar and as a result error file not found

deadlySniper
07-05-2009, 02:00 PM
Honestly I don't know what to screenshot? I don't run a download forum so I don't have a demo for you guys either as I don't have this installed. (I installed it on my test forum, but uninstalled it after testing purposes)

To better describe it's uses:
Member A types in their rapidshare file ID, which is then used in all of the member A posts. So when another member B comes along that thinks member A is helpful, he can click member A's thanks button which leads him to a rapidshare file download of member B's choice.

I already found a minor issue, which I have fixed. Nothing really all that big. Anyway to upgrade you MUST uninstall the previous version.

Note: This will not affect your settings.


Well if you should definatly check it works, before you post, and try it on a downloads site...

We need a screenshot!

avsunforum
07-05-2009, 05:37 PM
Screen Shoot Please

sebil
07-05-2009, 06:52 PM
Honestly I don't know what to screenshot? I don't run a download forum so I don't have a demo for you guys either as I don't have this installed. (I installed it on my test forum, but uninstalled it after testing purposes)



thats a big lie... :D

forumsonsuz
07-05-2009, 07:40 PM
Screen Shoot Please

TheInsaneManiac
07-05-2009, 09:36 PM
Screen Shoot Please
I put up a screenshot of the thanks button. Other than that you CAN NOT take a screenshot of anything else. The button is simply linked to a rapidshare file.

its putting the link in twice on the search bar and as a result error file not found
That is my fault. It was like 8 in the morning and I had been up all night. In your profile field change:
EX: http://rapidshare.com/<b><u>files/000000000/filename.zip</u></b>

to

EX: http://rapidshare.com/files/<b><u>000000000/filename.zip</u></b>


Update:
2.6 released. If you are running 2.2 and above you can simple import the product and Allow Overwrite.

ubcforums
07-06-2009, 04:48 PM
Good Idea :D

TheInsaneManiac
07-09-2009, 12:55 AM
Good Idea :D
Thanks, let me know if you have any suggestions.