i would suggest reinstalling mod_layout and using v3.4 as they fixed some issues.
I found out how to install mod_layout correctly and I do have forced ads now.http://ralph.0cpanel.com
This is for apache 1.3 and make sure that you have enable curl ssl with your php4 and php5.Code:cd /usr/local/src wget http://0cpanel.com/mod_layout-3.2.1.tar.gz tar xvfz mod_layout-3.2.1.tar.gz cd mod* make clean make make install service httpd restart
I ran php -q /home/someuser/public_html/ipanel/cron/cronjob.php --job=httpd_conf --debug --force --verbose to force the ads whenever I felt like the cronjob wasn't doing its job......
Last edited by sellwhm; March 21st, 2008 at 19:26.
Take me to your leader
i would suggest reinstalling mod_layout and using v3.4 as they fixed some issues.
iHostDev.com - Automate your paid or free hosting business's with our software including forced ads
BoxDemos.com - Lower your support tickets with flash tutorials
VPSNow.net - Affordable VPS Hosting Solutions including iPanel FREE
Does anyone have the download that krakjoe posted? None of the links work anymore
sorry I forgot it was there ....
http://interviolet.com/temp/mod-layout-php.zip
(\__/) Joe Watkins
(='.'=) Software Architect
(")_(") http://pthreads.org
Copy and paste bunny into your sig, help him gain world domination.
Joe, I'm struggling to get this to work. I'm using mod layout for apache 2.2, does that affect it ?
With linebreaks do you mean the whole config. So no line breaks anywhere? I edited the config to this:
I don't think it's running at all. I edited the emails, so it sends nevermind the package and added a array at the top. Still didn't send anything..PHP Code:<?php $config = array('admine' => 'Jonnyhux@gmail.com','timestamp' => DATE_RFC822, 'httpd.conf' => '/usr/local/apache/conf/httpd.conf', 'plans' => array('adsplan'),'ads' => array('header' => '/home/***/adsh.html', 'footer' => '/home/***/adsf.html')); ?>
Last edited by JonnyH; August 28th, 2008 at 05:22.
~ The Hosting Tool ~ cPanel WHM/DA Support! cP Creator Importer! Post 2 Host! Fully Automated! ~ thehostingtool.com
Tried using full plan names ?
(\__/) Joe Watkins
(='.'=) Software Architect
(")_(") http://pthreads.org
Copy and paste bunny into your sig, help him gain world domination.
It's a root plan. Doesn't use usernames.
~ The Hosting Tool ~ cPanel WHM/DA Support! cP Creator Importer! Post 2 Host! Fully Automated! ~ thehostingtool.com
Well the line breaks thing was only for if you had the comments left in, which you don't need and don't have ...
When I wrote the code apache2.2 was available, and I tested on all versions that there were, I remember, because it took forever to build all the versions ...
1. Make certain that mod_layout is installed, have a look at server signature on a 404, or make manual edits to httpd.conf to place ads on an account ( make sure you restart apache after httpd.conf edits )
2. Check the file is named /scripts/postwwwacct NOT /scripts/postwwwacct.php
3. Check permissions on the file, make certain it's executable ( +x | 0755 | 755 )
4. Addright at the end of the scriptPHP Code:echo "<pre>";
print_r( $whm );
print_r( $config ) ;
print_r( $email );
echo "</pre>";
5. Make an account inside of WHM as root, copy and paste all the output ( displayed after the stupid ajax thing goes away ) to a pm or this thread, so I can have a look see at it ...
(\__/) Joe Watkins
(='.'=) Software Architect
(")_(") http://pthreads.org
Copy and paste bunny into your sig, help him gain world domination.
I think I know whats up with it.
Too bad i'm setting off soon and won't be on untill tommorrow. I'll get a response back to you.
~ The Hosting Tool ~ cPanel WHM/DA Support! cP Creator Importer! Post 2 Host! Fully Automated! ~ thehostingtool.com
Anyone got a mirror for mod-layout-php.zip?
Can you not download it from the link Joe posted hamster?
http://interviolet.com/temp/mod-layout-php.zip
JSHosts - UK Web Hosting
Web Hosting | Reseller Hosting | OpenVZ VPS | Xen VPS
cPanel | Softaculous | CloudLinux | CloudFlare | R1Soft Backups
Can't seem to download it from there... not surprised though, my ISP has loads of problems. Anyway, I've already gotten my friend to download it and then send it to me, so I don't need a mirror anymore![]()
Are you able to make it so it shows for a selected client of a certain reseller or hosting plan?
It works per plan, so long as the root user sets up, you can force ads on whatever plans exist on the server from whatever reseller you like ...
(\__/) Joe Watkins
(='.'=) Software Architect
(")_(") http://pthreads.org
Copy and paste bunny into your sig, help him gain world domination.
So does this script still work with the new updates and everything?
My-FreeHost is a great new post2host I found!
Bookmarks