Advice on site

Found a bug? Miss something? Want to leave a comment about this site?
Then this is the forum to post in.
Forum rules
No phpBB Support in this Forum! If you want support for your forum, go here.
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: Advice on site

Post by igorw »

Let me explain. $phpbb_root_path is the relative path to your phpBB installation. One dot means the current directory, two dots means the parent directory. It always needs a slash at the end.

So if your board is in /board/ (like we have here), and the file you want to use is in / (the webroot), your $phpbb_root_path has to be: ./board/ .

If your file is in /board/fun/, $phpbb_root_path would have to be: ./../ .

If your file is in /board/fun/games/, $phpbb_root_path has to be: ./../../ .

I hope you get it. :)
User avatar
Crispy
New member
New member
Posts: 43
Joined: 10 Aug 2008, 12:57
Real name: Clive
Contact:

Re: Advice on site

Post by Crispy »

Ahh thats helped me out. Cheers. I was editing part of the file which used php_root, when i hadn't defined it right.

Code: Select all

$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './community/';


Now it works perfect :D

I'm almost done now, i juse need to put my website navigation at the top of the forum, and remove the default phpbb header arrangement. Is this all in overall_header.html?
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: Advice on site

Post by igorw »

Yes. :)
User avatar
Crispy
New member
New member
Posts: 43
Joined: 10 Aug 2008, 12:57
Real name: Clive
Contact:

Re: Advice on site

Post by Crispy »

Righto, i reckon i should be able to work this out hehe. Fingers crossed.

THinking about it, do i put the html for the navigation in the overall_head.html, and the uniqu CSS for it in the common.css file?
-----
I happen to notice you have a feed on your home page, feeeding topic titles to your homepage. Was this coded by yourself, or was it a mod to export to rss? :?

thanks again :P :roll:
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: Advice on site

Post by igorw »

The class used to create RSS feeds is custom-coded. It uses phpBB's template system. :)
User avatar
Crispy
New member
New member
Posts: 43
Joined: 10 Aug 2008, 12:57
Real name: Clive
Contact:

Re: Advice on site

Post by Crispy »

Thats very clever :P I'm guessing there are no plans for a public realease hehe.

Could you answer my other question, about the html/css of the header please, then i know if i understand it right. :
"do i put the html for the navigation in the overall_head.html, and the uniqu CSS for it in the common.css file?"
User avatar
Semi_Deus
Past Contributor
Past Contributor
Posts: 405
Joined: 28 Sep 2007, 23:52
Location: the Netherlands
Contact:

Re: Advice on site

Post by Semi_Deus »

Crispy wrote:Thats very clever :P I'm guessing there are no plans for a public realease hehe.

Could you answer my other question, about the html/css of the header please, then i know if i understand it right. :
"do i put the html for the navigation in the overall_head.html, and the uniqu CSS for it in the common.css file?"
Yes :)
This is what our menu looks like in overall_header.html:

Code: Select all

<ul class="bevelmenu">
        <li><a href="/">Home</a></li>
        <li class="active"><a href="./index.php">Board</a></li>
        <li><a href="/articles/">Articles</a></li>
        <li><a href="/blog/">Blog</a></li>

        <li><a href="/tools/">Tools</a></li>
        <li><a href="/rules/">Rules</a></li>
        <li><a href="/about/">About</a></li>
        <li><a href="/contact/">Contact</a></li>
        <li><a href="./ucp.php?mode=logout">Logout [ Semi_Deus ]</a></li>
    </ul>
&
nbsp;&nbsp;&nbsp;&nbsp
(source firefox, not our real code, for real we have added multiple if statements for login and registering etc.)
Image
Keep an eye on us, were back in business..
User avatar
Crispy
New member
New member
Posts: 43
Joined: 10 Aug 2008, 12:57
Real name: Clive
Contact:

Re: Advice on site

Post by Crispy »

righto, thats cleared things up for me. cheers.
User avatar
Crispy
New member
New member
Posts: 43
Joined: 10 Aug 2008, 12:57
Real name: Clive
Contact:

Re: Advice on site

Post by Crispy »

A little, update. I'm just waiting on a coder to code my header, but this is what i have so far:

[img]http://i35.tinypic.com/rmo9rn.jpg[/img]

OR

[img]http://i34.tinypic.com/fblr9w.jpg[/img]

Haven't decided which yet, properbly the rising sun one. :)
User avatar
Crispy
New member
New member
Posts: 43
Joined: 10 Aug 2008, 12:57
Real name: Clive
Contact:

Re: Advice on site

Post by Crispy »

Right, ok. I coded the navigation. But i have two quries.

1) I have a button which displays 'login' and one wich says 'logout' for the navigation, how can i add a <if> variable to it, more to the point, what variable do i need?

2) how can i get arid of the line gap in between the top of the banner, and bottom of the navigation. :?:

Board: http://dsminded.com/community

Cheers. -Clive
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: Advice on site

Post by igorw »

There is S_USER_LOGGED_IN.
User avatar
Crispy
New member
New member
Posts: 43
Joined: 10 Aug 2008, 12:57
Real name: Clive
Contact:

Re: Advice on site

Post by Crispy »

i tried this:
<!-- S_USER_LOGGED_IN --><a href="http://dsminded.com/community/ucp.php?mode=logout"><img src="http://dsminded.com/community/styles/proGrey/imageset/logout.gif" width="104" height="31" border="0" alt=""><!-- ENDIF -->


Brings an error up:

Parse error: syntax error, unexpected '}' in /home/swabru7r/public_html/community/cache/tpl_proGrey_overall_header.html.php on line 108
harmlessgoat22
Supporter
Supporter
Posts: 316
Joined: 18 Sep 2007, 14:35
Real name: David
Contact:

Re: Advice on site

Post by harmlessgoat22 »

you need to do <!-- IF S_USER_LOGGED_IN -->
Image
That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever
User avatar
Crispy
New member
New member
Posts: 43
Joined: 10 Aug 2008, 12:57
Real name: Clive
Contact:

Re: Advice on site

Post by Crispy »

Wicked mate, worked a treat. an't belive i forgot the IF.

I done <!-- IF not S_USER_LOGGED_IN --> for the login button, and it worked a treat.
I used {U_LOGIN_LOGOUT} for the logout url fienld so the session data would match up right. -Worked great

Cheers for your help again evil and harmlessgoat22.
User avatar
Semi_Deus
Past Contributor
Past Contributor
Posts: 405
Joined: 28 Sep 2007, 23:52
Location: the Netherlands
Contact:

Re: Advice on site

Post by Semi_Deus »

ans:2) add negative css margin to the bottom half.
Image
Keep an eye on us, were back in business..
Post Reply