We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How to change the group's url address | Forum

TMHQ
TMHQ Nov 20 '15
hi i would like to change

www.yoursite.com/groups/1


"/1" to another name or any sequence of number and letters (sha256)

Oxwall Software
Oxwall Software Nov 25 '15
Topic was moved from Groups.
Ebenezer from Bluetide Webs
Edit this file: ow_plugins/groups/controllers/groups.php From line 146


$customizeUrls = array(

            'customize' => OW::getRouter()->urlForRoute('groups-customize', array('mode' => 'customize', 'groupId' => $groupId)),

            'normal' => OW::getRouter()->urlForRoute('groups-view', array('groupId' => $groupId))

);

The Forum post is edited by Ebenezer from Bluetide Webs Dec 4 '15
Ebenezer from Bluetide Webs
//Let's do some hashing

$groupId= hash('sha256', $groupId);
//Main code goes here

$customizeUrls = array(

            'customize' => OW::getRouter()->urlForRoute('groups-customize', array('mode' => 'customize', 'groupId' => $groupId)),

            'normal' => OW::getRouter()->urlForRoute('groups-view', array('groupId' => $groupId))

);