Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Link Directly to "Manage Services" pageLink Directly to "Manage Services" page
Previous
 
Next
New Post
2/18/2012 12:03 AM
 

is there a way to link directly to the "Manage Services" page?  Either via a token like UserID, etc.

It'd be nice to have a "renew your membership now" link.


The thread from 2009 at http://www.dotnetnuke.com/Resources/Forums/forumid/108/postid/300858/scope/posts.aspx

says it wasn't possible back then. Wondering if that has changed?

 
New Post
2/18/2012 8:22 AM
 

Impossible? Theres no such thing in here, just tedious :). Theoretically you can't link directly. But with very simple module or HTML/Text module with javascript it can be done. There are several factors, firstly that tabbing interface used, relies solely on session cookie to determine which tab to select (silly i know). Secondly you need to redirect user to edit his profile, there HTML/Text module with javascript might have a difficulty.

If you have UrlMaster Vanity Profiles or PageBlaster or anything that can provide userID as token you can input this into HTML/Text content.

<script>
document.cookie = "dnnTabs-dnnManageUsers=3; path=/";
(UrlMaster Vanity) var url = "/[User:Username].aspx";
(PageBlaster) var url = "/My-Account/Profile/tabid/93/ctl/Profile/userId/[PB:DNN.UserInfo.UserId]
/Default.aspx";
$(location).attr('href',url);
</script>

Of course you have to come up with exactl url yourself. Varies by version, friendly url provider etc.

 
New Post
2/18/2012 4:29 PM
 

Thanks!

Can I  just use HTML module with replace token:

<script>
document.cookie = "dnnTabs-dnnManageUsers=3; path=/";
var url = "
UserProfile/tabid/64/ctl/Profile/userId/[User:UserID]/pageno/3/Default.aspx";
$(location).attr('href',url);
</script> 

OK I see what this does.. but pardon my ignorance... but how do I make a link out of this / using this as a function?

<A HREF= ???>Manage My Subscriptions</A>



 
New Post
2/18/2012 6:08 PM
 

Didn't know there is such a token as [User:UserID], it's not documented anywhere. Makes it a lot easier then.

Anyway I forgot to mention linking, you link to page that has HTML/Text module with this as content. Line $(location).attr('href',url); is jQuery way to immediately redirect when someone hits the page so you can create new dummy page called "Manage Subscriptions" and just place this HTML module on it. Url will be simple like www.domain.tld/Manage-Subscriptions.aspx.

It may take a second or two heads-up before browser executes this script and sends user to the real manage profile page, so you can even add message like "Verifying subscriptions ... ( some animated gif)". Is a bit of lie, but sounds and looks cool. PayPal does it all the time :)).

 Word of caution, it may be hard to get back into editing HTML module content again once it starts redirecting. You may want to write down somewhere url for editing it like www.domain.tld/Manage-Subscriptions/ctl/Edit/mid/400.aspx ... (again it has to be specific to your environment) Hope it makes sense to you :).

 
New Post
2/20/2012 10:20 PM
 

Thanks! This worked.

I did the following:

1. Host.. HTML Editor Manager... 
2. Click on "Everyone"
3. Take the check out of "RemoveScripts" and hit update
4. Create a new page called "ManageSubscriptions.aspx".  Do not include in menu, and give view permissions to registered users only.
5. In this page, add a text/html module called "Verifying Subscriptions.... this may take a minute".  Be sure to setup the module permissions so that REPLACE TOKENS is enabled.
6. In the HTML code for the module, add the code provided by Xeevis -- make sure you change your tab ID (will not always be 64)...

<script>
document.cookie = "dnnTabs-dnnManageUsers=3; path=/";
var url = "UserProfile/tabid/64/ctl/Profile/userId/[User:UserID]/pageno/3/Default.aspx";
$(location).attr('href',url);
</script>
<p>Verifying subscriptions. Please wait....</p>


7. Hit update/save.

8. Repeat steps 1-3, but put check back in RemoveScripts.


Now sending registered users to ManageSubscriptions.aspx will go to the subscriptions page.  Thanks!

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Link Directly to "Manage Services" pageLink Directly to "Manage Services" page


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out