php forum
php mysql forum
php mysql smarty
 
Topic Options
#107539 - 10/26/00 11:52 AM Active.cgi (latest threads) HTML formatting for SSI
CTH Offline
Member

Registered: 09/13/00
Posts: 509
Loc: England

   Active.cgi (latest threads) HTML formatting for SSI to Del.icio.us Add to del.icio.us
  Digg Active.cgi (latest threads) HTML formatting for SSI Digg it
Hey,

I'm using Active Threads to pull the latest topics on to my front page.

Problem is though is that the way Active.cgi is written it formats the results in the most ugly way.

When I try to edit the HTML no matter what I seem to do the script always goes kaput and stops working completely.

So I was hoping someone might be able to help me out.

I believe this code is responsible for the SSI formatting ....

$PAGE .= qq(
<div align="left">
<li><FONT SIZE="1" FACE="$FontFace">
<b><a href="$NonCGIURL/Forum$threaddata[4]/HTML/$threaddata[2].html">$threadheader[8]</a></b></FONT>

<FONT SIZE="1" FACE="Times New Roman">Last Updated on $TheDate at $TheTime);</div>
}

}

}

I want to get rid of the <li> and I want to center the results consecutively down the page. Giving the fonts different colors.

Simply removing the <li> tag seemed to just crash the script for starters !!!

Can anyone please help me ????

I've been off and on at this for a month now lol

TotalNewbie

Top
#107540 - 10/26/00 10:39 PM Re: Active.cgi (latest threads) HTML formatting for SSI
empire Offline
Member

Registered: 08/17/00
Posts: 795
Loc: U S of A
hmmmmmmmmmmmmmmmmmmmm.
thats not all the code for it.
Look in the page where its embedded. there should be a "<ul>" and "</ul>" tag. get rid of them.

in the code you posted:
get rid of the "<li>" tag.
then find "<div align="left">", delete it.
find "</div>" and delete it.

what you do to format it from there is up to you. I would reccommend a table, of course. But I can't tell you exactly how to do that since I don't have all the code.

okely dokely.

------------------
-david
<FONT size="1">Choose your future.
www.antipopculture.org </FONT s>

Top
#107541 - 11/04/00 03:15 AM Re: Active.cgi (latest threads) HTML formatting for SSI
CTH Offline
Member

Registered: 09/13/00
Posts: 509
Loc: England
Empire,

This is how it outputs on my main page ...


<div align="left">
<li><FONT SIZE="1" FACE="Verdana, Arial">
<b><a href="http://www.url to post">Why Did The Chicken Cross The Road? (Last One For Tonight)!</a></b></FONT>

<FONT SIZE="1" FACE="Times New Roman">Last Updated on 04 November 2000 at 04:03 AM
<div align="left">
<li><FONT SIZE="1" FACE="Verdana, Arial">
<b><a href="http://www.url to post">Nice site MiShY</a></b></FONT>

<FONT SIZE="1" FACE="Times New Roman">Last Updated on 04 November 2000 at 04:00 AM
<div align="left">
<li><FONT SIZE="1" FACE="Verdana, Arial">
<b><a href="http://www.url to post">lets start our own story</a></b></FONT>

<FONT SIZE="1" FACE="Times New Roman">Last Updated on 04 November 2000 at 02:45 AM
<div align="left">
<li><FONT SIZE="1" FACE="Verdana, Arial">
<b><a href="http://www.url to post">Disappearing C-ROM</a></b></FONT>

<FONT SIZE="1" FACE="Times New Roman">Last Updated on 04 November 2000 at 12:46 AM
<div align="left">
<li><FONT SIZE="1" FACE="Verdana, Arial">
<b><a href="http://www.url to post">To All New Members and Visitors</a></b></FONT>

<FONT SIZE="1" FACE="Times New Roman">Last Updated on 04 November 2000 at 12:35 AM
<div align="left">
<li><FONT SIZE="1" FACE="Verdana, Arial">
<b><a href="http://www.url to post">How to know a graphic size........</a></b></FONT>

<FONT SIZE="1" FACE="Times New Roman">Last Updated on 04 November 2000 at 12:29 AM
<div align="left">
<li><FONT SIZE="1" FACE="Verdana, Arial">
<b><a href="http://www.url to post">Any news on......</a></b></FONT>

<FONT SIZE="1" FACE="Times New Roman">Last Updated on 04 November 2000 at 12:29 AM</ul>


and it looks terrible. If I even try putting it in a table the script gives me an SSI error.

I believe the code I posted above truely is all that is responsible for SSI output.

I mean that is a standard active.cgi (its one of the mods in the database if ya wanna take a look) and it doesn't even close any of its HTML tags !!!!

Can ya help mate ????

Thanks,

TotalNewbie

<FONT COLOR="#6699cc" SIZE="1" FACE="Verdana, Arial">This message has been edited by TotalNewbie on November 04, 2000 at 03:17 AM</font>

Top
#107542 - 11/04/00 10:58 PM Re: Active.cgi (latest threads) HTML formatting for SSI
CTH Offline
Member

Registered: 09/13/00
Posts: 509
Loc: England
~bump~


Top
#107543 - 02/26/01 01:04 AM Re: Active.cgi (latest threads) HTML formatting for SSI
NSX Offline
Junior Member

Registered: 01/29/01
Posts: 17
I want to add the results from Active or Resent topics to the front page of my web site, but I can not use SSI. Is there a way to use a Java script to pull the active HTML into a frame on a page?
In other words, I want a small framed area, about 200x200 that would display the first 5 or 6 latest topics hyper links.

My email is nsxsc@nsxsc.com

Thanks

Top
#107544 - 02/26/01 07:53 PM Re: Active.cgi (latest threads) HTML formatting for SSI
NSX Offline
Junior Member

Registered: 01/29/01
Posts: 17
I have created a non-SSI News fader type of hack. It can be used on any html page, even your index page.

Get the hack here:
non-SSI News Fader 1.0

Top


Who's Online
0 Registered (), 31 Guests and 10 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