404 Error going to CMS > Manage Pages

The only problem I’m having is that when I try to get to CMS > Manage Pages from the Admin Panel I receive a 404 error.

Found a solution for this that works in my scenario. Take a peak in your `cms_page_store` SQL table. You’ll more than likely see one or more entries there for stores that no longer exist. In my case, I had a page_id of 2 (Home Page) that had entries for store id 1, 2 and 3. Since I deleted stores with ID of 2 and 3, those cms_page_store relations were no longer valid.

I simply removed the two offending entries from this table and now CMS/Manage Pages works properly in the admin.

Not sure if there are any other references to these now missing stores anywhere else in the database, but I can only imagine they would be dealt with in a similar manner.

Seems like those relations should be toasted automagically when the store view is deleted via ‘Manage Stores’??

Mighty Resources – Problem with picture field

Picture field didn’t appear on the frontend and give you this error message when click on “Click to Enlarge Picture”
Fatal error: Call to undefined method JS_File_Helper::checkSubscription() in plugins/joomsuite_content_fields/picture.php on line 613
unzip the file from the attachment and copy to folder: plugins / joomsuite_content_fields /
Try it should work.
1295711182_file_helper

FAQ Slider Plugin problem with arabic

If you use FAQ Slider Plugin with arabic site it will show the text in different encode not on utf-8 to fix this problem add this line

$text = mb_convert_encoding($text, 'HTML-ENTITIES', "UTF-8");

below this line

//1	$text = htmlentities ($text,ENT_COMPAT,'UTF-8',false);

on that file

plugins/content/faqslider.php

PHP/MYSQL DATE Search – BETA

<?php
//2008-10-14 00:00:00
$beginDate = date("Y-m-d H:i:s", strtotime( $_POST&#91;'beginDate'&#93;));
$endDate = date("Y-m-d H:i:s", strtotime( $_POST&#91;'endDate'&#93;));

$query="SELECT Email FROM Customer WHERE UDFDate2 BETWEEN '$beginDate' AND '$endDate' ";
?>

How to Show hide toggle display a DIV using javascript?

If you want to show/hide a div, you are on the right place here is an example


<input type=button value="Please click here" onClick="javascript:toggle()">
<script>
function toggle(){
	var div1 = document.getElementById('welcomeform')
	if (div1.style.display == 'none') {
		div1.style.display = 'block'
	} else {
		div1.style.display = 'none'
	}
}
</script>
<div id="welcomeform" style="display:none;">Welcome :-)</div>

Joomla: How to remove “Powered by Phoca Maps”

The file that generates the link can be found in the path

/administrator/components/com_phocamaps/helpers/phocamaps.php

Scroll down until you get to the function:

function getInfo() {
return base64_decode(‘PGRpdiBzdHlsZT0idGV4dC1hbGlnbjogcmlnaHQ7IGNvbG9yOiByZ2IoMjExLCAyMTEsIDIxMSk7IGNsZWFyOiBib3RoOyBtYXJnaW4tdG9wOiAxMHB4O21hcmdpbi1ib3R0b206MTBweDsiPlBvd2VyZWQgYnkgPGEgaHJlZj0iaHR0cDovL3d3dy5waG9jYS5jeiIgc3R5bGU9InRleHQtZGVjb3JhdGlvbjogbm9uZTsiIHRhcmdldD0iX2JsYW5rIiB0aXRsZT0iUGhvY2EuY3oiPlBob2NhPC9hPiA8YSBocmVmPSJodHRwOi8vd3d3LnBob2NhLmN6L3Bob2NhbWFwcyIgc3R5bGU9InRleHQtZGVjb3JhdGlvbjogbm9uZTsiIHRhcmdldD0iX2JsYW5rIiB0aXRsZT0iUGhvY2EgTWFwcyI+TWFwczwvYT48L2Rpdj4=’);;
}

and replace with the following

function getInfo() {
return null;
}

Virtuemart – No translations for product names

in second language I can’t see translation of product names in Category (browse_X) and also of product names in Product Detailed View (flypage) in navigation tab (to move to next or previous product in category) – they are all in main language.
Because there is no solution on the web, I tried to do it myself. For the moment I can offer solution only for problem with product names translation in navigation in detailed product view.
Solution for translation of product names in navigation in flypage
Please get this file ps_product, unpack and copy it to Your shop in directory: \administrator\components\com_virtuemart\classes\ps_product.php, replacing file. I advise to make backup of original file.
ps_product

Solution for translation of product names in Category
Please get this file hop_browse_queries, unpack and copy it to Your shop in directory: \administrator\components\com_virtuemart\html\shop_browse_queries.php, replacing file. I advise to make backup of original file.
shop_browse_queries

Preventing A Form To Submit If A Field Is Empty

With this code, it alerts the user when the form is empty, but still submits it when the user clicks [OK]

<script type="text/javascript" language="JavaScript">
function nameempty()
{
        if ( document.formname.name.value == '' )
        {
                alert('No name was entered!')
                return false;
        }
}
</script>

<form action="submit.php" method="post" name="formname" onsubmit="return nameempty();">
<input type="text" name="name" class="textfield">
<input type="submit" value="Submit" name="submit">
</form>

How to detect mobile device using PHP?

by using this script you can detect a mobile device

<?php

/* detect mobile device*/
$ismobile = 0;
$container = $_SERVER&#91;'HTTP_USER_AGENT'&#93;;

// A list of mobile devices
$useragents = array (
                'Blazer' ,
                'iPhone' ,
                'iPad' ,
                'Palm' ,
                'Handspring' ,
                'Nokia' ,
                'Kyocera',
                'Samsung' ,
                'Motorola' ,
                'Smartphone',
                'Windows CE' ,
                'Blackberry' ,
                'WAP' ,
                'SonyEricsson',
                'PlayStation Portable',
                'LG',
                'MMP',
                'OPWV',
                'Symbian',
                'EPOC',
                );

foreach ( $useragents as $useragents ) {
    if(strstr($container,$useragents)) {
        $ismobile = 1;
    }
}
if ( $ismobile == 1 ) {
    //code for mobile devices
}else {
    //code for web
}
?>
Page 18 of 24«15161718192021»

Pin It on Pinterest