Forum Activity for @softdesigns

SoftDesigns
@softdesigns
03/17/17 02:11:38AM
242 posts

Page Module HTML


Jamroom Developers

Here is what we found:
Quote: ALL HTML tags : checked
FYI: We had this checked, and still div.id - did not work...
Quote: "allowed HTML tags " add in div.id
This worked :)
Great Support - Solved...
updated by @softdesigns: 03/17/17 02:12:24AM
SoftDesigns
@softdesigns
03/16/17 02:36:52PM
242 posts

Page Module HTML


Jamroom Developers

Trying to edit the "source" of a page created by the page module:
Simple Code Test:

<div id="sa_vt_home"></div>
After save the page editor, JR strips out the id from the div above. We set HTML allow "div" in Quota, also tried setting "Allow all HTML tags" in quota. However nothing we do seems to allow div tag above to be saved in a page module page, via the built in page source editor.
--
Any Ideas?
updated by @softdesigns: 06/15/17 06:38:39PM
SoftDesigns
@softdesigns
03/16/17 06:07:01AM
242 posts

Smarty PHP Include


Jamroom Developers

@michael : Thanks for the info - jrCore_create_page_element - seems very promising...
--
Will need time to study this code above...
If further questions, will open a new more specific thread.
--
Great Support :) Solved
updated by @softdesigns: 03/16/17 06:07:23AM
SoftDesigns
@softdesigns
03/16/17 12:23:34AM
242 posts

Smarty PHP Include


Jamroom Developers

@michael : Yes, we want to inject custom HTML and JavaScript code, in pages created by the page module. All the custom code will only be setup by admin, stored in CDN or local files on our JR server. The custom code will vary based on unique Page ID or Page URL. This technique, combined with mapped profile domains, allows building very powerful sub modules under a main JR site.
--
Maybe we can code solution using your above advice:
michael: listen for "view_results", check the url, and "str_rep to inject"
Will need time to study existing code for examples of those above listeners and functions...
--
michael: There probably is a better event though.
Can you think of any better event listener / functions to achieve this goal?
updated by @softdesigns: 03/16/17 12:52:50AM
SoftDesigns
@softdesigns
03/15/17 03:16:00PM
242 posts

Smarty PHP Include


Jamroom Developers

@paul - @michael : We may be on the wrong track, and always prefer building custom JR module. Maybe we were confused Based on ticket# 49558 reply, it sounded like it was not possible to inject custom code inside a profile custom page.
--
Always prefer JR module if possible, but this code needs to be inside page like:
--
OurSite.com/MyProfile/page/1/DevPage
--
We see a basic html source code edit box area, on these types of pages, but we need a code widget or module.

Is it possible to have a code module inside a profile additional add-on pages?
updated by @softdesigns: 03/16/17 12:37:22AM
SoftDesigns
@softdesigns
03/15/17 10:12:04AM
242 posts

Smarty PHP Include


Jamroom Developers

We are hosted on JR pro server, and it seems Smarty is already installed.
Our goal is a simple JR integration using PHP + Smarty, outside of JR framework, but still on our JR pro server.
--
If we create a root folder (outside of the JR framework) for example: http://OurSite/dev
How to include smarty in raw PHP - in this way - outside of JR framework, but still on our JR server?
--
Code Below Fails:
We assume the include is not valid.
How to include Smarty in raw PHP on our JR pro server?
--
include('Smarty.class.php');

// create object
$smarty = new Smarty;

// Simple Smarty Test:
$smarty->assign('name', 'george smith');
$smarty->assign('address', '45th & Broadway');

// display it
$smarty->display('index.tpl');

updated by @softdesigns: 06/14/17 07:56:49PM
SoftDesigns
@softdesigns
03/14/17 10:45:23AM
242 posts

Site Builder Profile Pages


Design and Skin Customization

Site Builder is really great :)
--
Can we add code widgets to profile custom pages, like we can do on Site Builder pages?
Any way to use site builder for profile pages?
updated by @softdesigns: 06/17/17 04:12:39AM
SoftDesigns
@softdesigns
03/13/17 01:54:20AM
242 posts

Custom Profile Template


Design and Skin Customization

Very Cool - will study "Profile Tweaks" module...
Great Support :)
updated by @softdesigns: 03/13/17 01:54:41AM
SoftDesigns
@softdesigns
03/12/17 09:51:16AM
242 posts

Custom Profile Template


Design and Skin Customization

What is the correct method to allow certain "select" profiles, to have their own template?
We have already created separate quotas, and put "select" profiles onto their own quota.
However our goal would be to have a totally different look / feel for "select" profiles.
--
Possible to set "select" profiles, to use custom template, while other profiles use normal template?

updated by @softdesigns: 06/12/17 12:58:05PM
SoftDesigns
@softdesigns
03/11/17 11:06:15AM
242 posts

Currently Viewed ProfileID


Jamroom Developers

This custom module is logging correctly, after user hits any profile.
However $_nProfileID in the code below logs empty
function sdProfileRoute_init(){
	jrCore_register_event_listener('jrCore', 'profile_template', 'sdProfileRoute_profile_template_listener');
	return true;
}

function sdProfileRoute_profile_template_listener($_data, $_user, $_conf, $_args, $event)
{ $_sModule = "sdProfileRoute"; $_nProfileID = $_data['profile_id']; //2017.03.11-14:00-CT: How to get the ProfileID currently being viewed? jrCore_logger("INF", $_sModule.":DEBUG:JS:2017.03.11-14:00:".$_nProfileID, $_sModule); }

How to get the ProfileID currently being viewed?
updated by @softdesigns: 06/17/17 08:48:32AM
  20