Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#27 Re: General support (1.4) » How can I add custom meta tags? » 2012-01-16 22:20:24

Franz

Glad it worked.

And good night from Potsdam. (It's cool to see quite a few Germans joining recently.) smile

#28 Re: General support (1.4) » How can I add custom meta tags? » 2012-01-16 21:49:46

Franz

You can add stuff like that in include/template/main.tpl and, depending on the styles you use, possibly in style/<stylename>/main.tpl.

That should do the trick. smile

#29 Re: General support (1.4) » Showing logged in user status on the Wordpress site. » 2012-01-16 16:56:49

Franz

Ah, okay. In that case replace that line with these ones:

               <li class="sub-rss"> <a href="http://eepurl.com/ihEvc" target="_blank">Subscribe to Monthly Newsletter</a></li>

<?php
if (!defined('PUN_ROOT'))
{
    define('PUN_ROOT', dirname(__FILE__).'/forum/');
    include PUN_ROOT.'include/common.php';
}

if ($pun_user['is_guest'])
{
    // Display login link
?>
You are not logged in. <a href="<?php echo PUN_ROOT ?>register.php">Register now</a>.
<?php
}
else
{
    // Link to user profile
?>
You are logged in as <a href="<?php echo PUN_ROOT ?>profile.php?id=<?php echo $pun_user['id'] ?>"><?php echo pun_htmlspecialchars($pun_user['username']) ?></a>
<?php
}
?>

That should work now.

#30 Re: General support (1.4) » Showing logged in user status on the Wordpress site. » 2012-01-16 16:40:39

Franz

Can you post the entire template where you pasted that code?

Also, is there any line and/or file information along with the error?

#31 Re: General support (1.4) » Showing logged in user status on the Wordpress site. » 2012-01-16 16:04:30

Franz

Ok, I edited above code so that it should work.

You have to put that code at the appropriate place in your header template in WordPress.

#32 Re: General support (1.4) » Showing logged in user status on the Wordpress site. » 2012-01-16 15:40:58

Franz

It depends a little on where you want to put it. But you can try adding this code in your WordPress template:

if (!defined('PUN_ROOT'))
{
    define('PUN_ROOT', dirname(__FILE__).'/forum/');
    include PUN_ROOT.'include/common.php';
}

if ($pun_user['is_guest'])
{
    // Display login link
?>
You are not logged in. <a href="<?php echo PUN_ROOT ?>register.php">Register now</a>.
<?php
}
else
{
    // Link to user profile
?>
You are logged in as <a href="<?php echo PUN_ROOT ?>profile.php?id=<?php echo $pun_user['id'] ?>"><?php echo pun_htmlspecialchars($pun_user['username']) ?></a>
<?php
}

Don't forget that you might have to change the path in PUN_ROOT.

EDIT: Complete code

#33 Re: General support (1.4) » Need help urgently! (Resetting password on 1.4) » 2012-01-16 15:36:23

Franz

Sorry for taking so long, but where exactly did you comment that code?

EDIT: Also, are you sure we're talking about FluxBB here? I've never seen something like this in FluxBB's code:

// End if

Any chance you downloaded EveBB?

#34 Re: General discussion » Strange error messages for local site setup » 2012-01-12 21:44:33

Franz

Where (which file) are those errors happening?

#35 Re: Programming » login using fluxbb in my site » 2012-01-11 22:08:38

Franz

That's because you don't seem to have this line after the "define('PUN_ROOT..." line:

include PUN_ROOT.'include/common.php';

#36 Core development » 2.0: Revisiting sanitized table & column names » 2012-01-10 21:52:16

Franz
Replies: 0

As a follow-up to this topic...

The way I see it now is I would love this to work properly.

As I see it, we have a few ways to achieve it:

  • Do some kind of ugly hack for avoiding problems with aliases ("table AS t") and aggregrate functions ("SUM(t.foo)"). Probably not gonna happen.

  • Forget about aliases and either use complete table names or add aliases automatically.

  • That last one would probably go well together with some kind of two-level array definition for columns to fetch. For example, have an array with table names as keys, where the elements themselves are arrays again, holding the columns to be fetched from that table.

Any ideas? Input? I'm pretty sure I'm missing some things here... smile
We also have to remember that database prefixes might have to be added to table names.

#37 Re: General support (1.4) » CSS hidden #brd-title and #brd-desc » 2012-01-10 21:34:14

Franz

Actually, you can simply remove the divs in include/template/main.tpl (and admin.tpl) and style/*/main.tpl (etc., if they exist).

#38 Re: Programming » login using fluxbb in my site » 2012-01-10 21:29:09

Franz

Would you mind posting the appropriate code in index.php (xyz/index.php, right?)?
And what is the full error message?

#39 Re: FluxBB discussion » Include index.php (forum) » 2012-01-10 21:28:04

Franz

Which FluxBB file are you including?

#40 Re: Modifications (1.4) » FluxBB Patcher 2.0-alpha » 2012-01-10 16:47:16

Franz

It's probably missing a Polish language file - that's what it looks like.

#41 Re: Modifications (1.4) » Air Style Design Fixed » 2012-01-10 13:03:03

Franz

Yeah, that was my guess, too.

#42 Re: Modifications (1.4) » Air Style Design Fixed » 2012-01-10 10:43:48

Franz

What exactly did you "fix"?

#43 Re: Programming » login using fluxbb in my site » 2012-01-09 16:39:54

Franz

I suppose it is because this condition is true:

if(mysql_num_rows($res) == 0)

I suggest you do this:

if(mysql_num_rows($res) == 0){
    session_destroy();					
}else {
    $row = mysql_fetch_assoc($res);
} // this is new

/*
 * do the output here...
 */

Also, please use code tags for PHP code.

#44 Re: Programming » login using fluxbb in my site » 2012-01-09 15:31:44

Franz

You either need to strip the exclamation mark ("!") or do it exactly the other way around.
But other than that, that is the idea, yes.

#45 Re: Modifications (1.4) » Why did no one tell me about this earlier ?? (install_mod format) » 2012-01-09 15:21:33

Franz
jejeje wrote:

Edit: you can even witness the lack of support on mods (from the devs) as they dont want to add to fluxbb software out of box some mods (for example : "like mod", "captcha mod", "pm mod", "last posts" and many more..) and i still dont understand why they dont add them as default and you can on installation turn them on or off as you prefer, thats the only downside of fluxbb on my point of view.

The whole point of FluxBB in return is that they are not that many features, especially non-essential ones like private messages, liking things etc.

Just bear with us and look forward to extensions, I guess. smile

Also, I believe - especially due to the lack of time for mods on our side - mod documentation should be done by those who write many mods.
It's a wiki for a reason. And a community.

#46 Re: Programming » login using fluxbb in my site » 2012-01-09 15:18:59

Franz

Ah, I guess my above code was a little stupid. Try this:

define('PUN_ROOT', dirname(__FILE__).'/forum/');

#47 Re: General support (1.4) » Need to find out the login cookie names.. » 2012-01-09 15:09:15

Franz

Did you check FluxBB's login.php? You can probably pretty much copy all the code from there.

#48 Re: Programming » login using fluxbb in my site » 2012-01-09 15:08:16

Franz

@nordlinder:
Where is your global.php or whatever the name of the file is where you put that code?

And where is the forum?

#49 FluxBB discussion » Small site (menu) makeover » 2012-01-08 23:27:41

Franz
Replies: 0

As you guys might have noticed, I've redone the sidebar menus on this site.

An example: http://fluxbb.org/development/core/timeline.html

The idea was to make the sidebar menus smaller (thus, more of their content visible) and more compact. Also, we now have 60px more space for the actual site content - giving us more breathing room for filled pages like in the example.

How do you like it? Any feedback?

#50 Re: General support (1.4) » need help » 2012-01-08 23:09:19

Franz

So you want to use FluxBB's user authentication stuff with the rest of your site, right?

Is your site built with PHP, too? Or is it just a collection of static HTML pages. If it is the first, do you have some script that is included by every page?

Board footer

Powered by FluxBB 1.4.8