php forum
php mysql forum
php mysql smarty
 
Page 6 of 9 < 1 2 3 4 5 6 7 8 9 >
Topic Options
#199701 - 03/18/04 02:12 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

   Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed to Del.icio.us Add to del.icio.us
  Digg Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed Digg it
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
_________________________
http://thegeeksinc.com
[img]http://www.ubbdev.com/ud/?u=Sub_Zero&s=1[/img] points generated

Top
#199702 - 03/21/04 05:49 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
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>
_________________________
Code monkey like Fritos

Top
#199703 - 03/22/04 03:44 AM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Eric Flyxe Offline
Member

Registered: 05/03/01
Posts: 57
Sub Zero: Coming by PM!

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

Thanks!

Top
#199704 - 03/22/04 10:27 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
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.
_________________________
http://thegeeksinc.com
[img]http://www.ubbdev.com/ud/?u=Sub_Zero&s=1[/img] points generated

Top
#199705 - 03/22/04 01:57 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
Zip file updated to include the following fixes:
- A fix for the quote/code/list problems
- Fix for the IIS Query String bug
_________________________
http://thegeeksinc.com
[img]http://www.ubbdev.com/ud/?u=Sub_Zero&s=1[/img] points generated

Top
#199706 - 03/22/04 02:47 PM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Gizmo Administrator Online   shocked
Wizard

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

Top
#199707 - 03/22/04 03:34 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
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.
_________________________
Code monkey like Fritos

Top
#199708 - 03/22/04 03:53 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 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?
_________________________
http://thegeeksinc.com
[img]http://www.ubbdev.com/ud/?u=Sub_Zero&s=1[/img] points generated

Top
#199709 - 03/22/04 04:12 PM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5122
Loc: Portland, OR, USA
Quote:
Originally posted by Sub Zero:</font><hr />
So how do I determine what is a graemlin, and what is not without knowing what graemlins exist?
<hr /></blockquote>

<blockquote><font class="small">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 - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#199710 - 07/05/04 04:10 PM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
DocDoom Offline
Member

Registered: 09/09/01
Posts: 64
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?
_________________________
my board :^)

Top
#199711 - 07/05/04 04:56 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
Can you post a Demo URL, and how you are doing the include?
_________________________
http://thegeeksinc.com
[img]http://www.ubbdev.com/ud/?u=Sub_Zero&s=1[/img] points generated

Top
#199712 - 07/10/04 05:31 PM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
DocDoom Offline
Member

Registered: 09/09/01
Posts: 64
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.
_________________________
my board :^)

Top
#199713 - 07/10/04 06:01 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
it's a PHP include, I don't think a virtual include will work... although I can't read anything on that page anyway
_________________________
Code monkey like Fritos

Top
#199714 - 07/10/04 06:18 PM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
DocDoom Offline
Member

Registered: 09/09/01
Posts: 64
thanks, that was what I needed to figure it out!
_________________________
my board :^)

Top
#199715 - 07/10/04 08:20 PM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
DocDoom Offline
Member

Registered: 09/09/01
Posts: 64
ok, I got it to do what I wanted it to laugh

http://www.alex.to/doomlink
_________________________
my board :^)

Top
#199716 - 07/11/04 02:47 AM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5122
Loc: Portland, OR, USA
Not half bad wink
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#199717 - 07/11/04 09:28 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
looks absolutely nothing like eve, not at all wink
_________________________
Code monkey like Fritos

Top
#199718 - 07/11/04 10:21 AM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
DocDoom Offline
Member

Registered: 09/09/01
Posts: 64
thank you... i think... what is eve???
_________________________
my board :^)

Top
#199719 - 07/11/04 10:30 AM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5122
Loc: Portland, OR, USA
Been to infopop.com lately? lol...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#199720 - 07/11/04 11:52 AM Re: [6.4 - 6.5 - 6.6 - 6.7] [beta] UBBNews PHP Feed
DocDoom Offline
Member

Registered: 09/09/01
Posts: 64
no, I guess I hadn't eek Well any resemblance is purely coincidental, I was actually more inspired by this site. laugh
_________________________
my board :^)

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


Moderator:  Charles, Gizmo 
Who's Online
0 Registered (), 39 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by Ian_W
Yesterday at 03:47 PM
What do you use to edit the files
by Ian_W
Yesterday at 03:33 PM
BeyondCompare v3.00
by Ian_W
Yesterday at 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
Yesterday at 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3] Language file checker
by blaaskaak
09/09/08 12:56 AM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
ghengis317, NitroX, Dogan, EliYah-, W-D
13344 Registered Users
Top Posters Last 30 Days
AllenAyres 16
blaaskaak 13
FREAK1 7
Mike L_dup1 4
Chris Bale 4
Ian_W 4
tackaberry 3

 

 

 
fusionbb message board php hacks