HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Annoying

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#25914 (In Topic #6054)
Avatar

Well-settled

Whenever I add an image to a download, it makes a gallery for it, which I do NOT want!

Please can you consider fixing this in the next release?
 

Coming Soon: Syntyx Community (http://syntyx.net)

Syntyx Community will be a software community. Current projects include PCAno (Virtual Piano) and XCryptoTool (Extremely Secure File Encryption Software).

Website will be powered by ocPortal, of course ;)
Back to the top
 
Posted
Rating:
#26029
Avatar

This is not a bug; it's a feature used by many sites so that images of what's in their downloads can easily be shown. However, we do appreciate that some sites may not want it, and so you can change lines 343-355 of /sources/downloads2.php from:

Code

   // Make its gallery

   $test=$GLOBALS['SITE_DB']->query_value_null_ok('galleries','name',array('name'=>'download_'.strval($id)));

   if (is_null($test))

   {

      require_code('galleries2');

      add_gallery('download_'.strval($id),do_lang('GALLERY_FOR_DOWNLOAD',$name),'','','','root');

      $groups=$GLOBALS['FORUM_DRIVER']->get_usergroup_list();

      if ($is_new)

      {

         foreach (array_keys($groups) as $group_id)

            $GLOBALS['SITE_DB']->query_insert('group_category_access',array('module_the_name'=>'images','category_name'=>'download_'.strval($id),'group_id'=>$group_id));

      }

   }
To:

Code

   // Make its gallery

   /*$test=$GLOBALS['SITE_DB']->query_value_null_ok('galleries','name',array('name'=>'download_'.strval($id)));

   if (is_null($test))

   {

      require_code('galleries2');

      add_gallery('download_'.strval($id),do_lang('GALLERY_FOR_DOWNLOAD',$name),'','','','root');

      $groups=$GLOBALS['FORUM_DRIVER']->get_usergroup_list();

      if ($is_new)

      {

         foreach (array_keys($groups) as $group_id)

            $GLOBALS['SITE_DB']->query_insert('group_category_access',array('module_the_name'=>'images','category_name'=>'download_'.strval($id),'group_id'=>$group_id));

      }

   }*/
You could even delete them, although this isn't advised, as the changes given will disable this feature while retaining the code required in case you want to re-enable it in the future.

Back to the top
 
Posted
Rating:
#26044
Avatar

Community saint

Thank is there also a way to make all download images go into one gallery?
I will be disabling it for now as I do not really like it doing it either.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#26072
Avatar

Well-settled

 Hey! That code did not work at all, it just caused an error saying the requested resource didn't exist!

But anyway, I had a better idea, create a gallery specifically for screenshots and select it when ading the image!

EDIT: Cant do that either…


Last edit: by scurless

Coming Soon: Syntyx Community (http://syntyx.net)

Syntyx Community will be a software community. Current projects include PCAno (Virtual Piano) and XCryptoTool (Extremely Secure File Encryption Software).

Website will be powered by ocPortal, of course ;)
Back to the top
 
Posted
Rating:
#26073
Avatar

Community saint

Thats what i wanted to do too.
I may have to build my own add on for this.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#26074
Avatar

Well-settled

There should be an option in the settings for this. Maybe that could be included in the next release?

Coming Soon: Syntyx Community (http://syntyx.net)

Syntyx Community will be a software community. Current projects include PCAno (Virtual Piano) and XCryptoTool (Extremely Secure File Encryption Software).

Website will be powered by ocPortal, of course ;)
Back to the top
 
Posted
Rating:
#26079
Avatar

scurless said

Hey! That code did not work at all, it just caused an error saying the requested resource didn't exist!

I've just tested it and it worked fine, although it isn't a perfect fix as there are still references around ocPortal to adding images for the downloads (which then reference a non-existant gallery). What's the URL of the page giving you that error, and are you sure you applied the patch correctly?

Back to the top
 
Posted
Rating:
#26164
Avatar

Well-settled

NVM It doesnt matter…
I best wait until an option is available in a later release…

Coming Soon: Syntyx Community (http://syntyx.net)

Syntyx Community will be a software community. Current projects include PCAno (Virtual Piano) and XCryptoTool (Extremely Secure File Encryption Software).

Website will be powered by ocPortal, of course ;)
Back to the top
 
Posted
Rating:
#26167
Avatar

Honoured member

I'd personally give Philip the information.. that way they can make a workaround ( and even maybe incorporate it into a small patch… ) if they feel this is needed for general use..
But that's just my opinion..

:D  Dont shoot the messenger!!  :D

How many of you believe in telekinesis? Raise my hand.

Chris Graham said

I guess a warning in your line of work tends tomean 'run for cover'. Fortunately it's not so severe when it comes to computers ;).
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: