vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Calendergirls hack???? (https://vborg.vbsupport.ru/showthread.php?t=56769)

blakkboy 09-04-2003 09:42 AM

Calendergirls hack????
 
i would like to know if there is a way for someone to give me a code i can use so that when anyone views my calender an image is shown above the calender ( like in a real calender )? thanx in advance

amykhar 09-04-2003 02:31 PM

you don't need a hack for this. Simply edit it calendar template.

Amy

blakkboy 09-04-2003 02:50 PM

how would i do that ?????

assassingod 09-04-2003 02:57 PM

Admin CP->Template->Modify->Calendar Templates

You'll have quite a bit of editing to do, but you'll get there eventually

blakkboy 09-04-2003 03:02 PM

im a real newbie with vbulletin so could someone perhaps break it down for a noob

blakkboy 09-05-2003 01:58 AM

how could i use this and apply it to vbulletin styles

PHP Code:

hack for inv 1.1.X  do not know if it is 1.2 compatible

open 
/Skin/sX/skin_calendar.php

FIND 
:

return <<<HTML

<br>
<form action='
{$ibforums->base_url}&act=calendar' method='POST'>
<table cellpadding='0' cellspacing='0' border='0' 

width='<{tbl_width}>' align='center'>
<tr>


ADD AFTER : 

<td align='center' colspan='2'>
<img src="http://your.site.com/calgirls/
$month$year.jpg" border='0'>
</center>
<br>
Calendar Girls V1.1 Invisionboard by Miskie
</tr>
<tr>


And you are done with editing...  Now, make a directory to keep your images 

in.. In this case, Im using /calgirls/  Name your pictures monthyear.jpg to 

display... if you would rather use .gif, .png or whatever just change the 

<img src" appropriately.. 

The way this hack is currently setup, there will be a new Image every month.. 

if you would rather only use a total of 12 images, edit '/
$month$year.jpg' to 

'/
$month.jpg'Then they will cycle thru the same set yearly

**this hack uses derived names..  So, if you have multiple languages 

supported on your board, you will need to include images named appropriately 

for each language.*** 


pie 09-05-2003 02:34 AM

I wouldnt do that personally.

I'd create an image that points to $bburl/{imagesfolder}/$month.jpg

and create one for every month. BTW you'd have to replace $month with the real month $variable

blakkboy 09-05-2003 11:14 AM

ok but i dont know how to create an image that points to that directory...... im a real noobie sorry

blakkboy 09-06-2003 10:49 PM

uppin once again

blakkboy 09-22-2003 02:00 AM

would this work

In the Calendar template, find

$navbar

Immediately following that, place

<br /><div align="center"><img src="$stylevar[imagesfolder]/$month$year.gif" alt="$month $year" title="" border="0" /></div>

let me know if this would work with my vb version


All times are GMT. The time now is 05:53 AM.

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.01059 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete