PDA

View Full Version : How can I customize "index.php"'s listing and page



johnh
01-05-07, 05:43 AM
hi,

How can I customize "index.php"'s listing and this page?

anyone know? which file should I edit?

thanks

Willx
01-05-07, 06:01 AM
Can you be more specific? You mean the template? Well, if thats the case its mainly the template files in the templates folder just the header footer and index i belive

MACscr
01-05-07, 06:09 AM
hi,

How can I customize "index.php"'s listing and this page?

anyone know? which file should I edit?

thanks


if you just want to edit the index page of the client area, the template you would need to edit would be: hompage.tpl. This is located most likely in /WHMCSFOLDER/templates/default/

Willx
01-05-07, 06:38 AM
hi,

How can I customize "index.php"'s listing and this page?

anyone know? which file should I edit?

thanks


if you just want to edit the index page of the client area, the template you would need to edit would be: hompage.tpl. This is located most likely in /WHMCSFOLDER/templates/default/

Why do you like to go and reply after i've replied with the answer???? lmao just joken ;) we both need to be loved with posting ;) im trying to just catch up to your forum post count ;)

bedot
01-05-07, 06:47 AM
I personally chose to have the WHMCS installation in my root directory, and use WHMCS as a CMS. - However I did not want the support (index.php) as the default page, I did try changing index.php to support.php however the support breadcrums seem to be hardcoded with index.php so didnt work well.

I instead created a home.php and corresponding .tpl file and set the default directory page to home.php resolving the issue.

MACscr
01-05-07, 06:55 AM
hi,

How can I customize "index.php"'s listing and this page?

anyone know? which file should I edit?

thanks


if you just want to edit the index page of the client area, the template you would need to edit would be: hompage.tpl. This is located most likely in /WHMCSFOLDER/templates/default/

Why do you like to go and reply after i've replied with the answer???? lmao just joken ;) we both need to be loved with posting ;) im trying to just catch up to your forum post count ;)

I was a little more specific with my respones. =P

Good luck with catching up. :twisted:

MACscr
01-05-07, 06:57 AM
I personally chose to have the WHMCS installation in my root directory, and use WHMCS as a CMS. - However I did not want the support (index.php) as the default page, I did try changing index.php to support.php however the support breadcrums seem to be hardcoded with index.php so didnt work well.

I instead created a home.php and corresponding .tpl file and set the default directory page to home.php resolving the issue.

I think thats a little above what the OP was trying to accomplish. =P

i just used a different subdomain for my site, but still use whmcs's smarty library, etc. Gotta love it.

johnh
01-05-07, 07:03 AM
I see..

how about heading part? like headtext such as Support, Client Area, Support Tickets with big text right under menu?

when I tried to edit it by header.tpl, but it was coding like $, so I could not... any way?

thanks

thanks

MACscr
01-05-07, 07:08 AM
I see..

how about heading part? like headtext such as Support, Client Area, Support Tickets with big text right under menu?

when I tried to edit it by header.tpl, but it was coding like $, so I could not... any way?

thanks

thanks

huh? headier.tpl is the correct file. Your going to have to learn some html and some basic smarty if you want to really customize your templates.

bedot
01-05-07, 07:11 AM
yes you need to understand php/html/basic sql and maybe some javascript for functionality...

i dont think someone whos never coded before should, or could be able to pick this product up and customise it to the same level as we do ours..

johnh
01-05-07, 07:18 AM
don't worry, I know php and html other things as well and enough .. so no worry on programming.. also have modifed mb and kayako few times, so not difficult to modify .tpl files...

what I am talking is



<span class="heading">{$pagetitle}</span>

{$LANG.globalyouarehere}: {$breadcrumbnav}</p>

part..

Pagetitle and globalyouarehere parts.. is there anyway to edit this part.. so I can use customized pagetitle for each pages and globalyourhere? so like I edit "Support" part to be Home or MySupport and make sure it shows on globalyouarehere too...? or is it impossible right now since.. code is encrypted?

thanks

bedot
01-05-07, 07:22 AM
yup, create custom entries in your english.txt - then create custom breadcrums...

example:
contact.tpl

$pagetitle = $_LANG['contactareatitle'];
$pageicon = "images/support/contact.gif";
$breadcrumbnav=''.$_LANG['supportlink'].$_LANG['globalsystemname'].$_LANG['supportlinkclose'].$_LANG['custombreadcrum'].$_LANG['contactlink'].$_

english.txt

$_LANG['contactareatitle'] = "Pre-Sales Contact Us";
$_LANG['contactlink'] = "<a href='contact.php'>";
$_LANG['contactlinkclose'] = "</a>";

johnh
01-05-07, 07:33 AM
oh... I see..lang file... tha'ts what I was looking for..

thanks