Welcome, Guest. Please login or register.
Did you miss your activation email?
March 18, 2010, 05:25:17 PM

Login with username, password and session length
Search:     Advanced search
Please Read - How to Get Help!

Participate in the forum and earn Great Rewards!
52072 Posts in 14867 Topics by 127582 Members
Latest Member: skiper43
* Home Help Login Register
+  Joomlashack Customization Forum
|-+  Free Joomlashack Products
| |-+  Free Joomla Templates
| | |-+  SIFRstain
| | | |-+  Cannot edit JS_SIFRstain from front end
« previous next »
Pages: [1] Print
Author Topic: Cannot edit JS_SIFRstain from front end  (Read 9817 times)
telboy
Jr. Member
**
Offline Offline

Posts: 1


« on: September 24, 2006, 02:05:50 AM »

I have just installed JS_SIFRstain but cannot edit content from the front end, the edit icon does not show. Does anyone know how to fix this or is this the way the template is designed?
Logged
Dean Marshall
Hero Member
*****
Offline Offline

Posts: 2850



WWW
« Reply #1 on: September 24, 2006, 09:37:52 AM »


I would hazard a guess that this is a result of the dynamic substitution of text with flash - but until you mentioned the template I had never heard of it (strike up another one for the new boy to learn).

I'll ask someone in the know for confirmation though - just to be sure.

Dean
Logged

Dean Marshall

Dean Marshall Consultancy Limited
Joomla web designers and expert Joomla consultants
http://www.deanmarshall.co.uk/ and http://www.lancasterwebdesigners.co.uk/
hhtmp88
Jr. Member
**
Offline Offline

Posts: 5


« Reply #2 on: March 17, 2007, 09:33:59 AM »

Hi Dean!

I installed this template a few days a ago and start modifying it to suit my need.

I find the same problem to me when I want to edit my content page in the frontend!
--> in addition, the original edit icon is replaced by a bunch of codes, here it is:

=======================
Free Coffee <!-- function olMouseMove(e) { var e = e ? e : event; if (e.pageX) { o3_x = e.pageX; o3_y = e.pageY; } else if (e.clientX) { o3_x = eval("e.clientX+o3_frame." + docRoot + ".scrollLeft"); o3_y = eval("e.clientY+o3_frame." + docRoot + ".scrollTop"); } if (o3_allowmove == 1) {runHook("placeLayer",FREPLACE);if(olHideForm)hideSelectBox(); } if (hoveringSwitch && !olNs4 && runHook("cursorOff", FREPLACE)) { olHideDelay ? hideDelay(olHideDelay) : cClick(); hoveringSwitch = !hoveringSwitch; } } //-->

=====================

, where "Free Coffee" is the title of my content page.


Any ideas of how to correct?

Thanks for any kinds of help!

Logged
escoub
Jr. Member
**
Offline Offline

Posts: 2


« Reply #3 on: March 28, 2007, 11:46:01 AM »

I have the same problem...
Logged
jeromy
Jr. Member
**
Offline Offline

Posts: 1


« Reply #4 on: April 08, 2007, 10:38:01 PM »

I really like this template but the bugs are not managable. Any idea when this will be fixed?
Logged
itheopesIII
Jr. Member
**
Offline Offline

Posts: 5


« Reply #5 on: June 23, 2008, 01:40:44 PM »

I posted a solution that recovers both the edit buttons and the header in the next post. Can't figure out how to delete this post.
I think the problem is somewhere in replacement calls. If you comment out the javascript below in /tempaltes/js_sifrstain/index.php line 70...

<script type="text/javascript">
//<![CDATA[
/* Replacement calls. Please see documentation for more information. */

if(typeof sIFR == "function"){

    sIFR.bHideBrowserText = false;
    sIFR.setup();

        sIFR.replaceElement("#mainbody .contentheading", named({sFlashSrc: "<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/componentheading.swf", sColor: "#990000", sHoverColor: "#333333", sWmode: "transparent"}));
        sIFR.replaceElement("#mainbody .componentheading", named({sFlashSrc: "<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/componentheading.swf", sColor: "#990000", sHoverColor: "#612E00", sWmode: "transparent"}));};
        sIFR.replaceElement("#left div.moduletable h3", named({sFlashSrc: "<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/componentheading.swf", sColor: "#666666", sHoverColor: "#333333", sWmode: "transparent"}));
        sIFR.replaceElement(".moduletable th", named({sFlashSrc: "<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/componentheading.swf", sColor: "#666666", sHoverColor: "#333333", sWmode: "transparent"}));
        sIFR.replaceElement(".small", named({sFlashSrc: "<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/smalltext.swf", sColor: "#666666", sHoverColor: "#333333", sWmode: "transparent"}));
</script>

You won't see the javascript appear when you are logged in. If I figure out how to recover the edit buttons, I'll post it here.
« Last Edit: June 23, 2008, 04:23:23 PM by itheopesIII » Logged
itheopesIII
Jr. Member
**
Offline Offline

Posts: 5


« Reply #6 on: June 23, 2008, 04:09:14 PM »

Ok I figured it out. It doesn't like the javascript in the contentheading. You can correct this by editing the file

/components/com_content/content.html.php

Look for the function Title

and put the edit button in a new column outside of the contentheading class

 function Title( &$row, &$params, &$access ) {
                if ( $params->get( 'item_title' ) ) {
                        if ( $params->get( 'link_titles' ) && $row->link_on != '' ) {
                                ?>
                                <td class="contentheading<?php echo $params->get( 'pageclass_sfx' ); ?>" width="100%">
                                        <a href="<?php echo $row->link_on;?>" class="contentpagetitle<?php echo $params->get( 'pageclass_sfx' ); ?>">
                                                <?php echo $row->title;?>[/url]
<!--- I deleted the EditIcon line from here  and put it below--->
                                </td>
                                <td>
<!---- I added a new column and put the following line in it ---->
                                        <?php HTML_content::EditIcon( $row, $params, $access ); ?>
                                </td>
                                <?php
                        } else {
<!--- do the same as above for all cases --->
                                ?>
                                <td class="contentheading<?php echo $params->get( 'pageclass_sfx' ); ?>" width="100%">
                                        <?php echo $row->title;?>
                                </td>
                                <td>
                                        <?php HTML_content::EditIcon( $row, $params, $access ); ?>
                                </td>
                                <?php
                        }
                } else {
                        ?>
                        <td class="contentheading<?php echo $params->get( 'pageclass_sfx' ); ?>" width="100%">
                        </td><td>
                                <?php HTML_content::EditIcon( $row, $params, $access ); ?>
                        </td>
                        <?php
                }
        }

Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
 

About Joomlashack | Privacy Policy | Terms of Service | Powered by Joomla | Affiliates | Contact Us

Joomlashack designs free and commercial Joomla Templates and Joomla Websites
Learn how to Joomla with our Joomla Tutorials or join our Joomla Template Club
Copyright 2005-2009 Joomlashack. All rights reserved unless otherwise stated.
The Joomla! name is used under a limited license from Open Source Matters.