Loading...
 
Skip to main content

Features / Usability


How to view source code

Sorry for a dumb question.
Damien responded to an earlier question about logos in top box by saying edit and upload code. The only way I could do this was from a cache (not via any tiki means) of the page and it worked and was easy and I could see exactly what to do BUT it then resulted in pages not found and access denied, I guess because the cache was too old.
However, I have never known how to get the code for the main page in wiki, as you cannot click on view source and see it.
Which button do I click on the admin control panel to make the code visible, please?
Sorry to be so stupid.
Happy Christmas!

If I understand your question correctly, what you need to do is edit the templates (for page layout) and/or php files (for page functionality) that are used to produce Tiki's pages. What specifically do you want to do? Knowing that would make it easier to point you in the direction of a particular file. For example, tiki-top_bar.tpl is in the templates directory of your Tiki installation and can be edited and then uploaded via ftp if you want to add a graphic or make other changes to that part of the page. Is this the kind of thing you're asking about?

-- Gary


Thank you Damian
I will check up and see.


Dear Damian
Just re-installed and it is version 1.8.4, but still the same error problem when trying to amend top-bar tpl 😢
Best wishes
John


Dear Gary
Many thanks for the reply.

Yes, you have it right. To try to keep things brief, on an older version of Tiki, it was easy to change the top bar to include logo etc via the tiki-top_bar.tpl on the admin control panel, but trying to do that now just leads to error pages:-

Warning: fopen(templates/tiki-top_bar.tpl): failed to open stream: Permission denied in /home2/yeahyeah/public_html/tiki-edit_templates.php on line 45

I used WinHTTrack website copier on my site just to see how it worked and used the file of the front page from its mirror cache (where I could see the page's source code) and I could easily edit and ftp the logo and title bar etc. However, this now leads to further errors, like the login box on the new front page not accepting registration password etc.

I should say that I have used Fantastico to upload the Tiki and although I am happy hand coding HTML, I do not want to get involved with PHP.

Basically, all I want is to be able to easily change logo, title bar etc and perhaps simple things like point sizes and colours on the page CSS. However much I swear and scream at Tiki, I do like it and want to use it. The last episode of frustration led me to delete the whole site, so I am quite happy to uninstall and re-install via Fantastico if that is needed.

Again, many thanks for your reply.
John

Hiya

Make sure your fantastico is installing the latest 1.8.4, as the original tiki installed by fantastico was 1.8.0 which is very very insecure and buggy.

Oh right. There used to be online template editing. I think the best way now is to have a local copy of your Tiki files, at least the template files that you want to modify. Make the changes you want and them upload them with an FTP client. Do you have ftp access to your site?

I have local mirrors of each of my web sites, and also local copies of the unmodified Tiki files. If I screw something up with a template, it's easy enough to replace it with the original one again. I have my browser pointed at the site, my FTP client connected, and my text editor open (plus graphics program sometimes and maybe a stylesheet editor). Then I make changes locally, upload and test, make changes and upload again, etc. If I'm making radical theme changes, of course I do it with a theme that is not the site's default, so no one sees the weirdness except for me. 😉

-- Gary