51
Wheeler
Layout (Browse Downloads by alphabetical listing)
  • 2005/2/5 16:42

  • Wheeler

  • Not too shy to talk

  • Posts: 145

  • Since: 2004/10/29


I have done search and found one result so this has not been asked. (My Search: "$letterchoice")

What I want to do is change the layout of the alphabet in wf-downloads. Currently shows 36 characters in 2 rows, 19 in 1st row and 17 in 2nd row. I want it to display 4 rows with 9 characters in each.

The changes must be made to this code from "/include/functions.php"
function wfd_letters()
{
    global 
$xoopsModule;

    
$letterchoice "";
    
$letterchoice .= "[  ";
    
$alphabet = array ("A""B""C""D""E""F""G""H""I""J""K""L""M""N""O""P""Q""R""S""T""U""V""W""X""Y""Z""0""1""2""3""4""5""6""7""8""9");
    
$num count($alphabet) - 1;
    
$counter 0;
    while (list(, 
$ltr) = each($alphabet))
    {
        
$letterchoice .= "<a href='" XOOPS_URL "/modules/wfdownloads/viewcat.php?list=$ltr'>$ltr</a>";
        if (
$counter == round($num 2))
            
$letterchoice .= " ]<br />[ ";
        elseif (
$counter != $num)
            
$letterchoice .= "&nbsp;|&nbsp;";
        
$counter++;
    } 
    
$letterchoice .= " ]";
    return 
$letterchoice;
}

As you can see I already moved the numbers after the letters so it would display nicely in 4 rows.

I have played with this code for 2 hours and it will not work. It is not the same as the "<{if $category.count is div by 2}>" sort of idea. Now am asking for assistance.

Thank you for your time.



52
Wheeler
Re: Member Homepages
  • 2005/2/3 16:18

  • Wheeler

  • Not too shy to talk

  • Posts: 145

  • Since: 2004/10/29


lol.
Okay,
You reinstalled.
Goto module admin and set groups to show in that empty drop down menu. That should work.

I offer you support:
I would not suggest giving users these permissions. Use pre-defined categories similar to those used throughout your site and add different group access to create homepages for each. Example: Editors, reporters, camera men,..

OR INSTEAD make a category or subcategory the module start page.

FIRST: make a category with a subcategory in it.

FOR SUBCATEGORY STARTPAGE: add code at the top of modules/obs_classroom/index.php

header('location:subcategory.php?d=1');

Change 'd=1' to the id number of the subcategory wanted to display.

If you want, remove the Home :: Category links from the navigation menu.

FOR CATEGORY STARTPAGE: add code at the top of modules/obs_classroom/index.php

header('location:category.php?s=1');

Change 's=1' to the id number of the category wanted to display

-------

Now here is the info you want if you do not take my advice.

Look inside the templates folder and place navigation links you wish your users to see outside of the <{is_admin}> tags. Play with it until you get it.

Also, look at the edit block template there are 3 variables to play with to show and hide content, navigation, and instructions. It's very useful.

A system block to display only on the Homepages Module is very helpful for title heading, Hot Links, Featured Homepages, or additional instructions.

PEACE!



53
Wheeler
Re: Registration hack and module required....
  • 2005/2/3 16:00

  • Wheeler

  • Not too shy to talk

  • Posts: 145

  • Since: 2004/10/29


timman,

You are amazing, great work! I am sure you will be successful at your goals.

Check ya later!



54
Wheeler
Re: Registration hack and module required....
  • 2005/2/2 17:07

  • Wheeler

  • Not too shy to talk

  • Posts: 145

  • Since: 2004/10/29


Thanks for sharing the code snipplet. It's what I needed to know. I'm sure we could work together

Quote:

timman wrote:
Create the dir and putting the files in it? According to my brother Luciano with

$site =strtolower($naam);

       function 
cp($wf$wto){   
               
mkdir($wto,0777);
               
$arr=ls_a($wf);
               foreach (
$arr as $fn){
                           if(
$fn){
                               
$fl="$wf/$fn";
                               
$flto="$wto/$fn";
                           if(
is_dir($fl))    cp($fl,$flto);
                               else 
copy($fl,$flto);
                       }
               }
       }

       function 
ls_a($wh){    
         if (
$handle opendir($wh)) {
               while (
false !== ($file readdir($handle))) { 
                       if (
$file != "." && $file != ".." ) { 
                                     if(!
$files$files="$file";
                                     else 
$files="$filen$files"
                       } 
               }
               
closedir($handle); 
         }
         
$arr=explode("n",$files);
         return 
$arr;
       }


The files? A flatfile cms.

Now, I'll try this registration keys module to see what it does...


Also check out Members Homepages and tell me what you think. It should be possible to un-wrap it from xoops. Also, remember it is a prototype and is a first step towards something great.



55
Wheeler
Re: Registration hack and module required....
  • 2005/2/2 16:43

  • Wheeler

  • Not too shy to talk

  • Posts: 145

  • Since: 2004/10/29


I re-read the thread, you intend to put a small cms within the directory. That is pretty cool. What cms? Database to flat text file?

The forms work could easily be done. I do not, yet, know a way for a directory/subdomain to create on the fly.

Perhaps you could clone directories with the script pre-installed and name them 1, 2, 3, 4, which refer to the user id. With user-cms content included at the user's main profile and the user-cms admin section included at the user's edit profile.

You could attempt re-write URL's to display the username. example:
.../modules/users/user.php?cms=2
to
.../modules/users/cms_2/
or better
.../modules/users/'username'/
(username = userid 2)

If it is a module, as displayed in the url above, an 'actual' directory on the server is not needed. It would also offer search capabilities, a user-cms directory, featured blocks, and host admin. I seen a module perform automation similar to what you desire. It is the XooperMod XOOPS Module Generator
http://www.worldware.com/modules/xoopermod/
This takes your form input, creates files and directories, zips it up, submits to another module for file download, and then the download auto-expires. WOW!

I thought of doing this before for scripts where #'s represent people. There is a module on my website which is, in fact, a mini user-cms called Members Homepages. This is in it's most simplest form and is very confusing to use. This module is the possible beginning of a new generation of modules because it presents itself as a mini-xoops for the users, it is clean coded, and it's functions are unique to other modules. I have collected much feedback, bufixes, and worked on much of the navigation to make it more user friendly.

If anybody reading this feels these ideas are impossible or would be very hard to implement, then please speak up.

Thanks Everybody!

ps. The Members Homepages module could be scrapped in this plan, for I have other similar module ideas that would work as a personal page, although, completely different from Members Homepages.



56
Wheeler
Re: Registration hack and module required....
  • 2005/2/2 15:38

  • Wheeler

  • Not too shy to talk

  • Posts: 145

  • Since: 2004/10/29


This is the link to Registration Keys
https://xoops.org/modules/repository/singlefile.php?cid=88&lid=1373

I am curious, how do you plan to create a directory and what script do you intend to wrap in it? What other features do you require?



57
Wheeler
Re: Registration hack and module required....
  • 2005/2/1 8:19

  • Wheeler

  • Not too shy to talk

  • Posts: 145

  • Since: 2004/10/29


Quote:

timman wrote:
Well, that's it for xoops. As nobody seems to be able to help us out we'll have to migrate. My brother keeps on believing in this cms but I don't, XOOPS is a great playground, but when it gets serious...

So, what I learned might be usefull for others: plan first, join the communities of all major cms's and then make up your mind.


Hey do not give up this quick. Your request is half complete. There is a registaration keys module that will do the job of handling your partners clients. Now all you need is the directory creation on the fly.

You are correct to say plan first and do your research, but I'm curious. In your opinion, what CMS is better than xoops? Have you found a CMS that can do this job? Or how about another CMS module? How much are you willing to pay?

Peace!



58
Wheeler
Re: alignment problem, am I missing something? (theme.html)
  • 2005/1/30 16:34

  • Wheeler

  • Not too shy to talk

  • Posts: 145

  • Since: 2004/10/29


Looking at my post I noticed something else.

Quote:
<script type="text/javascript">
<!--
//--></script><script type="text/javascript" src="http://xoops.montisarts.com/include/xoops.js"></script><script type="text/javascript"><!--
//-->
</script>


1. This should be just above the closing head tag, not below open body tag.

2. This is the weakest peace of code I have ever seen, lol (sorry to giggle). You have three sets of <script></script> tags.

Hmmmmm, then I look at my site and notice the same three sets of <script></script> tags. Must be the default theme's fault. lol.

ps. Very nice theme by the way, I like clean layouts. Keep up the great work!



59
Wheeler
Re: alignment problem, am I missing something? (theme.html)
  • 2005/1/30 16:25

  • Wheeler

  • Not too shy to talk

  • Posts: 145

  • Since: 2004/10/29


Hey view the source of the main page or faq's page. Form tag miss placed!

Quote:
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<script type="text/javascript">
<!--
//--></script><script type="text/javascript" src="http://xoops.montisarts.com/include/xoops.js"></script><script type="text/javascript"><!--
//-->
</script>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<form action="http://xoops.montisarts.com/user.php" method="post">
</form>

<tr>
<td>&nbsp;</td>


I recommend cleaning up your html, it looks very messy so things like this would be easy to miss.

I noticed something was wrong with the html when I mousedown at the bottom of your page and remain mousedown as I slide the mouse cursor to the top of the page. Things were being highlight from within the center-col to outside-left of the main body table. Try it, all the highlights should remain within the cell.

PEACE!



60
Wheeler
Re: Yellow Pages module out now..
  • 2005/1/27 12:10

  • Wheeler

  • Not too shy to talk

  • Posts: 145

  • Since: 2004/10/29


Quote:
by DogTags
I noticed that there is no Guide Icon in left admin menu to edit guide preferences and things.

How can I add one?

Open xoops_version.php, and find

$modversion['image'] = "images/xxx_slogo.png";

Make sure the file name matches the one stored in the module's /images/ directory. Peace!




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



Login

Who's Online

157 user(s) are online (90 user(s) are browsing Support Forums)


Members: 0


Guests: 157


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