php forum
php mysql forum
php mysql smarty
 
Page 5 of 9 < 1 2 3 4 5 6 7 8 9 >
Topic Options
#199681 - 11/25/03 06:40 AM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
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 - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#199682 - 03/02/04 09:36 PM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
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 - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#199683 - 03/02/04 10:28 PM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Ron M Offline
Admin Emeritus
Developer

Registered: 11/29/01
Posts: 789
Loc: Des Moines, IA
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.
_________________________
http://thegeeksinc.com
[img]http://www.ubbdev.com/ud/?u=Sub_Zero&s=1[/img] points generated

Top
#199684 - 03/02/04 10:58 PM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
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 - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#199685 - 03/02/04 11:20 PM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Ron M Offline
Admin Emeritus
Developer

Registered: 11/29/01
Posts: 789
Loc: Des Moines, IA
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.
_________________________
http://thegeeksinc.com
[img]http://www.ubbdev.com/ud/?u=Sub_Zero&s=1[/img] points generated

Top
#199686 - 03/02/04 11:29 PM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
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 - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#199687 - 03/02/04 11:37 PM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Ron M Offline
Admin Emeritus
Developer

Registered: 11/29/01
Posts: 789
Loc: Des Moines, IA
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";
     }
_________________________
http://thegeeksinc.com
[img]http://www.ubbdev.com/ud/?u=Sub_Zero&s=1[/img] points generated

Top
#199688 - 03/07/04 10:37 AM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Eric Flyxe Offline
Member

Registered: 05/03/01
Posts: 57
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?

Top
#199689 - 03/07/04 10:41 AM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
go into your CP and see what you have entered for your Non CGI Path.

Enter that
_________________________
Code monkey like Fritos

Top
#199690 - 03/07/04 08:03 PM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
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 - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#199691 - 03/17/04 12:29 PM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Eric Flyxe Offline
Member

Registered: 05/03/01
Posts: 57
Tried, but running ubbnews.php only displays a blank page.

Top
#199692 - 03/17/04 12:39 PM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
in ubbnews.php, try changing

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

Code:
include("vars_config.inc.php");
_________________________
Code monkey like Fritos

Top
#199693 - 03/17/04 01:25 PM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Eric Flyxe Offline
Member

Registered: 05/03/01
Posts: 57
No luck, still blank!

Top
#199694 - 03/17/04 10:49 PM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Ron M Offline
Admin Emeritus
Developer

Registered: 11/29/01
Posts: 789
Loc: Des Moines, IA
Are you sending proper parameters??
_________________________
http://thegeeksinc.com
[img]http://www.ubbdev.com/ud/?u=Sub_Zero&s=1[/img] points generated

Top
#199695 - 03/18/04 02:39 AM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Eric Flyxe Offline
Member

Registered: 05/03/01
Posts: 57
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>  

Top
#199696 - 03/18/04 02:41 AM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Eric Flyxe Offline
Member

Registered: 05/03/01
Posts: 57
Running Windows 2000.

Top
#199697 - 03/18/04 10:07 AM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
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?
_________________________
Code monkey like Fritos

Top
#199698 - 03/18/04 10:37 AM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Ron M Offline
Admin Emeritus
Developer

Registered: 11/29/01
Posts: 789
Loc: Des Moines, IA
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???
_________________________
http://thegeeksinc.com
[img]http://www.ubbdev.com/ud/?u=Sub_Zero&s=1[/img] points generated

Top
#199699 - 03/18/04 10:55 AM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Eric Flyxe Offline
Member

Registered: 05/03/01
Posts: 57
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?

Top
#199700 - 03/18/04 02:08 PM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
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
_________________________
Code monkey like Fritos

Top
Page 5 of 9 < 1 2 3 4 5 6 7 8 9 >


Moderator:  Charles, Gizmo 
Who's Online
0 registered (), 32 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
How to hide sub forums from summary page
by blaaskaak
Today at 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks