How to store extension settings in MediaWiki? - settings

I looked up for some plugins and I found that most of them ask to create manually one more table in database, or store their settings in some file.
What is the best way? Thanks.
PS I really don't think that the client want to create anything manually in his DB.
UPDATED
For now I'm using Special Page with form on it, and store settings as serialized data in file.

As the install manual says, having shell access to the server is a requirement.
There are workarounds but don't expect everything to work.

Related

Folder metadata displaying ID instead of folder Name

I am new to Oracle UCM(already hate it) and I have this bug on the standart "Content information" page when displaying "Folder" meta - instead of DCOLLECTIONNAME I get DCOLLECTIONID from COLLECTIONS table. Now we have two versions of UCM installed on different servers, one with our custom module and one without it, you can guess which one works fine :-) I checked settings in admin aplet / Configuration manager and they are the same on both servers, so my next thought was there must be some problem with page template(I found some function named getCollectionPathFromID somewhere which does exactly what I need but dont know where to put it to make it work). Can anyone point me to the right direction? I found some template called std_page.htm but it contains realy huge amount of code... Any help would be appreciated.
What specific versions of WebCenter Content are you using? Are the two instances on the exact same version? You can find this information on the Configuration for instance name page.
How are you trying to view the data?
Are you calling &IsSoap=1 or &IsJava=1? Or are you meaning the display of the folder name/path on the page is showing dCollectionID?
I assume that based on dCollectionID you are using the Folders_g (Contribution Folders) component and not FrameworkFolders.
Can you provide a link to download your custom component? It sounds like this may be the culprate.

PyroCMS File Module Costomization

I am using Pyrocms for an application. There is a module available for File managment. Although it is good enough but i need to customize it according to my requirements.
Here are the requirements
For each file admin from backend can create multiple temporary links
Each file should be limited to some time duration defined by admin
And download limit should be 3 for each user
Now i need suggestions how i can do these tasks to accomplish the application.
Do i need some more tables to handle the situation?
Or can i extend existing file table.
What about temporary links how can i create them and let user download the file?
Another requirement if user uses the link, download popup comes and he cancels three times i have to restrict him now that he can not download it now.
So using ip will do it or some other suggestion.
If i have to send multiple links to a single user through email then how can i customize the File modules to fit my needs.
Please give some suggestion.
Would the Download module help at all?
This all sounds like it should be an extra module, as the Files job is just to handle Files. Downloads are a very different aspect, but you can use the Files library in PHP to get lists of files and server them up?
So:
Files handles Files.
Downloads handle the downloading of "Files"
If the Download module by Authur Guy is not good enough for your needs you should definitely think about building one and selling it on the store.

Joomla 1.6 backend admin area blank

For some reason, when I log into my joomla 1.6 backend, it is now empty, displaying only a logout button. Any Ideas?
I just went through the same problem but on J!1.7.3. There may be many, many reasons but please check using just URL if you can see for example:
[YourDomainHere]/administrator/index.php?option=com_content or
[YourDomainHere]/administrator/index.php?option=com_modules
If content is listing and you're missing just Admin-menu and sub-navigation in back-end --> this means you messed-up with access levels and viewing access.
If you can't see content listing - ignore the rest of this post :-)
...with access levels and viewing access. To check that, try entering [YourDomainHere]/administrator/index.php?option=com_users&view=levels and enter each position in the list. Joomla backend navigation module usually has Access set to Special, so focus on this one. When enter Special - manager, author and super administrator should be ticked. If everything empty in any from the list - this is your issue :)
You need to add manager, author and super administrator to your Special access level. Obviously you can't see Save button, so you need to use database. [wrrr :) sounds scary?] Not a big deal, just go there using for example phpMyAdmin and find _viewlevels table. In there just edit Special and add [6,2,8] values to set up manager, author, super.....
Update database. Try to log-in one more time (close browser and clean cache before).
I hope if this wasn't helpful for you, will be for somebody else.
p.s. There may be a way of 'saving' changes in you joomla access levels with URL. Then you don't need to go to DB .. but I don't know if this is feasible at all :)
Check the rewrite of htaccess and the $mosConfig_absolute_path variable in config.php
Apparently, the Bluestork Template (admin template) has some security issues. In my case there were some missing files in the template folder /administrator/templates/bluestork/ that caused the administrator screen to appear blank. I've copied a clean version of the template in the bluestork folder and after that I was able to see the backend admin area.
I've removed the bluestork templates entirely for now, which seems to be the best option. Joomla installs 2.5.8, 2.5.6, 2.5.2, 1.7.0, 1.6.3 are affected. The Blustork Template is a target for hacks with old Joomla.
this happening becoz of admin user lost his permissions. see below article to fix this issue
http://www.codentalk.com/joomla-admin-showing-blank-page/

wkhtmktopdf on shared hosting does not return any data...?

Hi friends currently i m working on a small business project.
for this project i need to convert my dynamic html page into a PDF file..
I googled for html to pdf and found wkhtml...
in my local-host system its works like charm..
But in my shared server it does not gives any output... errors also. when php wrap execute, it fails silently..
Any idea guys??
another thing.. In my shared hosting, they are disabled exec,proc_open and other process related functions, So i used .htaccess file to point another php.ini for reconfiguring the disabled_functions.
Because your hosting provider has disabled the exec methods, I'm sure they won't be pleased to find out you're trying to use wkhtmltopdf. It might be a good idea to contact them about your plans.
When downloading wkhtmltopdf, make sure you grab the right package (based on the server specs). Your best bet is to use one of the static packages as it provides most of the libraries needed to run wkhtmltopdf. You might also need to change the file permissions to be able to execute the file.
Lastly, make sure your custom php.ini is even used by php (calling phpinfo() will do the trick).

Taking over a Joomla created site

So i have a client, who has a disc of an entire site. Root server files, all the way to /httphome/ files...
However, it looks like it was created using Joomla. Now, i know my HTMl and CSS but have never used a CMS like Joomla.
To get this site up and running, am i going to have to install Joomla on my clients server, and then upload the files?
i am going to assume its not that easy.... anyone got any insight into this process and what im looking at?
thanks
Keep in mind that Joomla content resides in a MySql database.
You need the following:
Database export
Create a DB on you MySQL server
Upload the files
Edit configuration.php to work with you db and also set your path there
Also, some components might need some more setup, as some of them have their own cfg files.
To get this site up and running (if the file is really the entire site) should be as simple as setting up a web server and pointing it to the directory with the index in it. Joomla should already be in that file. Let me know if i can elaborate on the process.
Since you are new to Joomla, you might want to try loading the disc contents up on your localhost first. Personally, when I'm trying something new, I hate for my first attempts to be somewhat public - I always feel a little safer if I do the first install someplace local where I'm the only person who can see it.
Best of luck with your project! If you run into any problems, or if you want to confirm that the site is definitely Joomla, let us know and we will get you sorted out.
Do you have the related database? The files that make up Joomla are useless without the database. You could install Joomla and upload your files over the top, but any database changes made by any installed extensions wouldn't be made to that install. You'd also be missing all of the actual site content without the database.
If you do have the database, then all you need to do is import the database in you your mySQL, then upload the files you have on the disc and edit configuration.php file with the new database user and password.

Resources