Previous Thread
Next Thread
Print Thread
Rate Thread
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.
Sponsored Links
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
Code
<font color="#FFFFFF">
You need to have it as:
Code
<font color="#FFFFFF">
Beginning of each line has to be:
Code
echo "
End of each line:
Code
";
Example from UGN Security
Code
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:
Code
        echo "

";
Any questions just post 'em.


UBBDev - 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 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...


UBBDev - 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 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).


UBBDev - 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

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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,823
Most Online6,139
Sep 21st, 2024
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,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)