THT Community
Where is this part? - Printable Version

+- THT Community (https://thehostingtool.com/forum)
+-- Forum: THT Support (https://thehostingtool.com/forum/forum-7.html)
+--- Forum: THT General Support (https://thehostingtool.com/forum/forum-8.html)
+--- Thread: Where is this part? (/thread-1608.html)



Where is this part? - hostmafia - 11-14-2011

Hello,
Actually,I'm not the real owner of this acc.
I'm only one of staff (admin) in his (real owner) hosting service.
I borrowed this acc. with his permission & this is my first post in here.
My real nickname is adisp007.I ever joined the discussion on THT' Google Code: http://code.google.com/p/thehostingtool/issues/detail?id=123

To the point.
When I edited the P2H package,show this:
[attachment=223]
I want to fix it.
But,where is that part? Which the file that I must to edit?

Oh,1 more question.
We are using MyBB forum software.& there are features to change username forum & allow "space" on it.
Will that features be affect to forum username on THT database?

Thanks in advance.


RE: Where is this part? - Liam D. - 11-15-2011

That bug existed in previous versions as well. It doesn't affect any function though, so that should be fine.


RE: Where is this part? - Kevin - 11-17-2011

(11-15-2011, 04:33 AM)Liam D. Wrote: That bug existed in previous versions as well. It doesn't affect any function though, so that should be fine.

Yep.


RE: Where is this part? - hostmafia - 12-09-2011

Yeah,but I only want to edit it. Big Grin

admin/pages/packages.php

PHP Code:
...
                        global 
$type;

                        
$array['FORM'] = $type->acpPedit($data['type'], $cform);

                        
$query $db->query("SELECT * FROM `<PRE>servers`");

                        while(
$data $db->fetch_array($query)) {

                            
$values[] = array($data['name'], $data['id']);    

                        }

                        
$array['SERVER'] = $array['THEME'] = $main->dropDown("server"$values$data['server']);

                        echo 
$style->replaceVar("tpl/editpackage.tpl"$array);
... 

Then,I go to: includes/tpl/editpackage.tpl

PHP Code:
...
<
table width="100%" border="0" cellspacing="2" cellpadding="0">

  <
tr>

    <
td colspan="2" id="customform">%FORM%</td>

  </
tr>

</
table>
... 

What is %FORM% ???
Confused



Regards,

adisp007


RE: Where is this part? - Kevin - 12-10-2011

%FORM% is generated on line 157 of admin/pages/packages.php

You can take a look, but I will warn you that is messy as hell