FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Greybox Installation in Forum

 


nivinjoy
I have installed successfully phpbb2 forum into my account at frihost and the forum is still in its development stage...Now what i have got to ask is about the installation of greybox..

The posts in my forum may contain some weblinks and i want to include a greybox into the forum so that when the user clicks in the weblinks suddenly a greybox opens and that particular link is opened in that greybox.Thus by including this type of greybox i would like to give my forum a cool look(and perhaps a bit of professional look too...even though it is not..)

So anyone who knows much about installing greybox into the forum please help me...I was able to understand little bit the installation of the greybox into a website..but here the case is of forum,that is this thing must be applicable for all the weblinks listed in the posts of the forum..So plese tell me how is the installation in a forum different from doing the same in a webpage...Also tell me where is the code to be included...?
nivinjoy
Hey why no one is there to help me in this topic...??I think many experts are out there and no one has replied yet...!!!! Crying or Very sad Crying or Very sad Crying or Very sad

Please any one reply soon and help me in this topic.....

Greybox link is: http://orangoo.com/labs/GreyBox/

Visit this link and tell me how to incorporate this into a forum.... Question Question Question
alkutob
I installed greybox and now is working on the links out of the topics .
try to click the small banners in the page footer of this site .
www.alljordan.net/forum
If you want your weblinks to work as mine I can make it 4 you or lead you to install it the same way
thank you
bye
nivinjoy
Wow that is it ....

It was wonderful and great..It is the same thing i told ...So please guide me in installing greybox into my forum too...

Tell me exactly where should i add the scripts....???? Question Question
alkutob
nivinjoy wrote:
Wow that is it ....

It was wonderful and great..It is the same thing i told ...So please guide me in installing greybox into my forum too...

Tell me exactly where should i add the scripts....???? Question Question


Ok my friend
1 : you have to download greybox from this link
http://www.zshare.net/download/3738671ff31b8f/

2 : unzip the file and then upload the greybox folder into your forum directory

3 : Go to
http://yoursite.com/forum/templates/your_template/index_body.tpl
and insert these two code scripts into the head part

Code:
<script type="text/javascript">
    var GB_ROOT_DIR = "./greybox/";
</script>

<script type="text/javascript" src="greybox/AJS.js"></script>
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
<script>



After this you can add any link you want into your_template/index_body.tpl
or overall_header.tpl
or overall_footer.tpl

the link must be one of these two :


Code:
<a href="http://www.yoursite.com/xxxxxx" onclick="return GB_showCenter('The site's Name', this.href)"><img border="0" src="http://yoursite.com/xxxxxx/images/zzzzz.gif" width="468" height="60" alt=" Description "></a>





Code:
<a href="http://www.yoursite.com/xxxxxx" onclick="return GB_showFullScreen('The site's Name', this.href)"><img border="0" src="http://yoursite.com/xxxxxx/images/zzzzz.gif" width="468" height="60" alt=" Description "></a>



try it and tell me the result
Reply to topic    Frihost Forum Index -> Scripting -> Website Software

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.