Author |
Message |
zerokooll
Worker


Joined: Feb 01, 2006
Posts: 129
|
Posted:
Tue Jul 25, 2006 9:12 pm |
|
Hello!
Well I know is something unusual but I want to add a block from the left blocks of my site to the end of my forums as the blocks dont display because i took them off.
Is the site msn so I want the people to still be able to contact the other users while they r in the forum wherre they dont see the block thats why i want to add it..
I mave tried framing a HTML and then requesting the .php block file from the blocks folder but it doesnt work.. it just shows a blank iframe..
i will put here the files i edited..
themes/Type-M/forums/overall_footer.tpl
And i added this to the end..
Code:<i frame src="themes/Type-M/forums/msn.html" align="middle" height="300" width="175"></i frame>
|
And then i made the framed HTML
themes/Type-M/forums/msn.html
And added
Code:<ht ml>
<he ad>
</he ad>
<bo dy>
<?p hp
inc lude ("blocks/block-Site_Messenger.php");
?>
</bo dy>
</ht ml>
|
But still didnt work... i just get a blank iframe... so can anyone here help me?...
I know is a bit of a crazy idea but it will help me loads than you..
(The tags have spaces between them intencionally as the site doesnt allow this tags to be typed in) |
_________________ Owner of www.latinunit.com The best LaTiN site on the net! |
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Wed Jul 26, 2006 5:48 am |
|
try to put in the full url to the html file. |
|
|
|
 |
zerokooll

|
Posted:
Wed Jul 26, 2006 5:55 am |
|
nop... still show a blank iframe.. |
|
|
|
 |
hitwalker

|
Posted:
Wed Jul 26, 2006 5:59 am |
|
if the code is correct and the url is ok then you should see the page...
so in your case..
Code:<iframe src="http://www.latinunit.com/themes/Type-M/forums/msn.html" align="middle" height="300" width="175"></iframe>
|
|
|
|
|
 |
hitwalker

|
Posted:
Wed Jul 26, 2006 6:01 am |
|
but looking at the page..
are you trying to include a block in html? |
|
|
|
 |
gregexp
The Mouse Is Extension Of Arm

Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol
|
Posted:
Wed Jul 26, 2006 6:02 am |
|
Post the block code your asking for, blocks are basic html with php coding added to them, All you would need to do is remake the blocks html code and php code somewhere else within the php code. |
_________________ For those who stand shall NEVER fall and those who fall shall RISE once more!! |
|
 |
 |
zerokooll

|
Posted:
Wed Jul 26, 2006 6:06 am |
|
|
|
 |
gregexp

|
Posted:
Wed Jul 26, 2006 6:08 am |
|
Your right but to include a block is very keen on how its envoked. Might be a good idea to post the block code and we can better help you. |
|
|
|
 |
gregexp

|
Posted:
Wed Jul 26, 2006 6:13 am |
|
and just to let you know, the reason your not seeing the block, Is because the block needs to be intergrated within the actual code, IT cannot stand alone and by Iframing it, It stands alone. But you could in theory do this.
In overall footer.tpl
instead of iframing it, try this
<?php
include ('themes/Type-M/forums/overall_footer.tpl');
?>
might give you the results you are looking for, Untested!!!! But I will be testing it shortly. |
|
|
|
 |
zerokooll

|
Posted:
Wed Jul 26, 2006 6:45 am |
|
|
|
 |
gregexp

|
Posted:
Wed Jul 26, 2006 7:51 am |
|
Its ok this is something fundimental that I need to figure out how blocks are shown in nuke, Ill respond back in a few |
|
|
|
 |
zerokooll

|
Posted:
Wed Jul 26, 2006 7:59 am |
|
thankx  |
|
|
|
 |
gregexp

|
Posted:
Wed Jul 26, 2006 8:43 am |
|
In includes/page_tail.php
Find:
$template->pparse('overall_footer');
ADD above:
include ('blocks/block-whateverblock.php');
echo "$content"; |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Wed Jul 26, 2006 8:50 am |
|
The best way to do this is create a block file or another file the use an 'include' statement to include the code where you need it (in the forum footer.tpl or overall_footer.tpl or page_tail.php file.
This will give you the flexibility you need on how it is displayed in the page and where.
Also if you decide you only want to display this block in a specific area of your site in the future, all you have to do is include it where you need it instead of hacking files about too much. |
|
|
|
 |
gregexp

|
Posted:
Wed Jul 26, 2006 8:57 am |
|
Is what I posted what you mean, I am a bit confused what you mean, better way to do this? |
|
|
|
 |
zerokooll

|
Posted:
Wed Jul 26, 2006 9:20 am |
|
mmm ok ermmm i am a bit confused too ... so do i use the code of darklord or could you explain a bit more the way u say it guardian  |
|
|
|
 |
gregexp

|
Posted:
Wed Jul 26, 2006 2:34 pm |
|
zero, My code will add it just above where the overall_footer is being called, so same as putting it at the very top of the file.
Until guardian can elaborate, it will work. |
|
|
|
 |
zerokooll

|
Posted:
Wed Jul 26, 2006 5:46 pm |
|
omg thank u soooooo much it worksssssss jejeej it looks kinda nice.. ¬¬ mmmm so i can add any block i want like this? |
|
|
|
 |
Guardian2003

|
Posted:
Wed Jul 26, 2006 5:54 pm |
|
Sorry I was slow in typing my response which seems to have overlapped yours 'D'. I got called away and did not get a chance to clarify.
Yes, the code example given by 'D' exactly fits the method I was trying to convey - sorry I should have included (pun intended) some example code. |
|
|
|
 |
zerokooll

|
Posted:
Wed Jul 26, 2006 6:23 pm |
|
yess darklord this works great now i know how to include php blocks anywhere on the nuke  |
|
|
|
 |
gregexp

|
Posted:
Wed Jul 26, 2006 6:30 pm |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Wed Jul 26, 2006 7:57 pm |
|
Nice one "D".  |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
|