How to remove or change the >> or » from your WordPress blog title

 

To remove or change the >> on your title do this:

  1. Go to your installation directory and ind the folder wp-includes locate the file general-template.php
  2. Find the function:
    function wp_title($sep = '»', $display = true, $seplocation = '') {

    – To remove the >> change it to:

    function wp_title($sep = ';', $display = true, $seplocation = '') {

    – To change it do this:

    function wp_title($sep = 'INSERT YOURS HERE', $display = true, $seplocation = '') {
  3. Save it and upload it to your installation.

 

 

VN:F [1.9.22_1171]
Rating: 0.0/6 (0 votes cast)

How to remove or change the >> or » from your WordPress blog title

 

To remove or change the >> on your title do this:

  1. Go to your installation directory and ind the folder wp-includes locate the file general-template.php
  2. Find the function:
    function wp_title($sep = '»', $display = true, $seplocation = '') {

    – To remove the >> change it to:

    function wp_title($sep = ';', $display = true, $seplocation = '') {

    – To change it do this:

    function wp_title($sep = 'INSERT YOURS HERE', $display = true, $seplocation = '') {
  3. Save it and upload it to your installation.

 

 

VN:F [1.9.22_1171]
Rating: 0.0/6 (0 votes cast)

How to remove "Blog Archive" from your WordPress blog post title

To remove the word “Blog Archive” from your title do this:

  1. Go to Appearance in the Menu
  2. Click on Editor
  3. On the right side you,  select Header from the list of theme files
  4. Look for this line:
    <title><?php bloginfo(‘name’); <?php if ( is_single() ) { ?> &amp;raquo; Blog Archive <?php } <?php wp_title(); ?></title>
  5. And replace it with this line:
    <title><?php bloginfo('name'); <?php wp_title(); ?></title>
  6. Click Update File to save it
VN:F [1.9.22_1171]
Rating: 0.0/6 (0 votes cast)

How to remove “Blog Archive” from your WordPress blog post title

To remove the word “Blog Archive” from your title do this:

  1. Go to Appearance in the Menu
  2. Click on Editor
  3. On the right side you,  select Header from the list of theme files
  4. Look for this line:
    <title><?php bloginfo(‘name’); <?php if ( is_single() ) { ?> &amp;raquo; Blog Archive <?php } <?php wp_title(); ?></title>
  5. And replace it with this line:
    <title><?php bloginfo('name'); <?php wp_title(); ?></title>
  6. Click Update File to save it
VN:F [1.9.22_1171]
Rating: 0.0/6 (0 votes cast)

My first SiriProxy plugin – SiriProxy-TellMeAJoke

My first plugin for SiriProxy is now online.

It´s very simple when you ask siri: “Tell me a joke”, it will connect to our API at jokeit.net and tell you a random joke

You can get it here:
https://github.com/smxfreak/SiriProxy-TellMeAJoke

VN:F [1.9.22_1171]
Rating: 0.0/6 (0 votes cast)

Set calendar-permissions for mailboxes in Exchange Server 2010

I was looking for at way to set default calendar-permissions in exchange 2010, and found out that the only way to do this, is the scripting way.

So i found a script and modified it ( ALOT ) to fit my need

#Load Exchange Server 2010 Management Shell if not loaded.

if (-not (Get-PSSnapin | Where-Object {$_.Name -like "Microsoft.Exchange.Management.PowerShell.E2010"})){
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
}

#Custom variables
$mailboxes = Get-Mailbox
$AccessRights = "Reviewer"

#Loop through all mailboxes
foreach ($mailbox in $mailboxes) {

#Retrieve name of the user`s calendar
$calendar = (($mailbox.SamAccountName)+ ":\" + (Get-MailboxFolderStatistics -Identity $mailbox.SamAccountName -FolderScope Calendar | Select-Object -First 1).Name)

#Check if calendar-permission for user "Default" is set to the default permission of "AvailabilityOnly"
if (((Get-MailboxFolderPermission $calendar  | Where-Object {$_.User -like "Default"}).AccessRights) -like "AvailabilityOnly" ) {

Write-Host "Updating calendar permission for $mailbox..." -ForegroundColor Yellow

#Set calendar-permission for user "Default" to value defined in variable $AccessRights
Set-MailboxFolderPermission -User "Default" -AccessRights $AccessRights -Identity $calendar
}
}

And then a bat file to execute it from “scheduled task”

powershell -command "&amp; 'C:\PATH-TO-FILE\Set-CalendarPermissions.ps1' "

VN:F [1.9.22_1171]
Rating: 5.3/6 (3 votes cast)

Lync 2010 Assign Client Policies By Active Directory Groups

After we got our new Lync 2010 setup done, we was missing one key feature.
We want to assign Client policies by Active Directory groups instead of the need to login to Lync admin and change it.

So we made a simple powershell script to do the work for us

save it as Lync-SetClientPolicy.ps1

Import-Module "C:\Program Files\Common Files\Microsoft Lync Server 2010\Modules\Lync\Lync.psd1"
$ADGroupName = $args[0]
$ClientPolicy = $args[1]

$strFilter = "(&amp;(objectCategory=Group)(SamAccountName=" + $ADGroupName +"))"
$objDomain = New-Object System.DirectoryServices.DirectoryEntry

$objSearcher = New-Object System.DirectoryServices.DirectorySearcher

$objSearcher.SearchRoot = $objDomain

$objSearcher.Filter = $strFilter

$objSearcher.SearchScope = "Subtree"

$colProplist = "member"

foreach ($i in $colPropList)

{[void] $objSearcher.PropertiesToLoad.Add($i)}

$colResults = $objSearcher.FindAll()

foreach ($objResult in $colResults)
{
$objItem = $objResult.Properties;
$group = $objItem.member
}

foreach ($user in $group)

{
$userlync= Get-CsUser -Identity $user
if ($userlync.ClientPolicy -like $ClientPolicy)
{

}
else
{
Grant-CsClientPolicy $user -PolicyName $ClientPolicy
}

}

And then a bat file to execute it from “scheduled task”

powershell -command "&amp; 'C:\script\Lync-SetClientPolicy.ps1' "Lync-ClientPolicy-Sales" "Sales" "
powershell -command "&amp; 'C:\script\Lync-SetClientPolicy.ps1' "Lync-ClientPolicy-Default" "Default" "
VN:F [1.9.22_1171]
Rating: 0.0/6 (0 votes cast)