Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 25. Nov 2024, 07:42

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 24. Sep 2016, 02:10 
Offline

Joined: 24. Sep 2016, 01:32
Posts: 3
So it was working and now, it is not working so well.

Earlier today, when I first installed the plugin, I had my domain name www.holistic-counseling.ca parked
in the folder www.nutopia.cc/Holistic_Counseling2 on my old HTML site while I designed my new Wordpress site in this folder
www.nutopia.cc/Holistic-Counseling-WP.
The SMF forums are here - http://www.nutopia.cc/Holistic_Counseling2/Forums/index.php

I created a page here to put the iframe in to display the SMF forums.
www.nutopia.cc/Holistic-Counseling-WP/holistic-counseling-community-forums/

[advanced_iframe securitykey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" src="http://www.nutopia.cc/Holistic_Counseling2/Forums/index.php" use_shortcode_attributes_only="true" width="100%" height="600"]

It WORKED!! I didn't even need to modify the index.php file in the SMF forums because I guess these two sites are considered subdomains of the same domain...

HOWEVER, when I transferred the domain name www.holistic-counseling.ca to be parked at www.nutopia.cc/Holistic-Counseling-WP for my new Wordpress site, it populated Correctly the FIRST TIME, but now looks like crap and is not displaying properly. All the text is there with links, but no themes or formatting or css.
http://www.holistic-counseling.ca/holistic-counseling-community-forums/

I obviously need to fix my settings, but which ones, and how?
I've tried to add the two lines (at different times of course) to index.php in the iframe site here:
http://www.nutopia.cc/Holistic_Counseling2/Forums/index.php
<script src="http://nutopia.cc/Holistic-Counseling-WP/wp-content/plugins/advanced-iframe/js/ai_external.js"></script>
and i even tried <script>document.domain='nutopia.cc';</script>
But these scripts crash the site because I don't know how to setup java on the SMF pages.
Is that the problem? I need to enable javascript code on the SMF site? How?

i've tried several things. But I think the problem is there is no javascript at all on the forums site.

Does this look close?

<?php
echo"<script language='javascript' src="http://www.holistic-counseling.ca/wp-content/plugins/advanced-iframe/js/ai_external.js">
</script>
";
?>

or

<?php
echo"<script language='javascript'>
</script>
";
echo"<script src="http://www.holistic-counseling.ca/wp-content/plugins/advanced-iframe/js/ai_external.js">
</script>
";
?>

Doesn't work, so that's not it. I know. Just crashes my site.

Or do I need to do something else?


Top
 Profile  
 
PostPosted: 24. Sep 2016, 16:02 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Hi,

I don't understand your problem.

you designed your page and then moved it to a different location. Than it looked bad.
So does it also look bad if it is not inside the iframe?

Because the script you include is for the external workaround and e.g. needed for auto height.

But
[advanced_iframe securitykey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" src="http://www.nutopia.cc/Holistic_Counseling2/Forums/index.php" use_shortcode_attributes_only="true" width="100%" height="600"] does not configure anything like that.

And why should
<script src="http://nutopia.cc/Holistic-Counseling-WP/wp-content/plugins/advanced-iframe/js/ai_external.js"></script>
do something?

Is this the line you find in the backend of advanced iframe pro?
Because the domain of the parent is needed - not the one from the iframe.
also I don't understand what you want to do with your php (which seem to be invalid php).
you only need to include

<script language='javascript' src="http://www.holistic-counseling.ca/wp-content/plugins/advanced-iframe/js/ai_external.js"></script>

to your page IF you really need the external workaround!

Best, Michael


Top
 Profile  
 
PostPosted: 24. Sep 2016, 17:42 
Offline

Joined: 24. Sep 2016, 01:32
Posts: 3
TinyWebGallery wrote:
Hi,

I don't understand your problem.

you designed your page and then moved it to a different location. Than it looked bad.
So does it also look bad if it is not inside the iframe?


Hi thank you for trying to understand.
Let me explain better.

I have an old HTML website where I have SMF forums.
This is the URL http://www.nutopia.cc/Holistic_Counseling2/Forums/index.php
These forums are what I want to put INTO the iframe of my new Wordpress site which is here:

www.nutopia.cc/Holistic-Counseling-WP/

The domain name www.holistic-counseling.ca was initially parked on http://www.nutopia.cc/Holistic_Counseling2/
which means that when somebody when to www.holistic-counseling.ca they would see the old HTML website.
When this was the case, the iframe worked GREAT here -

www.nutopia.cc/Holistic-Counseling-WP/holistic-counseling-community-forums/

and i was just using this shortcode on this page - www.nutopia.cc/Holistic-Counseling-WP/holistic-counseling-community-forums/
and no external workaround code at all and it worked great.

[advanced_iframe securitykey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" src="http://www.nutopia.cc/Holistic_Counseling2/Forums/index.php" use_shortcode_attributes_only="true" width="100%" height="600"]

Then, I parked the domain name holistic-counseling.ca onto the new wordpress website i designed, so that when you go to
www.holistic-counseling.ca - the new word press site comes up, but now, the forums seen on this page
www.nutopia.cc/Holistic-Counseling-WP/holistic-counseling-community-forums/ (check it out - you can see what it looks like)

are not appearing properly.

they also do not appear properly anymore here either -
http://www.nutopia.cc/Holistic_Counseling2/Forums/index.php

So is it possible that it is because i removed the domain name and somewhere in the forums code they are still looking for
www.holistic-counseling.ca ?

that may be it.
But i thought I changed that ok.

What do you think?

thank you for the help Michael.

I didn't answer about the php side of the questions because i think the problem lies now in
why the forums at http://www.nutopia.cc/Holistic_Counseling2/Forums/index.php
are not displaying properly in the first place?


Top
 Profile  
 
PostPosted: 24. Sep 2016, 18:31 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Simply check the network tab:

GET http://www.holistic-counseling.ca/Forums/Themes/default/css/webkit.css
index.php:4 GET http://www.holistic-counseling.ca/Forums/Themes/default/css/index.css?fin20
index.php:7 GET http://www.holistic-counseling.ca/Forums/Themes/default/scripts/theme.js?fin20
index.php:6 GET http://www.holistic-counseling.ca/Forums/Themes/default/scripts/script.js?fin20
index.php:39 GET http://www.holistic-counseling.ca/Forums/Themes/default/scripts/sha1.js
index.php:7 GET http://www.holistic-counseling.ca/Forums/Themes/default/scripts/theme.js?fin20
index.php:34 GET http://www.holistic-counseling.ca/Forums/Themes/default/images/upshrink.png 404 (Not Found)
index.php:141 GET http://www.holistic-counseling.ca/Forums/Themes/default/images/new_redirect.png 404 (Not Found)
index.php:140 GET http://www.holistic-counseling.ca/Forums/Themes/default/images/new_none.png 404 (Not Found)
index.php:148 GET http://www.holistic-counseling.ca/Forums/Themes/default/images/collapse.gif 404 (Not Found)
index.php:35 GET http://www.holistic-counseling.ca/Forums/Themes/default/images/smflogo.png 404 (Not Found)
index.php:39 GET http://www.holistic-counseling.ca/Forums/Themes/default/scripts/sha1.js
index.php:67 Uncaught ReferenceError: smc_Toggle is not defined(anonymous function) @ index.php:67
index.php:187 Uncaught ReferenceError: smc_Toggle is not defined(anonymous function) @ index.php:187
index.php:156 GET http://www.holistic-counseling.ca/Forums/Themes/default/images/icons/info.gif 404 (Not Found)
index.php:169 GET http://www.holistic-counseling.ca/Forums/Themes/default/images/icons/online.gif 404 (Not Found)
new_redirect.png:1 GET http://www.holistic-counseling.ca/Forums/Themes/default/images/new_redirect.png 404 (Not Found)
new_none.png:1 GET http://www.holistic-counseling.ca/Forums/Themes/default/images/new_none.png 404 (Not Found)
collapse.gif:1 GET http://www.holistic-counseling.ca/Forums/Themes/default/images/collapse.gif 404 (Not Found)


you are linking to elements that do not exist there. This has nothing to do with the iframe!

Best, Michael


Top
 Profile  
 
PostPosted: 24. Sep 2016, 23:44 
Offline

Joined: 24. Sep 2016, 01:32
Posts: 3
TinyWebGallery wrote:
Simply check the network tab:
you are linking to elements that do not exist there. This has nothing to do with the iframe!
Best, Michael


Yes! That must be it.
I found the forum repair tool and repaired all the links!!
http://download.simplemachines.org/index.php?thanks;filename=repair_settings.php

Thank you!

Now it works.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 32 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy