Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 12-01-2009, 10:49 PM
arturocivit arturocivit is offline
 
Join Date: Nov 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default iFrames

Hi there!

I installed a copy of vBulletin on this server http://theblackthorn.co.uk/forum.php

What I did was to create an iframe and call the entire forum, so, that works nicely, however, if you look at the home page: http://theblackthorn.co.uk/index.php I'm "calling" the latest posts, but they are pointing to the forum directly, example, they point to:

http://theblackthorn.co.uk/forum/search.php?do=getnew
or
http://theblackthorn.co.uk/forum/showthread.php?t=6

Do you know if exists a way to point to where the iframe is? just to not break the entire structure, if I click in the home page last post it should be opened in the iframe area, is this possible?

Thanks so much !!

A.-
Reply With Quote
  #2  
Old 12-01-2009, 11:21 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried it and it does open in the same frame, which is what usually happens. Maybe I'm missing what the problem is (or maybe it's a browser-specific thing).
Reply With Quote
  #3  
Old 12-01-2009, 11:35 PM
arturocivit arturocivit is offline
 
Join Date: Nov 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
I tried it and it does open in the same frame, which is what usually happens. Maybe I'm missing what the problem is (or maybe it's a browser-specific thing).
hi there, thanks for the reply, well, yes, if you are here: http://theblackthorn.co.uk/forum.php

And click on any link within that "iframed" Bulletin, then, yes, everything will work nice, but if you're here:

http://theblackthorn.co.uk/index.php

And from the Latest Posts from our Forums ( Box to your right below the big banner and social buttons ) and from there click on any of the links there, you'll see whats happening.

Thanks a lot!

A-
Reply With Quote
  #4  
Old 12-02-2009, 12:07 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, I see now. Sorry.

I think you can give the iframe a name like <iframe name="somename".... then make it the target of the links with <a target="somename" href=...
Reply With Quote
  #5  
Old 12-02-2009, 12:27 AM
arturocivit arturocivit is offline
 
Join Date: Nov 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Ah, I see now. Sorry.

I think you can give the iframe a name like <iframe name="somename".... then make it the target of the links with <a target="somename" href=...
Yep, seems like you're right!

However, I have a problem, if I understood correctly it should be like:

<a target="FrameName" href="/forum/search.php?do=getnew">Latest Active Posts</a>

( Not really sure if this will work, the dicument that handles the forums is called forum.php and within that document I'm calling the vBulletin with:

<iframe src="http://theblackthorn.co.uk/forum/" width="910" height="800" frameborder="0"></iframe> )

However, how to achieve that with this:

document.writeln("<a href=\"/forum/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(Posted By: "+threads[x].poster+")<br />");

Just with adding the target before the href will work?

Thanks so much!

A.-
Reply With Quote
  #6  
Old 12-02-2009, 12:49 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure I follow, but are you saying that the iframe you are targeting isn't on the same page as the links? Then no, I don't think that will work (although I could be wrong). I think you might need some way to pass the target url as a parameter and then set the frame url to it using javascript, or something like that. (Possibly time for someone who knows what they're doing to help you...)
Reply With Quote
  #7  
Old 12-02-2009, 01:03 AM
arturocivit arturocivit is offline
 
Join Date: Nov 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
I'm not sure I follow, but are you saying that the iframe you are targeting isn't on the same page as the links? Then no, I don't think that will work (although I could be wrong). I think you might need some way to pass the target url as a parameter and then set the frame url to it using javascript, or something like that. (Possibly time for someone who knows what they're doing to help you...)
Yep I think you're right.... well, I'll try with what you said, thanks so much!

A.
Reply With Quote
  #8  
Old 12-02-2009, 01:16 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

...just to be clear, when I say "time for someone who know's what they're doing to help", I mean someone else here, just not me since I don't know....(didn't mean it to sound like you don't know what you're doing ).
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:27 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07127 seconds
  • Memory Usage 2,223KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete