1
ivandr
WFSECTION - how to make sub categories???
  • 2006/2/2 8:00

  • ivandr

  • Just popping in

  • Posts: 14

  • Since: 2005/6/2 7


Hi,

Im using XOOPS 2 with wfSections 2.01.

All i want to be able to do is create a article structure as below:

main category 1
-sub category 1
--article 1
--article 2
--article 3
-sub category 2
--article 1
--article 2
main category 2
-article 1
main category 3
-sub category 1
--sub category 2
---article 1

Thats as far as i want to take it. Its a fairly simple task, but i just cant get my head around it.

I install a new wfsections module in a test XOOPS environment.
I create a new category, and use wfsection_catindex.html template.
Then i create a subcategory and use wfsection_artindex.html because there would be articles in that section.
Then i create an article in the subsection.

Now when i click on WFSection (main menu) i get the main category. When i click on the main category i get a an empty blank screen.

I have debugging on but nothing comes up. Im stumped.

Any help or if you need more info, please let me know.

Example ishttp://ep91.com/ep/modules/wfsection/

Regards,
ivan



2
ivandr
Relocating installation from one folder to another (database not moving)
  • 2006/1/17 22:16

  • ivandr

  • Just popping in

  • Posts: 14

  • Since: 2005/6/2 7


Hi, I have an install of XOOPS in one folder, but i want to rename that folder to something else now.

How do i go about doing that?

Where do i have to make changes?

i know mainfile.php contains som info that would need to be changed... anything else?

Thanks Heaps,

Ivan



3
ivandr
Re: Simple BB2 hack - need assistance with
  • 2006/1/17 1:01

  • ivandr

  • Just popping in

  • Posts: 14

  • Since: 2005/6/2 7


Ok, so im new at this... I realise it uses the below code to store the info to a cookie, so i guess i could store this info to the cookie aswell somehow...

Not sure, will keep looking.

foreach($categories as $onecat){
    
$forums = array();

    
$catid=$cats.$onecat->getVar('cat_id');
    
$catshow true;
    if (isset(
$_COOKIE['newbb2_toggle']))
    {
        
$cookiearr split(',',$_COOKIE['newbb2_toggle']);
        
$catshow = (in_array($catid$cookiearr)) ? false true;
    }

    
$display = ($catshow) ? 'block;' 'none;';
    
$display_icon  = ($catshow) ? 'images/minus.png' 'images/plus.png';

    if (isset(
$forumsByCat[$onecat->getVar('cat_id')])) {
        
$forums $forumsByCat[$onecat->getVar('cat_id')];
    }


But on the upside i realised that all i have to do is replace 'block' to 'none' to have it default to be closed, which is cool by me for now, but it would be good to have it default to what is written in a cookie.

Regards,
Ivan



4
ivandr
Simple BB2 hack - need assistance with
  • 2006/1/17 0:43

  • ivandr

  • Just popping in

  • Posts: 14

  • Since: 2005/6/2 7


Hi, im trying to make a simple change to the BB2 forum.

On the index view of the forum, and forum view, i want to be able to expand or minimise the "online" section, and the "notification" section.

I havnt tried notification yet but i managed to get online bit to work using the below.

<img onclick="ToggleBlock2('online', this)" srcimages/minus.png" alt="" />

<div id="
online" style="displayblock">
***Online table****
</div>


I managed to get that working fine, but how can i get it to always be minimised by default, just to clear up some room, and people can expand it themselves if they choose.

Any help appreciated.

Regards,
Ivan



5
ivandr
Re: dynamically expanding/colapsing blocks?
  • 2005/9/26 4:59

  • ivandr

  • Just popping in

  • Posts: 14

  • Since: 2005/6/2 7


Quote:

LazyBadger wrote:
If you said about collapsing|restoring the whole side columns, not individual blocks only in any location, you can see at best implementation of this technique in theme is_urbanize from Webloom site ("best" - becuse it uses cookies for storing column state, thus - doesn't lost state on refresh-page change)


Hi,
Thank you for the quick reply.
Unfortunantly i am after the individaul blocks. I must admit i like the idea of it remembering the status of what it is set at with cookies.

Using this approach, (providing it can be done to the individual blocks), am i able to preset which ones are automatically hidden or would that not be possible because its dynamically generated depending on what modules are installed?

What would be nice is if i can by set which modules i would like minimised, be be as a standard and will stay like that unless a setting in the cockie is set, and then ofcourse it would take the predecense of the cookie setting. Also any new modules that are not predefined in the code are automatically visible.

Regards,
Ivan

*edited gramatical errors.



6
ivandr
dynamically expanding/colapsing blocks?
  • 2005/9/26 3:33

  • ivandr

  • Just popping in

  • Posts: 14

  • Since: 2005/6/2 7


i want to be able to expand and colapse all the blocks on both the left and right hand side of the page but dont really know where to start.

My overall intentions are to have Search, Who's Online, New Members etc blocks minimised by default (where only the banner at the top of the module is visible) but be able to provide the option for users to view these options.

I dont mind if i have to edit the core files, so long as i can get some guidance on how to do it.

But dont get me wrong, i hope that a theme can do it because i believe that this type of feature should be included in every theme as it makes it just that much nicer.

I think i will have to edit it manually becuase it wont know what i set to show/hide on load unless:
a: i create a new column in the database where the block info is displayed - not ideal as lack of experience
b: use themes to display all the modules statically and when i add a new module, have to add it manually - defeats the purpose of using XOOPS as it takes away the self maintenance part away from it.

Any help appreciated. If the above texts are not understandable, please let me know and ill reword it :)

Thanks in advance,
Ivan



7
ivandr
Article management system
  • 2005/6/30 10:30

  • ivandr

  • Just popping in

  • Posts: 14

  • Since: 2005/6/2 7


I currently have set up site where am planning to have alot of articles.

My requirements are:
-Multipage articles where i can start a new page by entering a string

-When adding photos to the article, i would like the thumbnail to be displayed, and only when the thumbnail is clicked will the large image appear in a new windows (and the image to have a watermark of the website logo)

-i would like to have all the categories displayed with their icons in a grid fassion with a number of how many articles they have...
kind like this------------------>Resized Image

-I would finally like each article to have the first paragraph or so visible to all users but only the full article viewable by members. Basically a seperate permission for the brief view and the full article.

Can anyone please advise me of a article system that works similar to this or can to exactly what i want (or close enough)...

Help greatly appreciated.

Ivan



8
ivandr
Re: Upload images (thumb and original)
  • 2005/6/30 9:40

  • ivandr

  • Just popping in

  • Posts: 14

  • Since: 2005/6/2 7


Quote:

zbystr wrote:
So....I know MyAlbum...But it isn't, what i need.
so I need:
When I write article in News model and I want to add picture into article I need upload image on server and create automaticly thumb image.
So after if I read article (as user) .... I need see in article thumb image and after click on this image, original-size image will open in new window.
I know, I can upload original-size image first and after thumb image, but I need it automaticly.

Thank

ZbySTr


I need something like this aswell, so that when an image is inserted in an article, it looks better when its only a small image as it doesnt take up the whole screen, and then when you click on the image, a new windows opens with the larger image (and prefferably a watermark of your website logo) and a close button underneath it...

Also the new windows should resize itself according to the size of the image :)

Any help appreciated :)

Ivan



9
ivandr
Re: Image Gallery that resizes and makes thumbnails
  • 2005/6/29 1:53

  • ivandr

  • Just popping in

  • Posts: 14

  • Since: 2005/6/2 7


Interesting, vBulletin can do it....

I want a watermark to be inserted whenever someone uploads an image, so that i can brand them.

I have found an php class script, phpothumb() that appears to do what i want, and intergrates with imageMagick.

The only problem is i dont know how this could be intergrated.

I believe that this should come with MyAlbum-p by default because it is a very handy tool to have....

Can anyone share some light with this?

Ivan



10
ivandr
Re: Image Gallery that resizes and makes thumbnails
  • 2005/6/28 7:18

  • ivandr

  • Just popping in

  • Posts: 14

  • Since: 2005/6/2 7


I have since discovered that myAlbum works well although is cluttered and not clean looking - will fix it somehow...

My next problem is that every image that gets uploaded is to have a watermark in the corner of every photo yet myAlbum, or any of the others that i tried could not do it. What options do i have to do this?

Regards,
Ivan




TopTop
(1) 2 »



Login

Who's Online

188 user(s) are online (114 user(s) are browsing Support Forums)


Members: 0


Guests: 188


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