292051
stonez
Random icons on each theme block?
  • 2003/9/4 4:42

  • stonez

  • Just popping in

  • Posts: 16

  • Since: 2002/9/29


I would like to put a little icons on each block based on
a randomized number. Where sholud I write the code?
Do I put this randomized function in the theme.html or
in somewhere else? or should I use the smarty template to
generate the randomized number for me?

in the theme.html file
<img src="<{$xoops_imageurl}>logo.gif" width="150" height="80" alt="" />

I would like to put a variable [in read]
<img src="<{$xoops_imageurl}>$x.gif" width="150" height="80" alt="" />

Thanks for your help!



I just found this on the web. How can I use it?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~``
Random
Small function to output a random number between two values.
(I didn't see this anywhere else so I thought I would make this function. But it's so simple that maybe it already exists somewhere else... Sorry in that case)


<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: function
* Name: random
* Purpose: output a random number between $varIn and $varOut:
* {random in=$varIn out=$varOut}
* If you want to assign the random number to a variable
* instead of displaying it, you must write:
* {random in=$varIn out=$varOut assign=yourVar}
* Where yourVar can be anything. Then you'll get
* $yourVar equal to a random number between $varIn and $varOut.
* Author: Philippe Morange
* Modified: 25-03-2003
* -------------------------------------------------------------
*/

function smarty_function_random($params, &$smarty)
{
extract($params);

srand((double) microtime() * 1000000);

$random_number = rand($in, $out);
if (isset($assign)) {
$smarty->assign($assign, $random_number);
}
else {
return $random_number;
}
}



292052
ackbarr
Re: Hack request: Private message sorting

well that makes absolutely no sense I'll have to dig into the code a little deeper tonight and see what I can find



292053
El_Jordo
Re: Hack request: Private message sorting
  • 2003/9/3 23:47

  • El_Jordo

  • Just popping in

  • Posts: 64

  • Since: 2003/4/23


Small problem: When I click on the links to view a private message, I get the wrong message. It seems the message names are sorted right, but the links aren't. Any suggestions?



292054
pinky
Meta-Generator ???
  • 2003/9/3 17:58

  • pinky

  • Just popping in

  • Posts: 28

  • Since: 2002/8/17


Ok, I know I have asked before and everyone looked at me like: WTF is he talking about, write your own meta: <meta keyword"......."> ok so please read this fully.

http://www.e-xoops.com/public/modules/mydownloads/singlefile.php?lid=6

this is a Meta-Generator & dynamic keyword extractor module. Replaces the entire meta/footer system admin part.

This module was developped by e-xoops for XOOPS RC3 and then dropped.

Well this module catapulted my web site to the first page of google, yahoo and other.
Basicaly it read your page and build meta dynamicaly for you adding words and removing others all dynamicaly.

Now I am no brain surgeon like others here but I surely can see the benefit of being in the first search page of google.

Here is the bad thing, it is totaly integrated to e-xoops but no one ever looked at even porting the module for XOOPS 2.03 ?!?!??!

Anyone smarter than me that could port the module?
why not integrate it into XOOPS 2.0 either ?



292055
bevege
Anyone working on this?
  • 2003/9/3 15:45

  • bevege

  • Just popping in

  • Posts: 17

  • Since: 2003/2/24


I've downloaded and installed this module and it works great as is. It only needs a few things fixed as far as I can see. Is someone still working on this? I would love to have all my recipes available on my XOOPS site.

BE



292056
malexandria
Re: How to improve WF - Sections

I would like to be able to use it as a Fanfiction, or Story Module and for that I would want to be able to do

nested categories, with user uploads, and chaptering features.

So we could have

Movies
Buffy
Story Name/Author
Story Chapters

All allowing users to upload their own stuff.

and I would like to get it to work, to this day I've never been able to get the module to work. Usually when I install it, I end up with blank pages on the index page, or in the module itself.



292057
limecity
Re: How to improve WF - Sections
  • 2003/9/3 13:38

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


i got suggesttion~

make a patch where you can add thumbnails to the Summary section..




292058
Mithrandir
Re: WebSlave Project - a project managment tool

I have the latest version with the wrong sql statement. I corrected that (removed the "xoops_") and updated the module and found out how to be able to edit tasks (didn't notice that I had to set the groups in the preferences again)

I now have the problem that I cannot assign groups to a project meaning that I cannot assign users to a task. I go to edit task, select the groups I wanna add, press "Update" and it refreshes without updating.

It's not a big problem, but I like the "assign task to..." feature



292059
wtravel
Re: World Travel Publishers.com - what do you think?

Does anyone have an idea on how to merge the Amazon shop section into the XOOPS layout. The shop section is using a cgi script. I am trying to figure out how to code the same kind of shop into php pages.

Regards,

Martijn



292060
ibzan
Library / Resource Catalog
  • 2003/9/3 4:53

  • ibzan

  • Just popping in

  • Posts: 48

  • Since: 2003/8/31


I had posted this in Feature Request forum, but after thought realized it probably should be here.
In any case, I have started on a hack of the myDownloads module as it's features are pretty consistant to what I am looking for. I was wondering though where the table structure is for the main page?!? How can I change the overall layout?

Chris

Library / Resource Catalog
I been looking for a module similar to pnBooks for XOOPS 2.0 with absolutely no luck at all.
There have been some requests similar however the only answers I have seen lean toward online shopping modules which is what I am trying to avoid (I am not trying to sell anything)
I am working on a website that gives away free resources (audio, written, etc.) all of which are either public domain or with express permission from the author.
I think this could / would be extremely useful for non-profit based sites and / or organizations.
Chris








Login

Who's Online

208 user(s) are online (135 user(s) are browsing Support Forums)


Members: 0


Guests: 208


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