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 14 2015 (05:38:50)

Change User Login landing page?

When users login to Webmatic it drops them at the User Config page and I'm trying to find a way to either add things to that page or redirect them to another page within the site...

Any ideas? Thanks in advance!!

arraffaele
August 14 2015 (11:36:18)

Hi, sorry but there is no ready made feature to change the user config page or redirect it. The only way is to change php code directly. Bye!

marksatx23
August 14 2015 (19:26:09)

Which file do I need to change the code in? do you know? Thanks

arraffaele
August 15 2015 (03:18:06)

Any file related to the user section, mainly the wm3User class
in \core\classes\wm3User.php
bye!!!

marksatx23
August 15 2015 (03:33:24)

I've gone thru that file and can't seem to figure it out.. I'm trying to add a link to the "Quick Link Menu" on the user login page.. Right now all I have is "User information" I would greatly appreciate your help!! Thanks


arraffaele
August 15 2015 (10:42:26)

ok

marksatx23
August 15 2015 (10:58:27)

What can I do to pay you for your assistance? I really like the webmatic site and I use it for a very small non profit.

arraffaele
August 15 2015 (19:01:33)

marksatx23 wrote:
What can I do to pay you for your assistance? I really like the webmatic site and I use it for a very small non profit.

Actually i develope some other software and have no time to help you sorry!
But, for the redirect, you can check and modify the function
public function createUserPage($w3)
{ ...
in \core\classes\m3Page.php file.
You can put here a redirect or modify user page content!
Bye!!!

marksatx23
August 15 2015 (22:50:35)

arraffaele wrote:
Actually i develope some other software and have no time to help you sorry!
But, for the redirect, you can check and modify the function
public function createUserPage($w3)
{ ...
in \core\classes\m3Page.php file.
You can put here a redirect or modify user page content!
Bye!!!

I had found my way to that page but it seems no matter what changes I make it breaks the site.. I wish I had more knowledge of PHP!!

Maybe an easier way: is there a way to FORCE the menus to be on for ALL pages?

arraffaele
August 16 2015 (02:25:41)

No, currently no way sorry

marksatx23
August 16 2015 (03:47:27)

arraffaele wrote:
No, currently no way sorry

It has to be fairly simple to add a link to the quick links page after the user logs in, I just don't know what I'm doing because you made the software so easy I've never needed to know PHP.. Can you recommend where in the code and what I could add to include a link to the home page? Like I said, I'd be willing to throw you some $$$ to help out.. thanks!

arraffaele
August 16 2015 (13:08:01)

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.
1 2


Total visitors 27219235 (20866 today) (Page generated in 0.25522 seconds, 81 queries)
Powered by: Webmatic 3.1.2 beta