1
dx6angel
Re: templates vs blocks
  • 2005/1/20 21:09

  • dx6angel

  • Just popping in

  • Posts: 8

  • Since: 2004/11/30


Quite right you are.

I have looked at that page 2309856739486 times and missed the little
<div id="content">
<{$xoops_contents}>
</div>
at the bottom.

Thank-you.



2
dx6angel
Re: templates vs blocks
  • 2005/1/20 20:49

  • dx6angel

  • Just popping in

  • Posts: 8

  • Since: 2004/11/30


Quote:
Themes are just smarty scripts. In terms of operational flow, I suppose it could be broken down like this:

XOOPS core determines if user requests a page within a module.

It then retrieves the module meta data using XoopsModuleHandler.

Retrieves all blocks visible to the current user, in the current module.

Each block is processed in succession, first the PHP code for the block is executed, returning an array of variables which are combined with the defined block templates in the smarty template layer. These blocks are then sorted into their various location based groups (left, right, center, etc)

Next the php code for the requested module page is executed, resulting in additional variables assigned to the smarty template layer, which combines them with the defined page template (again by the smarty template layer)

Once page processing is complete, the core takes the various rendered pieces (the blocks, the module content) and plugs them into the theme.

Reference (Ackbarr forum answer)


Does that mean I would have to recode some of the core?
Sounds daunting...
Suggestions?



3
dx6angel
templates vs blocks
  • 2005/1/20 20:32

  • dx6angel

  • Just popping in

  • Posts: 8

  • Since: 2004/11/30


Hi

I am using the catads module and my own theme.
There is a block in the module that I would like to appear on the index page of the module.

Only, all blocks appear above any content scripted on the template page (catads_index.html) of the index.php page.

How can I manipulate the placements of blocks on pages with specific content on them already?



4
dx6angel
Re: Site Migration Problems
  • 2005/1/19 8:22

  • dx6angel

  • Just popping in

  • Posts: 8

  • Since: 2004/11/30


LOL!!!!!

Guess what?!!

I changed the Administration > System Admin > Preferences > General Settings and Set "Update module template .html files from themes/your theme/templates directory?" to YES and it fixed my admin menu.




5
dx6angel
Re: Site Migration Problems
  • 2005/1/19 8:18

  • dx6angel

  • Just popping in

  • Posts: 8

  • Since: 2004/11/30


I still however have the problem with the admin menu not displaying correctly.

A shove in the right direction would be appreciated!



6
dx6angel
Re: Site Migration Problems
  • 2005/1/19 8:15

  • dx6angel

  • Just popping in

  • Posts: 8

  • Since: 2004/11/30


Well, I have just discovered the answer to my own question!

All that was necessary was to Go to Administration > System Admin > Preferences > General Settings and Set "Update module template .html files from themes/your theme/templates directory?" to YES.



7
dx6angel
Site Migration Problems
  • 2005/1/19 8:05

  • dx6angel

  • Just popping in

  • Posts: 8

  • Since: 2004/11/30


I have a question that has bothered me for a while.
I do all of my development on my localhost and once the site is up and running migrate it to the web hosting server.
It is a simple case of FTP all the files up, change the details on the mainfile.php file to correspond to the web hosting servers details and then do a dump of my local database into the web hosting's MySQL server.

The site wil then work, only small details will not be the same. For example, I changed the look of the left, right and center blocks so that they do not have a title or a border. On the one server it is just how I specified it and on the other not.
On the uploaded server the admin menu is only showing three modules (although they are all installed and working just file) and when I redo the ftp of the system files, nothing changes.
I made a change on the localhost's theme.html file and uploaded it, but it never made the change on the web's site.

This has flumuxed me because if the information on both databases is EXACTLY THE SAME and the php and css and html files are EXACTLY THE SAME on both servers, why oh why, do they not look the same?



8
dx6angel
Re: What determines the vertical ordering of the "Admin" icons
  • 2004/12/11 11:37

  • dx6angel

  • Just popping in

  • Posts: 8

  • Since: 2004/11/30


The ordering of the admin menu is a question that has been raised a few times without any resolution.

I have just installed my second online XOOPS site. With the first installation the way I ensured the ordering of the admin menu was by installing the modules according to their order. In other words, if I wanted News above Calendar, I installed the News module first.
Fine.

My second installation, however, did not turn out the same.
I installed the modules in the order I wanted them to appear in my admin menu and ordered them the same for the main menu in the system/modules section.
I then uninstalled the last module I installed and hey presto, the new order in the admin menu is now:

1 (system)
9 (faq)
8 (partners)
7 (forum)
6 (evennews)
5 (calendar)
4 (database tools)
3 (headlines)
2 (news)

This is very irritating for me because I do most of my admin in news and headlines, which are now at the bottom of the bloody page!

So my questions are:

1) How can I permanently re-order the admin menu?
I have already deleted the adminmenu.php in cache twice now and it still has not ordered the menu according to my ordering of the modules on the system/modules install/uninstall page.

2) Why on earth did it reverse the order?




TopTop



Login

Who's Online

143 user(s) are online (83 user(s) are browsing Support Forums)


Members: 0


Guests: 143


more...

Donat-O-Meter

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

Latest GitHub Commits