×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: MyTemplate: MT-DoubleSlide (need help with bugs)

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 3 weeks ago #3220

  • Helly
  • Helly's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 29
  • Thank you received: 8
Hi,

Currenly with some bugs in it wich i cant find as of yet.
Template is in full Div's. Based on the new Div based emotop.

Problems / Bugs:

Slider doesnt work when NOT logged in.
When you click reply the form magiclly dissapears :blink:.
The indent doesnt work properly (maybe comment.class.php error ? cant tell )
The "Send button doesnt display properly altough i think it is CSS based)
I can not change the comment when i press edit


the link:

http://ww3.vegetarisme.be/

Javascript code :
var JOSCmySlide = new Fx.Slide("JOSCMTtexttoogle");
$('JOSCMTstretchertoogleFORM').addEvent('click', function(e){
	e = new Event(e);
	JOSCmySlide.toggle();
	e.stop();
});
var JOSCmySlide2 = new Fx.Slide("JOSCMTCommentstoogle");
$('JOSCMTstretchertoogleCOMMENTS').addEvent('click', function(e){
	e = new Event(e);
	JOSCmySlide2.toggle();
	e.stop();
});
function JOSC_afterAjaxResponse(action) {
		switch(action) {
			case 'show':
			case 'response_reply':
			case 'response_edit':
			case 'response_quote':
				JOSCmySlide.show();
				return 0;
				break;	
			case 'hide':
			case 'response_editpost':
			case 'response_posted':
			case 'response_approval':
    			JOSCmySlide.hide();
				return 0;
				break;
/* because of bug with IE ...(?)
			case 'response_searchform': 
			case 'response_getcomments':
				JOSCmySlide.show();
                JOSCmySlide.hide();
				return 0;
                break;
*/
			default:
				return 0;
		}
	}
	if (window.document.URL.indexOf("#CommentForm")<0) {
           if (JOSC_is_ie) window.onload = function(){JOSC_afterAjaxResponse("hide");}
           else JOSC_afterAjaxResponse("hide");
    }
	if (window.document.URL.indexOf("#josc")<0) {
           if (JOSC_is_ie) window.onload = function(){JOSC_afterAjaxResponse("hide");}
           else JOSC_afterAjaxResponse("hide");
    }

The index.html code :
<html>
<head>
<link rel="stylesheet" href="/css/css.css" type="text/css" />
</head>
<body>
<div id="comment">
<!-- <<< html code above is just to allow preview of template -->
 
JOOMLACOMMENT TEMPLATE : MyMTDoubleSlide-Emotop
 
/*-----------------------------------------------------------*/
/*--  only {xxx}{/xxx} blocks are taken in account  ---------*/
/*-----------------------------------------------------------*/
{readon}
	<div class='write_comment'>
		<a href="/{READON_LINK}#JOSC_TOP" class="readon">{READON_WRITE_COMMENT} ({READON_COUNT} {READON_COMMENTS})</a>
	</div>
	{BLOCK-preview}
	<div class='comment_preview_container'>
		{preview-lines}
	</div>
	{/BLOCK-preview}
{/readon}
{previewline}
	<div class='comment_preview'>
    	<a href="/{PREVIEW_LINK}#josc{id}">{PREVIEW_DATE} <b>{PREVIEW_TITLE}</b></a>
	</div>
{/previewline}
 
{search}
<form name='joomlacommentsearch' id='joomlacommentsearch' method='post'>
  <a name='SearchForm'></a>
  {_HIDDEN_VALUES}
  <fieldset>
      <legend>{_JOOMLACOMMENT_SEARCH}</legend>
      <div>
      <label for="serch">{_JOOMLACOMMENT_PROMPT_KEYWORD}</label>
      <input name='tsearch' type='text' class='inputbox' size='40' />
      <input name='bsearch' type='button' class='button' value='{_JOOMLACOMMENT_SEARCH}' onclick='JOSC_search()' />
      </div>
      <div>
        <input type='radio' name='rsearchphrase' onClick='JOSC_rsearchphrase_selection="any"' checked='checked' />{_JOOMLACOMMENT_SEARCH_ANYWORDS}
        <input type='radio' name='rsearchphrase' onClick='JOSC_rsearchphrase_selection="all"' />{_JOOMLACOMMENT_SEARCH_ALLWORDS}
        <input type='radio' name='rsearchphrase' onClick='JOSC_rsearchphrase_selection="exact"' />{_JOOMLACOMMENT_SEARCH_PHRASE}
 
      </div>
  </fieldset>
  <div style='margin-bottom: 5px;'></div>
</form>
{/search}
 
{searchresults}
<div id='SearchResults'>
    <a name='SearchResults'></a>
    <ul>
        <li>
            {resulttitle}
        </li>
        {searchresult}
        <li class='post'>
            <div class='posthead'>
                <span class='postinfo'>
                    {date}
                </span>
                <span class='comment_by'>
                    {title} {_JOOMLACOMMENT_BY} {name}
                </span>
            </div>
            <div class='postcontent'>
                <a  href='{address}'>{preview}</a>
            </div>
            {/searchresult}
        </li>
    </ul>
    <div style='margin-bottom: 5px;'></div>
</div>
{/searchresults}
 
/*-----------------------------------------------------------------------*/
/*--  everything (!) inside body /body are taken in account  ---------*/
/*-----------------------------------------------------------------------*/
{body}
<div class="josc_clear"></div>
<a name='JOSC_TOP'></a>
{library}
<script type="text/javascript" src="components/com_comment/joscomment/jscripts/mootools.v1.11.js"></script>
{/library}
{menu}
<ul id='CommentMenu'>
     <li class='josc_buttons'>
        {BLOCK-add_new}
	    <a id='_JOOMLACOMMENT_ADDNEW' href='javascript:JOSC_afterAjaxResponse("show");{BUTTON_ADDNEW_js}'>{_JOOMLACOMMENT_ADDNEW}</a>
		{/BLOCK-add_new}
		{BLOCK-delete_all}
		<a id='_JOOMLACOMMENT_DELETEALL' href='javascript:{BUTTON_DELETEALL_js}'>{_JOOMLACOMMENT_DELETEALL}</a>
		{/BLOCK-delete_all}
		{BLOCK-search}
		<a id='_JOOMLACOMMENT_SEARCH' href='javascript:{BUTTON_SEARCH_js}'>{_JOOMLACOMMENT_SEARCH}</a>
		{/BLOCK-search}
		{BLOCK-rss}
		<a id='_JOOMLACOMMENT_RSS' href='{BUTTON_RSS_URL}'>{_JOOMLACOMMENT_RSS}</a>
		{/BLOCK-rss}
    </li>
    <li>
        <a id="JOSCMTstretchertoogleCOMMENTS" href="javascript:void(null)"><img src="{template_live_site}/images/new.png" alt="+/-" /></a>
        {_JOOMLACOMMENT_COMMENTS_TITLE}
    </li>
 
</ul>
<div class="josc_clear"></div>
{/menu}
<div id = "JOSCMTCommentstoogle">
<span id='JOSC_busypage'></span>
{pagenav}
<!-- here will be inserted the page nav -->
{/pagenav}
{post}
<ul id='post{id}' style='margin-left:{wrapnum};'>
    <li class='post'>
        <a name='josc{id}'></a>
        <div class='posthead'>
            <span class='postinfo'>
                {BLOCK-website}{website}{/BLOCK-website}
	        {notify}
            	{BLOCK-usertype}|<span class='postusertype'>{usertype}</span>{/BLOCK-usertype}
            	|<span class='postdate'>{date}</span>
            </span>
            <span class='username'>
                {username}
            </span>
            {BLOCK-title} - <span class='posttitle'>{title}</span>{/BLOCK-title}
 
        </div>
        <div class='postcontent'>
            {BLOCK-avatar_picture}{avatar_picture}{/BLOCK-avatar_picture}{content}
        </div>
        {BLOCK-footer}
        <div class='postfooter'>
            {voting}
                <span>
                    {editbuttons}
                </span>    
 
        </div>
 
        {/BLOCK-footer}
    </li>
</ul>
{/post}
</div>
{form}
<div id = "formke">
<form name='joomlacommentform' id='joomlacommentform' method='post' action='{self}'>    
<a name='CommentForm'></a>
<a id="JOSCMTstretchertoogleFORM" href="javascript:void(null)"><img src="{template_live_site}/images/new.png" alt="+/-" /><legend id='CommentFormTitle'>{_WRITECOMMENT}</legend></a>
<div id ="JOSCMTtexttoogle">        
<fieldset>
            <legend>Your Contact Details:</legend>
            <div>
                <label for='tname'>{_ENTERNAME}</label>
                <input name='tname' id="tname" type='text' value='{username}' tabindex="1" {registered_readonly}/>
                   </div>
            {BLOCK-_ENTEREMAIL}
            <div>
                <label for='temail'>{_ENTEREMAIL}</label>
                <input name='temail' id="temail" type='text' value='{email}' tabindex="2" {registered_readonly}/>
                        {notifyselect}
            </div>
            {/BLOCK-_ENTEREMAIL}
            {BLOCK-_ENTERWEBSITE}
            <div>
                <label for='twebsite'>{_ENTERWEBSITE}</label>
                <input name='twebsite' id="twebsite" type='text' tabindex="3" value='{website}'/>
            </div>
            {/BLOCK-_ENTERWEBSITE}
        </fieldset>
        <fieldset>
            <legend>Comment:</legend>
            <div>
                <label for='ttile'>{_ENTERTITLE}</label>
                <input name='ttitle' id="ttile" type='text' tabindex="4" />
            </div>
            {BLOCK-_UBBCode}
            <div>
                <label>{_UBBCODE}</label>
                {UBBCodeButtons}
                {UBBCodeSelect}
            </div>
            {/BLOCK-_UBBCode}
            {BLOCK-emoticons}
            <div id='emoticons'>
                 {emoticons}
            </div>
            {/BLOCK-emoticons}
            <div>
                <label for='tcomment'>Message:</label>
                <textarea name='tcomment' id='tcomment' cols='{formareacols}' tabindex="5" rows='10'></textarea>
            </div>
        </fieldset>
        {BLOCK-_CAPTCHATXT}
        <fieldset>
            <legend>Security</legend>
            <div id='security'>
                {security_image}
                <input type='text' name='security_try' id='security_try' size='15' maxlength='10' tabindex="6" class='captchainput' />
            </div>
            {_CAPTCHATXT}
        </fieldset>
        {/BLOCK-_CAPTCHATXT}
        {_HIDDEN_VALUES}
        <input type='button' class='button' tabindex="7" name='bsend' value='{_SENDFORM}' onclick='JOSC_editPost(-1,-1)' />
        <div id='JOSC_busy'></div>
</form>
{/form}
</div>
</div>
<script type="text/javascript" src="components/com_comment/joscomment/jscripts/test.js"></script>
{/body}
 
<!-- >>> html code below is just to allow preview of template -->
</div>
</body>
</html>

Css only posted when really needed (its basicly normal Emotop CSS with color adjustments)
Feel free to help , and use of course and help with bugfixes.

Thx in advance,
Helly

PS: Daniël: if you need a superadmin account i can provide it via pm.

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 3 weeks ago #3221

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Could you zip the folder and upload it here. This way I can work on all your files.

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 3 weeks ago #3222

  • Helly
  • Helly's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 29
  • Thank you received: 8

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 3 weeks ago #3224

  • Helly
  • Helly's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 29
  • Thank you received: 8
update : found another bug: I can not change the comment when i press edit

also added it in the top post.

HELLY

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 3 weeks ago #3233

  • Helly
  • Helly's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 29
  • Thank you received: 8
As it seems theire has been a problem with the archive. The index page wasnt updated like it should be.

http://bartos.dommel.be/

the ZIP has been updated
apologies.

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 3 weeks ago #3236

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ok, I made some changes. Please use single quotes instead of double ones.

first thing - library path was wrong.
second thing - you had to move the library tags position. You want to include javascript that examines the form, if you add it before the form, then it is not going to work.


There is no margin problem on my configuration (joomla 4.0 nearly beta 1 :))
use this configuration svn.compojoom.com/jocomment/trunk/
(for the changes that I made to your template look the attached file)

What I see now is that I will have to rewrite the old templates and fix the js code in the client file.

If you use the new template syntax, then there are no margin problem(comment indent), but the js is expecting a table in the script and that is a problem.
So the new release will have to wait.
I want everything to be perfect. myMTSlideBoth_emotop.zip

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 3 weeks ago #3239

  • Helly
  • Helly's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 29
  • Thank you received: 8
Oke, Thanks allready.

If theire is something i can help with. Just feel free to tell me. My company's site is in a hurry with this template alltough the normal commentary works just fine atm. Without the sliders.
So if you need help just ask :)

Helly

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 3 weeks ago #3253

  • Helly
  • Helly's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 29
  • Thank you received: 8
So basicly i need to install 4.0 now ? or just edit the comment.class.php ?

gonna work on the JS code so it expects div's instead of tables.

:EDIT:
Slider doesnt work when NOT logged in.
it does work when i put the require users to log in to post when i disable it

helly

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 3 weeks ago #3261

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Yes, please work on 4.0

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 2 weeks ago #3325

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ok, here is the new jscript.js looking for ul and li instead of table and tbody client.zip

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 2 weeks ago #3326

  • Helly
  • Helly's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 29
  • Thank you received: 8
thx , gonna try it right away

: edit :

The form isnt displayed anymore now. only different Client.js
do i need to adjust my template file or ?
just odd that i cant seem to display it anymore.

:edit 2:

fixed error
now 2nd error when i post message

Character problem. empty comment

and when i try to remove i get a 2nd pop wich is empty.
im really trying to lose it right now :D

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 2 weeks ago #3337

  • Helly
  • Helly's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 29
  • Thank you received: 8
think this requires a reply:

When i set one setting active (random one) ex: change the smiley pack. The extension deletes all my code ( the custom template) and leaves 1 big empty template page.

Im am swimming in a bucket of riddles now and i cant figure them out :(

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 2 weeks ago #3339

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hm, funny - your template is there for me.
I will try to pack my development version of the extension so you can give it a try.

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 2 weeks ago #3340

  • Helly
  • Helly's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 29
  • Thank you received: 8
thanks in advance allready for the quick replys

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 2 weeks ago #3349

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey there!
Here is the development version I promised you!

Please don't do anything under backend->components->!joomlacomment->advertisement .

This is my dev. version and the feature is still not ready.

I fixed your template. Both slides are working for me. The form is closed and you have to click to open it and the comments are open, but after clicking on the +- sign they close :)

I added also the images from the other templates. Please decide which emoticons you want to use and which not and then give us your template so we can include in the next joomlacomment version.

Thank you in advance! jocomment4-29bb36b8eb3b5bfe70a4ae19aad08fcf.zip


edit: If for some reason the component doesn't install, please report the error to me.

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 2 weeks ago #3350

  • Helly
  • Helly's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 29
  • Thank you received: 8
Hi daniël,

Thanks for fixing almost all bugs. At the moment we are having issues with our testsite (some folder got missing), we are resolving this matter asap.
So i tried it in my test site (local webserver one) and guess what. It all worked out. it all works.
Theire is still 1 little bug in it:

when you slide the form and then press reply, the form dissapears. i will look into this matter. At the moment our testsite (remote) has some priority cause of other things working on that one.

I allready want to thank you. and yes you may use it in the next release of the JoomlaComment , open source matters !:laugh:
(would like my name in the template or something :p )

:edit:
can all emoticons be included or ?

greetings
helly

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 2 weeks ago #3351

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Which emoticons? If you want to use your custom emoticons with your template you will have to give me them also :)

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 2 weeks ago #3352

  • Helly
  • Helly's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 29
  • Thank you received: 8
aha , i'm not using that. So will use the standard ones the extension has supplied.

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 2 weeks ago #3353

  • Helly
  • Helly's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 29
  • Thank you received: 8
At the moment checking the extension (fixed our remote server thank god :D )

bugs ive found so far:

- Send button keeps on being displayed half
- After a reply , slide the commens the entire forms slide in and when sliding out the comment form comes out displayed vor 25%

TODO for me:

- put all code via unobtrusive class (based on my friends examples). (think is gonna solve the send button problems & the sliders)

UPDATE will come this noon (i hope)

MyTemplate: MT-DoubleSlide (need help with bugs) 15 years 2 weeks ago #3397

  • Helly
  • Helly's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 29
  • Thank you received: 8
UPDATE TIME:

FIXES:

Send button has been fixed. Reason : mootools bug, worked around it

BIG UPDATE:

Sliders / togglers are now in unobtrusive code wich means
all sliders and all togglers are theire respective arrays.

TODO:

- make auto hide via parameters.
- upload the template OFC for you Daniël
- getting the template approved (hopefully with credits :D )
- write a notepad.
  • Page:
  • 1
  • 2
Time to create page: 0.153 seconds