How to link to a forum's topic inside dynamic iframe?
Permalink Browser Info Environment
Any one can help me? I am using dynamic iframe addon with a forum inside. How can I link to a topic from another page of the same web?
I want to link to
http://www.okclasesparticulares.com/forum/viewtopic.php?f=2&t=8...
but I want to display it from
http://www.okclasesparticulares.com/foro...
Thanks.
I want to link to
http://www.okclasesparticulares.com/forum/viewtopic.php?f=2&t=8...
but I want to display it from
http://www.okclasesparticulares.com/foro...
Thanks.
Type: | Discussion |
---|---|
Status: | New |
Hello Hugo.
Thanks for your answer. The add-on works perfectly. What I want to do is to send by email a link to this topic of the forum:
http://www.okclasesparticulares.com/forum/viewtopic.php?f=2&t=8...
But If I send the link like that, you go the forum outside from the main web, as you can see in screen1.png
I want to send the link so when you clic on it, it is displayed the same as screen2.png when you
- go towww.www.okclasesparticulares.com...
- click on "FORO" in the menu
- click on "AYUDA Y CONSEJOS DE USO DE LA WEB" in the forum,
- click on "Definiendo el perfil del profesor", that´s the topic.
I hope it had been a good explanation.
Thanks for your answer. The add-on works perfectly. What I want to do is to send by email a link to this topic of the forum:
http://www.okclasesparticulares.com/forum/viewtopic.php?f=2&t=8...
But If I send the link like that, you go the forum outside from the main web, as you can see in screen1.png
I want to send the link so when you clic on it, it is displayed the same as screen2.png when you
- go towww.www.okclasesparticulares.com...
- click on "FORO" in the menu
- click on "AYUDA Y CONSEJOS DE USO DE LA WEB" in the forum,
- click on "Definiendo el perfil del profesor", that´s the topic.
I hope it had been a good explanation.
Hy,
Have you a Skype account, i can respond by chat it's simpler.
Ask for contact in Skype my id is hugorper.
See you
Have you a Skype account, i can respond by chat it's simpler.
Ask for contact in Skype my id is hugorper.
See you
Did you find a way to do that?
Hello,
1. Update the add ons to version 1.7
2. A new field is available in the add-on edition, set the name of url param name to 'blogitem'.
3. When you send a link to this topichttp://www.okclasesparticulares.com/forum/viewtopic.php?f=2&t=3... use the link below:
http://www.okclasesparticulares.com/foro?blogitem=http://www.okclas...
This is the first step, I hope that this help you.
I send you the second step soon as possible.
Hugo
1. Update the add ons to version 1.7
2. A new field is available in the add-on edition, set the name of url param name to 'blogitem'.
3. When you send a link to this topichttp://www.okclasesparticulares.com/forum/viewtopic.php?f=2&t=3... use the link below:
http://www.okclasesparticulares.com/foro?blogitem=http://www.okclas...
This is the first step, I hope that this help you.
I send you the second step soon as possible.
Hugo
Thank you very much. I follow every step, but it still doesn't work. It says "The theme you are looking for doesn't exist". I will wait to the second step.
Uninstall dynamic iframe and check the box to delete the add-on directory.
Then reinstall, this work I have tested the last add-on on my website.
When the first step works, do the second one.
For the second add the code below (it must be added on all pages of your forum, maybe using an include or other method).
<script language="javascript">
var ccforumUrl = 'http://www.okclasesparticulares.com/foro/?blogitem=';
if(window.location == top.location) {
window.location.href=ccforumUrl + window.location;
}
</script>
Then reinstall, this work I have tested the last add-on on my website.
When the first step works, do the second one.
For the second add the code below (it must be added on all pages of your forum, maybe using an include or other method).
<script language="javascript">
var ccforumUrl = 'http://www.okclasesparticulares.com/foro/?blogitem=';
if(window.location == top.location) {
window.location.href=ccforumUrl + window.location;
}
</script>
I am using phpBB and I don't know how I can add that code to the pages of my forum... :(
Hello,
To add script on forum header page:
1. Go to phpbb3 Administration Control Panel and login
2. Select the 'STYLES' tab
3. Click on "Templates" on the "STYLE COMPONENTS" sub menu on the left
4. Choose "Edit" in front of the name of the forum template
5. On the template list choose the "overall_header.html" and click "Select template file" if needed
6. On the textarea paste the script between {META} and the <title> tag
...
<meta name="description" content="" />
{META}
<script language="javascript">
var ccforumUrl = 'http://www.okclasesparticulares.com/foro/?blogitem=';
if(window.location == top.location) {
window.location.href=ccforumUrl + window.location;
}
</script>
<title>{SITENAME} • <!-- IF S_IN_MCP -->{L_MCP} • <!-- ELSEIF S_IN_UCP -->{L_UCP} • <!-- ENDIF -->{PAGE_TITLE}</title>
<!-- IF S_ENABLE_FEEDS -->
<!-- IF S_ENABLE_FEEDS_OVERALL --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" /><!-- ENDIF -->
<!-- IF S_ENA
...
Let me know if it works and do not forget to add a review on the add-on.
Hugo
To add script on forum header page:
1. Go to phpbb3 Administration Control Panel and login
2. Select the 'STYLES' tab
3. Click on "Templates" on the "STYLE COMPONENTS" sub menu on the left
4. Choose "Edit" in front of the name of the forum template
5. On the template list choose the "overall_header.html" and click "Select template file" if needed
6. On the textarea paste the script between {META} and the <title> tag
...
<meta name="description" content="" />
{META}
<script language="javascript">
var ccforumUrl = 'http://www.okclasesparticulares.com/foro/?blogitem=';
if(window.location == top.location) {
window.location.href=ccforumUrl + window.location;
}
</script>
<title>{SITENAME} • <!-- IF S_IN_MCP -->{L_MCP} • <!-- ELSEIF S_IN_UCP -->{L_UCP} • <!-- ENDIF -->{PAGE_TITLE}</title>
<!-- IF S_ENABLE_FEEDS -->
<!-- IF S_ENABLE_FEEDS_OVERALL --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" /><!-- ENDIF -->
<!-- IF S_ENA
...
Let me know if it works and do not forget to add a review on the add-on.
Hugo
Hello Hugo!
I have just added the script code between {META} and the <title> tags, but it does't work.
This link works (with viewforum):
http://www.okclasesparticulares.com/foro/?blogitem=http://www.okcla...
But not this one (with wiewtopic):
http://www.okclasesparticulares.com/foro/?blogitem=http://www.okcla...
I have just added the script code between {META} and the <title> tags, but it does't work.
This link works (with viewforum):
http://www.okclasesparticulares.com/foro/?blogitem=http://www.okcla...
But not this one (with wiewtopic):
http://www.okclasesparticulares.com/foro/?blogitem=http://www.okcla...
Hello,
I am investigating ...
I am investigating ...
Hello,
Ahaha, I have found the problem. The URL is not correctly encoded, To fix this add the encodeURIComponent to the javascript code.
Replace the script tag by:
<script language="javascript">
var ccforumUrl = 'http://www.okclasesparticulares.com/foro/?blogitem=';
if(window.location == top.location) {
window.location.href=ccforumUrl + encodeURIComponent(window.location);
}
</script>
I wish you a Merry Christmas, this javascript code will be my gift :-)
Hugo
Ahaha, I have found the problem. The URL is not correctly encoded, To fix this add the encodeURIComponent to the javascript code.
Replace the script tag by:
<script language="javascript">
var ccforumUrl = 'http://www.okclasesparticulares.com/foro/?blogitem=';
if(window.location == top.location) {
window.location.href=ccforumUrl + encodeURIComponent(window.location);
}
</script>
I wish you a Merry Christmas, this javascript code will be my gift :-)
Hugo
Could you please show me exactly what's your problem, which is the link that doesn't work and where is on the page.
Maybe use an image, then i respond to you soon has possible.
Thanks for using my add-on
Hugo