Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 200
Total: 200

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - karlbenson

Pages: [1]
1
Latest Mods / [Mod] Convert Ebay Links To Auction Ads
« on: August 08, 2007, 06:11:17 pm »
Convert Ebay Links To Auction Ads
SMF Version: 1.1.3, 1.1.2, 1.1.1

Description:

CONVERT EBAY TO AUCTIONADS v1.0
By Karl Benson



Link to Mod | Comment On This Mod


Introduction
Enables webmasters to make money from Ebay links through AuctionAds.
Sign-Up For AuctionAds
It converts ALL ebay links in posts to an AuctionAds one (redirecting to the same page), except you can earn if the person then buys something.
(see AuctionAds for details of the programme)

Installation
Simply install the package to install this modification on the Default theme.

Manual edits will be required for non-default themes.

Features
o admin settings [via Admin > Posts & Topics]
- enable mod
- enter id [comprises of 20 characters of 0-9 a-f]
- enter campaign (optional) [comprises of 32 characters of 0-9 a-f]
o BBCode Button
o Convert any existing ebay links

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
1.0 BETA - 6th August 2007
o Initial release made per SMF user request.

Link to Mod

2
Latest Mods / [Mod] EasyEditMetaData
« on: August 08, 2007, 06:09:33 pm »
EasyEditMetaData
SMF Version: 1.1.3, 1.1.2, 1.1.1

Description:Enables you to edit the meta data which appears in your pages including description, keywords, author and copyright meta tags via a new tab in the features and options menu.

Installs automatically on Default, Classic and Babylon skin.

NOTE: Its ONLY necessary to install this mod on the skin viewed by guests and robots as only robots for searchengines find meta data useful.

It requires two quick manual edits to install on most skins.

FIND this
Code: [Select]
<meta name="description" content="', $context['page_title'], '" />

REPLACE with
Code: [Select]
';
echo (!empty($modSettings['meta_description'])) ? ' <meta name="description" content="'. $modSettings['meta_description'] .'" />' : '<meta name="description" content="'. $context['page_title'] .'" />


AND FIND this
Code: [Select]
, '
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />


REPLACE with
Code: [Select]
;
echo (!empty($modSettings['meta_keywords'])) ? '
<meta name="keywords" content="'. $modSettings['meta_keywords'] .'" />' : '';
echo (!empty($modSettings['meta_copyright'])) ? '
<meta name="copyright" content="'. $modSettings['meta_copyright'] .'" />' : '';
echo (!empty($modSettings['meta_author'])) ? '
<meta name="author" content="'. $modSettings['meta_author'] .'" />' : '';
echo '



Link to Mod

3
Latest Mods / [Mod] Spiders Don't Increase Topic Views
« on: August 08, 2007, 06:08:01 pm »
Spiders Don't Increase Topic Views
SMF Version: 1.1.3, 1.1.2, 1.1.1

Description:

SPIDERS DON'T INCREASE TOPIC VIEWS v1.0
By Karl Benson





Introduction
When spiders are browsing your forum, they will increase the topic views in every topic they visit.  This modification basically detects most well-known spiders , and if so, it won't increase page count.

This will give you a better idea of actually how many REAL people are viewing topics.

Installation
Simple & Easy, install. (DONE!)

NO Theme edits are required whatsoever for ANY themes as ONLY source files are altered.

Support
Please use the modification thread for support with this modification.  (Please don't ask me to do the manual edits for you)

Changelog
1.0 - 3rd August 2007
o Initial public release.

Credit
Omar Bazavilvazo & his Googlebot & Spiders mod which provides the function/array to detect spiders.

Link to Mod

4
Latest Mods / [Mod] Referrals Mod
« on: August 08, 2007, 06:06:22 pm »
Referrals Mod
SMF Version: 1.1.3

Description:

REFERRALS MOD v1.3
By Karl Benson





Introduction
A simple referral modification (with upto 60 day referral tracking cookie).

People using version < 1.3 are recommended to uninstall the current version and re-install 1.3 to get all the bug fixes for proper stats tracking.

Warning!
This mod is an initial release. Please report any bugs you find, no matter how trivial.
Remember to backup your database AND files before installing any modifications, especially initial releases and betas

Installation
Simply install the package to install this modification on the Default theme.

Manual edits will be required to install this modification onto custom themes which have custom templates of the following files;
- Profile.template.php
- Display.template.php
- Register.template.php
- Stats.template.php
- Xml.template.php
(Most custom themes will not have custom versions of all of those files, only where a custom version exists, will you need to perform the edits)

Profile.template.php
Open Themes/{themename}/Profile.template.php, and FIND:
Code: [Select]

// Messenger type information.

ADD BEFORE:
Code: [Select]

// ADDS THE REFERRAL/REFERRED USER INFORMATION TO THE PROFILE SUMMARY
echo '<tr><td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td></tr>
<tr>
<td><b>'.$txt['referrals_referrals'].'</b></td>
<td>'.$context['member']['referralsno'] .'  ';
// SHOW IN DROPDOWN USERSNAME OF THOSE REFERRED
if(!empty($context['member']['referredmembers']))
{
echo '<select>';
foreach($context['member']['referredmembers'] as $x) {
echo $x;
}
// FREE KEVIN
unset($x);
echo '</select>';
}
echo' </td>
</tr>
<tr>
<td><b>'.$txt['referrals_referralshits'].'</b></td>
<td>'.$context['member']['referralshits'].'</td>
</tr>';
if (!empty($context['member']['referredby']) && $context['member']['referredby'] != 0)
{
echo' <tr>
<td><b>'.$txt['referrals_referredby'].'</b></td>
<td>'.$context['member']['referredbylink'].' '.$txt['referrals_on'].' '. date("jS M Y",$context['member']['referredon']).'
</td>
</tr>';

}

echo '<tr>
<td colspan="2"><b>'.$txt['referrals_link'].'</b></td></tr>
<tr><td colspan="2" style="text-align:center;"><input type="text" value="'.$scripturl.'?referredby='. $context['member']['id'] .'" style="width:330px;"/></td>
</tr>';


Display.template.php
Open Themes/{themename}/Display.template.php, and FIND:
Code: [Select]

// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';

REPLACE WITH:
Code: [Select]

// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />';

// show how many referrals they have made
echo $txt['referrals_referrals'].' '.$message['member']['referralsno'].'</br></br>';


Register.template.php
Open Themes/{themename}/Register.template.php, and FIND:
Code: [Select]

// Are there age restrictions in place?

ADD BEFORE:
Code: [Select]

// IF REFERRAL INFORMATION IS SET IT WILL HAVE BEEN PASSED USING THIS VARIABLE
global $referrals;
if (isset($referrals))
{
echo ' <tr>
<td width="40%"><b>'.$txt['referrals_information'].'</b></td>
<td>'. $txt['referrals_youwerereferredby'].' '. $referrals['referredbyname'].
' '.$txt['referrals_on'].' '. date("jS M Y",$referrals['referredon']);

// NOW WRITE THE INFORMATION INTO HIDDEN INPUTS TO BE PASSED TO THE NEXT FUNCTION
echo ' <input type="hidden" name="referredby" value="'.$referrals['referredbyid'].'"/>
<input type="hidden" name="referredon" value="'.$referrals['referredon'].'"/>
</td>
</tr>';
}


If your theme has a custom Stats.template.php there are several additional manual modifications required to make the stats show on that theme (although it doesn't stop them being recorded)

If you are still having trouble, I recommend the Modification Parser by Daniel 15

Features
o Adds a referral link to each users profile area
Code: [Select]

http://www.youposted.com/index.php?referredby=1
(where 1 is the user id)

o Users can then paste the link to whoever they want to invite - suitable for email, signatures, messengers, webpages, forums etc
o When a guest/visitor uses the referral link a 'tracking' cookie is placed on their computer, so they can browse away from the link and register on your forum upto 60 days later (unless cookies are deleted) with the referral credited to the referring user.

o Adds 2 Referral stats section showing;
 :: Top 5 Referrers (By Referrals)
 :: Top 5 Referrers (By Referred Members Posts)
 :: Daily/Monthly/Yearly Referrals Stats
o Total Referrals of each user shown in the poster information of each post
o Referrals information shown in Profile Summary
 ::  Shows referral link in profile
 ::  Showing No. of Referrals
 ::  Dropdown showing each member user has referred
 ::  Referral Hits (a.k.a No. of Clicks on your referral link)
o Referred member information also shown in Profile Summary
::  If user was referred, shows the user who referred them and the original date of referral

Support
Please use the modification thread for support with this modification.  (Please don't ask me to do the manual edits for you)

Before you request a crazy feature addition...
... please remember that this is a SIMPLE referral mod. I intend to keep it as simple as possible with only minor tweaks, bug fixes and updates for future SMF version support.

Changelog
1.0 BETA - 29th May 2007
o Initial release made per SMF user request.
1.1 - 14th June 2007
o Few tweaks - moving it out of BETA
o Wrote out the manual edits
o Improved the readme/documentation for this mod
1.2 - 31st July 2007
o Fixed a stats bug (Reported by Nitins60/Fixed by Lanthan)
1.3 - 6th August 2007
o Fixed XML stats bug (Bugfix provided by Lanthan (thanks again!)
o Fixed stats bug (unfortunately caused some stats bugs)
o Fixed install mysql bug (Reported/BugFix by Lanthan)
o Fixed error referredby (caused when user registered without using referral link)
o Members referral link now shown in an input box to copy

Screenshots

In the poster information area of posts

On the profile area (showing people user has referred)

On the register area (showing registering user who referred them)

On the stats area (showing referrals stats)

On the profile area (showing who referred the user)

New in v1.3 (link shown in input box for easy copy and paste)



Link to Mod

5
Latest Mods / [Mod] 'Buy Me A Beer' Mod
« on: August 08, 2007, 06:04:55 pm »
'Buy Me A Beer' Mod
SMF Version: 1.1.3, 1.1.2, 1.1.1

Description:

BUY ME A BEER v1.1
By Karl Benson



Link to Mod | Comment On This Mod


Introduction
Allows users to reward other users for their posts by buying them a beer (or at least donating enough money via Paypal to buy one).

Warning!
This mod is an initial release. Please report any bugs you find, no matter how trivial.
Remember to backup your database AND files before installing any modifications, especially initial releases and betas

Installation
Simply install the package to install this modification on the Default theme.

Manual edits will be required for themes which have a custom profile (1x edit) and/or custom display template (1x edit)
AND you will need to place a copy of the image buymeabeer.gif in the image folder of each of your themes (Themes/{themename}/images/)

Open Themes/{themename}/Profile.template.php, and FIND:
Code: [Select]

// All the messenger type contact info.

ADD BEFORE:
Code: [Select]

// Paypal Address For 'Buy Me A Beer Mod
echo ' <tr>
<td width="40%"><b>', $txt['buymeabeer'], ': </b><div class="smalltext">', $txt['buymeabeer_desc'], '</div></td>
<td><input type="text" name="buymeabeer" size="24" value="', $context['member']['buymeabeer']['name'], '" /></td>
</tr><tr>
<td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td>
</tr>
';


Open Themes/{themename}/Display.template.php, and FIND:
Code: [Select]

// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])

ADD BEFORE:
Code: [Select]

// SHOW BUY ME A BEER
if (!$message['member']['is_guest'] && $context['user']['is_logged'] && !empty($message['member']['buymeabeer']))
{
$priceofbeer = 5 ; // In US Dollars no cents
echo'<br/>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=' , htmlentities ($message['member']['buymeabeer'], ENT_NOQUOTES, "UTF-8") , '&item_name=' , htmlentities ($txt['pleasebuymeabeer'], ENT_NOQUOTES, "UTF-8") , '&amount=', $priceofbeer ,'%2e00&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8" rel="nofollow" title="', $txt['buymeabeeralt'] ,'"><img alt="', $txt['buymeabeeralt'] ,'" border="0" src="', $settings['images_url'] , '/buymeabeer.gif" border="0"/></a><br/>';
}


If you are still having trouble, I recommend the Modification Parser/ by Daniel 15

How Do I Use This Mod?
An additional option is added to the users profile to enter their paypal address.
Where the user has entered their paypal address, a 'beer glass' icon appear in the poster information area of users posts.  The alt text when hovering over the icon states 'Buy Me A Beer Through Paypal' [must be logged in to see] and when clicked takes the user to the paypal page.

Screenshots
On the profile area

In the poster information area of posts


Customisation
$5 for a beer?  Seems reasonable, but if you want to change it you can do so easily by editing the Display.template.php and FIND the line below and REPLACE the 5 with another digit (must be a whole number, no decimals).
Code: [Select]

$priceofbeer = 5 ; // In US Dollars no cents


Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
1.0 BETA
o Initial release made per SMF user request.
1.1
o Ensured it removes the buymeabeer.gif image on uninstall (as per SMF Modification Guidelines)
o Wrote out the manual edits
o Improved the readme/documentation for this mod

Link to Mod

6
Latest Mods / [Mod] Signature BBCode Bar
« on: January 14, 2007, 08:59:40 am »
Signature BBCode Bar
SMF Version: 1.1.1, 1.1 Final, 1.1 RC3, 1.1 RC2

Description:Link to Mod



Adds a row of some of the most commonly used bbcode in signatures to the edit/add signature area in a users profile.
Including img,url,b,i,u,ftp,email,list,pre,center,left,right.

This version has been tested and works on 1.1 RC1, 1.1 RC2, 1.1 RC3, 1.1 Final & 1.1.1

Note: It does not check permissions or additional permissions set by any mod whether img bbcode is allowed in sigs.

Link to Mod

7
Latest Mods / [Mod] Color Bar V2.0
« on: January 14, 2007, 08:53:43 am »
Color Bar V2.0
SMF Version: 1.1.1, 1.1 Final, 1.1 RC3, 1.1 RC2

Description:This modification adds a cool clickable color bar to the post area which can insert [color] and (new in V2) [bgcolor] tags
      



If you have the Enhanced Quick Reply mod by Kirby installed (http://custom.simplemachines.org/mods/index.php?mod=63) this mod will ALSO install itself on the Quick Reply area. (Kirbys mod needs to be installed first if you want it to appear on quick reply).  You DO NOT have to have Kirby's mod installed, it will simply install the rest of the colorbar and ignore trying to install it on the quick reply area.

It also removes the now redundant drop down color bar.
      
- Install Info -      
Tested and works on 1.1.1, 1.1 FINAL, 1.1 RC3, 1.1 RC2. It may not work on older versions as there have been changes to javascript bbcode since.
      
This mod installs onto the Default theme and any theme which uses the default themes Post.template (and Display.template for quick reply, ONLY if Kirbys mod is installed).
For any skin which has its own Post.template.php, it will need to be manually installed (or it wont appear)
Tested in browsers IE5.5-7, Opera, Netscape, Mozilla & Safari
      
- New in 2.0 -
New Features:
:: Adds support for [bgcolor][/bgcolor] (Highlight) tags
:: Switch between inserting Color & Background-Color using a button to switch
:: Intelligent colorbar to disable all/part depending on whether [color] and/or [bgcolor] tags are enabled
Bug fixes:
:: Black/White Bar Of Death (Caused by css file stuck in cache and not updated upon install)
:: Junk code
:: Images - so images dont have to be copied into each skin folder, use from default skin automatically
:: Changed all spellings of Colour to Color
Tweaks:
:: Reorganised colors to be greyscale(white to black) then in rainbow order
:: More colors to make it look smoother & made a bit wider
:: More alt/title/description info tags to help users a bit more
      
- Customising It -
:: The color bar should fit in with almost any skin without any need for customizing, but should you want to
Customizing the CSS:
:: Use the following css classes: .colorbar, .colorcell, .colorbox, .colorboxspacer
Customise the JS:
:: To change the no. of shades per color, alter the cpm variable in the color.js file (default 26) (not recommended)

Link to Mod

8
Modification Showcase / Color Bar BBCode
« on: August 25, 2006, 12:38:19 pm »
Hey, I've just posted the color bar mod.

There are 3 versions (There was no option to add multiple downloads to one on submitting it)

Post Screen & Enhanced Quick Reply (if enhanced quick reply mod is installed)
http://www.smfhacks.com/index.php?topic=86.msg464;topicseen#new
Post Screen & Simple Quick Reply
http://www.smfhacks.com/index.php?topic=85.msg463;topicseen#new
Post Screen Only
http://www.smfhacks.com/index.php?topic=84.msg462;topicseen#new

- Images/Screenshots -



Link to Mod
Rate this Mod

11
Latest Mods / Color Bar (Post Screen Only)
« on: August 25, 2006, 12:31:00 pm »

12
Latest Mods / Wikipedia BBCode
« on: August 25, 2006, 12:26:46 pm »
Link to Mod

Tested and works on 1.1.1, 1.1 FINAL, 1.1 RC3. It may or may not work on other versions.

Tired of people asking stupid questions, or want to enlighten the rest of us.  Point people to wikipedia pages easily with this wiki bbcode.
      
[wiki=SEARCHTERMS]TITLE[/wiki]

eg What is Pizza?wiki
The mod adds an easily recognisable button to the bbcode bar.

I have done different versions for German (de), Italian (it), Spanish (es), English (en), Portuguese (pt) and French (fr).

Pages: [1]

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal