Patch MCraig Enabling Personals Category

From WebOS Internals

Revision as of 23:16, 2 August 2009 by Hopspitfire (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


By default, the Personals category and some other adult-themed services are hidden from the mCraig app. We can enable them simply by uncommenting a few lines, and adding a few others.

Modify-stock-app3.jpg

Procedure

Access Linux on your Pre and ssh in.

Mount filesystem as r/w, navigate to mCraig folder and create a backup of current database.js

mount -o remount,rw /
cd /var/usr/palm/applications/com.splashdata.app.mcraig
cp database.js database.js.bak

Edit database.js

vi database.js

line 12, find:

	{ "file":"subcatshousing", "name":"Housing", }, 

and add above:

	{ "file":"subcatspersonals", "name":"Personals", }, 

Uncomment line 21 (now 22):

    { "name":"Personals", "file":"subcatspersonals"},

Uncomment line 210 (now 211):

    { "dir":"adg", "fullname":"gigs > adult", "name":"adult", "subcat":"True",  }, 

line 262-271 (now 263-272) find:

subcatspersonals: [  { "dir":"stp", "name":"strictly platonic",  }, 
    { "dir":"w4w", "name":"women seek women",  }, 
    { "dir":"w4m", "name":"women seeking men",  }, 
    { "dir":"m4w", "name":"men seeking women",  }, 
    { "dir":"m4m", "name":"men seeking men",  }, 
    { "dir":"msr", "name":"misc romance",  }, 
    { "dir":"cas", "name":"casual encounters",  }, 
    { "dir":"mis", "name":"missed connections",  }, 
    { "dir":"rnr", "name":"rants and raves",  }, 
    ], 
NOTE: Depending on version, the above lines may not be exactly the same as above, but they are very close. You'll know it when you see it.

and replace with:

subcatspersonals: [ 
    { "dir":"ppp", "name":"all personals",  }, 
    { "dir":"stp", "name":"strictly platonic", "subcat":"True",  }, 
    { "dir":"w4w", "name":"women seek women", "subcat":"True",  }, 
    { "dir":"w4m", "name":"women seeking men", "subcat":"True",  }, 
    { "dir":"m4w", "name":"men seeking women", "subcat":"True",  }, 
    { "dir":"m4m", "name":"men seeking men", "subcat":"True",  }, 
    { "dir":"msr", "name":"misc romance", "subcat":"True",  }, 
    { "dir":"cas", "name":"casual encounters", "subcat":"True",  }, 
    { "dir":"mis", "name":"missed connections", "subcat":"True",  }, 
    { "dir":"rnr", "name":"rants and raves", "subcat":"True",  }, 
    ],

Uncomment line 279 (now 280):

    { "dir":"ers", "fullname":"services > erotic", "name":"erotic", "subcat":"True",  }, 

Write changes & quit vi, mount filesystem as r/o

:wq
mount -o remount,ro /

No need to reboot, simply restart the mCraig app and test out your new categories!

Credit

r3compile + BigMatza, 1.1 confirmed by ShaneM

Personal tools
Google AdSense