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 10-04-2006, 09:17 PM   #21
cdembek@hotmail.com's Avatar
Join Date: Jan 2006
Location: North East
cdembek@hotmail.com is on a distinguished road

Default

thanks guys.. the discription you gave helps to know what is going on..

What I want to do is insert $sponsor in different templates.. i.e. footer - header and perhaps the home page.. not sure at the moment will be the final place.

but I will try a couple different things..

is there a list of all the hooks and where they relate to?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 10-04-2006, 10:06 PM   #22
cdembek@hotmail.com's Avatar
Join Date: Jan 2006
Location: North East
cdembek@hotmail.com is on a distinguished road

Default

Thanks guys it worked!!




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-05-2006, 02:36 AM   #23
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

where did you end up putting the? what hook location?

also what was wrong before?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-05-2006, 03:02 AM   #24
cdembek@hotmail.com's Avatar
Join Date: Jan 2006
Location: North East
cdembek@hotmail.com is on a distinguished road

Default

I used global_start for a hook, once when I did that it worked

entered the following for code

// eval('$sponsor = "' . fetch_template('sponsor') . '";'); //


created a template called sponsor

Then placed "$sponsor" without the "" in my header template

then it worked.. the key was the hook

thanks.. next trying to get my search box to look like the one on this site..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-05-2006, 03:03 AM   #25
cdembek@hotmail.com's Avatar
Join Date: Jan 2006
Location: North East
cdembek@hotmail.com is on a distinguished road

Default

used plugin manager to install the plugin..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-06-2006, 12:53 AM   #26
cdembek@hotmail.com's Avatar
Join Date: Jan 2006
Location: North East
cdembek@hotmail.com is on a distinguished road

Default

Something that I noticed.. it seems that "if"condition statements won't work in the sponsor template

<if condition="!$show['guest']">
</if>
<if condition="!$show['member']">
</if>

any of you guys run into this??


Figured out what was wrong... the "!" from above..

correct if statements

<if condition="$show['guest']">
</if>
<if condition="$show['member']">
</if>

Last edited by cdembek@hotmail.com; 10-06-2006 at 01:40 AM.




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

Default

! means the opposite so if $show['member'] is true then it will show gfor quests not members if you put !$show['member']




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-07-2006, 12:29 AM   #28
cdembek@hotmail.com's Avatar
Join Date: Jan 2006
Location: North East
cdembek@hotmail.com is on a distinguished road

Default

Ok that adds up now.. I thought I was losing it for about a 1/2 an hour.. look over other templates to make sure the code "if" statment was correct.. I will keep that in mind down the road..

BTW in what type of case would you use the opposite??




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

Default

well you might code something up that only has $show['member'] and not $show['guest'] so in that case instead of $show['guest'] you can just put !$show['member']. You can also do conditionals like that for thread id's and forum id's. EG: <if condition="$forum['forumid'] != 10">. Then it will only show up the content if you are not in forum 10.




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 08:38 AM.


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