"OK this should take just a few minutes..."

I've written this because I spent all night on setting up a "quick" demo resulting in a quick 1 hour nap before having to go to my day job...  It sounds straight forward because both phpBB3 and RocketTheme talk about how to install the RocketTheme templates...  But it's not.  I'm rewriting their instructions here so that I can I do this on other websites:

Important Note:  On Linux (Apache), all file names and folder names are case-sensitive, so phpbb3 is NOT the same as phpBB3.  Bear this in mind during the installation process.

 


The Issue

Basically that you've installed JoomlaEZ's ReCaptcha Integrator plugin to protect your forms ("type two words" captcha) and then installed K2 Comments to use it's own ReCaptcha.  If you try adding a comment, you may get something like the following:

copyraw
Fatal error:
Cannot redeclare_recaptcha_qsencode() (
     previously declared in /public_html/plugins/system/jezReCaptcha/recaptcha-php-1.10/recaptchalib.php:47
)
in /public_html/components/com_k2/lib/recaptchalib.php on line 67
  1.  Fatal error: 
  2.  Cannot redeclare_recaptcha_qsencode() ( 
  3.       previously declared in /public_html/plugins/system/jezReCaptcha/recaptcha-php-1.10/recaptchalib.php:47 
  4.  ) 
  5.  in /public_html/components/com_k2/lib/recaptchalib.php on line 67 

I've managed to fix this in my site. Because you already force the recaptcha feature in your registration form and contact form (on this website I just went recaptcha-happy), then there are some settings you need to change in the plugin options:

  • Inclusion Syntax = NO
  • Auto-verify =YES

 

Update 16.NOV.2009

I don't see this supported anymore so I wouldn't recommend using the JezRecaptcha plugin.  In fact I'm not impressed with Recaptcha as it's sound alternative doesn't work and the text form is hackable.

I will be changing this over throughout the site... I may keep recaptcha for the comments feature on K2 articles but it should be considered low security.

Category: Joomla :: Article: 203

Old Server

copyraw
mysqldump -u root -p wikidb > wikidb.sql
tar -cvf wiki.tar wiki   ;this is the wiki folder on document root
  1.  mysqldump -u root -p wikidb > wikidb.sql 
  2.  tar -cvf wiki.tar wiki   ;this is the wiki folder on document root 


New Server:

copyraw
create database wikidb;  this is inside mysql, Note that both mysql versions should be same.
grant create, select, insert, update, delete, lock tables on wikidb.* to wiki@localhost identified by 'YourPassword' ;
  1.  create database wikidb;  this is inside mysql, Note that both mysql versions should be same. 
  2.  grant create, select, insert, update, delete, lock tables on wikidb.* to wiki@localhost identified by 'YourPassword' ; 


MediaWiki Upgrade

copy all the new files to wiki folder and then run php update.php from maintenance folder after updating AdminSettings.php

 

More Information

http://www.mediawiki.org/wiki/Manual:Moving_a_wiki

Category: MediaWiki :: Article: 195

Source: http://forum.joomla.org/viewtopic.php?f=431&t=401086&p=1693742#p1693742

It's been difficult to find an easy solution to hide menu items from registered users. Finally, I found a solution that works 100% for me using the MetaMod tool without using any template hacks. The instructions on the metamod page are very vague so I wanted to make it bit more in-depth for this specific use. I'd love to hear if this helps you. Let me know if you find any mistakes and I'll be sure to fix asap.

 


This is what I had to do to be able to add another template to the dropdown in the Kunena configuration panel:

  1. Download your site from your server to a copy on your local disk (hard disk, flash drive, etc)
  2. Make sure that the \components\com_kunena\template folder is on your local disk
  3. Make a copy of the default folder inside
  4. Rename this to the name of your new template (avoid any spaces)
  5. Download the new template for the Kunena forum
 
This is what the official Kunena documentation says:
 
Installing another Template
  1. Download the Template package.
  2. Open your FTP Connection and go to \components\com_kunena\template\
  3. Extract the folder "Template Name" into this directory ^
  4. If in the package the folder "lib" contains, extract the files in the directory \components\com_kunena\lib\

Update for Joomla 2.5.x
Note that Joomla versions 1.6 upwards include this as an option in the global configuration settings which you can access using your Joomla admin panel:
  1. Template Manager
  2. Options
  3. Preview Module Positions -> Disabled or Enabled
You will still need to suffix the frontend URL with ?tp=1


Joomla 1.5.x

 This is another feature which took me a few years to notice in Joomla.  If you've ever installed a template for Joomla and spent hours working out where or how you are going to put what where, try adding ?tp=1 after your index.php url (ie. http://www.yourdomain.com/?tp=1)

If this doesn't work for you try this:

  1. Log in to the backend of your website (into the Joomla Admin Panel)
  2. Go to Extensions > Template Manager > select your template
  3. Click on the big Preview button in the top right
  4. Click on the link 'Show in New Window'
  5. Bookmark the web address of the new window

The bookmark/favorite that you have just made can be refreshed when you change things on your site and should reflect exactly how your website is overlayed with the module positions.  You will need to repeat the process when you select a different template but otherwise the bookmark will last as long as you keep that template.


The Issue

Basically that after upgrading Joomla, my TinyMCE WYSIWYG (What-you-see-is-what-you-get) editor halved its number of buttons and I couldn't add code snippets... 

The Fix

Just installed JoomlaFCK WYSIWYG Editor, an editor I use with my day job's MediaWiki software and it's pretty amazing.  Incredibly cross-browser compatible with some MS Office 2007 styling and fortunately maintains it's previous button layout.  The features such as full-screen editing, emoticons, and pasting from MS Word documents make it the best in the market IMO.

Joomla FCK Editor

You can download it for free from http://www.joomlafckeditor.com/ but you will need to register on their site first.


This took me a while to do so I thought I'd document it for future reference.

The Issue

See the restore default setting link at the bottom of this page in the footer?  I wanted to put one of the styled buttons behind it but then found that there's a lot more to do than just that.

Instructions

  1. Open the templates/rt_affinity_j15/index.php
  2. Look at the last few lines with the original code (below)
  3. For this website template: 
    1. I've added the module-dark classes.
    2. Specified float:none to get rid of float:left
    3. Specified width of readon-wrap1 to the width of the button
    4. Specified margin:0 auto to center readon-wrap1

 

Original Code:

copyraw
<?php if ($show_defaultsettings == "true") : ?>
	<a href="#" id="clear-cookies"><?php echo JText::_('DEFAULT_SETTINGS'); ?></a>
<?php endif; ?>
  1.  <?php if ($show_defaultsettings == "true") : ?> 
  2.      <a href="#" id="clear-cookies"><?php echo JText::_('DEFAULT_SETTINGS')?></a> 
  3.  <?php endif; ?> 

 

New Code:

copyraw
<?php if ($show_defaultsettings == "true") : ?>
	<div style="overflow: hidden;float:none">
		<div class="module-dark readon-wrap1" style="float:none;width:200px;margin:0 auto">
			<div class="module-dark readon1-l"></div>
			<a href="#" id="clear-cookies" class="module-dark readon-main" style="margin-top:0px"><span class="module-dark readon1-m"><span class="module-dark readon1-r"><?php echo JText::_('DEFAULT_SETTINGS'); ?></span></span></a>
		</div>
	</div>
	<div class="clr"></div>		
<?php endif; ?>
  1.  <?php if ($show_defaultsettings == "true") : ?> 
  2.      <div style="overflow: hidden;float:none"> 
  3.          <div class="module-dark readon-wrap1" style="float:none;width:200px;margin:0 auto"> 
  4.              <div class="module-dark readon1-l"></div> 
  5.              <a href="#" id="clear-cookies" class="module-dark readon-main" style="margin-top:0px"><span class="module-dark readon1-m"><span class="module-dark readon1-r"><?php echo JText::_('DEFAULT_SETTINGS')?></span></span></a> 
  6.          </div> 
  7.      </div> 
  8.      <div class="clr"></div> 
  9.  <?php endif; ?> 

 

Category: Joomla :: Article: 171

Change Page Title in Website
Here are some instructions on changing the page title in Joomla! CMS to display both the actual page title and other stuff. As I like doing this for this particular website (my personal one) in every version of Joomla it's been upgraded to, I've noticed some differences that I've noted down below.

Specific Joomla Template Providers

Everytime I update this article, Joomla seems to come out with a new version. If you have installed Joomla 2.5, this is now a setting in the global configuration... The only problem is that your landing page becomes "HOME - SITENAME.COM" which is ridiculous and I'm sure Joomla will release a new version addressing this.


Basically the gist of http://docs.joomla.org/Security_Checkli … omla_Setup is as follows: 

Security Checklist 4 - Joomla Setup 
1. Install official versions of Joomla 
2. Change the default administrator username 
3. Protect directories and files 
4. Adjust file and directory permissions 
5. Remove unneeded files 
6. Turn Register Globals Emulation OFF 
7. Check for extension vulnerabilities 
8. Remove junk files 

Source: http://docs.joomla.org/Security_Checkli … omla_Setup

Hide Menu Item from Registered and Special

Refer to this link if you want to clean out a front-end admin interface with your website's style.  The following is from http://forum.joomla.org/viewtopic.php?f=32&t=252258&start=0 at this date/time.

Can't simply hide an item but can hide a menu (of course the menu could have been created with just one item with no title and positioned at the bottom of another menu; this would look like it was all part of one menu).

toubkal wrote:
This cannot be done by joomla administration but can be done by template code, you can have a module position in the template that is set to only show when the visitor is not logged in e.g. Code:

copyraw
<?php if ( !$my->id ) {?> 
     <div id="topmod"><?php mosLoadModules ( 'top', -2 ); ?> </div>
<?php } ?>
  1.  <?php if ( !$my->id ) {?>  
  2.       <div id="topmod"><?php mosLoadModules ( 'top', -2 ); ?> </div> 
  3.  <?php } ?> 

 

Joomla extension disable menu link for registered users but not for public 

More Information: not so great, lot of text: 
http://help.joomla.org/content/view/476/146/

Category: Joomla :: Article: 167

Credit where Credit is Due:


Feel free to copy, redistribute and share this information. All that we ask is that you attribute credit and possibly even a link back to this website as it really helps in our search engine rankings.

Disclaimer: Please note that the information provided on this website is intended for informational purposes only and does not represent a warranty. The opinions expressed are those of the author only. We recommend testing any solutions in a development environment before implementing them in production. The articles are based on our good faith efforts and were current at the time of writing, reflecting our practical experience in a commercial setting.

Thank you for visiting and, as always, we hope this website was of some use to you!

Kind Regards,

Joel Lipman
www.joellipman.com

RSS Feed

Related Articles

Joes Revolver Map

Joes Word Cloud

field   mysql   value   list   source   order   system   joomla   file   uploaded   using   parameter   table   display   user   version   windows   website   page   note   data   work   form   find   error   added   files   report   code   first   zoho   would   case   need   deluge   name   used   script   time   database   client   date   license   server   following   google   where   function   creator   create   JoelLipman.Com

Accreditation

Badge - Certified Zoho Creator Associate
Badge - Certified Zoho Creator Associate

Donate & Support

If you like my content, and would like to support this sharing site, feel free to donate using a method below:

Paypal:
Donate to Joel Lipman via PayPal

Bitcoin:
Donate to Joel Lipman with Bitcoin bc1qf6elrdxc968h0k673l2djc9wrpazhqtxw8qqp4

Ethereum:
Donate to Joel Lipman with Ethereum 0xb038962F3809b425D661EF5D22294Cf45E02FebF
© 2024 Joel Lipman .com. All Rights Reserved.