TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 496
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 475
  • Total: 476
  • @rjen

TP BLOGS

Started by domineaux, February 01, 2007, 06:44:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

majo

Well there is blog for smf smfhacks.com has one but the guy for soem odd reason didn't release 1.1.2 even if he state he did ? " check out the comments" before you download anything.

domineaux

I've been watching this thread for a while.

Recently,  I put up a posting about installing Wordpress as a standalone and then accessing it through a wrapper from TP.

It was so darned simple.  I'm ashamed to say, "why in the world did I put it off so long".

I used the code - I added an article inserted one line of code with the link to Wordpress standalone URL.  I used the button generator and made a small change in the horz menu at the top, pointing to the WP URL. 

Voila! I've got a most competent Blog tool.   I really like it because it has it's own MySql database and all mods to it are respective to the WP alone.

Search on iframe and you'll have it.  Here is my one line of code.  :2funny:

<iframe src="http://mydomain.com/WP/" width="100%" height="900"></iframe>

Ken.

That works good domineaux, but you may like this even better. (no scroll bars inside the iframe)

<script type="text/javascript">

/***********************************************
* IFrame SSI script II- Ã,© Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
var iframeids=["myframe"]

//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="yes"

var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids)
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids] : document.getElementById(iframeids)
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight;
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe) // Bug fix line
currentfr.attachEvent("onload", readjustIframe)
}
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller

</script>

<iframe id="myframe" src="http://www.YOUR_SITE.com/wordpress/" marginwidth="0" marginheight="0" vspace="0" hspace="0" style="width: 100%; display: none;" frameborder="0" scrolling="no"></iframe>
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

domineaux

#53
Quote from: ken.kimbrell on March 29, 2007, 07:13:53 PM
That works good domineaux, but you may like this even better. (no scroll bars inside the iframe)

<script type="text/javascript">

/***********************************************
* IFrame SSI script II- Ã,© Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
var iframeids=["myframe"]

//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="yes"

var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids)
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids] : document.getElementById(iframeids)
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight;
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe) // Bug fix line
currentfr.attachEvent("onload", readjustIframe)
}
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller

</script>

<iframe id="myframe" src="http://www.YOUR_SITE.com/wordpress/" marginwidth="0" marginheight="0" vspace="0" hspace="0" style="width: 100%; display: none;" frameborder="0" scrolling="no"></iframe>


Right...

I do have scroll bars.

I spent most of the day after you and I visited trying to implement the wrapper iframe thingy.   I kept getting the banner part of the wordpress until I just went to the one liner of code.

I do appreciate your writing your posting on this.  I was pretty well resigned to just having the scroll bars.  It is extremely nice of you to put up the response.

This will help others as well

Thanks

Oops, I got ahead of myself.   I still only get the first 150+pixels of the header when I use this script.

I wonder if the TP articles is adding some returns or something in the code. 


Ken.

Quote from: domineaux on March 29, 2007, 07:19:55 PM
I spent most of the day after you and I visited trying to implement the wrapper iframe thingy.   I kept getting the banner part of the wordpress until I just went to the one liner of code.

My short term memory strikes again!   :-\
I had forgotten that we visited this issue before... mine works OK now, don't really know why because no changes were made.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Ken.

Here is a trick that I've tried:
Go to the end of the last line of code, hit your return/enter key and then add a "."
That adds white space below my WordPress page thats inside the iframe. I don't know if that's a real fix or not, but it did add a little space to the end of the page.

I also tried just hitting the enter key a couple of times but that didn't seem to do anything to the page.

http://www.mykimbrell.com/FamilyForum/index.php?action=WordPress
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

majo

I dont get it, how this is related to TP blogs? This is SMF with Wordpress blog , but you got to register on both sides in order to let members create their blogs?

Ken.

This thread took the twists and turns that it did because unfortunately at this point there is no really good solution for this issue.

There is a bridge that is supposed to take WordPress member data and tie it to SMF, but from what I have read it is not working to well.
Butââ,¬Â¦ for many people, like me and others here, we need a bridge that will go the other direction and bridge WP to our existing SMF member database.

As for the other blogs that are or have been available, itââ,¬â,,¢s MHO the FelBlog was the best for a TP/SMF forum but it doesnââ,¬â,,¢t play well with current versions of TP & SMF because Feline has not updated her software for several months now.

For now itââ,¬â,,¢s WordPress in an iframe for me, hopefully Feline will update her FelBlog at some point in the future. :)
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

domineaux

This works for me.  I messed around with themes and found one that only has about twenty pixels of horz scroll at the bottom.

<iframe src="http://mydomain.com/WP/" width="100%" height="900"></iframe>

I never could get the above larger script to work.

-------------------------

I'm going say something here that might be worth something to someone.  I quit doing fully integrated sites over three years ago.  I could care less about the dual logins for users.

In the case of forums or Blog, yes I have a dual login.  I don't care, because I remember having rebuildt a bunch of sites after hackers took them apart. 

Most people don't seem to know this.  Most hackers and crackers don't even build their hacks until they are aware of a vulnerability in certain type of site.  In fact, most hackers don't waste their time trying to innovate and hack some CMS or other.  The hackers know that for the most part people that build sites, especially open-source are not the most serious devs.  Whenever a security patch comes out most devs don't even apply the patch...sometimes for months.  This gives the hackers a great deal of time to mess up a bunch of sites, which is what they do.

You want to find security vulnerabilities...do a google on security upgrade, security patch, security update, etc.  You'll find a myriad of places where the core dev has posted about site vulnerabilities.  In fact, often the vulnerability can be researched so you know exactly what it fixes.   :2funny:

The hackers aren't that smart about it. They just take the easy routes and there are plenty of them.   

If you want to find some sites to hack...Google on SMF, Xoops, Joomla, etc. or what ever the security patches you found apply.  You'll find a zillion sites, because Open-Source code is loaded with the original core devs information.  I mean if you go into SMF you'll hundreds of instances of the word SMF, it's the same with Xoops, Joomla, Drupal, etc.

-------------------------

I try to open up my sites to users, and only put registration on parts of my site that users can upload or add information to my databases.

I will use a Joomla, Xoops, Drupal or other CMS as an open site.  I don't allow users to add anything in the open part of my sites.  I only allow input from users in the forums, or wordpress or Coppermine or other application that has it's own security, database and login.

-------------------------
     
I realize there is always the bit about coordinating themes and dual logins, but you'll either get over that are get to learn some hard lessons.




This website is proudly hosted on Crocweb Cloud Website Hosting.