Jul 17, 2019
dexcts's picture
8 hours ago
by dexcts

Posted in All Chat

Post on Jul 17, 2019 by dexcts

autotagtown

{ "rules_autotagtown" : {
"LABEL" : "autotagtown",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"REQUIRES" : [ "rules", "rules_autotag" ],
"ON" : { "node_insert" : [], "node_update" : [] },
"IF" : [
{ "entity_has_field" : { "entity" : [ "node" ], "field" : "field_zsnippet" } },
{ "NOT text_matches" : {
"text" : [ "node:field-zsnippet:value" ],
"match" : "---",
"operation" : "starts"
}
},
{ "entity_has_field" : { "entity" : [ "node" ], "field" : "field_ztermref" } },
{ "entity_has_field" : { "entity" : [ "node" ], "field" : "field_towncck" } },
{ "NOT node_is_promoted" : { "node" : [ "node" ] } },
{ "entity_has_field" : { "entity" : [ "node" ], "field" : "field_zentitytown" } }
],
"DO" : [
{ "rules_autotag_extract" : {
"USING" : { "text" : [ "node:field-towncck" ], "vocabulary" : "autotag" },
"PROVIDE" : { "extraced_terms" : { "getfirsttown" : "getfirsttown" } }
}
},
{ "data_set" : { "data" : [ "node:field-ztermref:0" ], "value" : [ "getfirsttown:0" ] } },
{ "data_set" : { "data" : [ "node:field-ztermref:1" ], "value" : [ "" ] } },
{ "data_set" : { "data" : [ "node:field-ztermref:2" ], "value" : [ "" ] } },
{ "data_set" : { "data" : [ "node:field-zentitytown:0" ], "value" : [ "" ] } }
]
}
}



Jun 21, 2019
dexcts's picture
3 weeks ago
by dexcts

Posted in All Chat

Post on Jun 21, 2019 by dexcts

Rule to get IP address and user agent



Jun 14, 2019
dexcts's picture
1 month ago
by dexcts

Posted in All Chat

Post on Jun 14, 2019 by dexcts

textarea{resize: none;}

.block-formblock .form-type-textarea label{display:none;}{display:none;}
/*.block-formblock .resizable-textarea .grippie {display:none} */
.block-formblock .resizable-textareatextarea{resize: none;}
.block-formblock .form-item {margin-top:0px;}
.block-formblock .node-form {margin-left:10px;}
.block-formblock h2{font-size:100%;}
.block-formblock .form-type-textarea {max-width:500px;display:inline-block;float:left;padding-right:8px;}
.block-formblock .node-form .form-item-title{display:none;}
.block-formblock{background-color: #f1f1f1; border: solid 1px #b1b1b1; padding: 5px; box-shadow: 1px 3px #c7d0e2; max-width: 800px;}
.block-formblock .form-actions{margin:1px;}
.block-formblock #edit-field-image-und.form-wrapper {margin-bottom:0px;padding-botton:0px;border:none;}
.field-name-field-ipaddress-form {display:none;}
.block-formblock .field-name-field-towncck-form {display:none;}

.field-type-entityreference-form{display:none;}

/* hide view edit tabs */
#tasks {display:none;}

/* snug it up for mobile */
.form-item-field-image-und-0 label{display:none;}

/*bigger form text */
.form-item input{font-size:20px;line-height:150%;}
.field-name-body {font-size: 18px; line-height: 120%;}

.view-profilepublic {text-align:center;}

#main img{max-width:99%;}

.whitecourt { background-color: #ffffff;
border: solid 1px #b1a9a9;
margin: 2px 0 15px 2px;
padding: 5px;}
.whitecourt a{color:#385898;}

.views-field-uid {vertical-align:top;}
.views-field-uid img{float: left; padding: 0 8px 3px 15px;margin-top:5px;}
.views-field-nid {/*max-width: 600px; */ clear: both;}

.plupload_filelist_header{display:none;}
#edit-field-image-und-0-filefield-plupload-pud_filelist{display:none;}
.plupload_filelist {display:none;padding:20px;}

/* push the post button below text box */
div#edit-actions.form-actions.form-wrapper {clear:both;}

.field-name-field-image {display:inline;vertical-align:middle;}
.tabledrag-toggle-weight-wrapper{display:none;}
.tableheader-processed thead{display:none;}

.plupload_button{font-size:120%;font-weight:bold;}
.plupload_filelist_footer {height:32px;}
.plupload_file_size,.plupload_file_status,.plupload_file_action {
display:none;}

.form-item-field-image-und-0 .description{display:none;}
.region-topreg div{display:inline-block;}
div#topreg{display:none;}
div#block-system-main-menu li{display:inline-block;background-color:#5678bd;border-radius:3px;padding:5px;}
div#block-system-main-menu li:hover{background-color:#345eb1;}
div#block-system-main-menu a{margin:8px;}

#tasks{clear:both;}

/* townpost blue buttons */
button, input[type="submit"], input.form-submit, .form-actions a, .form-actions a:visited, .button, a.button, a.button:visited {
background-color: #357ae8;
color: #fff !important;
font-weight: bold;
padding: 6px 12px;
margin: 2px;
font-size: 16px;
border: solid 2px #bfbfbf;
padding: 0.5em 1em;
}

button:hover, input[type="submit"]:hover, input.form-submit:hover, .form-actions a:hover, .form-actions a:focus, .form-actions a:active, .button:hover, a.button:hover, a.button:focus, a.button:active {
border: 2px solid #ffffff;
border-bottom-color: #ffffff;
border-right-color: #eaeaea;
color: #000;
cursor: pointer;
}

#block-block-2 {text-align:center;}
::placeholder {margin-left:5px;color: #e4e4e4; opacity: 1;}
:-ms-input-placeholder {color: #e4e4e4;}
::-ms-input-placeholder {color: #e4e4e4;}

.region-sidebar-second .block-inner{padding:0 15px 0 15px;}

#edit-domain {display:none;}
#columns {box-shadow: 2px 2px 5px #b7b8b9;}

footer { background-color: #15140a;
color: #010101;
box-shadow: 2px 2px 5px #b7b8b9;}

.smallbutton a{position: relative;
display: inline-block;
background-color: #798496;
color: #fff !important;
font-size: 80%;
padding: 3px 6px;
margin: 3px;
border: solid 2px #bfbfbf;}

.views-field-uid img {width: 32px; border-radius: 50%;}
#tinyauth {display: inline-block; vertical-align: top; color: #959596;}

.region-footer {text-align:center;}

#zresult {
background-color: #f9f9f9;
border: solid 1px #b1a9a9;
margin: 2px 0 30px 2px;
padding: 10px;
clear: both;
}

#zresult h2{margin:0px;}
#zresult h2 a{color:#357ae8;font-weight:bold;font-size:18px;}
#zresult h4{margin:0 0 5px 5px;}
#zresult h4 a {font-size: 60%; color: #006621;}

#leftpicture {float:left; max-width: 100px; margin: 0 10px 0 0;}

#zresult p {vertical-align: top; max-width: 70%;}

#zresult .field-name-body {font-size:12px;}

We love small towns so we made a place to buy and sell that's Free, Easy to Use, and Local.
Search Classifieds | Terms & Privacy | Contact Us
For Support Call 780-674-6622 e-mail us at contact@townpost.ca
Copyright © 2019 Town Post



Jun 10, 2019
dexcts's picture
1 month ago
by dexcts

Posted in Potential TP Features

Post on Jun 10, 2019 by dexcts

search results summary
ds\modules\ds_search\ds_search.module



Jun 10, 2019

1 month ago
by Anonymous (not verified)

Posted in Potential TP Features

Post on Jun 10, 2019 by Anonymous (not verified)

search result url
[current-domain:path][node:url:path]

#zresult h4{margin: 0 0 5px 0;}
#zresult h4 a {font-size: 60%; color: #006621;}



Jun 10, 2019
dexcts's picture
1 month ago
by dexcts

Posted in TP 7.6

Post on Jun 10, 2019 by dexcts

Removed title of search results in apachesolr_search.pages.inc
REM '#title' => t('Enter terms'),



Jun 10, 2019
dexcts's picture
1 month ago
by dexcts

Posted in TP 7.6

Post on Jun 10, 2019 by dexcts

Search Customizations

Setup custom no results message apachesolr_search.module



Jun 01, 2019
dexcts's picture
1 month ago
by dexcts

Posted in Potential TP Features

Post on Jun 01, 2019 by dexcts

Regular expression url rule

(([\w]+:)?//)?(([\d\w]|%[a-fA-f\d]{2,2})+(:([\d\w]|%[a-fA-f\d]{2,2})+)?@)?([\d\w][-\d\w]{0,253}[\d\w]\.)+[\w]{2,63}(:[\d]+)?(/([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)*(\?(&?([-+_~.\d\w]|%[a-fA-f\d]{2,2})=?)*)?(#([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)?



May 30, 2019
dexcts's picture
1 month ago
by dexcts

Posted in Potential TP Features

Post on May 30, 2019 by dexcts

Custom Search box code here:

Search Box Example 1



May 29, 2019
dexcts's picture
1 month ago
by dexcts

Posted in TP 7.6

Post on May 29, 2019 by dexcts

Instructions to Create Classified Type

Machine name: old short path value (whitecourt, slavelake)

Title: Ad Title
Disable Preview
No Front Page
Author info off
Comment Title off
Comment preview off
Domain access - All domains + the domain (for alberta)

Body label change to " Description "
Rows = 5
Summary off



May 29, 2019
dexcts's picture
1 month ago
by dexcts

Posted in TP 7.6

Post on May 29, 2019 by dexcts

Ad Fields - Fields must match old townpost so migrate works?

Ad Title
Body
Images x10
phonecck
----> location
----> Group Entity (take into account ban list)

Location Setup
Terms relationships allows me to create news feeds...
News Feeds can be based on domain access now



May 29, 2019
dexcts's picture
1 month ago
by dexcts

Posted in TP 7.6

Post on May 29, 2019 by dexcts

Ad Fields

Ad Title
Body
Images x10
phonecck
----> location
----> Group Entity (take into account ban list)

Location Setup
Terms relationships allows me to create news feeds...
News Feeds can be based on domain access now



May 29, 2019
dexcts's picture
1 month ago
by dexcts

Posted in TP 7.6

Post on May 29, 2019 by dexcts

Ad Fields

Ad Title
Body
Images x10
phonecck
----> location
----> Group Entity (take into account ban list)



May 29, 2019
dexcts's picture
1 month ago
by dexcts

Posted in TP 7.6

Post on May 29, 2019 by dexcts

Steps to configure from scratch

Create Database
Setup User
- Roles
- Messages
- Check/Test Login/signup
- Setup Scores

Setup Nodes
- Node Types
- Custom Fields
------ Images -----
Setup file field paths module with token paths, file sizes min/max
Filepath: [current-date:custom:y-m]
Filename: [node:nid]-[current-date:raw].[file:ffp-extension-original]

Configure Image Support (PLUpload, auto upload)
Display Suite Configuration (Search Results)

Rule - Auto Redirect on "Post"

Create auto subcategory view https://alberta.townpost.ca/admin/structure/views/view/autosubcategory/e...
Create shortrelate view https://alberta.townpost.ca/admin/structure/views/view/xshortrelate

user's news feed requires load terms from user page - views_default_user_taxonomy-7.x-1.0.zip

Create Domains

Add Solr Databases
- Setup each database for node types
- Setup blocks for each database

--------------Migration-------------
Setup Feeds module
Migrate Roles, users, scores, locations
Migrate nodes, towns, views required
Migrate Subscriptions (can be done 1 week later)



May 28, 2019
dexcts's picture
1 month ago
by dexcts

Posted in TP 7.6

Post on May 28, 2019 by dexcts

Migration
Setup and Test SOLR Searches - Load test?
Newsletter Importing....
- Bookmarks (import?)
- Follows (import?)

Features
- Provincial / Zone Search (PeaceCountry) (Edmonton Zone) (Whitecourt) (Barrhead) (Camrose) (Red Deer) (Hinton-Edson) (Calgary Zone) (Lethbridge Zone) (Outdoorsmen)

Setup required now
- Auto rotate images
- Watermark
- Prepopulate
- Node Revision delete?
- Category setup? Tags?
- Image url setup to folders / unique (testing)
- simple pass reset?
- Better regional setup with auto tags
- Better custom menus for all
- string overide edit/delete/add
- user ip address and user agent
- restrict contact info for anonymous
- custom term breadcrumbs (views term path)
- Thumbs down/read it
- email messaging system
- auto categorize
- spam prevention (banish users from domains)
- Spam prevention (banish users to no contact info version)
- block email domains



May 27, 2019

1 month ago
by Anonymous (not verified)

Posted in Business Brainstorm

Post on May 27, 2019 by Anonymous (not verified)

TownPost allow anonymous submissions
Local Post require login

Local Post social not classifieds style



May 22, 2019
dexcts's picture
1 month ago
by dexcts

Posted in All Chat

Post on May 22, 2019 by dexcts

push profile on the left without using sidebar

/* disabled */
#block-views-userpage-block {
padding: 8px;
width: 150px;
display-inline: block;
float: left;
margin-right: 20px;
}

#block-system-main {
display: inline-block;
max-width: 600px;
}

.user-picture img{max-width:140px;}

#block-system-main img{display:none;}



May 22, 2019
dexcts's picture
1 month ago
by dexcts

Posted in All Chat

Post on May 22, 2019 by dexcts

Opening and closing on this point - Not Everyone is going to be an expert. If you aren't sure dont open attachments

Usually attachments and links are bad (attachments are much worse)

Check a link (copy paste)
check virus attachment online

Social Engineering
(real hacking) unlike on TV where they dont have a mouse

You are being targetted specifically
Fake Portal
Things we learned -
- only took 3 hours
- Social proof
- final notice (urgency) boss is gone
- very personal
- Expect the person to know more than you think (assuming its steve trying to get you)
- Ring of truth (update of portal)

Gift card scam
Protect customers

who?
Could be competition, vendor, disgruntled employee (former), disgruntled vendor employee, it guy



May 21, 2019
dexcts's picture
1 month ago
by dexcts

Posted in All Chat

Post on May 21, 2019 by dexcts

No brokes
No losers

Entrepreneurs
Intelligent

Hate Facebook

Whats the need???

"Club Feeling"
Trust
I cant see a away around local



May 19, 2019
dexcts's picture
1 month ago
by dexcts

Posted in Chat 1.2 Notes

Post on May 19, 2019 by dexcts

Faceplant new CSS from the sites/default/files/adaptive folder

@media only screen and (max-width: 480px) {

.region[class*="float-blocks"] .block {float: none;width: 100%; }
}

.filter-wrapper {display:none;}

#header {background-color:#4267b2; margin-bottom: 10px;}
#page-wrapper{background-color:#edf0f5;}
#block-system-main-menu ul{margin:5px;}
#block-system-main-menu li{display:inline-block;margin-right:30px;}
#block-system-main-menu a{color:#fff;font-size: 80%;}
#branding{display:inline-block;width:150px;}
.region-header {float:right;}
.sidebar .view-display-id-block{background-color:#f9f9f9;padding:10px;border:solid 2px #fff;border-radius:7px;}
#block-views-groupattach-block{background-color: #ffffff; border: solid 1px #e2e0e0;}
.block-main-menu {margin:0px;}

@media only screen and (max-width:320px) {

body {
font-size: 100%;
}

.at-mt .at-menu-toggle {
/* The toggle link */
/* Menu items */
}
/* line 28, ../sass/responsive.smalltouch.portrait.scss */
.at-mt .at-menu-toggle h2 {
margin-bottom: 5px;
}
/* line 31, ../sass/responsive.smalltouch.portrait.scss */
.at-mt .at-menu-toggle h2 a {
background: #eee;
border: 2px solid #ccc;
padding: 2px 10px;
}
.at-mt .at-menu-toggle ul.menu li a {
background: #eee;
border-bottom: 1px solid #fff;
}

}
@media only screen and (min-width:321px) and (max-width:580px) {

body {
font-size: 100%;
}

.at-mt .at-menu-toggle {

}

.at-mt .at-menu-toggle h2 {
margin-bottom: 5px;
}

.at-mt .at-menu-toggle h2 a {
background: #eee;
border: 2px solid #ccc;
padding: 2px 10px;
}

.at-mt .at-menu-toggle ul.menu li a {
background: #eee;
border-bottom: 1px solid #fff;
}

}
@media only screen and (min-width:581px) and (max-width:768px) {

html {
font-size: 81.3%;
}

}
@media only screen and (min-width:769px) and (max-width:1024px) {

}
@media only screen and (min-width:1025px) {
}



May 17, 2019
steve's picture
2 months ago
by steve

Posted in Chat 1.2 Notes

Post on May 17, 2019 by steve

Removed this, i think it was for getting the body gap in the old chat theme
div.messages{display:none;}



May 15, 2019
steve's picture
2 months ago
by steve

Posted in All Chat

Post on May 15, 2019 by steve

May 06, 2019
steve's picture
2 months ago
by steve

Posted in Personal

Post on May 06, 2019 by steve

Today I had a great time with the kids at the pool. We hit the deep end and played on the climbing wall. Both kids got to the bell after a few attempts and then played a game where they tried to leap from rock to rock with one hand. Simple but there was something beautiful about it.



May 01, 2019

2 months ago
by Anonymous (not verified)

Posted in Business Brainstorm

Post on May 01, 2019 by Anonymous (not verified)

S.U.N.C. (Shut up nobody cares)

"Failing to Succeed"



All Chat

Post form

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <iframe>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Add Images
Files must be less than 2 MB.
Allowed file types: png gif jpg jpeg.
Files must be less than 2 MB.
Allowed file types: png gif jpg jpeg.

Vertical Tabs

Guest

You aren't signed in, Click here to register or click login if you are a member.