9.1 CVS theme/template changes
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexAnnouncements
Author Message
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: 9.1 CVS theme/template changes
Posted: Mon Jan 09, 2006 11:58 am
Reply with quote

Forum Profile Image buttons:
dragonflycms.org/cvs/h..._body.html
Skype added in:
dragonflycms.org/cvs/h...images.cfg

News pagination moved to global availability:
dragonflycms.org/cvs/h...index.html
dragonflycms.org/cvs/h...ation.html

Theme version detection for newly added features:
dragonflycms.org/cvs/h.../theme.php
NOTE: THEME_VERSION must comply to DF standard 'x.x.y.y' where x.x is DF's version and y.y is yours since DF only has theme changes in x.x and not in 'release' builds.
If you just copy the version WITHOUT adding the changes made in DF your theme will fail to work.
See: dragonflycms.org/Wiki/id=19.html


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
View user's profile Visit poster's website Yahoo Messenger
PeLLaRaS
Nice poster


Joined: Apr 27, 2005
Posts: 58
Location: Cyprus

PostPost subject: Re: 9.1 CVS theme/template changes
Posted: Mon Jan 09, 2006 3:37 pm
Reply with quote

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
View user's profile Visit poster's website
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: 9.1 CVS theme/template changes
Posted: Mon Jan 09, 2006 3:54 pm
Reply with quote

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
View user's profile Visit poster's website Yahoo Messenger
PeLLaRaS
Nice poster


Joined: Apr 27, 2005
Posts: 58
Location: Cyprus

PostPost subject: Re: 9.1 CVS theme/template changes
Posted: Mon Jan 09, 2006 4:52 pm
Reply with quote

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
View user's profile Visit poster's website
PeLLaRaS
Nice poster


Joined: Apr 27, 2005
Posts: 58
Location: Cyprus

PostPost subject: Re: 9.1 CVS theme/template changes
Posted: Mon Jan 09, 2006 5:11 pm
Reply with quote

I rushed, <!-- IF $this->_forumrow_i > 0 --></table><!-- ENDIF --> did the trick! Big grin

(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
View user's profile Visit poster's website
Kuragari
500+ Posts Club


Joined: Apr 25, 2005
Posts: 563
Location: AnimeEgo

PostPost subject: Re: 9.1 CVS theme/template changes
Posted: Sun Jan 29, 2006 2:36 pm
Reply with quote

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
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexAnnouncements All times are GMT
Page 1 of 1


Jump to:  
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

Dedicated Server & Bandwidth Sponsored by DedicatedNOW
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.6049 seconds with 19 DB Queries in 0.0692 seconds
Memory Usage: 2.91 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy