Support Services

Fast and professional to support your business
Welcome, Guest
Username: Password: Remember me
This category contains posts for the WHMCS Themer product only. For questions regarding any other product, please post in the appropriate category.

To view posts, reply or create a new post in this category, you must have an active Support and Upgrade pack for your WHMCS Themer module.

TOPIC: "Real" Template

"Real" Template 2 years 9 months ago #6883

  • D3m4444jahby
  • D3m4444jahby's Avatar
  • Offline
  • Fresh Boarder
  • "Umby"
  • Posts: 4
  • Karma: 0
Greetings,

Themer modifies the look and feel without creating a "real" template. In other words, there is no template (or folder) for other addon modules to reference directly and so they are unable to render the custom look. Is there a way around this issue?

For example, I have a "Test" page created using the "WHMCMS" addon. The test page renders under the current "real" template (default in this case).

You can see the results here ... www.sigillum-rasa.com ... then click on the "Test" menu item. You can also see the attachment below.

How can I fix this?

Brian U.
Attachments:
The administrator has disabled public write access.

"Real" Template 2 years 9 months ago #6884

  • D3m4444jahby
  • D3m4444jahby's Avatar
  • Offline
  • Fresh Boarder
  • "Umby"
  • Posts: 4
  • Karma: 0
I contacted the developer of WHMCMS and here is his reply ...

Please edit your header.tpl file change this line:
<link rel="stylesheet" href="modules/addons/themer/css.php?tid=6" type="text/css" />

With this line:
<link rel="stylesheet" href="{$systemurl}/modules/addons/themer/css.php?tid=6" type="text/css" />

I believe he thinks that "Themer" is a actual template and he probably pulled the line to replace from the rendered page ... however, can this be applied to the code in Themer somewhere?

Brian U.
Last Edit: 2 years 9 months ago by D3m4444jahby.
The administrator has disabled public write access.

"Real" Template 2 years 9 months ago #6885

  • Steven
  • Steven's Avatar
  • Offline
  • Administrator
  • Posts: 883
  • Thank you received: 60
  • Karma: 13
Hi Brian,

It looks like the WHMCMS is using some seo / rewrite rules for achieving the page rendering there. I'll have to look at adding the systemurl line into the call for the css.php file. I hadn't anticipated that particular instance.

Let me see what I can do and I'll update this post shortly.
Stars on the Joomla! Extension Directory are always appreciated
If you found this response useful, don't forget to hit Thank You!
The administrator has disabled public write access.
The following user(s) said Thank You: D3m4444jahby

"Real" Template 2 years 9 months ago #6891

  • D3m4444jahby
  • D3m4444jahby's Avatar
  • Offline
  • Fresh Boarder
  • "Umby"
  • Posts: 4
  • Karma: 0
Hey Steven,

I just noticed at this may be a bug of some kind in Themer. There are several pages that loose the customization from Themer when I visit them. These are normal WHMCS pages that Themer should be handling ok. If you visit my site at ... www.sigillum-rasa.com ... you can see them. Some of the pages are as follows ...

1. "Latest Announcements" on the front homepage, or any posts under "Announcements".
2. Any categories under "Knowledgebase".

I will submit a support ticket on this issue. That may fix the problem I have under this forum topic.

Brian Umberger
Last Edit: 2 years 9 months ago by D3m4444jahby.
The administrator has disabled public write access.

"Real" Template 2 years 9 months ago #6892

  • D3m4444jahby
  • D3m4444jahby's Avatar
  • Offline
  • Fresh Boarder
  • "Umby"
  • Posts: 4
  • Karma: 0
The dev for WHMCS says this may help ...

This will happen with any page with SEO URL in your whmcs like:
sigillum-rasa.com/announcements/1/Welcom...themer/css.php?tid=6
sigillum-rasa.com/test-page

Becouse the "WHMCS Themer" call the css with relative URL like this:
<link rel="stylesheet" href="modules/addons/themer/css.php?tid=6" type="text/css" />

This should be called like this:
<link rel="stylesheet" href="{$systemurl}/modules/addons/themer/css.php?tid=6" type="text/css" />
or
<link rel="stylesheet" href="http://sigillum-rasa.com/modules/addons/themer/css.php?tid=6" type="text/css" />

So the problem will be gone.
The administrator has disabled public write access.

"Real" Template 2 years 9 months ago #6893

  • Steven
  • Steven's Avatar
  • Offline
  • Administrator
  • Posts: 883
  • Thank you received: 60
  • Karma: 13
Thanks for the details on this issue - I've tracked down the source and corrected on your site, and will implement the change in the next release.

For others that may be experiencing this problem, the issue is in the Dunamis Framework, not the WHMCS Themer itself. As such, you can edit the files manually. Follow these steps:
  1. Open the file {WHMCS}/includes/dunamis/whmcs/helpers.php
  2. The first function in that list is called get_baseurl - it is this function that must be corrected
  3. Remove the first line that reads
    $uri	= DunUri :: getInstance( 'SERVER', true );
  4. Insert this code in place of the line you just removed:
    // Let's get our System URL first
    $config	=	dunloader( 'config', true );
    $uri	=	DunUri :: getInstance( rtrim( $config->get( 'SystemURL' ), '/' ) . '/', true );
    
    // Check SSL on current URL
    $curi	=	DunUri :: getInstance( 'SERVER', true );
    $uri->setScheme( $curi->getScheme() );
  5. Save and reload

That should fix it up... I'm including this code in the next release of Dunamis (1.3.1) so it will be reflected in future upgrades.
Stars on the Joomla! Extension Directory are always appreciated
If you found this response useful, don't forget to hit Thank You!
The administrator has disabled public write access.
Time to create page: 0.081 seconds
Powered by Kunena Forum