| Home Content Photos Downloads Search Stats myAccount Discussion |
All Posts
#1
Re: download of modified modules
Mark Boyden
Posted on: 2010/6/22 14:40
I have posted a number of them in the downloads area of this site. Is there a specific one you are looking for?
#2
Re: xcGallery
Mark Boyden
Posted on: 2010/6/1 16:50
Sorry, I didn't provide a downloadable fix, I only provided the info in these messages.
Correct. There are two methods, realistically. OK, maybe three. 1. The really old way: update the file in templates (as you have done); update the module 2. Create a custom set of templates in the templates area. You do this by cloning the default set. Then, you can go into the system preferences and choose the template set you want to use (sort of like how themes are done). You can then edit these individually in the templates area. 3. Use the AltSys module from GIJoe which allows for much better management of blocks and templates IMHO. In the templates area it allows you to manage sets of templates and copy and replace and such real easily as well as compare the various versions and such. As you get into modifying templates in modules you'll really want to have this module. I'll note the blocks management in 2.5.0 of XOOPS is very promising, but it won't necessarily do everything this module does. I have an article on that module in here as well - purely administrative, but necessary. Notes: However, with the changes I proposed that you have already made, updating the module with take care of the moment for you because it gets written to the default set whenever you update which is what the system uses. However, if you make ANY changes to templates, to make sure you don't lose them, clone the default set and then set the preferences to use the new set because if you update the module in the future, you will lose those updates. Clear as mud?
#3
Re: xcGallery
texacoon
Posted on: 2010/6/1 13:28
The "fix" I'm providing will not prevent access to that page nor the creation of albums. All it will do is prevent the ability to see the links to that page.
DOUG: Thanks! .. where would I download it at? Can you explain the process you use to edit your templates? Are you using a custom set of templates? Are you editing a custom one, the default or the file in the module directory? DOUG: Editing a template in my directory using NoteTab Light.. then uploading back to the system.. If you aren't using a custom set and you are editing the file in the module templates directory, then you have to update the module before the default set is updated. My recommendation is to use the AltSys module and create a custom set of templates, set those active in your system preferences and then edit those because every time you update a module the default set is overwritten with the file set. DOUG: OH! .. Making sure I have this correct .. if I do an change to a template, I have to update? So I would go and make a new module for the current one? and do an update? .. I've made it work for me at this point, but I can't see all of your setup, but assuming that the test user is indeed ONLY a registered user, then I would expect to not see the links but only if the template is correct. DOUG: That's correct .. The Test is for a regular user .. does not have admin capabilites..
#4
Re: xcGallery
Mark Boyden
Posted on: 2010/6/1 10:50
The "fix" I'm providing will not prevent access to that page nor the creation of albums. All it will do is prevent the ability to see the links to that page. Can you explain the process you use to edit your templates? Are you using a custom set of templates? Are you editing a custom one, the default or the file in the module directory? If you aren't using a custom set and you are editing the file in the module templates directory, then you have to update the module before the default set is updated. My recommendation is to use the AltSys module and create a custom set of templates, set those active in your system preferences and then edit those because every time you update a module the default set is overwritten with the file set. I've made it work for me at this point, but I can't see all of your setup, but assuming that the test user is indeed ONLY a registered user, then I would expect to not see the links but only if the template is correct.
#5
Re: xcGallery
texacoon
Posted on: 2010/6/1 10:37
Mark ...
LOL! ... Man-O-me .. I did exactly as you stated .. I even tested to see if I could add an album and sure enough I did .. The buttons were still displayed in both ADMIN and REG Member. This is really stranged how it doesnt seem to cooperate .. Did take out the footer as you stated.. OH YES much cleaner. Doug
#6
Re: xcGallery
Mark Boyden
Posted on: 2010/6/1 8:53
You'll notice that at the top of the pages it loads the xcgal_header.html template in the pages. That is where the button code is. Here is some code that should get rid of it. In the xcgal_header.html template, change (about 10 lines from the bottom): <{if $admin_mode==1}> to: <{if $admin_mode==1 && $xoops_isadmin}> That should take care of it for you (will remove display for registered users and leave it for module administrators). I'll note that I totally redid almost all of the templates for this module (as I tend to do for almost every module). I also changed those buttons to simple links among other things (buttons weren't necessary). You might also want to take the xcG/dev.xoops.org attribution out of the xcgal_footer.html, but that is up to you. Beyond learning to install and configure modules, learning to manipulate templates and learning Smarty is another powerful step for XOOPS admins. It's just HTML, generally.
#7
Re: xcGallery
texacoon
Posted on: 2010/5/31 21:40
Well .. tried both and nothing ... did not remove the two buttons ...
I did take a look at xcgal_albmgr.html ... Seems there are is some missing info in the script .. If you have time, see what you think .. Still a newbie on this end, yet when something doesnt quite read right I like to have a second opinion before I start making changes .... Did fix my user test on the site if you would like to try it again .. Matter of fact didnt realize your from Austin Tx ... I may be headed to your area this upcoming weekend ... My folks live in Temple .. I'm originally from Corpus Christi .. Small world ..LOL!
#8
Re: xcGallery
Mark Boyden
Posted on: 2010/5/31 21:02
I logged in using test/test and it gave an incorrect login. not sure what happened there. As to the X vs 1, X was whatever category ID you're trying to not display. If the Member Albums is indeed category 1 (as it should and sounds like it was) then the code I gave you should work. However, that was for the menus block. What you want is for the main photo pages, I'm guessing based on looking at your info. For that, you'll need to edit the xcgal_header.html template. Probably easiest to just remove the link(s) near the bottom of that template. That, or add the xoops_isadmin to the if statement.
#9
Re: xcGallery
texacoon
Posted on: 2010/5/31 18:52
Ok .. took a look .. Cat ID showed 1 .. tried an X and still not fixing the issue ..
Go to http://www.nebcn.org/portal/modules/xcgal/modifyalb.php login as test with password as test .. my site is not open to the public at this time .. Maybe you can see how this xcgal is still can go into the Album Manager just a registered member .. If you log out then you dont see it .. I do like the idea that the only admin can see the Album Manager .. Any of these two Create / order my albums - Modify my albums or still seen and operational for a registered user..
#10
Re: xcGallery
Mark Boyden
Posted on: 2010/5/31 17:34
Hmmmm. It works on my setup. Make sure the category id (cat=X in the URL) is 1. You may be missing a different category for the users. Essentially all I added was code that says, if the categoryID isn't 1 (automatically created when installed for the member albums) or if you are an administrator of the photos module, then you will see the link; otherwise you won't. So, make sure that links is to category ID 1. If not, change the template code to be <> X, where X is that particular category ID. This is obfuscation, not depermissioning. Also, make sure you have cleared your cache and such as well. |
|