|
Joined: Jan 2000
Posts: 254 Likes: 4
Beta Tester
|
Beta Tester
Joined: Jan 2000
Posts: 254 Likes: 4 |
I have looked at the Ubbnews Hack topic What I can't seem to figure out is how do I add tabletags to the script to have each topic in a seperate table. I think I am using the wrong tag format for a php script which I have never used before. Can someone provide a simple edit to this hack so I can see how it is done?
There is no such thing as stupid questions. Just stupid answers.
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
It's actually quite easy, you just have to keep some things in mind. Instead of You need to have it as: Beginning of each line has to be: End of each line: Example from UGN Security echo "<a name="$topicnum"></a>"; echo "<table border="0" cellpadding="0" cellspacing="0" width="95%" class="content">"; echo "<tr>"; echo "<td width="50%" colspan="2"><b>$title</b></td>"; echo "<td width="50%" colspan="2">"; $morepath = $CGIURL . "/ultimatebb.cgi?ubb=get_topic;f=" . $forum . ";t=" . $topicnum; echo "<p align="right"><b><a href="$morepath">Read More...</a></b></td>"; echo "</tr>"; echo "<tr>"; echo "<td width="100%" class="spacer" colspan="4"><hr></td>"; echo "</tr>"; echo "<tr>"; echo "<td width="100%" colspan="4">"; print($postdet); echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td width="100%" class="spacer" colspan="4"><hr></td>"; echo "</tr>"; echo "<tr>"; echo "<td width="33%">Posted by "; print("<a href="$authorurl">$author</a> at $postdate $posttime"); echo "</td>"; echo "<td width="33%" colspan="2">"; echo "<p align="center"><a href="http://www.undergroundnews.com/#top">Return to Top</a></td>"; echo "<td width="33%">"; $commentpath = $CGIURL . "/ultimatebb.cgi?ubb=reply;f=" . $forum . ";t=" . $topicnum; echo "<p align="right"><a href="$commentpath">Comments ($comment_count)</a></td>"; echo "</tr>"; echo "</table>
"; If you include breaks in your table code you'll want to remove them from the line: Any questions just post 'em.
|
|
|
|
Joined: Jan 2000
Posts: 254 Likes: 4
Beta Tester
|
Beta Tester
Joined: Jan 2000
Posts: 254 Likes: 4 |
The sample and explanation makes it look very clear on what I was doing wrong. Thank you.
There is no such thing as stupid questions. Just stupid answers.
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
You're quite welcome, its quite basic so long as you understand html heh...
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
Oh btw, in my code, I have a bookmark for each post using the topic # (the first line of code) so i could have a link in the document to it if i needed to (my sites the best example for this).
|
|
|
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.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|