vBulletin Modifications

create templates

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 08-18-2006, 09:21 PM   #1
Proud to Be Brazilian
Join Date: Aug 2005
Real Name: Diego
Location: Brazil
FoxFireDiego is on a distinguished road

Lightbulb create templates

I need to create a template named advertisement that I can call by a variable like $navbar and $header, so I think that now u know what I'm asking :p

explaining:
create a template named advertisement (that have some html/php code) and call it with a variable like $advertisement to insert it into a post (like hide hack ressurection do, showing up a box)
thanks

ps: I try to find some similar, but not found =/




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 08-19-2006, 02:10 AM   #2
Colonel Ingus
Master Coder
Colonel Ingus's Avatar
Join Date: Jun 2006
Real Name: The Wizard of Oz
Location: ...in a van, down by the river.
Colonel Ingus is on a distinguished road

Wink

If I'm not mistaken there is already a hack like this, but not many people used it because it was very annoying and the members of each forum complained. I don't think the hacks was ever updated for 3.6.0.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-19-2006, 05:39 AM   #3
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

What do you mean? Just assiging a varaible to fetch a template like the top x stats hack? You need to put $latest_x_posts in a template to fetch the other template? Thats easy




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-19-2006, 11:51 AM   #4
Proud to Be Brazilian
Join Date: Aug 2005
Real Name: Diego
Location: Brazil
FoxFireDiego is on a distinguished road

Default

Quote:
Originally Posted by rogersnm
What do you mean? Just assiging a varaible to fetch a template like the top x stats hack? You need to put $latest_x_posts in a template to fetch the other template? Thats easy
exactly
and if is possible to insert this $latest_x_posts into a post... just this :p
thanks Colonel and rogersnm




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-19-2006, 12:01 PM   #5
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

Here it is: replace $variable with your variable and template with your template name:
You must first be a registered member to view any code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-19-2006, 04:25 PM   #6
Proud to Be Brazilian
Join Date: Aug 2005
Real Name: Diego
Location: Brazil
FoxFireDiego is on a distinguished road

Default

ok, now I know how to display a box at anywhere in my forum
thanks rogersnm...
let me ask something:
is there any way to display this variable $advertisement into a post?
what hook I need to use?
I have try to use postbit_display_complete, postbit_display_start, showthread_post_start and can't get it to work...
like this: http://www.vbulletin.com/forum/showthread.php?t=157022
but, inside, not bellow

thanks all

Last edited by FoxFireDiego; 08-19-2006 at 04:32 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-19-2006, 04:44 PM   #7
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

If you want it inside a post then you just need to place it in the right place just put: <if condition="$post[postcount] == 1"> YOUR CODE </if> Where you want like above the sig and below the post text for example....




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-19-2006, 05:18 PM   #8
Proud to Be Brazilian
Join Date: Aug 2005
Real Name: Diego
Location: Brazil
FoxFireDiego is on a distinguished road

Default

once again, thanks rogersnm!
i'll try to clearify:
1. I have a script with the following tables:
id
title
title2
author
site

2. and this to query the results:
You must first be a registered member to view any code.
3. what I'm looking is some way to post a BBCode:
[tutorial-id]123[/tutorial-id] and then change it to $id = $_POST["id"] / $id = 123 that retrieve the whole code above...




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-19-2006, 05:28 PM   #9
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

Seeing as bbcode doesn't support full PHp that would be a bit hard




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-19-2006, 05:41 PM   #10
Proud to Be Brazilian
Join Date: Aug 2005
Real Name: Diego
Location: Brazil
FoxFireDiego is on a distinguished road

Default

I was wondering the same... thanks anyway roger... i'll try to find out another way... if u have any tips to this, let me know!




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create new page for ghost members? KingYes General vBulletin Support 7 06-09-2006 03:38 PM
is there a way to create multiple annoments jeneepen General vBulletin Support 4 06-05-2006 09:42 PM
create subdomains automatic premium vBulletin Modification Requests 1 12-29-2005 07:28 AM
Copy Templates for All Skins grindking vBulletin Modification Requests 6 05-31-2005 10:56 AM
Search for some dark colors templates sighuu General vBulletin Support 0 11-22-2004 12:33 PM


All times are GMT -3. The time now is 01:12 AM.


SEO by vBSEO 3.2.0 RC8 ©2008, Crawlability, Inc. (Patent Pending)