More Information: You can view the VNC Web Services information page for this script here.
Requirements: UBB.Threads 7.x (not compatible with UBB.Threads 6.x or below)
Current Version: v0.3
If you'd like to manage pages via the UBB.threads system, versus manually editing pages with this modification, please see our new UBB.threads Pages modification.
About: This addon will allow you to call pages into your UBB.Threads7 install, thus allowing your pages to "wrap" into UBB.threads.
Demo: You can see a working demo of the "sample" file on A Gardeners Forum.
Install Instructions: Upload the included files to your server, and place your new pages in a /wrapper directory following the format in the sample.wrapper.php file.
Usage Instructions:
Create a new page in the "wrapper/" directory, it should follow the example in the sample.wrapper.php file.
Create a new string in the "languages/english/wrapper.php" file following the example of the "sample" string to setup the title of the page.
Your new page will now be accessible by accessing the wrapper page as "wrapper.php?wrap=sample".
Please Note: Whatever you name your page in the "wrapper/" directory will be what the script will use to call your new page (and the associated language string), so we recommend that you use all lowercase characters.
Version Additions: v0.3 - Updated the wrapper system to be in line with v7.6.0 changes (note that previous builds should continue to work, they will just have old style elements). v0.2 - This maintenance release was simply for some code cleanup and simplifying adding titles for new pages as language file strings.
Pricing: $0 - This modification is freeware to the UBB.Threads7 world; but if you feel like donating, feel free to access the "information" page above.
Fairly painless to install. But I have a question. On your site the wrapper has your islands just like the forum summary page. Mine did not. How where do you add that in?
There is no such thing as stupid questions. Just stupid answers.
It works fine GIZ. Operator error on my part. I had the settings in the cp for portal settings to only show left(True) and only show right(True). So the portal showed the islands but the forum summary did not. So the wrapper just did what it was supposed to. Not show islands because the cp was set to not show islands in the forum summary. Because of a conflict in the CP settings. DUH!!!
There is no such thing as stupid questions. Just stupid answers.
Okay I am starting to like this a lot more. But I have one complaint using Iframe. Setting the height to 100% does not seem to work and never has for me. I would like to eliminate the scroll bars. Here is my insert in the wrapper.
Tried that . No go still a blank page. I also removed the php tag at the beginning and end of the include. That just shows a parse error. So unless you have a suggestion on what I am doing wrong I guess I am back to the Iframe tag. Could it be due to the html file is a stand alone page with head,meta and body tags. What I am using is a page that someone else publishes to the same site so it is native. I believe it has some java and cgi scripts in it already have not looked that close since I don't edit that file. So maybe that is the culprit and I just need to live with Iframe.
There is no such thing as stupid questions. Just stupid answers.
thanx! that was the trick... didn't know about that tag.
I just got my hard drive back to working status (if you own a seagate drive, check the firmware!) and am trying to get caught up on projects, one of which is converting my remaining stand alone pages to wrapped pages.
Glad to hear you got your HD mess all sorted... I've heard about a lot of the issues plaguing the newer drives; which is a shame since Seagate is one of my favorite brands due to their warranty...
was actually pretty easy once I got all the parts I needed... and I didn't mess with the usb to serial, I got a USB to TTL adapter that made things go very smoothly.
I have a 750gb seagate that I haven't been able to get to operate properly; I got it as a replacement of a smaller drive via RMA... Waiting on an external enclosure before I whine
trying to redirect my google search to a wrapped page. works fine when I point it at a regular html page, but taking that same code and putting it in the wrapper, I get nothing.. no error, nada...
what I have right now is a google search box on my error 404 pages to help people find whatever they are looking for, if I could get those results wrapped, that would be golden.
I'm still messing with it, there has to be some rewrite rule or cond that will match it and parse it to the new link.
yes, been using google adsense for a while and it is acutally paying off.. pays enough to run my site, computer upgrades, vacations. I can't complain about it.
I gave up trying to use a rewrite condition to parse the google info correctly into the wrapper... beyond my current skills.
I took my "contact us" page and wrapped it.. just a simple form the fill out and it emails me their question, since I moved it, it is occasionally snagging other info.. for example, I did a quick test, and it somehow snagged and incluced my login name and password, but the next time I tried it worked normally, then it did it again later..
and just now I got another email with someones login info in it.
the forum uses a standard formmailer script to handle the email, I can't figure out what is causing it to grab that info, or why it is only doing it sporadically.
I assume I should be able to paste that code including the javascript in the same default place in sample.wrapper.php?
I assume so
First, Sorry to be the culprit to turn this post into typewriter mode.(Ding) But the java script fix for Iframe did not work.(Ding) I think the culprit with the java script is it needs to be formatted a little different to include in a php script.(Ding) So for now I will live with just a fixed Iframe size.(Ding)
There is no such thing as stupid questions. Just stupid answers.
ok, I have been playing with this on a new project today, trying to wrap an old links page which is built with tables and am trying to get it to pick up the same CSS style as the forum is using, but it doesn't get applied no matter what I do.
no granted, I am a noob who never learned CSS and needs to, but I can't imagine that this should be this difficult to figure out.
Well it won't because it is a frame and has it's own properties. You would need to add the css properties to the page or edit the html to match the wrapper.
There is no such thing as stupid questions. Just stupid answers.
btw, on the spot of using stylesheets; you could use an include statement and then adapt the pages to use smarty code; not entirely sure what you're working with or how feasable that would be as an option though...
require_once('recaptchalib.php'); $publickey = "6LfiEQoAAAAAAH6y_Cyvb7Hze7W4zwdbgaui-5B7"; // you got this from the signup page echo recaptcha_get_html($publickey);
I hope you're linking to the full path to the file and not assuming it'll just "grab" it... I'm not sure where you'd want all of your files if that's the case..
Well, yeh, that's differant... The UBB has a base path, the wrapper uses that, so if you just use a full path to the file you completely eliminate that as a possible problem...
By calling that page outside of the wrapper, you're going past the UBB and its base path...
I did find a couple of things on google for using recaptcha in smarty, basically putting your php code and making a variable for smarty then calling that variable in the smarty wrapped code...
so put that first bit in my php file, I can only assume they mean the reacaptcha.php file I put the other tag that they said went in the TPL file in my wrapped file.. still nothing.
I have tried the relative and absolute path, I have put the recaptcha.php in my root dir, my threads DIR and the wrapper DIR...
Updated the OP, posted v0.3 which brings the wrapper system in line with v7.6.0 changes (note that previous builds should continue to work, they will just have old style elements).
Originally Posted by badfrog
I have an error log? lol
Your server does...
Originally Posted by badfrog
and that sample has nothing in it.
Exactly, it shows that the wrapper works out of the box, without custom coding applied to it; in its purest form you can see that it is working in v7.6.0.
And a Test on Tags; proper HTML displays properly.
Keep in mind that there are some elements in the common.css which set some tags to basically be plain text, so that you can display the elements the same in all browsers; as you can see from my example each element can be changed in each of your styles in the "Extras" section:
Code
h2 { font-weight:bold;font-size:2em; } p { padding: 4px 0px; }
Keep in mind that there are some elements in the common.css which set some tags to basically be plain text, so that you can display the elements the same in all browsers; as you can see from my example each element can be changed in each of your styles in the "Extras" section
So for tags that worked fine in 7.5.8, I now have to add special css elements to get them to keep working?
Yes, it's so that you can format the tags so that they will display the same in every browser, versus using the base that X browser chose to use.
Originally Posted by Gizmo
Keep in mind that there are some elements in the common.css which set some tags to basically be plain text, so that you can display the elements the same in all browsers
Reset CSS either nullifies a default CSS property by setting it to 0, or it sets the property to a common-sense value (e.g., line-height: 1 on the element). Explicitly declaring certain CSS property values can help reduce inconsistencies in the way our HTML elements are rendered by the browser.
Is this mod still viable for 7.6.2? Will the zip files still work for 7.6.2?
Or do I need to modify the steps a bit.
I see in the stock code there is a new scripts/sample.inc.php for 7.6.1 but the other support files were never created. as in prior versions. Do I use that for the wrapper pages instead of what is in the zip?
Thanks in advance. Ruben
There is no such thing as stupid questions. Just stupid answers.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.