21
mferreira
Templates tutorial
  • 2006/10/7 16:06

  • mferreira

  • Just popping in

  • Posts: 57

  • Since: 2006/1/19


Hi! Ive made a theme for my site. I made it from scratch and now I understand well how themes work.

But now the changes i want involve templates, and now im trying to modify some templates. But i cant understand well what kind of things could i modify there and how to do it.

It would be very helpful to find a manual or something loke that so I could learn enough about templates.

Thanks
Sorry for my bad english... :)
I love to learn, feel free to tell me when I misspell something.
Using Xoops 2.0.16, FC4, PHP 5.0.4-10.5, Apache 2.0.54-10.4, mysql-4.1.20-1.FC4.1.



22
mferreira
I want a header in news module.
  • 2006/10/5 21:43

  • mferreira

  • Just popping in

  • Posts: 57

  • Since: 2006/1/19


I need to use a header in each module. I need them to be somehow "standard" on its formatting. But i dont know if i need to modify my template, or... Well, i hope that somebody can help me...

Thanks in advice.
Sorry for my bad english... :)
I love to learn, feel free to tell me when I misspell something.
Using Xoops 2.0.16, FC4, PHP 5.0.4-10.5, Apache 2.0.54-10.4, mysql-4.1.20-1.FC4.1.



23
mferreira
Re: Need to find the a modules block file
  • 2006/8/25 21:20

  • mferreira

  • Just popping in

  • Posts: 57

  • Since: 2006/1/19


I need to know which file generates a specific block class. Clone that class. change the css class it uses. And finally, create a new css class in the style.css of my new theme.

Ive already done it with another class, but im having trouble finding a specific block file.

I need to clone the class because if i modify the class that is already being used it will affect several places in the module.

The module is xosc and is an almost clean implementation of oscommerce e-store.

Thanks for your help.
Sorry for my bad english... :)
I love to learn, feel free to tell me when I misspell something.
Using Xoops 2.0.16, FC4, PHP 5.0.4-10.5, Apache 2.0.54-10.4, mysql-4.1.20-1.FC4.1.



24
mferreira
Need to find the a module's block file
  • 2006/8/24 20:24

  • mferreira

  • Just popping in

  • Posts: 57

  • Since: 2006/1/19


I need to know whats the file that is used to display a block of the xosc module. Is there a place where i could view that info?

Thanks.
Sorry for my bad english... :)
I love to learn, feel free to tell me when I misspell something.
Using Xoops 2.0.16, FC4, PHP 5.0.4-10.5, Apache 2.0.54-10.4, mysql-4.1.20-1.FC4.1.



25
mferreira
Re: Resizing site?
  • 2006/8/22 0:13

  • mferreira

  • Just popping in

  • Posts: 57

  • Since: 2006/1/19


I dont know if this is the better but you could remove the "widthed" class from the css and the class:"xxxx" atribute from the table tag in your theme.

Use the css to alternate, not sure it that theme uses the defalt templatrs but take a look at hte default theme, its style.css and in case your theme's templates are different ones, the default templates.
Sorry for my bad english... :)
I love to learn, feel free to tell me when I misspell something.
Using Xoops 2.0.16, FC4, PHP 5.0.4-10.5, Apache 2.0.54-10.4, mysql-4.1.20-1.FC4.1.



26
mferreira
Re: dreameaver replaces >, <, and " chars... no more!
  • 2006/8/21 23:52

  • mferreira

  • Just popping in

  • Posts: 57

  • Since: 2006/1/19


I did it!!!

I've managed to make something to prevent dreaweaver from messing my XOOPS code:
you can see the procedure here!

I followed the instructions and made two files that you should put in your dreamweaver folder:

Quote:

c:\program files\macromedia\dreamweaver 8\configuration\thirdpartytags

(or its equivalent on your computer). The same will work for all versions of Dreamweaver since version 3. You will then need to restart the Dreamweaver application, if it's open.


Im sorry but I cant upload them. Basically I converted the XOOPS favicon to a gif and called it xoops.gif (that's the file 1 of 2)

the second one is copy the following xml code into a xml file called xoops.xml:

<tagspec tag_name="xoops_smarty" start_string="<{" end_string="}>" detect_in_attribute="true" icon="xoops.gif" icon_width="14" icon_height="14"></tagspec>


and that one is the second file (2 of 2)

Quote:

All this does is teach Dreamweaver that Smarty XOOPS tags are similar to ASP or ColdFusion tags. This should insure that Dreamweaver will always leave the tags undisturbed. It will also show a XOOPS icon wherever you use the <{...}> tags.


So, now you can use, modify and whatever you want in dreamweaver, design and code view.

Enjoy!!
Sorry for my bad english... :)
I love to learn, feel free to tell me when I misspell something.
Using Xoops 2.0.16, FC4, PHP 5.0.4-10.5, Apache 2.0.54-10.4, mysql-4.1.20-1.FC4.1.



27
mferreira
Re: Display date in a theme.
  • 2006/8/19 22:49

  • mferreira

  • Just popping in

  • Posts: 57

  • Since: 2006/1/19


But the
<{$smarty.now|date_format:"%A, %B %e, %Y | %H:%M %Z"}>
gives me the server time, it is also in english.

When i try using the php tag, i get the following error:
Parse error: parse error in /var/www/html/portalmaranatha/html/templates_c/
default-maranatha_new^%%58^584^584B75F7%%theme.html.php on line 258

The error is the same when I empty the template_c fldr
Sorry for my bad english... :)
I love to learn, feel free to tell me when I misspell something.
Using Xoops 2.0.16, FC4, PHP 5.0.4-10.5, Apache 2.0.54-10.4, mysql-4.1.20-1.FC4.1.



28
mferreira
Re: Display date in a theme.
  • 2006/8/19 22:34

  • mferreira

  • Just popping in

  • Posts: 57

  • Since: 2006/1/19


Now im searching how to configure it in spanish...
Sorry for my bad english... :)
I love to learn, feel free to tell me when I misspell something.
Using Xoops 2.0.16, FC4, PHP 5.0.4-10.5, Apache 2.0.54-10.4, mysql-4.1.20-1.FC4.1.



29
mferreira
Re: Display date in a theme.
  • 2006/8/19 22:27

  • mferreira

  • Just popping in

  • Posts: 57

  • Since: 2006/1/19


Thats great thanks!
Sorry for my bad english... :)
I love to learn, feel free to tell me when I misspell something.
Using Xoops 2.0.16, FC4, PHP 5.0.4-10.5, Apache 2.0.54-10.4, mysql-4.1.20-1.FC4.1.



30
mferreira
Display date in a theme.
  • 2006/8/19 21:47

  • mferreira

  • Just popping in

  • Posts: 57

  • Since: 2006/1/19


Is there some variable that i can use to display the date? I also would like it to be language configurable.

If so, can I get a list of the variables that i can use? like user name or so?

Thanks.
Sorry for my bad english... :)
I love to learn, feel free to tell me when I misspell something.
Using Xoops 2.0.16, FC4, PHP 5.0.4-10.5, Apache 2.0.54-10.4, mysql-4.1.20-1.FC4.1.




TopTop
« 1 2 (3) 4 5 6 »



Login

Who's Online

239 user(s) are online (146 user(s) are browsing Support Forums)


Members: 0


Guests: 239


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits