[Code]Latest Post HTML Code
3 posters
Page 1 of 1
[Code]Latest Post HTML Code
Is there a way to get the latest posts or topics using only pure HTML code?
I'm making a html homepage and I need those.
I'm making a html homepage and I need those.
cHaSwWind04- Forumember
- Posts : 192
Reputation : 1
Language : English
Location : In front of a monitor... Duh!
Re: [Code]Latest Post HTML Code
Hi,
We cannot give such code out since we cannot access it. This widget has been created I believe inside the database or ACP. Not very sure.
We cannot give such code out since we cannot access it. This widget has been created I believe inside the database or ACP. Not very sure.
Re: [Code]Latest Post HTML Code
It is created using PHP, you can access the latest post with https://help.forumotion.com/t123820-topic-title-here?view=newest
Re: [Code]Latest Post HTML Code
So... how do I put into codes for that? I'm just learning HTML
cHaSwWind04- Forumember
- Posts : 192
Reputation : 1
Language : English
Location : In front of a monitor... Duh!
Re: [Code]Latest Post HTML Code
Ah, you're trying to do it like forumotion does?
Sorry, that's not possible with pure HTML; forumotion uses - like basically every software does - PHP to grab the latest topics you haven't read.
Sorry, that's not possible with pure HTML; forumotion uses - like basically every software does - PHP to grab the latest topics you haven't read.
Re: [Code]Latest Post HTML Code
Could you help me about that code... I like to see it..
cHaSwWind04- Forumember
- Posts : 192
Reputation : 1
Language : English
Location : In front of a monitor... Duh!
Re: [Code]Latest Post HTML Code
Well, this is basic SQL and PHP...
That's just a draft and doesn't work if you extensive knowledge about the database forumotion uses.
- Code:
<?php
# code excluded here
while($member->logged_off){ // assume $member is an object including all personal data
$mysqli = new mysqli('database_address','admin','admin_password','log_status');
if(!$mysqli) { // check if connection exists, if not, throw an error
die("A database connection could not be established.");
}
else {
$mysqli->query("UPDATE `offline_members` WITH '".$member."'"); // update table
}
if($member->logged_on){ // check if member is online now
$member->logged_off = false; // terminate loop
}
}
if($_SERVER['PHP_SELF'] == "http://forumaddress.forum/search" && $_GET['search_id'] == "newposts"){
echo $postlist->newposts; // assume we have defined postlist as object
// and newposts check the update query we did a while ago
}
?>
That's just a draft and doesn't work if you extensive knowledge about the database forumotion uses.
Similar topics
» Latest Topic HTML Code
» i need code for latest post
» Need javascript code for latest post
» Help! Script/code to show the latest post above name & date
» How to add a html code in first post only
» i need code for latest post
» Need javascript code for latest post
» Help! Script/code to show the latest post above name & date
» How to add a html code in first post only
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum