BTCs for free

Forums
Discussions and forums
Valarsoft forum section, you can register to write in the forums or you can only read forum posts.
You can post in english (main language) or italian (if you prefer).

All the forums Webmatic Webmatic version 3.1.x
only in discussions
Webmatic version 3.1.x
Discussions about Webmatic version 3.1.x
Creato il July 18 2011 (21:30:49), moderator: arraffaele (group: Default)
You can: read posts.

Author Message

marksatx23
August 16 2015 (16:38:33)



arraffaele wrote:
Yes you can do that in \core\classes\wm3Page.php file.

public static function getUserHomepage($w3)
{
...
// Render quick links
for($i = 0; $i < $rows; $i++)
{
for($j = 0; $j < $columns; $j++)
{
$p = $j + $i * $columns; $quick = "quick$j";
if($p < $n) $_DATA[$i+1]->$quick = $_QUICK_MENU[$p];
else $_DATA[$i+1]->$quick = '';
}
}
...
This is the code that create the quick link in user landing page, try to modify it.

Ok I found that.. What would I need to add to add a link that takes users back to the home page? Even if it just says "Click Here"

Thanks

arraffaele
August 17 2015 (12:06:11)

you can search this lines in /core/classes/wm3Page.php in function getUserHomepage($w3)

// Prepare variables and quick links array
$columns = 4; $n = 0; // Quick links total number
$_QUICK_MENU[$n++] = wm3Util::actionButton(WM3_cCONFIG_USER_FILE."?stage=".WM3_cSTAGE_USER."&section=".WM3_cSECTION_USER_INFORMATIONS,"quick_info_user.png","","",$w3->getWord(398),0,48,48);
if(wm3User::checkUserPermission($w3,1))//TODO costanti WM3_cSECTION_NEWS...
$_QUICK_MENU[$n++] = wm3Util::actionButton(WM3_cCONFIG_USER_FILE."?stage=".WM3_cSTAGE_USER."&section=".WM3_cSECTION_NEWS."&action=".WM3_cACTION_ADD_NEWS,"quick_add_news.png","","",$w3->getWord(347),0,48,48);
$rows = (int)($n / $columns) + 1;



and add a line like this:


// Prepare variables and quick links array
$columns = 4; $n = 0; // Quick links total number
$_QUICK_MENU[$n++] = wm3Util::actionButton(WM3_cCONFIG_USER_FILE."?stage=".WM3_cSTAGE_USER."&section=".WM3_cSECTION_USER_INFORMATIONS,"quick_info_user.png","","",$w3->getWord(398),0,48,48);
if(wm3User::checkUserPermission($w3,1))//TODO costanti WM3_cSECTION_NEWS...
$_QUICK_MENU[$n++] = wm3Util::actionButton(WM3_cCONFIG_USER_FILE."?stage=".WM3_cSTAGE_USER."&section=".WM3_cSECTION_NEWS."&action=".WM3_cACTION_ADD_NEWS,"quick_add_news.png","","",$w3->getWord(347),0,48,48);


$_QUICK_MENU[$n++] = wm3Util::actionButton("http://www.google.it","quick_info_user.png","","","link text",0,48,48); // LINE TO ADD (WITH "URL", "ICON FILE" TO SHOW AND "LINK TEXT"

$rows = (int)($n / $columns) + 1;


so tou create a quick link after the others quick link if you want to add your link at start please insert the line after this line

$columns = 4; $n = 0; // Quick links total number


Bye!!!

marksatx23
August 17 2015 (20:46:00)

arraffaele wrote:
you can search this lines in /core/classes/wm3Page.php in function getUserHomepage($w3)

// Prepare variables and quick links array
$columns = 4; $n = 0; // Quick links total number
$_QUICK_MENU[$n++] = wm3Util::actionButton(WM3_cCONFIG_USER_FILE."?stage=".WM3_cSTAGE_USER."&section=".WM3_cSECTION_USER_INFORMATIONS,"quick_info_user.png","","",$w3->getWord(398),0,48,48);
if(wm3User::checkUserPermission($w3,1))//TODO costanti WM3_cSECTION_NEWS...
$_QUICK_MENU[$n++] = wm3Util::actionButton(WM3_cCONFIG_USER_FILE."?stage=".WM3_cSTAGE_USER."&section=".WM3_cSECTION_NEWS."&action=".WM3_cACTION_ADD_NEWS,"quick_add_news.png","","",$w3->getWord(347),0,48,48);
$rows = (int)($n / $columns) + 1;



and add a line like this:


// Prepare variables and quick links array
$columns = 4; $n = 0; // Quick links total number
$_QUICK_MENU[$n++] = wm3Util::actionButton(WM3_cCONFIG_USER_FILE."?stage=".WM3_cSTAGE_USER."&section=".WM3_cSECTION_USER_INFORMATIONS,"quick_info_user.png","","",$w3->getWord(398),0,48,48);
if(wm3User::checkUserPermission($w3,1))//TODO costanti WM3_cSECTION_NEWS...
$_QUICK_MENU[$n++] = wm3Util::actionButton(WM3_cCONFIG_USER_FILE."?stage=".WM3_cSTAGE_USER."&section=".WM3_cSECTION_NEWS."&action=".WM3_cACTION_ADD_NEWS,"quick_add_news.png","","",$w3->getWord(347),0,48,48);


$_QUICK_MENU[$n++] = wm3Util::actionButton("http://www.google.it","quick_info_user.png","","","link text",0,48,48); // LINE TO ADD (WITH "URL", "ICON FILE" TO SHOW AND "LINK TEXT"

$rows = (int)($n / $columns) + 1;


so tou create a quick link after the others quick link if you want to add your link at start please insert the line after this line

$columns = 4; $n = 0; // Quick links total number


Bye!!!

THANK YOU! THANK YOU! THANK YOU! It works perfect now!!!

arraffaele
August 17 2015 (22:22:01)

marksatx23 wrote:
THANK YOU! THANK YOU! THANK YOU! It works perfect now!!!

ok
and remember, "Please make a donation to support our software"

marksatx23
August 17 2015 (22:28:28)

arraffaele wrote:
ok
and remember, "Please make a donation to support our software"

Done!!! Thanks again!!

arraffaele
August 17 2015 (23:55:15)

Thanks
1 2


Total visitors 21282283 (5833 today) (Page generated in 0.18268 seconds, 74 queries)
Powered by: Webmatic 3.1.2 beta