Notice: Tinychanners, welcome to dev.bbs. Official home of open-source ATBBS devlopment.

dev.bbs

Topic: Latest topics: (No topics to show.)

AVUC started this discussion 9.5 years ago #25     

I think I'm missing something, how do I make sure the topics show up on the front page?

My apologies if it has already been asked.
Advertisement: OverTalk - A nice directory of sites running ATBBS.

Anonymous B joined in and replied with this 9.5 years ago, 4 hours later#112     

I wish to know this as well.

Whoreos joined in and replied with this 9.5 years ago, 2 hours later, 6 hours after the original post#113     

I order for topics to be shown, the user needs to generate the cookie for their uid. Normally, the cookie is supposed to be generated when they first visit the site, however, for whatever reason, this version doesn't generate the cookie until settings are updated. After that, the topics will become visible. The other option is to point the home page towards 'Hot Topics' as those function properly.

AVUC (OP) replied with this 9.5 years ago, 7 hours later, 13 hours after the original post#114     

@previous
Alright, thanks for the explaining. Is there any way to fix this, or does the beta version fixes this?

(Edited 11 seconds later.)

Whoreos replied with this 9.5 years ago, 5 hours later, 19 hours after the original post#115     

@previous
the current beta version still has this issue. Hopefully 1.6 stable will have it fixed, but as of right now, I still don't know where exactly the problem is, just what it is.

AVUC (OP) replied with this 9.5 years ago, 1 day later, 1 day after the original post#116     

Alright, I've made a very crude fix, you can download it @

http://www.avuc.nl/atbbs15_tempfix.7z [P]

How it works, normally a user would go to their dashboard and save settings, now this is done automatically and the user then gets send back to the main page. It's only intented as a temporary fix.

Whoreos replied with this 9.5 years ago, 3 days later, 5 days after the original post#117     

@previous
I apologize for not having regular links right now, I'm trying to work out the issue in the markup parser. When I try to re-add url linkification, it messes up the other markup options.

alright, so the fix for this is as follows:
in index.php find
if($topics_mode)
{
update_activity('latest_topics');
$page_title = 'Latest topics';
$last_seen = $_COOKIE['last_topic'];
insert
if (!isset($_COOKIE['UID']))
{
header("location: dashboard.php?form_sent=Save+settings&firstlogin=1");
}
else
{}
right before update_activity

then, in dashboard.php find
$_SESSION['notice'] = 'Settings updated.';
}

print_errors();
?>
insert
//Quick solution to have topic bumps on first page for first visit
switch($_REQUEST['firstlogin'])
{
case 0; //Do nothing
break;
case 1;
header("location: ".DOMAIN."");
break;
}
right after the $_SESSION['notice'] line and before the ''}
There should be two curly brackets between break;'' and ''print_errors();

(Edited 1 hour later.)

AVUC (OP) replied with this 9.5 years ago, 1 day later, 6 days after the original post#118     

@previous
That's the fix, please note that when using that the user won't get to see the welcome message (e.g. Welcome to X, please don't leave without setting password).

(Edited 23 seconds later.)

Whoreos replied with this 9.5 years ago, 6 hours later, 1 week after the original post#119     

@previous
Actually, when I tested it on my site, it displayed the welcome message as well as the topics on the home page. There's something funny about notices that causes them to display on the next fully loaded page. Like if you hit post, but for some reason the redirect doesn't go through and you hit back, you'll be taken back to the (blanked) new reply page, but it'll display the "reply posted" notice.

As I understand, this basically forces the browser to update the dashboard before it loads the target page if there's no ID cookie?

By the way, do you have a name or website I can credit you with?

(Edited 1 minute later.)

AVUC (OP) replied with this 9.5 years ago, 2 days later, 1 week after the original post#120     

@previous
> As I understand, this basically forces the browser to update the dashboard before it loads the target page if there's no ID cookie?
Yep. This somehow works like you said, only now it's done automatically.

> By the way, do you have a name or website I can credit you with?
www.avuc.nl is my site if you wish to add it, it also contains a link to the ATBBS forum. Don't really have a name though.

sim joined in and replied with this 9.5 years ago, 1 hour later, 1 week after the original post#121     

NOG MEER NEDERLANDERS?

Whoreos replied with this 9.5 years ago, 4 hours later, 1 week after the original post#122     

@120
Shall I call you AVUC?

AVUC (OP) replied with this 9.5 years ago, 1 hour later, 1 week after the original post#123     

@previous
> Shall I call you AVUC?
Yeah.

@121
Jawel.

Whoreos replied with this 9.5 years ago, 11 hours later, 1 week after the original post#124     

@previous
Also, would you like to have that name registered on here?

AVUC (OP) replied with this 9.5 years ago, 18 hours later, 1 week after the original post#125     

@previous
Yes, if possible.

Whoreos replied with this 9.5 years ago, 57 minutes later, 1 week after the original post#126     

Done!

Anonymous E joined in and replied with this 9.4 years ago, 1 week later, 3 weeks after the original post#139     

Or you just do the following in index.php

replace

$items_per_page = $_COOKIE['items_per_page'];

with

$items_per_page = isset($_COOKIE['items_per_page']) ? $_COOKIE['items_per_page'] : 100;


~r04r (Love me later)

AVUC (OP) replied with this 9.4 years ago, 1 week later, 1 month after the original post#147     

Quote and citing, from my site (http://www.avuc.nl/static/projects.html [P]).

> Quoting and citing other posts is also possible, go to lines 727 and 760 and simply remove 'else' in post.php.

(Edited 43 seconds later.)

Whoreos replied with this 9.3 years ago, 1 week later, 1 month after the original post#148     

@previous
testing...

Whoreos double-posted this 9.3 years ago, 24 seconds later, 1 month after the original post#149     

@previous
> testing...
success!

Anonymous F joined in and replied with this 3.5 years ago, 5.9 years later, 6 years after the original post#246     

testes

This page took 0.006 seconds to be generated.
[ ATBBS 1.5c ]

In order to conserve space and bandwidth, this site uses arithmetic coding for full-size jpeg images. If your browser does not support arithmetic coding, please report it as a bug to the browser's developer.