tweaks.php
By Paul
By Paul
In order to make sure your upgrades are easy and you needn't worry about it being overwritten, tweaks.php doesn't exist by default. Once you want to use one of its options, create tweaks.php with this content:
Make sure you don't have any leading or trailing spaces in the file, then upload it to your base WSN Links directory.
$pathtoconfig is explained in more detail here.
You can also use tweaks.php to add logic to redirects.
<?php
$cookiepath = ''; // example: /
$cookiedomain = ''; // example: .domain.com
$notypetotals = false; // make true if you have tens/hundreds of thousands of links in a category and want to speed things by not calculating the number of each type
$overridesafety = false; // make true if you want to try to use the category selector on the suggest page with more than 400 categories
$ignorepermissions = false; // use along with overridesafety to make the category list be a plain list allowing everyone to submit to any category... this should make a list of thousands work
$dontcachesubcats = false; // make true for real-time calculation of subcategory data, at risk of turning server into smoldering pile of rubble
$persist = false; // make true to use persistent mysql connections, which can speed up remote (non-localhost) database connections
$autopagerankon = false; // make true to update a random pagerank every 20 views
$allowaccents = false; // make true to do url rewriting with accented characters in urls
$aliaslimits['linktypename'] = 0; // limit the number of secondary categories for a link type
$emailtriggers['fieldname'] = 'email_yournamebody'; // when fieldname is yes during link submission, specified email will be sent to the site administrator based on language items email_yournamebody and email_yournamesubject.
$pathtoconfig = ''; // change if you place your config.php somewhere else
$cacheskip = ''; // list files to exclude from caching, with spaces around each. for example: link.php memberlist.php
$norotation = false; // make true to not rotate the security image on a server which fails to do it properly
$securityimagegrayscale = false; // set true to make the security image be grayscale instead of colored
$finalwidth = 150; // width of security image in pixels
$finalheight = 82; // height of security image in pixels
$accenttweak['from'] = ''; // for url rewriting, accented characters to replace
$accenttweak['to'] = ''; // for url rewriting, replacements for accented characters
$subhtmlfields = ''; // comma-separated list of additional fields to make available in the subcategory html area
$keepchars = ''; // special characters to allow in tag names
$wordendings = ''; // endings for words such that the search should still match them, like 's
$usedetails = false; // make true to have rss feeds link to the details pages in WSN Links
$keeplanguage = false; // make true to stop language item updates on upgrade. not advisible.
$catselectorcapslock = false; // uppercases the category selector
// New for the 5.0 series:
$thumbshotskey = ''; // the key for thumbshots.com
$forcethumbshots = false; // force thumbshot display even when there's no url
?>
Make sure you don't have any leading or trailing spaces in the file, then upload it to your base WSN Links directory.
$pathtoconfig is explained in more detail here.
You can also use tweaks.php to add logic to redirects.
Rate this article:
Submitted: 10/24/06 (Edited 07/29/08)
Description: A file for setting little tweaks to specify things.
Views:
635 views. Averaging 1 per day.
In the most recent 30 day period, there've been 5 views.

Print
E-Mail