Loading...
 
Features / Usability

Features / Usability


Quicktags icon menu is stuck in collapsed position and will not open. fix?

posts: 54

Anyone got a suggestion on how i can fix my quicktags menu which is stuck in the collapsed position?. My status bar shows: error on page, and im guessing this is related to the problem. Im not sure what i did to cause the problem. I also have a second problem with the categories drop down menu. The menu is squashed so thin i can only see the scroll bar and am unable to select a category. Any fix solution for this too would be apreciated.

Many Thanks

A

posts: 3665 United States

> Anyone got a suggestion on how i can fix my quicktags menu which is stuck in the collapsed position?. My status bar shows: error on page, and im guessing this is related to the problem. Im not sure what i did to cause the problem. I also have a second problem with the categories drop down menu. The menu is squashed so thin i can only see the scroll bar and am unable to select a category. Any fix solution for this too would be apreciated.
>


Did you by any chance use Tiki's template editor to edit the file? The open/close function requires Javascript and Tiki's template editor strips out all JS code (for security).

You'll need to either:

  • Edit the file using a text editor, then FTP to your host

or

  • "Escape" the JS code in the TPL file (use {literal}...{/literal}).



HTH,

-Rick
Now Available: TikiWiki for Dummies Smarties — A beginner's guide to using ))TikiWiki((.

posts: 54


"Did you by any chance use Tiki's template editor to edit the file? The open/close function requires Javascript and Tiki's template editor strips out all JS code (for security).

You'll need to either:

  • Edit the file using a text editor, then FTP to your host

or

  • "Escape" the JS code in the TPL file (use {literal}...{/literal}).


Reply:

Hi Rick. Nope ive used content templates on a few pages but have also checked and can confirm that wiki pages created without a template dont work either. Ive also not touched the .tpl file for quicktags if there is such a file. However....when pages load the status bar reads "done, but with errors on page" and when i place my mouse over the quicktag collapse link the status bar reads: "javascript:toggleBlock('quicktags');". What ever these status bar message means i dont know. Maybe you are correct in saying the problem involves stripped javascript, but how i fix the problem im not sure. Im also not sure if i understood you right on your reply. which file is it i need to edit exactly?. and what do you mean by "escape"?. I dont see any .tpl file with "quicktags" in the file name.confused

Any "Idiot proof" instructions would be helpfullbiggrin

Thanks

A

posts: 3665 United States

>
> Hi Rick. Nope ive used content templates on a few pages but have also checked and can confirm that wiki pages created without a template dont work either. Ive also not touched the .tpl file for quicktags if there is such a file.

Have you edited any of the TPL template files?

>However....when pages load the status bar reads "d>one, but with errors on page" and when i place my mouse over the quicktag collapse link the status bar reads: "javascript:toggleBlock('quicktags');". >What ever these status bar message means i dont know.

It is a Javascript error. Do you have JS enabled in your browser?

Maybe you are correct in saying the problem involves stripped javascript, but how i fix the problem im not sure. Im also not sure if i understood you right on your reply. which file is it i need to edit exactly?. and what do you mean by "escape"?. I dont see any .tpl file with "quicktags" in the file name.confused
>

It is in tiki-edit_help_tool.tpl. Have you modified the QuickTags in any way? Can you provide a link that demonstrates the problem?

HTH,

-Rick
Now Available: TikiWiki for Dummies Smarties — A beginner's guide to using ))TikiWiki((.

posts: 54

Q:Have you edited any of the TPL template files?

A: A few of them

It is a Javascript error. Do you have JS enabled in your browser?

A: Yep

Q:It is in tiki-edit_help_tool.tpl. Have you modified the QuickTags in any way? Can you provide a link that demonstrates the problem?

A: I looked at the tpl file tiki-edit_help_tool.tpl, and it would seem i probably did mess with it when i was half asleep at 4am. LOL. It looks to me like i have inserted html comment tags, but when i tried to remove them both i get a lot of unwanted code showing up in the quicktag area. I have no idea what i must have been trying to do at the time and can only assume i was sleepwalking. Can you take a look at the attached .tpl file and alter it for me as it should be. I was going to upload a fresh version of the tpl file but noticed that the downloaded files code all looks slightly different, and i dont know what effect that might have if i overright the file. Therefore, id much prefer somebody with coding experience to alter the code of my attachment as they think it should be.

Regards...Al

posts: 3665 United States

I can't tell what your customizations were. I suggest that you elete your customized ../templates/styles/YOURTHEME/tiki-edit_help_tool.tpl template. Tiki will then use the base, default template and everything should work fine.

Now... if you were actually editing the default template (in ../templates/tiki-edit_help_tool.tpl) then you'll need to grab a "clean" copy from CVS. You didn't mention what version you're using, but you can get the latest file here. In the future, you really should make template changes in your own style, rather than modifying the default templates (makes it much easier to "undo" any problems).


HTH,

-Rick
Now Available: TikiWiki for Dummies Smarties — A beginner's guide to using ))TikiWiki((.

posts: 54

> I can't tell what your customizations were. I suggest that you elete your customized ../templates/styles/YOURTHEME/tiki-edit_help_tool.tpl template. Tiki will then use the base, default template and everything should work fine.
>
> Now... if you were actually editing the default template (in ../templates/tiki-edit_help_tool.tpl) then you'll need to grab a "clean" copy from CVS. You didn't mention what version you're using, but you can get the latest file here. In the future, you really should make template changes in your own style, rather than modifying the default templates (makes it much easier to "undo" any problems).


Ive been editing default .tpl files and not saving them only to theme.sad. I tried what you suggested and uploaded the latest tiki-edit_help_tool.tpl file and saved the suspected faulty one for reference, but the problem still exists. So i have reuploaded the suspected faulty file again just so i can keep track of where i am in diagnosing the problem. I notice that the comment tags are already in the new version so i can say with confidence i have not altered the tiki-edit_help_tool template as previously assumed. Im getting the "error on page" status bar message on every page of my site. Ive been altering the border px css code here and there getting things to align as i wanted. Im not sure if these changes could be to blaim you think?. I have not altered the sizing of the tiki editing area. Any more suggestions on what i might do to diagnose this problem or even fix it?. I also changed the theme and that did not fix the problem either. I dont know if the following is relavent but i clicked on the status bar error icon and the error message reads:
"
Line: 1
char: 1
Error: Object Expected
Code: 0
URL: http://www.mydomain.com/Welcome/tiki-editpage.php?
page=HomePage"

Hoping for more ideas

Al

posts: 3665 United States

> > I can't tell what your customizations were. I suggest that you elete your customized ../templates/styles/YOURTHEME/tiki-edit_help_tool.tpl template. Tiki will then use the base, default template and everything should work fine.
> >
> > Now... if you were actually editing the default template (in ../templates/tiki-edit_help_tool.tpl) then you'll need to grab a "clean" copy from CVS. You didn't mention what version you're using, but you can get the latest file here. In the future, you really should make template changes in your own style, rather than modifying the default templates (makes it much easier to "undo" any problems).
>
>
> Ive been editing default .tpl files and not saving them only to theme.sad.

Now you know. lol


How are you "editing" the template files? If you are using Tiki's internal template editor, you must take care when editing any file with scripting — the Tiki editor will remove the scripting. This is what is causing your errors.

You may have stripped out the scripting in more than one TPL file (especially if the error occurred on every page — not just when editing a wiki page.

I suggest:

  1. Remove all of your customized template TPL files (or make copies of them locally).
  2. Download the full 1.9.8 archive.
  3. Unzip the ../templates/*.tpl files to your Tiki's ../templatets/*.tpl directory.
    This will (hopefully) restore all the damaged template files. Confirm that your Tiki is operating correctly.
  4. Create a new directory: ../templates/styles/YOURSTYLE/*.tpl in which to place your custom TPL files.
  5. Create a new CSS for your custom style: ../styles/YOURSTYLE.css
  6. Log into your Tiki. On the Admin: Themes page, select YOURSTYLE as the theme.
    See here for details on changing themes.
  7. Add the customized templates files (that you removed in step 1) one-at-a time, testing Tiki after each new file is added.
    When you find errors, you know that the template TPL file is broken.



Do you have a public ally available URL? (It would be much easier for me to find the problem if I could actually see the problem).


HTH,

-R

posts: 54

> > > I can't tell what your customizations were. I suggest that you elete your customized ../templates/styles/YOURTHEME/tiki-edit_help_tool.tpl template. Tiki will then use the base, default template and everything should work fine.
> > >
> > > Now... if you were actually editing the default template (in ../templates/tiki-edit_help_tool.tpl) then you'll need to grab a "clean" copy from CVS. You didn't mention what version you're using, but you can get the latest file here. In the future, you really should make template changes in your own style, rather than modifying the default templates (makes it much easier to "undo" any problems).
> >
> >
> > Ive been editing default .tpl files and not saving them only to theme.sad.
>
> Now you know. lol
>
>
> How are you "editing" the template files? If you are using Tiki's internal template editor, you must take care when editing any file with scripting — the Tiki editor will remove the scripting. This is what is causing your errors.
>
> You may have stripped out the scripting in more than one TPL file (especially if the error occurred on every page — not just when editing a wiki page.
>
> I suggest:
> #Remove all of your customized template TPL files (or make copies of them locally).
> #Download the full 1.9.8 archive.
> #Unzip the ../templates/*.tpl files to your Tiki's ../templatets/*.tpl directory.
> +This will (hopefully) restore all the damaged template files. Confirm that your Tiki is operating correctly.
> #Create a new directory: ../templates/styles/YOURSTYLE/*.tpl in which to place your custom TPL files.
> #Create a new CSS for your custom style: ../styles/YOURSTYLE.css
> #Log into your Tiki. On the Admin: Themes page, select YOURSTYLE as the theme.
> +See here for details on changing themes.
> #Add the customized templates files (that you removed in step 1) one-at-a time, testing Tiki after each new file is added.
> +When you find errors, you know that the template TPL file is broken.
>
>
> Do you have a public ally available URL? (It would be much easier for me to find the problem if I could actually see the problem).

Ill give the above instructions a go and get back to you on this thread with the results. Im using version 1.9.7. Ill provide you with a public url if i have no success on the above instructions in my next post, but at the moment the domain url needs to be kept private from google search spiders whilst under construction. If you can provide me with an email address so i can give you access if need be in your next post.

will post again in this thread soon.

Regards....Al

posts: 54

> > > > I can't tell what your customizations were. I suggest that you elete your customized ../templates/styles/YOURTHEME/tiki-edit_help_tool.tpl template. Tiki will then use the base, default template and everything should work fine.
> > > >
> > > > Now... if you were actually editing the default template (in ../templates/tiki-edit_help_tool.tpl) then you'll need to grab a "clean" copy from CVS. You didn't mention what version you're using, but you can get the latest file here. In the future, you really should make template changes in your own style, rather than modifying the default templates (makes it much easier to "undo" any problems).
> > >
> > >
> > > Ive been editing default .tpl files and not saving them only to theme.sad.
> >
> > Now you know. lol
> >
> >
> > How are you "editing" the template files? If you are using Tiki's internal template editor, you must take care when editing any file with scripting — the Tiki editor will remove the scripting. This is what is causing your errors.
> >
> > You may have stripped out the scripting in more than one TPL file (especially if the error occurred on every page — not just when editing a wiki page.
> >
> > I suggest:
> > #Remove all of your customized template TPL files (or make copies of them locally).
> > #Download the full 1.9.8 archive.
> > #Unzip the ../templates/*.tpl files to your Tiki's ../templatets/*.tpl directory.
> > +This will (hopefully) restore all the damaged template files. Confirm that your Tiki is operating correctly.
> > #Create a new directory: ../templates/styles/YOURSTYLE/*.tpl in which to place your custom TPL files.
> > #Create a new CSS for your custom style: ../styles/YOURSTYLE.css
> > #Log into your Tiki. On the Admin: Themes page, select YOURSTYLE as the theme.
> > +See here for details on changing themes.
> > #Add the customized templates files (that you removed in step 1) one-at-a time, testing Tiki after each new file is added.
> > +When you find errors, you know that the template TPL file is broken.

Reply:

thanks a miilion rick. It worked and all is now well......but........

more questions will no doubt follow shortly.smile

Thanks Again

Al