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 .
User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Advice on site

Postby igorw » 11 Aug 2008, 12:54

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 (like we have here), and the file you want to use is in (the webroot), your $phpbb_root_path has to be: .

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

If your file is in , $phpbb_root_path has to be: .

I hope you get it. :)

- we're poor!

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

Re: Advice on site

Postby Crispy » 11 Aug 2008, 15:58


User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Advice on site

Postby igorw » 11 Aug 2008, 16:32

Yes. :)

- we're poor!

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

Re: Advice on site

Postby Crispy » 11 Aug 2008, 16:37

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:

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Advice on site

Postby igorw » 11 Aug 2008, 16:47

The class used to create RSS feeds is custom-coded. It uses phpBB's template system. :)

- we're poor!

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

Re: Advice on site

Postby Crispy » 11 Aug 2008, 16:59

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

Postby Semi_Deus » 11 Aug 2008, 17:13


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

Postby Crispy » 11 Aug 2008, 18:19

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

Postby Crispy » 12 Aug 2008, 11:50

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

Postby Crispy » 13 Aug 2008, 20:49

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

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Advice on site

Postby igorw » 13 Aug 2008, 21:05

There is .

- we're poor!

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

Re: Advice on site

Postby Crispy » 13 Aug 2008, 21:18

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

Postby harmlessgoat22 » 13 Aug 2008, 21:30

you need to do <!-- IF S_USER_LOGGED_IN -->

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

Postby Crispy » 13 Aug 2008, 21:44

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

Postby Semi_Deus » 13 Aug 2008, 22:20

ans:2) add negative css margin to the bottom half.

Keep an eye on us, were back in business..


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “phpBB Modders”

Who is online

Users browsing this forum: No registered users and 3 guests