close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Unsubscribe

Thread began 5/09/2011 6:36 am by kevin.preston332611 | Last modified 7/14/2014 1:36 pm by kevin.preston332611 | 8049 views | 29 replies

troyd

View in browser without logging in

I wanted to follow up on this since it's been resolved, in case someone else is trying to accomplish the same thing. I wasn't sure if I should have started a different thread since the O/P was on a slightly different topic but here goes.

Durring a support ticket connection with Ray Borduin of WebAssist, this is what he concluded.

(Ray's words...)

  "We had to comment out the first check for the logged in user, then we had to remove another function call that checked for a valid user to view the email, then we had to update the SQL statement to not cross reference the logged in userID with the ID of the user that got sent the email."  



So, here is what he did. Changes made to the archive.php page only.

(1)- Comment out the SecurityAssist page access rule (line 13)

php:
//if (!WA_Auth_RulePasses("Logged in to users")){

    //WA_Auth_RestrictAccess("users_login.php");
//}



(2)- Change this line (line 23 in my case)

php:
if(getUserCanViewPage($qsID)){



to

php:
if(true){



(3)- Then change the SQL (line 33 in my case)

php:
$query_MailingUser = sprintf("SELECT * FROM pm1_users WHERE UserID = %s AND UserID = %s", GetSQLValueString($userID, "int"), GetSQLValueString($sessionUserID, "int"));



to

php:
$query_MailingUser = sprintf("SELECT * FROM pm1_users WHERE UserID = %s", GetSQLValueString($userID, "int"));



That's it. Now the user can click on the HTML email link "View in your browser" and it will open in the browser without having to log in. So if they forward the email to a friend, that friend can view it in the browser also.

Note: Ray pointed out that this will disable any personalized "Tokens" added into the format of the email. So if it says "Dear [Name Token Here]" then that won't get filled in. Not sure what it will put there since I haven't tested that, but good to keep in mind.

Thanks again WA,
TroyD

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...