Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 01-11-2009, 05:19 PM
CFN-1 CFN-1 is offline
 
Join Date: Nov 2008
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Yes, try the same edit to the link in the phrases that you did for the template. I think it will work, but I guess you can test it and see.

edit: Nice forum. When you get more comfortable with vbulletin, it might be fun to change the banner based on what 'city' you are in. Find an image of the skyline for each city and incorporate that. Just a thought.
I found:

Varname $vbphrase[searchnoresults_getnew]
Text Sorry, there are no new threads to view.<br /><br /> You may search for threads updated during the previous 24 hours, <a href="search.php?{1}do=getdaily">here</a>.


So, if I change it to:

Sorry, there are no new threads to view.<br /><br /> You may search for threads updated during the previous 24 hours, <a href="search.php?{1}do=getdaily&amp;exclude=xx,xx, xx,xx,xx">here</a>.


That should work? I'll give it a go!

Yeah, I've thought about embedding a graphic that changes by city, in the top right area of the Header, but I don't have a clue as to how to even start on that...

I imagine a directory of cities containing the images. Then code it to alter the image according to the city chosen. The coding is where I'm lost...as you know!

I'll keep leaning. Once again, thanks!


EDIT: I just tried it and it worked perfectly! You've done it again! (Now tell me how to do those graphics....hehe)
Reply With Quote
  #12  
Old 01-11-2009, 05:58 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you had a directory, say /images/banners and in it you had things like banner1.png and banner2.png for forumid 1 and forumid2, you could do something like:

HTML Code:
<if condition="$foruminfo[forumid] == 1">
<img src="/images/banners/forum1.png" alt="$foruminfo[title_clean]" width="x" height="y">
</if>
<if condition="$foruminfo[forumid] == 2">
<img src="/images/banners/forum2.png" alt="$foruminfo[title_clean]" width="x" height="y">
</if>
Something like that in the template for the banner. You can play with that by making a new style that is not pickable by users. You as an admin can see the new style by clicking on the style name in the Style Manager. It's just something to play with when you feel like it. (You could also do it as a plugin, but the template edit is the easiest.)
Reply With Quote
  #13  
Old 01-11-2009, 07:11 PM
CFN-1 CFN-1 is offline
 
Join Date: Nov 2008
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
If you had a directory, say /images/banners and in it you had things like banner1.png and banner2.png for forumid 1 and forumid2, you could do something like:

-Awesome Code-

Something like that in the template for the banner. You can play with that by making a new style that is not pickable by users. You as an admin can see the new style by clicking on the style name in the Style Manager. It's just something to play with when you feel like it. (You could also do it as a plugin, but the template edit is the easiest.)
That is so cool! Thanks, I look forward to messing around with that! How did you learn all of that? I feel like such a rookie again...
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 12:17 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03270 seconds
  • Memory Usage 2,189KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete