Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 5 1 2 3 4 5
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
yeh well, others that use stock quote woudln't wanna be thrown off by the page lookin like crap :x...

Sub, daddy tipsy , when you finish could you post a list of changes 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, My UBB Scripts
Sponsored Links
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
So, about the beating up of the beta version :x...

BTW, for the gramelins, could you have it just define a url when it sences a gramelin's usage? Say using noncgiurl/gramelins/gramelin.gif


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, My UBB Scripts
Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
I kind of got sidetracked on the ubbnews.php after a couple of major projects cropped up this past fall. I'm getting this back on my whiteboard to address/look into further.

A workaround for the graemlin problem is to drop ubbnews.php in the noncgi directory. I'll have to examine the Z lines a bit more to determine if I can do a replace on the graemlins, or somehow break it apart and insert in the noncgi url from the vars_config.inc.php.

Regarding the quote/code/list fix, I have a tempoary one, however, it doesn't handle multiple lists correctly. I'm going to rethink the code that I injected last fall into my beta version. I think I'm going need to do a string find and count, then compare the open and close counts and append the appropriate number of closing tags.

If you want, I can post my current temporary fix, but I'll need to do further testing on my boards after I write a more permenant fix. I have an idea about how to do a more permenant fix, I just need to code and test it on my boards before I release it. It's not going to break the UBB, I'd just rather break my beta directory than anyones live sites.

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
That's not a vaild workaround... If you use a php include to load the page into a document it'll load all data from that called position. Example:

http://www.undergroundnews.com/ if I use a PHP call to load from http://www.undergroundnews.com/ubb/news.php on the main page of http://www.undergroundnews.com/ it'll still look for the gramelins in http://www.undergroundnews.com/ and not http://www.undergroundnews.com/ubb/.

'eh I can wait till an official live version is available lol... I run it so much at my site, with some customizations it's used for site news/rants/tech news/main page/store news.

Just wanted to be sure you were alive :x...


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, My UBB Scripts
Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
I'm still alive.

I've been playing in Zend with the quote/code/list (Gotta love the Preview of the HTML and the ability to set breakpoints to examine varaible content). I did concept up a method of counting the open tags, and automatically closing the tags at the end of the teaser, regardless of where they are supposed to close. I'll probably be able to test that on a live board shortly.

The problem I'm running into on the gramelins is doing an outright replace on the img tags. If I append $NonCGIURL to all image tags, it would break any outside images in the feed. On the other hand, I cannot be guaranteed that I'm able to read /cgi-bin/vars_graemlins.cgi due to open_basedir restrictions. If I can be sure that I can read vars_graemlins, I can do some array work to "trim the fat" of the hash, and get it so I have just the graemlin image file names, and just do a search and replace on those file names. I could just include a base href, but would that break other parts of the page that it is feeding onto. That, I'm unsure of also.

Sponsored Links
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
perhaps have it compaire where the url is linking to? or if the url is linking to a directory named gramelins?

Yeh I'm using a base href, it's a pain in the butt... I had to recode parts of my entire news pages just to run this and have gramelins show 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, My UBB Scripts
Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
Not all graemlins are in /noncgi/graemlins. Some are in /noncgi...

Oh, and here's some beta code for the quote bug:

Find:
Code
     $postdet = substr($postdet,0,strlen($postdet)-strpos(strrev($postdet),$aspace));
Add After:
Code
     $bot = substr_count($postdet, "<blockquote>");
$bct = substr_count($postdet, "</blockquote>");
if ($bot > $bct) {
while($bot > $bct) {
$postdet = $postdet . "</blockquote>";
$bct++;
}
$nodots = "TRUE";
}
$lot = substr_count($postdet, "<ul");
$lct = substr_count($postdet, "</ul>");
if ($lot > $lct) {
while($lot > $lct) {
$postdet = $postdet . "</ul>";
$lct++;
}
$nodots = "TRUE";
}

Joined: May 2001
Posts: 58
Member
Member
Offline
Joined: May 2001
Posts: 58
Quote
Originally posted by Sub Zero:

- Will NOT feed private forums
I require my users to login, but i guess that will work?

Another question:

$varspath = "/path/to/noncgi";

Is it an absolute path or relative to webserver root? I´m running on Windows2000-server, could you give an example?

"/inetpub/wwwroot" or "c:inetpub..." or is it a webpath?

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
go into your CP and see what you have entered for your Non CGI Path.

Enter that

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Eric,

1. You'll be able to use this, so long as your news forum is NOT a private forum (yes your board is closed, but a private forum is one that only restricted users such as admin/mod/ones you deem worthly can access).

2. It's a server path not web path. As Ian said, it'll be what's in your board configuration.


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, My UBB Scripts
Sponsored Links
Joined: May 2001
Posts: 58
Member
Member
Offline
Joined: May 2001
Posts: 58
Tried, but running ubbnews.php only displays a blank page.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
in ubbnews.php, try changing

Code
include("$varspath/vars_config.inc.php");
to

Code
include("vars_config.inc.php");

Joined: May 2001
Posts: 58
Member
Member
Offline
Joined: May 2001
Posts: 58
No luck, still blank!

Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
Are you sending proper parameters??

Joined: May 2001
Posts: 58
Member
Member
Offline
Joined: May 2001
Posts: 58
http://mydomain.com/noncgi/ubbnews.php?forum=12
for example

gives me nothing;

Code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

Joined: May 2001
Posts: 58
Member
Member
Offline
Joined: May 2001
Posts: 58
Running Windows 2000.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
odd, I don't think ubbnews is supposed to print any of that, as it's meant to be included in another page.

Have you modified any of the code?

Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
You can call it directly for testing, however it is meant to be used in an include() in a PHP page.

http://thegeeksinc.com/ubbnews.php?forum=34&threads=3

Dumb question - Do you have the PHP Accelerator enabled???

Joined: May 2001
Posts: 58
Member
Member
Offline
Joined: May 2001
Posts: 58
No modification, only tried changing the path you suggested before.

Yes, I have the PHP accelerator enabled, and it is working.

Maybe something with the PHP installation? I´ll have the guy that installed it to have a look at this issue. If you don´t have any other clues?

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
I just don't see any reason why it's printing out the
Code
<html><body></body></html>
and nothing else. I can't find anywhere in the code where it tells it to print that out

Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
Can you post a URL to your ubbnews.php like my one above? Also a URL to your forums would be helpful.

I'm not outputting any DOCTYPE, HEAD, or BODY tags with ubbnews.php because I do an inculde("$siteroot/ubbnews.php?forum=34&threads=2"); in my index.php to get the feed. ($siteroot is a variable from my index.php script I use to define my root directory path)

If I can't see anything wrong with those, I'll either write some diagnostic code or have you send me your configured ubbnews.php and your vars_config.inc.php

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Sub, if you ever want to turn the times into a format that is adjusted via users preference, I wrote this js function that takes the normal 12-31-2004 08:42PM

and turns it into something workable.

Code
<script language="Javascript" type="text/javascript">
<!--
function formatTime(input) {
var tippy = input;
var tippy_array = tippy.split("-");
var month = parseInt(tippy_array[0]) - 1;
var day = parseInt(tippy_array[1]) + 0;

if(tippy_array[2] != null && tippy_array[2] != '') {
var new_array_tippy = tippy_array[2].split(" ");
var year = parseInt(new_array_tippy[0]);

var newer_array_tippy = new_array_tippy[1].split(':');

hour = parseFloat(newer_array_tippy[0]);

if(new_array_tippy[2] == 'PM'){ hour += 12; }
var minutes = parseInt(newer_array_tippy[1]);
document.write('<span class="time">');
document.write(timestamp(new Date(year,month,day,hour,minutes,0), dfrm, null, 0, 0, 0, 0), "at ");
document.write(timestamp(new Date(year,month,day,hour,minutes,0), null, tfrm, 0, 0, 0, 0), '</span>');
}
}
//-->

</script>

Joined: May 2001
Posts: 58
Member
Member
Offline
Joined: May 2001
Posts: 58
Sub Zero: Coming by PM!

Probably something with my php installation, which i didn´t do myself. Will check that too, this week.

Thanks!

Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
Quote
Originally posted by Ian Spence:

I just don't see any reason why it's printing out the
Code
<html><body></body></html>
and nothing else. I can't find anywhere in the code where it tells it to print that out
If there is no query string found, it bugs out and outputs nothing. It seems that IE/Moz like to invent tags when none exist.

I've PM'd Eric with a different (and less cluttered) method of fetching the query string to see if that cures the problem.

Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
Zip file updated to include the following fixes:
- A fix for the quote/code/list problems
- Fix for the IIS Query String bug

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
:hopes for gramelins to be worked out: :hopes hopes hopes: heh...

I have an idea... Possibly have in the code and if/else statement, have it so that if it sees one of the core smilies stored in the noncgi dir it loads that path to it, else if it's not one of those and a path isn't presant it searches in the gramelins dir...


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, My UBB Scripts
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
work at it this way.

IMG tags only allow full urls, and graemlins use relative paths.

Do something like

Code
$message = pregreplace("/src="Graemlins//", "src="$NonCGIURL/Graemlins/", $message);
That's untested, and should only work with custom graemlins. You could also try something like
Code
$message = pregreplace("/src="biggrin.gif/", "src="$NonCGIURL/biggrin.gif", $message);
for each of the built in graemlins.

Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
I ran into a couple of things when looking at the graemlins:

1. the vars_graemlins.cgi looks difficult to parse via PHP
2. I cannot even be sure that I can read vars_graemlins.cgi due to open_basedir restrictions

So how do I determine what is a graemlin, and what is not without knowing what graemlins exist?

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Quote
Originally posted by Sub Zero:

So how do I determine what is a graemlin, and what is not without knowing what graemlins exist?



Originally posted by Ian Spence:
[qb]
work at it this way.

IMG tags only allow full urls, and graemlins use relative paths.

Do something like

Code
$message = pregreplace("/src="Graemlins//", "src="$NonCGIURL/Graemlins/", $message);
That's untested, and should only work with custom graemlins. You could also try something like
Code
$message = pregreplace("/src="biggrin.gif/", "src="$NonCGIURL/biggrin.gif", $message);
for each of the built in graemlins.
[/qb]


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, My UBB Scripts
Joined: Sep 2001
Posts: 61
Member
Member
Offline
Joined: Sep 2001
Posts: 61
ok, I'm trying to put together a page that includes this news feed. For some reason, if I have any includes or scripts (such as content islands) after the one that calls this one, they don't work. If they come before it, they work OK. Any idea why that might be and what I can do about it?

Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
Can you post a Demo URL, and how you are doing the include?

Joined: Sep 2001
Posts: 61
Member
Member
Offline
Joined: Sep 2001
Posts: 61
ok, here's the URL...

http://www.alex.to/experiment/virtual.html

and here's the code:

Code
                       <!--#include virtual="/ubb/ubbnews.php?forum=1&threads=2"-->

<!--#include virtual="/ubb/ubbnews.php?forum=6&threads=3-->

<!--#include virtual="/ubb/ContentIslands/1/html.html" -->

<script src="http://www.alex.to/ubb/ContentIslands/1/html.js"
language="Javascript1.3" type="text/javascript"></script>
see what I mean? Nothing below the ubbnews lines shows up.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
it's a PHP include, I don't think a virtual include will work... although I can't read anything on that page anyway

Joined: Sep 2001
Posts: 61
Member
Member
Offline
Joined: Sep 2001
Posts: 61
thanks, that was what I needed to figure it out!

Joined: Sep 2001
Posts: 61
Member
Member
Offline
Joined: Sep 2001
Posts: 61
ok, I got it to do what I wanted it to laugh

http://www.alex.to/doomlink

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Not half bad 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, My UBB Scripts
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
looks absolutely nothing like eve, not at all wink

Joined: Sep 2001
Posts: 61
Member
Member
Offline
Joined: Sep 2001
Posts: 61
thank you... i think... what is eve???

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Been to infopop.com lately? 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, My UBB Scripts
Joined: Sep 2001
Posts: 61
Member
Member
Offline
Joined: Sep 2001
Posts: 61
no, I guess I hadn't eek Well any resemblance is purely coincidental, I was actually more inspired by this site. laugh

Page 3 of 5 1 2 3 4 5

Link Copied to Clipboard
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
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)