9.1 CVS theme/template changes
| Author |
Message |
DJ Maze


Joined: Apr 19, 2004 Posts: 5668 Location: http://tinyurl.com/5z8dmv
|
|
| Back to top |
|
 |
PeLLaRaS


Joined: Apr 27, 2005 Posts: 58 Location: Cyprus
|
Post subject: Re: 9.1 CVS theme/template changes Posted: Mon Jan 09, 2006 3:37 pm |
|
I think this is the right time to ask if this is possible and if not it would be nice to implement it for newer versions!
For "theming" the forum, the file index_body.html should currently have the follow structure:
Code:
<!-- BEGIN forumrow -->
<!-- IF forumrow.S_IS_CAT -->
"code for categories"
<!-- ELSEIF forumrow.S_IS_LINK -->
"code for link"
<!-- ELSE -->
"code for forum"
<!-- ENDIF -->
<!-- BEGINELSE -->
"code for no categories"
<!-- END forumrow -->
I don’t know if there is any other way, but this structure gives me a limitation:
If I want to have categories in different table, and every category should have the header (the title) the contents (the forums or links) and the footer (a shadow effect) I can not do it. I mean I can if I but between <!-- IF forumrow.S_IS_CAT --> and <!-- ELSEIF forumrow.S_IS_LINK --> first the footer (the shadow) and then the header (a line break, opening the table and print the title) but then I am forced to have the footer in the beginning of the page.
See an example here. I am forced to have the shadow effect (under " View unanswered posts") before the listing of categories
If I am correct, phpBB is using the structure:
Code:
<!-- BEGIN catrow -->
<!-- BEGIN forumrow -->
<!-- END forumrow -->
<!-- END catrow -->
and you are able to do display something when the category "ends".
Does this thing exists and if not is it possible to add it in some way now that themes will be identified by THEME_VERSION?
PeLLaRaS's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) FreeBSD 4.8-RELEASE/ 1.3.31/4.0.18/4.3.8/9.0.3.0 |
|
| Back to top |
|
 |
DJ Maze


Joined: Apr 19, 2004 Posts: 5668 Location: http://tinyurl.com/5z8dmv
|
Post subject: Re: 9.1 CVS theme/template changes Posted: Mon Jan 09, 2006 3:54 pm |
|
You mean like:
Code:
<!-- BEGIN forumrow -->
<!-- IF forumrow.S_IS_CAT -->
<!-- IF $_forumrow_i > 0 --></table><!-- ENDIF -->
<table>
<!-- ELSEIF forumrow.S_IS_LINK -->
"code for link"
<!-- ELSE -->
"code for forum"
<!-- ENDIF -->
<!-- BEGINELSE -->
"code for no categories"
<!-- END forumrow -->
</table>
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS |
|
| Back to top |
|
 |
PeLLaRaS


Joined: Apr 27, 2005 Posts: 58 Location: Cyprus
|
Post subject: Re: 9.1 CVS theme/template changes Posted: Mon Jan 09, 2006 4:52 pm |
|
Got the point but for some reason $_forumrow_i is always 0, so it's not working
PeLLaRaS's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) FreeBSD 4.8-RELEASE/ 1.3.31/4.0.18/4.3.8/9.0.3.0 |
|
| Back to top |
|
 |
PeLLaRaS


Joined: Apr 27, 2005 Posts: 58 Location: Cyprus
|
Post subject: Re: 9.1 CVS theme/template changes Posted: Mon Jan 09, 2006 5:11 pm |
|
I rushed, <!-- IF $this->_forumrow_i > 0 --></table><!-- ENDIF --> did the trick!
(found it through template.php)
PS. For same reason I wasn't able to edit the abode post
PeLLaRaS's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) FreeBSD 4.8-RELEASE/ 1.3.31/4.0.18/4.3.8/9.0.3.0 |
|
| Back to top |
|
 |
Kuragari


Joined: Apr 25, 2005 Posts: 563 Location: AnimeEgo
|
Post subject: Re: 9.1 CVS theme/template changes Posted: Sun Jan 29, 2006 2:36 pm |
|
The default News template has the new pagination replacement at the bottom of the file, but the first instance (lines 9-25) were never replaced.
Kuragari's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux 2.6.9 / 1.3.34 / 4.1.14 / 4.4.1 / CVS |
|
| Back to top |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|

|
User Info ![Show/hide content [x]](themes/dragonfly/images/minus.png)
 Welcome Anonymous
Last CVS commits ![Show/hide content [x]](themes/dragonfly/images/minus.png)
Languages ![Show/hide content [x]](themes/dragonfly/images/minus.png)
Community ![Show/hide content [x]](themes/dragonfly/images/minus.png)
 Support for DragonflyCMS in a other languages:
• Deutsch
• Español
X-links ![Show/hide content [x]](themes/dragonfly/images/minus.png)
Preview theme ![Show/hide content [x]](themes/dragonfly/images/minus.png)
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.
|