Current time: 02-07-2012, 11:00 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Forced Ads Support
12-24-2009, 11:21 PM
Post: #11
RE: Forced Ads - Force Header and Footer Ads on Your Users
Should i do cd scripts/
Find all posts by this user
Quote this message in a reply
12-25-2009, 11:04 AM
Post: #12
RE: Forced Ads - Force Header and Footer Ads on Your Users
cd /scripts should work

Nick - TheHostingTool Staff Coordinator

[Image: standard.png]

Visit this user's website Find all posts by this user
Quote this message in a reply
12-29-2009, 01:02 PM
Post: #13
RE: Forced Ads - Force Header and Footer Ads on Your Users
I'm going to modify this to only place ads on specific plans... Do you know how to use PHP to check the accounts plan name?
Visit this user's website Find all posts by this user
Quote this message in a reply
12-30-2009, 03:59 PM
Post: #14
RE: Forced Ads - Force Header and Footer Ads on Your Users
Thats exactly what it does right now, places ads ONLY on the Plans you define in the config file.

Nick - TheHostingTool Staff Coordinator

[Image: standard.png]

Visit this user's website Find all posts by this user
Quote this message in a reply
12-30-2009, 09:54 PM
Post: #15
RE: Forced Ads - Force Header and Footer Ads on Your Users
How do i create a new file in SSH
Find all posts by this user
Quote this message in a reply
01-01-2010, 03:45 AM (This post was last modified: 01-01-2010 03:46 AM by Nelson.)
Post: #16
RE: Forced Ads - Force Header and Footer Ads on Your Users
"file content" > "/dir/to/file"
"second line" >> "/dir/to/file"
"third line" >> "/dir/to/file"
"fourth line" >> "/dir/to/file"

Nelson - Retired TheHostingTool Developer
[Image: sleek.png]
Find all posts by this user
Quote this message in a reply
01-01-2010, 04:21 AM
Post: #17
RE: Forced Ads - Force Header and Footer Ads on Your Users
new problem
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 28: parser error : Opening and ending tag mismatch: meta line 4 and head in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </head> in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 65: parser error : Opening and ending tag mismatch: input line 65 and form in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: 041849"><input type="hidden" name="domain" value="adtest.welfarehost.com"></form in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 73: parser error : Opening and ending tag mismatch: input line 65 and body in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </body> in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 74: parser error : Opening and ending tag mismatch: input line 65 and html in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </html> in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 75: parser error : Premature end of data in tag input line 65 in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 75: parser error : Premature end of data in tag input line 65 in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 75: parser error : Premature end of data in tag form line 63 in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 75: parser error : Premature end of data in tag body line 29 in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 75: parser error : Premature end of data in tag head line 3 in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 75: parser error : Premature end of data in tag html line 2 in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /home/welfareh/public_html/client/includes/servers/whm.php on line 61

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/welfareh/public_html/client/includes/servers/whm.php:61 Stack trace: #0 /home/welfareh/public_html/client/includes/servers/whm.php(61): SimpleXMLElement->__construct('<!DOCTYPE html ...') #1 /home/welfareh/public_html/client/includes/servers/whm.php(105): whm->remote('/xml-api/create...') #2 /home/welfareh/public_html/client/includes/class_server.php(139): whm->signup('3', '0') #3 /home/welfareh/public_html/client/includes/ajax.php(124): server->signup() #4 /home/welfareh/public_html/client/includes/ajax.php(939): AJAX->create() #5 {main} thrown in /home/welfareh/public_html/client/includes/servers/whm.php on line 61
Find all posts by this user
Quote this message in a reply
01-01-2010, 05:45 AM
Post: #18
RE: Forced Ads - Force Header and Footer Ads on Your Users
In reference to mghq's post. (We work together)
I tried setting up a new instance of THT and when i try importing clients (All server details are fine)
i get

Warning: DOMDocument::loadXML() [domdocument.loadxml]: Opening and ending tag mismatch: meta line 4 and head in Entity, line: 28 in /home/welfareh/public_html/test/includes/servers/whm.php on line 160

Warning: DOMDocument::loadXML() [domdocument.loadxml]: Opening and ending tag mismatch: head line 3 and html in Entity, line: 74 in /home/welfareh/public_html/test/includes/servers/whm.php on line 160

Warning: DOMDocument::loadXML() [domdocument.loadxml]: Premature end of data in tag html line 2 in Entity, line: 75 in /home/welfareh/public_html/test/includes/servers/whm.php on line 160

Warning: Invalid argument supplied for foreach() in /home/welfareh/public_html/test/includes/import/whmimport.php on line 41
Accounts have been imported!


Also to note is that we upgraded apache to the latest current version:
Server Version: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
We were running 2.0.something

I gtg im tired. I suspect it to be an apache problem, something mal-configured but i dont have the experience to be able to tell what it might be.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-01-2010, 03:32 PM
Post: #19
RE: Forced Ads - Force Header and Footer Ads on Your Users
Are your server details correct?

Nelson - Retired TheHostingTool Developer
[Image: sleek.png]
Find all posts by this user
Quote this message in a reply
01-01-2010, 03:54 PM (This post was last modified: 01-01-2010 03:55 PM by zzbomb.)
Post: #20
RE: Forced Ads - Force Header and Footer Ads on Your Users
YES Tongue I think its a problem with firewall/security. im still looking.

Going to try rebuilding apache and php in a while.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: