| |||||||||
| |||||||||
| Not A Member Yet? Register today and become part of the community. |
| |||||||
| Tutorials Contribute only full How-To's and Tutorials here. Submit Tutorials, Guides and Hints. ALL TUTORIALS ARE MODERATED AND YOUR TUTORIAL WILL *NOT* BE *VISIBLE* UNTIL IT IS ACCEPTED. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Here's a pretty simple how to for adding the Profusehost ads in php-nuke. I seperated the how to into two sections.
If you choose to have the ad in a block on the right side, there is an issue in php-nuke where the right hand blocks are at times not shown (using the Forums is a good example). If the ad is in a block on the right side of your site, and ir rendered hidden (such as by going to the forums in php-nuke) then you would technically be out of compliance with the TOS of profuse host. If using a block, the left side would be better as it is never hidden. But for better layout I recommend the header solution. If you have any questions, let me know and I'll try to help. Thanks, -Bill Last edited by wapowell : 12-02-2005 at 06:54 AM. |
| |||
| Bill, I haven't tried your idea, but at first glance, I question the location of the "profusehost.html" file. Instead of the root of the account directory, it needs to be placed in the root of the PHP-Nuke sub-directory. Then your call in this snippet will work, otherwise need to change the location of the call to ../profusehost.html Code: <?
ob_start();
include("../profusehost.html");
= ob_get_contents();
ob_end_clean();
= ;
?> ./profusehost.html instead of ../profusehost.html I can't remember, of course I might be wrong about this entire comment. No matter - once the correct procedure is confirmed, and it meets the approval of John and his requirements, this process is worthy of being placed in the KnowledgeBase (IMHO). ~~~~~~~~~~~~~~~~~~~~ Bill, (Pretend I am on my knees begging). ![]() How about a workaround or the correct placement for a header banner ad display within PHP-Nuke. Currently I am focused on a custom header PHP file, that the mainfile.php does look for and if not found, displays the default header of the default theme. Of which I will eliminate all other themes to make life easier and that as site designer, I decide what it looks like ..Second, - need to do the same for WikiPedia, banner in the header area (preferred). However even a side skyscraper be (groan) acceptable. Any help would be greatfully appreciated, when you have time of course. No immediate rush. I do like the idea you presented, but if a Nuke-based site has material on all three columns, this might be crowding a little bit, or impact design. Of course this is trivial when meeting the TOS requirements concerning the displayed ad. Thanks friend. If you would like to roam at a running WikiPedia on Profusehost, just let me know. This is one of the few servers I have found that actually allows for the installation script to fully run and configure a "localsettings.php" file that initiates the WikiPedia. P.S. Seems the auto installation of WikiWeb in PHP is corrupt via the cPanel, and I much prefer WikiPedia to WikiWeb. (That and unless others desire WikiWeb, no point in isolating the negativbe issue on the install process). Peace all
__________________ Imagination is the Only Limitation Internet safety and security, technology, discussion, web design, and community based discussions regarding several projects including FreeBSD as a alternative operating system: Click here to visit Last edited by Fenwick : 12-01-2005 at 06:45 PM. |
| |||
| Thanks for catching the typo! Of course I didn't mean the ROOT directory, I assumed one would know that I am speaking of the WEB root directory (public_html) but of course I shouldn't have made that assumption. I edited the original post to be a bit clearer. Thanks for that! So now assuming the file is in the web root ( or root of the subdir where nuke was installed - if it was installed in a sub dir of the web root) the instructions are correct, a ./ or ../ is not needed. Example, I tested this on my developement box where I have nuke installed in the sandbox (http://localhost/sandbox/nuke78/) and used the exact code snippets from there in the posting above. So it shouldn't matter if one uses the web root or a subdir (like on my developement box). John, if you want I will upload the nuke to my site so you can see the example (though I don't use nuke anymore - I switched to Mambo, but I can put it up there for others to see if you like). Also, today I can check out the mainfile.php to see about including a widescreen ad instead of skyscraper in a block. As far as the Wiki, I haven't used Wikiweb but I have used MediaWiki which powers Wikipedia (and other MediaWiki projects). I can check into adding the banner to the header of Mediawiki also today. I agree, for Mediawiki (and even phpnuke for that matter) I would personally prefer a header ad vice a skyscaper ad, but I guess to each his/her own. I'll see if I can bang out both options for phpnuke and Mediawiki today before I go to bed. Regarding install issues via cpanel, I have no idea. I usually develop locally, then once it looks/feels the way I like I upload it to profusehost and create the databases and such on profusehost. I haven't used the installers from the cpanel. Thanks again for checking my post and correcting what could have been a misunderstanding for some folks! -Bill |
| |||
| Bill, Stat sheets records you getting the points, I just get the assist. If you like Bill and John, saving Bill the upload, I can try his suggestion on a backup copy of PHP-Nuke I have on my site that I will be deleting soon. Please allow me to clarify that I am (hoping to get TOS compliant) using "MediaWiki" and I was mistaken with identifying it as WikiPedia. MediaWiki, when the banner ads are automated displays the banner ad on top of or rather over the header area for MediaWiki and it really looks sad. Hoping somehow to bump down the content of MediaWiki in order to allow the banner to be displayed above any of the actual content, not over. Seems that the support for MediaWiki is rather vague, especially when setting permissions, so someday, if you have the time, would really like to exchange PMs or I know a few places that have a live chat (happy to share thePERL script for this no frills yet secure chat). Mambo vs. PHP-Nuke I played with Mambo all day, and had some fun exploring its potential. Hardest part was after installing "SimpleForum" and trying to figure out how that component could be added in the menu, of which I eventually solved thru trial and error, mostly error, but I managed. PHP blocks allow for easier integration, but I am sure the same is possible the "Mambo" way. Might use both for different projects. Just to have some fun. Quote:
I also wiosh to thank you in advance for any tweaks regarding header banner ad in MediaWiki. Hopefully thisprocess can be used as a guidance in otherPHP scriptpackages, like for example "Gallery 2.0" from http://gallery.sourceforge.net/ Quote:
Don't stay up too late working on this. Peace......
__________________ Imagination is the Only Limitation Internet safety and security, technology, discussion, web design, and community based discussions regarding several projects including FreeBSD as a alternative operating system: Click here to visit Last edited by Fenwick : 12-02-2005 at 12:51 AM. |
| |||
| Ok, I updated the how-to to include instructions for how to have a banner in php-nuke, or a block. John, you asked for the url for my site... since my site is mambo I put up a nuke site at the following url: http://www.wapowell.com/demos/nuke78/. There, one can see both a banner ad using my instructions in the post, and a right side block ad. I left both ads in there to demonstrate the code snippets, as well as to demonstrate that when one goes to the forums module, it completely covers the right side blocks (thus if the user is using ONLY right side blocks they would technically be out of compliance with the TOS). Fenwick, the code for adding the ad to the header will check to see the existence of the "banner.html" file. If it exists, it will display the ad above the theme header regardless of which theme is selected. If it doesn't exist then it displays nothing and doesn't interfere with the layout at all. I tried to allow for the user that wants only one theme (more control over his/her layout) as well as the user that wants his/her users to choose any theme they want (not sure why one would do that since they all have different headers, but whatever. To each his own). As far as the mediawiki that will be a bit more challenging. Mediawiki doesn't have a "header" function built in per se, so as you found out if you insert the ad code it just makes it an overlay in the "header" area instead of nudging the rest of the page down to make room for the header. I don't doubt it can be done, but it would be a bit more coding than the nuke solution was. I'll keep plugging away at it if you want, though it will have to be continued for today (I have to work in the morning). Anyway, if you don't mind taking a peek at the updated how-to and let me know if you find typos/code mistakes. Thanks, -Bill |
| |||
| Bill, No rush on rtthe MediaWiki tweak. As you are, I am also doing several things at once, but would like to use MediaWiki for a sopecial project and yet be TOS compliant. Not expecting a miracle tomorrow, but hopefully we can bang something out in a reasonable amount of time. Take care ![]()
__________________ Imagination is the Only Limitation Internet safety and security, technology, discussion, web design, and community based discussions regarding several projects including FreeBSD as a alternative operating system: Click here to visit |
| |||
| Quote:
|
| |||
| I just stumbled across this and will be making the header tweak on myNuke site ASAP so that at least that portion, (and checking all stagnant HTML pages as well for the proper banner display) will be TOS compliant. Thank you Bill, for your time and effort in solving this delimma from myself, and all others whom will find this useful. Perhaps in time, John (or anyone whom assists him) can apply this to the auto install via cPanel so that this can be universal as far as the header display is concerned.
__________________ Imagination is the Only Limitation Internet safety and security, technology, discussion, web design, and community based discussions regarding several projects including FreeBSD as a alternative operating system: Click here to visit |
| |||
| I can confidently state that this tweak does in fact work regarding the header display of the banner ad as required by the TOS. Feel free to visit my site mentioned in the signature to confirm this and see for yourself. However, maybe this next part is irrelevant, or those of us working on this tweak missed it? I recall that when advertizing was automated that there was a text link in the footer area. If this is still required, an additional edit to the PHP-Nuke footer file is required to display this text link. Snippet from the original footer.php file in the Nuke root directory. (very bottom of the file) Code:
~~~
echo "</body>\n"
." </html>";
die();
}
foot();
?> Code: echo "</body>\n"
." <br><br>Web Hosting Provided By <a href=\\\\\\\\\\\'http://www.profusehost.net/\\\\\\\\\\\' Target=\\\\\\\\\\\'_New\\\\\\\\\\\'>ProfuseHost.net</a><br><br> </html>";
die();
}
foot();
?> Code: <br><br>Web Hosting Provided By <a href=\\\\\\\\\\\'http://www.profusehost.net/ Target=\\\\\\\\\\\'_New\\\\\\\\\\\'>ProfuseHost.net</a><br><br> Web Hosting Provided By ProfuseHost.net. Again, I am not sure if this is required, but if it appears in the automatic generated pages, it should be included in the manual method of complying with the TOS with regards to PHP Nuke-based sites. This is something that John will reply to when he has time.
__________________ Imagination is the Only Limitation Internet safety and security, technology, discussion, web design, and community based discussions regarding several projects including FreeBSD as a alternative operating system: Click here to visit Last edited by Fenwick : 12-08-2005 at 01:07 PM. |
| |||
| Hi Fenwick, Thanks for verifying the code! Yeah your right, my code ONLY addresses the ad placement, not the footer requirement of the TOS. I didn't mod the footer.php because it isn't necessary. PHP-nuke has a gui in the administration area where you can just type custom footers (3 footer sections in 7.8, not sure about the other versions) in either text or html. Since adding the footer didn't "require" coding/modifying the footer.php I didn't include that in the how-to. Once you log into the administrator module, click on preferences. Scroll down a bit and you will see three boxes with WYSIWYG editors for three different footer blocks. But of course, one could also just modify the footer.php file and do the same thing! Thanks, -Bill |
![]() |
| Thread Tools | |
| Display Modes | |
| | |||||
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| is it possible to block a pay as you go sim card? | Lewis G | General Mobile Phone Discussion | 1 | 10-02-2008 11:01 AM |
| PHP Nuke | our-lounge | Request Auto Ad Removal Here | 3 | 04-06-2007 12:14 PM |
| squery and teamspeak block problems | svsnipa | Free Web Hosting Support | 8 | 03-10-2007 01:26 PM |
| PHP Nuke | our-lounge | Free Web Hosting Support | 6 | 02-17-2007 05:31 PM |
| PHP Nuke | our-lounge | Free Web Hosting Support | 1 | 02-14-2007 10:43 PM |