Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
[7.x] UBB.Wrapper #318035
07/27/2009 12:44 PM
07/27/2009 12:44 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Author: James Corthell, VNC Web Services

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

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.

Attached Files
UBB.Wrapper v0.3.zip (0 downloads)
Last edited by Gizmo; 02/26/2017 4:54 PM. Reason: Added v0.3

UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Sponsored Links
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318038
07/29/2009 11:22 PM
07/29/2009 11:22 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
I refreshed the v0.2 zip file; please re-download and re-upload all files.

I miss-named the wrapper files, it's already a used file so I renamed it accordingly; you're also going to likely want to reupload the wrapper files.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318039
08/03/2009 1:11 PM
08/03/2009 1:11 PM
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
R
Ruben Rocha Offline
Beta Tester
Ruben Rocha  Offline
Beta Tester
R
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
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?


Re: [7.x] UBB.Wrapper [Re: Ruben Rocha] #318040
08/03/2009 3:24 PM
08/03/2009 3:24 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
It should display items seamlessly; could you link me to a page you're wrapping so I can check it out?


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318041
08/03/2009 4:18 PM
08/03/2009 4:18 PM
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
R
Ruben Rocha Offline
Beta Tester
Ruben Rocha  Offline
Beta Tester
R
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
http://www.iaeifl.org/testforum
BTW sample works did not modify much

Sponsored Links
Re: [7.x] UBB.Wrapper [Re: Ruben Rocha] #318046
08/03/2009 5:23 PM
08/03/2009 5:23 PM
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
R
Ruben Rocha Offline
Beta Tester
Ruben Rocha  Offline
Beta Tester
R
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
Oh dropped out again now. First time since 07/26/09

Re: [7.x] UBB.Wrapper [Re: Ruben Rocha] #318047
08/04/2009 3:17 PM
08/04/2009 3:17 PM
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
R
Ruben Rocha Offline
Beta Tester
Ruben Rocha  Offline
Beta Tester
R
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
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!!!

Re: [7.x] UBB.Wrapper [Re: Ruben Rocha] #318048
08/04/2009 5:27 PM
08/04/2009 5:27 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Lol glad you got it working then wink...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318053
08/05/2009 4:53 PM
08/05/2009 4:53 PM
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
R
Ruben Rocha Offline
Beta Tester
Ruben Rocha  Offline
Beta Tester
R
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
Yea, stupid is is stupid gets. I should have known using a test board that something was odd in my settings.

Re: [7.x] UBB.Wrapper [Re: Ruben Rocha] #318110
08/22/2009 12:40 PM
08/22/2009 12:40 PM
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
R
Ruben Rocha Offline
Beta Tester
Ruben Rocha  Offline
Beta Tester
R
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
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.
HTML
<iframe src="http://www.iaeifl.org/palmbeach/index.htm" width="100%"
height="600" name="youriframe" frameborder="0" vspace="0" hspace="0"
marginwidth="0" marginheight="0" scrolling="no"></iframe>

Just curious if there is another method to include a html page or do I have my iframe setting wrong?


Sponsored Links
Re: [7.x] UBB.Wrapper [Re: Ruben Rocha] #318111
08/22/2009 12:45 PM
08/22/2009 12:45 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Well, it's not really a problem with the wrapper, it'd be the coding of the iframe.

If the page is local to the site, why not use a php include?


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318112
08/22/2009 12:57 PM
08/22/2009 12:57 PM
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
R
Ruben Rocha Offline
Beta Tester
Ruben Rocha  Offline
Beta Tester
R
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
For some reason I can't seem to get it right to use php include for a html page.
Here is what I tried in the wrapper
PHP Code

<?php include("http://www.iaeifl.org/palmbeach/index.htm"); ?>


the content will not display.

And yes I know it is a Iframe issue not the wrapper mod.

Re: [7.x] UBB.Wrapper [Re: Ruben Rocha] #318113
08/22/2009 2:01 PM
08/22/2009 2:01 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
A lot of hosts block you from using a full url; instead do the path on the server vs a url...

EX: include("/home/yoursite/public_html/palmbeach/index.htm");


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318114
08/22/2009 4:08 PM
08/22/2009 4:08 PM
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
R
Ruben Rocha Offline
Beta Tester
Ruben Rocha  Offline
Beta Tester
R
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
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.

Re: [7.x] UBB.Wrapper [Re: Ruben Rocha] #318115
08/22/2009 5:11 PM
08/22/2009 5:11 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Try using a smarty include tag:
Code
{include file="/home/undergroundnews/public_html/forum/CREDITS.txt"}


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318116
08/22/2009 5:33 PM
08/22/2009 5:33 PM
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
R
Ruben Rocha Offline
Beta Tester
Ruben Rocha  Offline
Beta Tester
R
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
I will give that a shot. But in the meantime. My fridg just went on the blink. So that is priority one right now.

Re: [7.x] UBB.Wrapper [Re: Ruben Rocha] #318117
08/22/2009 5:35 PM
08/22/2009 5:35 PM
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
R
Ruben Rocha Offline
Beta Tester
Ruben Rocha  Offline
Beta Tester
R
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
Okay I gave that a try got something to appear but it got real ugly.
Here are just the top few lines of errors.
Code
Error #256: Smarty error: [in /home/iaeifl0/public_html/palmbeach/index.htm line 16]: syntax error: unrecognized tag: (Smarty_Compiler.class.php, line 446)
Line: 1092
File: /home/iaeifl0/public_html/testforum/libs/smarty/Smarty.class.php
Error #256: Smarty error: [in /home/iaeifl0/public_html/palmbeach/index.htm line 16]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)
Line: 1092
File: /home/iaeifl0/public_html/testforum/libs/smarty/Smarty.class.php
Error #256: Smarty error: [in /home/iaeifl0/public_html/palmbeach/index.htm line 20]: syntax error: unrecognized tag 'pad' (Smarty_Compiler.class.php, line 590)
Line: 1092
File: /home/iaeifl0/public_html/testforum/libs/smarty/Smarty.class.php
Error #256: Smarty error: [in /home/iaeifl0/public_html/palmbeach/index.htm line 26]: syntax error: unrecognized tag: document.write("

Re: [7.x] UBB.Wrapper [Re: Ruben Rocha] #318118
08/22/2009 5:43 PM
08/22/2009 5:43 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Well, it's including the page, but whining about the content on those lines...

I believe specifically it's the script portion of the page that displays a message during different parts of the day lol...

So, unless you can get them to take that bit out, you'll have to go the route of the iframe.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318119
08/22/2009 5:45 PM
08/22/2009 5:45 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
A quick google search returns this which has a javascript that resizes the iframe 100% height.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318120
08/22/2009 5:51 PM
08/22/2009 5:51 PM
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
R
Ruben Rocha Offline
Beta Tester
Ruben Rocha  Offline
Beta Tester
R
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
Humm. Interesting!
I assume I should be able to paste that code including the javascript in the same default place in sample.wrapper.php?

Back to the fridge I guess.

Re: [7.x] UBB.Wrapper [Re: Ruben Rocha] #318121
08/22/2009 5:53 PM
08/22/2009 5:53 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Originally Posted by Ruben Rocha
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


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Ruben Rocha] #318122
08/22/2009 6:45 PM
08/22/2009 6:45 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
I'm getting syntax errors now on one of my scripts...
Code
 <SCRIPT LANGUAGE="JavaScript">
<!--
function ValidateForm(form)
{
  if (form.email.value == "")
  { alert("Please include your email address in visitor details"); form.email.focus(); return; }
  if (form.email.value.indexOf('@', 0) == -1 ||
      form.email.value.indexOf('.', 0) == -1)
  { alert("Please enter a valid email address in visitor details"); form.email.focus(); return; }
  form.submit();
}
//-->
</SCRIPT> 


just a simple script to verify they enter an email address....

getting the following errors using the above code.

Code
Error #256: Smarty error: [in /var/www/virtual/v/a/vannin.com/www/threads/wrapper/contact.wrapper.php line 22]: syntax error: unidentified token '.email.value' (Smarty_Compiler.class.php, line 1405)
Line: 1092
File: /var/www/virtual/v/a/vannin.com/www/threads/libs/smarty/Smarty.class.php
Error #256: Smarty error: [in /var/www/virtual/v/a/vannin.com/www/threads/wrapper/contact.wrapper.php line 22]: syntax error: unidentified token '{' (Smarty_Compiler.class.php, line 1405)
Line: 1092
File: /var/www/virtual/v/a/vannin.com/www/threads/libs/smarty/Smarty.class.php
Error #256: Smarty error: [in /var/www/virtual/v/a/vannin.com/www/threads/wrapper/contact.wrapper.php line 22]: syntax error: unidentified token ';' (Smarty_Compiler.class.php, line 1405)
Line: 1092
File: /var/www/virtual/v/a/vannin.com/www/threads/libs/smarty/Smarty.class.php
Error #256: Smarty error: [in /var/www/virtual/v/a/vannin.com/www/threads/wrapper/contact.wrapper.php line 22]: syntax error: unidentified token '.email.focus();' (Smarty_Compiler.class.php, line 1405)
Line: 1092
File: /var/www/virtual/v/a/vannin.com/www/threads/libs/smarty/Smarty.class.php
Error #256: Smarty error: [in /var/www/virtual/v/a/vannin.com/www/threads/wrapper/contact.wrapper.php line 22]: syntax error: unidentified token ';' (Smarty_Compiler.class.php, line 1405)
Line: 1092
File: /var/www/virtual/v/a/vannin.com/www/threads/libs/smarty/Smarty.class.php
Error #256: Smarty error: [in /var/www/virtual/v/a/vannin.com/www/threads/wrapper/contact.wrapper.php line 26]: syntax error: unrecognized tag: alert("Please enter a valid email address in visitor details"); form.email.focus(); return; (Smarty_Compiler.class.php, line 446)
Line: 1092
File: /var/www/virtual/v/a/vannin.com/www/threads/libs/smarty/Smarty.class.php
Error #256: Smarty error: [in /var/www/virtual/v/a/vannin.com/www/threads/wrapper/contact.wrapper.php line 26]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)
Line: 1092
File: /var/www/virtual/v/a/vannin.com/www/threads/libs/smarty/Smarty.class.php
Error #256: Smarty error: [in /var/www/virtual/v/a/vannin.com/www/threads/wrapper/contact.wrapper.php line 26]: syntax error: unclosed tag \{if} (opened line 22). (Smarty_Compiler.class.php, line 317)
Line: 1092
File: /var/www/virtual/v/a/vannin.com/www/threads/libs/smarty/Smarty.class.php

Last edited by badfrog; 08/22/2009 6:47 PM.
Re: [7.x] UBB.Wrapper [Re: badfrog] #318123
08/22/2009 6:52 PM
08/22/2009 6:52 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Try wrapping your javascript in {literal}{/literal} tags:

Code
{literal}
<script type="text/javascript">
<!--
function ValidateForm(form)
{
  if (form.email.value == "")
  { alert("Please include your email address in visitor details"); form.email.focus(); return; }
  if (form.email.value.indexOf('@', 0) == -1 ||
      form.email.value.indexOf('.', 0) == -1)
  { alert("Please enter a valid email address in visitor details"); form.email.focus(); return; }
  form.submit();
}
//-->
</script>
{/literal}



UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318124
08/22/2009 6:55 PM
08/22/2009 6:55 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
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.

Re: [7.x] UBB.Wrapper [Re: badfrog] #318125
08/22/2009 6:56 PM
08/22/2009 6:56 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
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...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318126
08/22/2009 7:13 PM
08/22/2009 7:13 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
this is what I had to go through to get it back up and running...

http://www.msfn.org/board/solution-seagate-7200-11-hdds-t128807.html

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.



Re: [7.x] UBB.Wrapper [Re: badfrog] #318127
08/22/2009 7:42 PM
08/22/2009 7:42 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
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 tipsy


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318128
08/22/2009 9:16 PM
08/22/2009 9:16 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
ok, new hitch in the works...

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...

Code
{literal}
<script type="text/javascript">
<!--
google_ad_client = "pub-1428978494316705";
/* thread adds */
google_ad_slot = "9181327323";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<div id="cse-search-results"></div>
<script type="text/javascript">
  var googleSearchIframeName = "cse-search-results";
  var googleSearchFormName = "cse-search-box";
  var googleSearchFrameWidth = 800;
  var googleSearchDomain = "www.google.com";
  var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
{/literal}

Re: [7.x] UBB.Wrapper [Re: badfrog] #318129
08/22/2009 10:03 PM
08/22/2009 10:03 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Is there anything in your error logs on the server? I ask as some errors silently hide themselves from the browser...

When you view the source of the page, does it show any parsed data from the wrapper?


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318130
08/22/2009 10:19 PM
08/22/2009 10:19 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
ok., the page I am pointing at is
Code
http://www.vannin.com/threads/wrapper.php?wrap=searchresults

and google is dropping
Code
?wrap=searchresults

and you get...
Code
http://www.vannin.com/threads/wrapper.php?cx=partner-pub-1428978494316705%3Ayix18h-jgii&cof=FORID%3A10&ie=ISO-8859-1&q=astro&sa=Search

Re: [7.x] UBB.Wrapper [Re: badfrog] #318132
08/22/2009 10:29 PM
08/22/2009 10:29 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
I am trying to come up with a redirect in htaccess that will parse the google code and merge it correctly... no luck yet.

Re: [7.x] UBB.Wrapper [Re: badfrog] #318134
08/22/2009 10:31 PM
08/22/2009 10:31 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Yeh it's more google b0ging the code; I'll look into something tomorrow (all else fails I'll just make another google search plugin)


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318137
08/22/2009 10:40 PM
08/22/2009 10:40 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
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.

Re: [7.x] UBB.Wrapper [Re: badfrog] #318143
08/23/2009 1:14 PM
08/23/2009 1:14 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Is your search the "adsense" site search?

Guess there will end up being a lot of options for a search mod:
1. Adsense or not.
2. Sitesearch, publicsearch, both


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318144
08/23/2009 1:18 PM
08/23/2009 1:18 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
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.

Re: [7.x] UBB.Wrapper [Re: badfrog] #318147
08/23/2009 3:06 PM
08/23/2009 3:06 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Created a Google Adsense Search modification based on badfrog's requests.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318160
08/23/2009 8:19 PM
08/23/2009 8:19 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
I'm noticing some odd behavior..

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.

Re: [7.x] UBB.Wrapper [Re: badfrog] #318162
08/23/2009 8:48 PM
08/23/2009 8:48 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Weird, might have to take a look at your mailer script; could you PT it to me?


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318169
08/24/2009 1:53 PM
08/24/2009 1:53 PM
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
R
Ruben Rocha Offline
Beta Tester
Ruben Rocha  Offline
Beta Tester
R
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
Originally Posted by Gizmo
Originally Posted by Ruben Rocha
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)

Re: [7.x] UBB.Wrapper [Re: Ruben Rocha] #318242
10/04/2009 12:33 PM
10/04/2009 12:33 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
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.

Re: [7.x] UBB.Wrapper [Re: badfrog] #318243
10/04/2009 12:57 PM
10/04/2009 12:57 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
yeha, it appears that the page in the iframe doesn't want to use the CSS info...

Re: [7.x] UBB.Wrapper [Re: badfrog] #318244
10/04/2009 2:31 PM
10/04/2009 2:31 PM
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
R
Ruben Rocha Offline
Beta Tester
Ruben Rocha  Offline
Beta Tester
R
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
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.

Re: [7.x] UBB.Wrapper [Re: Ruben Rocha] #318245
10/04/2009 2:35 PM
10/04/2009 2:35 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
yeah, I just figured that out.
I was hoping to get it to match whatever style sheet the end user had selected to make it blend in seamlessly.

right now I am trying to get the font size figured out, it is too damn big!

Re: [7.x] UBB.Wrapper [Re: badfrog] #318246
10/04/2009 2:55 PM
10/04/2009 2:55 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
I have no idea where it is getting its font size info from, only way I can change it is to put a font size tag in every TD cell, that can't be right.

Re: [7.x] UBB.Wrapper [Re: badfrog] #318247
10/04/2009 3:05 PM
10/04/2009 3:05 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
I'm just going to wait for Giz to join the conversation, I want features included that are beyond simple wrapping

Re: [7.x] UBB.Wrapper [Re: badfrog] #318268
10/28/2009 2:54 PM
10/28/2009 2:54 PM
Joined: Oct 2009
Posts: 7
J
Jersey Joe Offline
Lurker
Jersey Joe  Offline
Lurker
J
Joined: Oct 2009
Posts: 7
Is it possible to only display the content of one of these pages only if logged in as a member?

Re: [7.x] UBB.Wrapper [Re: badfrog] #318287
11/04/2009 12:10 PM
11/04/2009 12:10 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Sorry folks, medical issues kept me from checking shop here...

The iframe ignores the CSS file; in fact, it ignores everything since it's a completely seperate entity.

You should actually call the UBB's css file in the webpage that the iframe points to if you intend to use it.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Jersey Joe] #318288
11/04/2009 12:11 PM
11/04/2009 12:11 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Originally Posted by Jersey Joe
Is it possible to only display the content of one of these pages only if logged in as a member?
Well, it'd really be an all or nothing thing, you'd set the "registered only" tick in the top portion of the script file.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318293
11/04/2009 3:29 PM
11/04/2009 3:29 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
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...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318304
11/09/2009 2:28 PM
11/09/2009 2:28 PM
Joined: Oct 2009
Posts: 7
J
Jersey Joe Offline
Lurker
Jersey Joe  Offline
Lurker
J
Joined: Oct 2009
Posts: 7
Originally Posted by Gizmo
Originally Posted by Jersey Joe
Is it possible to only display the content of one of these pages only if logged in as a member?
Well, it'd really be an all or nothing thing, you'd set the "registered only" tick in the top portion of the script file.


That is fine, I want to create a few pages that I only want registered members to be able to see.

Thanks,
Joe

Re: [7.x] UBB.Wrapper [Re: Jersey Joe] #318387
12/19/2009 9:41 AM
12/19/2009 9:41 AM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
how do I implement PHP code in a wrapped file?

I'm trying to add recaptcha to my email form, but it is displaying the code as text, tried wrapping it in {literal} tag, didn't help.

Re: [7.x] UBB.Wrapper [Re: badfrog] #318389
12/19/2009 6:10 PM
12/19/2009 6:10 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
I'm pretty sure it needs to be Smarty Friendly, so either formatted in Smarty Code or with {literal}{/literal} tags so smarty hands it off to PHP


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318390
12/19/2009 6:20 PM
12/19/2009 6:20 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
I tried the literal tags, nothing happened...

if I post it like this,
Code
{literal}

require_once('recaptchalib.php');
$publickey = "6LfiEQoAAAAAAH6y_Cyvb7Hze7W4zwdbgaui-5B7"; // you got this from the signup page
echo recaptcha_get_html($publickey);

{/literal}
all it does is display it as text,

if I had
Code
<?php  and ?> 
it vanishes, but nothing else happens either.

Re: [7.x] UBB.Wrapper [Re: badfrog] #318391
12/19/2009 6:40 PM
12/19/2009 6:40 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
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..


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318392
12/19/2009 6:45 PM
12/19/2009 6:45 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
if I put the sample php script in the wrapper directory, it works fine with that path info, it just doens't work once it is wrapped.

http://www.vannin.com/threads/wrapper/example-captcha.php

Last edited by badfrog; 12/19/2009 6:46 PM. Reason: added url
Re: [7.x] UBB.Wrapper [Re: badfrog] #318393
12/19/2009 6:54 PM
12/19/2009 6:54 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
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...

clicky


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318394
12/19/2009 7:11 PM
12/19/2009 7:11 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
ok,I don't know [censored] about smarty tags. so I have no idea what that all means

Re: [7.x] UBB.Wrapper [Re: badfrog] #318395
12/19/2009 7:56 PM
12/19/2009 7:56 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
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...

still nothing

Re: [7.x] UBB.Wrapper [Re: badfrog] #318396
12/19/2009 7:59 PM
12/19/2009 7:59 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
the php bit would go in the wrapper.php file, then the smarty reference call would go in your wrapped file


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318397
12/19/2009 8:06 PM
12/19/2009 8:06 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
wrap.inc.php or wrapper.inc.php ?

Re: [7.x] UBB.Wrapper [Re: badfrog] #318399
12/20/2009 12:30 PM
12/20/2009 12:30 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
Originally Posted by badfrog
wrap.inc.php or wrapper.inc.php ?


I tried it in both, putting it in wrap causes instant wrapper failure

putting it in wrapper doesn't seem to do anything

Re: [7.x] UBB.Wrapper [Re: badfrog] #318401
12/20/2009 4:41 PM
12/20/2009 4:41 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
umm whatever the one is in your directory with ubbthreads.php lol


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318402
12/20/2009 5:05 PM
12/20/2009 5:05 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
um. they are both int he scripts folder...

Re: [7.x] UBB.Wrapper [Re: badfrog] #318403
12/20/2009 5:55 PM
12/20/2009 5:55 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
neither, it's in the forum folder... not the scripts folder...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318404
12/20/2009 6:46 PM
12/20/2009 6:46 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
if I add
Code
$smarty->assign("recaptcha", recaptcha_get_html($pub_key)); 
to the wrapper.php in the threads folder, then the wrapper script fails, I Get a blank page.

Re: [7.x] UBB.Wrapper [Re: badfrog] #318405
12/20/2009 8:05 PM
12/20/2009 8:05 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Hmm, I guess you could try the script/wrapper.inc.php file


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #318406
12/20/2009 8:10 PM
12/20/2009 8:10 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
re-read the thread, already did that. nothing happens.

Re: [7.x] UBB.Wrapper [Re: badfrog] #318407
12/20/2009 8:43 PM
12/20/2009 8:43 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Not too sure whaat to have you try short of learning smarty coding or running an iframe...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #322621
02/26/2017 3:34 PM
02/26/2017 3:34 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
is there any reason this would break in 7.6 ?

the pages I have set up using this lose all formatting... most html tags aren't working.?


Re: [7.x] UBB.Wrapper [Re: Gizmo] #322622
02/26/2017 4:26 PM
02/26/2017 4:26 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
I'm not really sure, do you have any errors in your error log?

I installed the sample and it's working just fine...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #322623
02/26/2017 4:43 PM
02/26/2017 4:43 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
Originally Posted by Gizmo
I'm not really sure, do you have any errors in your error log?

I installed the sample and it's working just fine...



I have an error log? lol

and that sample has nothing in it.

my page comes up, but all the html tags in the wrap are being ignored.

https://www.vanning.com/threads/wrapper.php?wrap=privacy





Last edited by badfrog; 02/26/2017 6:17 PM.
Re: [7.x] UBB.Wrapper [Re: badfrog] #322624
02/26/2017 4:58 PM
02/26/2017 4:58 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
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.


It's probably your bad HTML, you have elements that aren't in quotes, you use the <p> tags like they're <br>'s

Did you come from v7.5.9 or prior? UBB.threads v7.5.9+ are all HTML5 versus xHTML.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #322625
02/26/2017 5:05 PM
02/26/2017 5:05 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
I was on 7.5.8

This (and all my other wrapped pages) always rendered correctly before, never had any issues like this.

Yes, the code is old, but it always appeared correctly

Re: [7.x] UBB.Wrapper [Re: Gizmo] #322626
02/26/2017 5:12 PM
02/26/2017 5:12 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
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; }


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #322627
02/26/2017 5:35 PM
02/26/2017 5:35 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
so why is the blockquote tag not working ?

Re: [7.x] UBB.Wrapper [Re: Gizmo] #322628
02/26/2017 5:42 PM
02/26/2017 5:42 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
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; as you can see from my example each element can be changed in each of your styles in the "Extras" section


reading:
https://www.css-tricks.com/examples/Blockquotes/
https://www.w3schools.com/tags/tag_blockquote.asp

CSS formatting for a default behavior would be similar to:
Code
blockquote {
    display: block;
    margin: 1em 40px;
}


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #322629
02/26/2017 5:55 PM
02/26/2017 5:55 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
So for tags that worked fine in 7.5.8, I now have to add special css elements to get them to keep working?


Not trying to be difficult, just want to make sure I fully understand

Re: [7.x] UBB.Wrapper [Re: Gizmo] #322630
02/26/2017 6:18 PM
02/26/2017 6:18 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
so I added

Code
/* Custom */
blockquote {
    display: block;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 40px;
    margin-right: 40px;
}

h2 { font-weight:bold;font-size:2em; }
	p { padding: 4px 0px; }


to the extra section and it seems to be working

Re: [7.x] UBB.Wrapper [Re: Gizmo] #322631
02/26/2017 6:35 PM
02/26/2017 6:35 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Originally Posted by badfrog
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


Quoting http://sixrevisions.com/css/css-reset-stylesheets/
Quote
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.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] UBB.Wrapper [Re: Gizmo] #322632
02/26/2017 6:52 PM
02/26/2017 6:52 PM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
last annoyance of the evening,

I have special characters for french, German and Italian translations of a couple of pages..
https://www.vanning.com/threads/wrapper.php?wrap=history
https://www.vanning.com/threads/wrapper.php?wrap=historyfr
https://www.vanning.com/threads/wrapper.php?wrap=historygr
https://www.vanning.com/threads/wrapper.php?wrap=historyit

(I still need to update the html on those pages)

Code
Déclic ici pour les français - Klicken hier für Deutschen - Scatto qui per italiano


but they are coming up as question marks
Code
D�clic ici pour les fran�ais - Klicken hier f�r Deutschen - Scatto qui per italiano


is this something as simple as a meta tag change?


Last edited by badfrog; 02/26/2017 6:58 PM.
Re: [7.x] UBB.Wrapper [Re: Gizmo] #322633
02/26/2017 8:49 PM
02/26/2017 8:49 PM
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,938
Portland, OR, USA
Diamonds indicate that the character does not exist in the characterset in use. This is especially true if you copy and paste that character versus an HTML safe version, such as é vs:
Code
&eacute;


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Page 1 of 3 1 2 3

Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with, and recommend, the following Web Hosts:
· Stable Host
· Blue Host
· Interserver.net
Visit Us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,938
Joined: January 2000
Show All Member Profiles 
Forum Statistics
Forums64
Topics37,448
Posts293,484
Members13,793
Most Online1,498
Mar 17th, 2017
Top Posters(All Time)
AllenAyres 25,587
JoshPet 11,330
Rick 8,373
LK 7,396
Lord Dexter 6,503
Gizmo 5,938
Greg Hard 5,533
Top Posters(30 Days)
isaac 4
Today's Statistics
Currently Online 724
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 20
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2018 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.6.2
(Preview build 20180611.dev)
Page Time: 0.124s Queries: 16 (0.021s) Memory: 4.0066 MB (Peak: 4.8363 MB) Zlib enabled. Server Time: 2018-06-20 21:22:08 UTC