Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro
Author Message
zerokooll
Worker
Worker


Joined: Feb 01, 2006
Posts: 129

PostPosted: Tue Jul 25, 2006 9:12 pm Reply with quote

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..

Arrow 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

Arrow 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 Very Happy than you..

(The tags have spaces between them intencionally as the site doesnt allow this tags to be typed in)

_________________
Owner of Only registered users can see links on this board! Get registered or login! The best LaTiN site on the net! 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Wed Jul 26, 2006 5:48 am Reply with quote

try to put in the full url to the html file.
 
View user's profile Send private message
zerokooll
PostPosted: Wed Jul 26, 2006 5:55 am Reply with quote

nop... still show a blank iframe..
 
hitwalker
PostPosted: Wed Jul 26, 2006 5:59 am Reply with quote

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
PostPosted: Wed Jul 26, 2006 6:01 am Reply with quote

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

PostPosted: Wed Jul 26, 2006 6:02 am Reply with quote

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!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
zerokooll
PostPosted: Wed Jul 26, 2006 6:06 am Reply with quote

ok it is framing the msn.html page but the code on that html page aint calling the .php that is ment to be calling.. i just added some txt to msn.html and it does show on the iframe at the end of the forum..

if you want see it..

User: raventest
Password: testing
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!
 
gregexp
PostPosted: Wed Jul 26, 2006 6:08 am Reply with quote

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
PostPosted: Wed Jul 26, 2006 6:13 am Reply with quote

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
PostPosted: Wed Jul 26, 2006 6:45 am Reply with quote

mmmm i cant post the php code here... the nukesentinel doesnt let me and i tried to find what html tag could be making the sentinel dont let me post the code but i cant find it.. here is the url to the block
Only registered users can see links on this board! Get registered or login!
 
gregexp
PostPosted: Wed Jul 26, 2006 7:51 am Reply with quote

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
PostPosted: Wed Jul 26, 2006 7:59 am Reply with quote

thankx Very Happy
 
gregexp
PostPosted: Wed Jul 26, 2006 8:43 am Reply with quote

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: 6793
Location: Ha Noi, Viet Nam

PostPosted: Wed Jul 26, 2006 8:50 am Reply with quote

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.
 
View user's profile Send private message Send e-mail
gregexp
PostPosted: Wed Jul 26, 2006 8:57 am Reply with quote

Is what I posted what you mean, I am a bit confused what you mean, better way to do this?
 
zerokooll
PostPosted: Wed Jul 26, 2006 9:20 am Reply with quote

mmm ok ermmm i am a bit confused too Razz... so do i use the code of darklord or could you explain a bit more the way u say it guardian Smile
 
gregexp
PostPosted: Wed Jul 26, 2006 2:34 pm Reply with quote

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
PostPosted: Wed Jul 26, 2006 5:46 pm Reply with quote

omg thank u soooooo much Very Happy it worksssssss Very Happy jejeej it looks kinda nice.. ¬¬ mmmm so i can add any block i want like this?
 
Guardian2003
PostPosted: Wed Jul 26, 2006 5:54 pm Reply with quote

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
PostPosted: Wed Jul 26, 2006 6:23 pm Reply with quote

yess darklord this works great Very Happy now i know how to include php blocks anywhere on the nuke Very Happy
 
gregexp
PostPosted: Wed Jul 26, 2006 6:30 pm Reply with quote

Glad to hear it.
 
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9453
Location: Arizona

PostPosted: Wed Jul 26, 2006 7:57 pm Reply with quote

Nice one "D". :clap:

_________________
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! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro

View next topic
View previous topic
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©