code snippets needed for Trac

Hi Sammie, I have a lot of 'snippets' (text files).

Too many to post here. Do you have an email address and I can send them to you (zipped).

Stuart

There are none so blind as those that will not see.
Quote · 9 Mar 2009

Sammie, here's one they have asked about off and on and no one has really put together correctly.  It's to install Google Analytics inside of Dolphin.  This has been tested on my site and it works exactly as it's supposed to under these conditions:

 

1.  Always use Notepad++ to edit your files.  Do not use text or automatic as it may insert/delete characters on the individual files when you upload them in your FTP Client, Binary is the only way to guarantee this does not happen.

2.  Always back-up your files before you do any work. 

3.  Always save your work, check the results and then close the file.  As long as the file is open you can return it to it's original state if there's a problem, once you close your back to locating the changes and manually changing them or replacing files with your back up copies.

*******************************************************************************

Okay, let's get started in getting Google Analytics to work on your site.

1.  Go to google, open an account and get approved, once approved go to Google again and get a "Google Analytics" Account (it's free) and copy the code they give you, you'll need it for this mod.

2.  Open /templates/base/_footer.html

3.  Find the following code (It's on line 1 if your file is unmodified)

</body>
</html>


Above this code paste the "Google Analytics" Code you obtained from Google.

4.  Save your file.

5.  Go check your site, you'll see all is well.

*******************************************************************************

Your _footer.html file will look like this when your done:


<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-1234567-8");
pageTracker._trackPageview();
} catch(err) {}</script>
 </body>
 </html>


Your done and can close the file now.  Congratulations and track your sites statistics in detail at Google.

Quote · 9 Mar 2009

Here's my little trick that deals with offline browsers stealing media & data from your site....

 

1.  Open your FTP Client and go to your Dolphin Sites Root Directory where Dolphin is
installed.  This is normally on a standard Dolphin install at:  /home/your_site/public_html/

2.  Rename your .htaccess file to .htaccess 1 and then copy the .htaccess file from your
server to your desktop.

3.  Open the .htaccess file with a code editor.  I recommend Notepad++ for this. 

4.  Locate </IfModule>  It will be the very last line in your .htaccess file.

5.  Copy the code from below directly above this line so it looks like this:


RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]
RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]
RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]
RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]
RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]
RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]
RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]
RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]
RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]
RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]
RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]
RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]
RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]
RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]
RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]
RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]
RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]
RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]
RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]
RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]
RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]
RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]
RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]
RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]
RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule /*$ http://www.404Error.com [L,R]

</IfModule>


***Please note, you will only have </IfModule> one time when your done, not twice!

6.  Save the file to your desktop as .htacess

7.  Copy the file back to your server and overwrite your current .htaccess file.

 

****You can change the last line to send them anywhere, including to a spam pop up site, hackers site or anywhere else you feel like sending them and it does not affect your own bandwidth and keeps your data safe. 

Quote · 9 Mar 2009

Can you give your site link?I would like to steal pics and medai files then give back to you .LOL.

Quote · 9 Mar 2009

Hi Sammie,



Delete messages from inbox.  http://www.boonex.com/unity/forums/topic/delete-messages-from-inbox-.htm

Quote · 9 Mar 2009

Someone else mentioned this site recently, it has many good tips>

dialme.com/articles.php

And this one is an important (basic) security fix to obscure what script your site is based on.

**change the "orca" URL name to "forum">

http://www.boonex.com/unity/forums/#topic/Changing-the-name-of-the-orca-folder-V6-1-4.htm

Quote · 9 Mar 2009

sammie I have a few snippets from my boonexnerd.com/net site. You're welcomed to copy and paste the ones you want.

...sip...

Updating my BoonexNerd.net site.
Quote · 10 Mar 2009

Fix Email Alerts (must have)

Search Function Modifications - basic changes (must have)

Search Function Modifications - remove age and sex

Remove age and sex from messages

Action Menu Changes

Build Modification with PHP Block (includes website link, email, etc)

Put Name under Picture in Members Block

Full Name on Browse Page

Members with pictures only in members block

Get rid of heart icon

Default Tabs for Photos and Videos

Tabs in Tags Block

Change Site Name

Membership upgrade link / controls block for account page

Paypal and Membership Levels

Orca has funny characters!

Cupid is out of control

Underscore characters in search forms

My Members Disappeared!

Quote · 10 Mar 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.