71
wammes
Re: List of all $modversion array indexes?
  • 2003/12/19 10:56

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


Sorry, I can't help you then. You'll just have to wait until some core- or module- developer reads your post



72
wammes
Re: Can someone explain Blocks vs Templates in moduels (ie: newbb)
  • 2003/12/19 10:51

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


This is how I see it:


blocks are the elements on your site. On xoops.org you can see a lot of blocks. For example on your left side you see the blocks "General Information", "XOOPS Wiki" an "Miscellaneous". These are elements on your site that contain some content. Blocks can be placed in the left, right or center column.

Templates are little html files that contain information about how a block is displayed. Each block has his own template. That means you can change the way a block looks in the template of the block. Let's say we want to add an little arrow image in front of every item in teh XOOPS wiki block. For that you should modify the template of the XOOPS WIKI block and add the html code for that arrow image before all these items.

Modules also use templates. These templates contain information about how the module itself (or parts of the module) will look. A module can have blocks, like the "top posters" on the left. This block belons to the newbb module.

It's difficult to explain. But it is a very logic design...



73
wammes
Re: Simple Counter
  • 2003/12/19 10:39

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


You could add the html code for a simple netstat counter in your footer. I believe netstat (http://www.nedstatbasic.net/) makes a difference between number of unique users and number of pagehits.



74
wammes
Re: List of all $modversion array indexes?
  • 2003/12/19 10:23

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


Have you tried looking in the api documentation?



75
wammes
Re: Xoops DHTML drop down menus
  • 2003/12/10 9:31

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


SirTanksAlot,

thank you very much for pointing me at this. I wasn't very satisfied with my solotion for this (a core hack). I'll implement this immediately in my theme! Never thought of it in this way... Always thought that if I used global $xoopsUser in an other file I had to make a lot of inclusions. I don't know exactly how it works be it can lead you into a loop including each time a file.
But anyway, thank you very much!



76
wammes
Re: Xoops DHTML drop down menus
  • 2003/12/9 18:51

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


Quote:
1. The User Menu is shown in a block, so a solution setting it up automatically as in the default XOOPS installation is out of the question, more so if you want to put the menu in the header. On the other hand, since the User Menu doesn't have automatically generated links, but has static links, it's VERY easy to create a Javascript DHTML for it, using any of the myriad DHTML menu options available for free.


I've been into this also. I wanted to replace the login/user block with one element in my theme (I called it something like a passport for my users). But I believe the usermenu does create dynamic content. It notices you when you have a new pm and for admin users it shows the admin link. So you can't replace the complete main menu, user menu and login menu in your theme with something else. You will loose functionality since these menus are created dynamically in a block. You'll have to hack core files to get extra smarty variables (like the number of new pm's) in your theme, at least I think so...



77
wammes
Re: "Best" place to put custom theme functions?
  • 2003/11/20 13:02

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


This thread made me thinking about my own theme.

I have created a theme that used custum (extra) smartyvariables. Currently I've hacked the core to get my extra variables. Putting all those hacks in a seperate php file, would be a much nices solution. Currently I've hacked header.php to get extra user info and the news module (article.php) to separate the article title from the article category.

Now my question:
If I include a php file in theme.html, is it possible to get the extra userinfo that I want (userrank, number of unread pm) and the extra news variables (article title and article category) in a smarty variable to call in theme.html?
I see problems with getting the userinfo in that php file. How will I know in that file what the current user and current news article is? I probably have to make inclusions and globals in that php file...??
I know I want a lot for a php newbie .



78
wammes
Re: Easy question for someone with knowlegde of php/smarty.
  • 2003/11/7 12:51

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


Thanks ackbarr,
with your modification I can load the ranktitle with <{$rnktitle.title}> in my theme!



79
wammes
Easy question for someone with knowlegde of php/smarty.
  • 2003/11/7 12:21

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


I tried different things without succes. I'd like to add extra smarty variables to get userinfo in my theme. I like to get the userrank title in a smarty variable.
I've edited header.php and added:
$xoopsTpl->assign('rnktitle', $xoopsUser->getVar('rank'));

Now in the API documentation about userrank it says:

array rank( )

get the user's rank

Tags:
return - array of rank ID and title

So my smarty variable should be an array (I think). But I can't load the userrank title. How can I call the second element in the array?
<{$rnktitle}> doesn't give me the title, only the id number. I've tried with <{$rnktitle[1]}> or <{$rnktitle[title]}> without succes. What am I doing wrong?


Thank you very much for any help.



80
wammes
Re: XOOPS 2.1 Core development Roadmap
  • 2003/11/7 10:17

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


Hey Chapi, thank you! It is indeed possible to extend the selection with Ctrl. Stupid of me not figuring out I could use the Ctrl too . In windows explorer I use it all the time




TopTop
« 1 ... 5 6 7 (8) 9 »



Login

Who's Online

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


Members: 0


Guests: 238


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