vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Forum SWF 1.0.1 - Show SWF Files in place of forum titles (https://vborg.vbsupport.ru/showthread.php?t=120905)

SkyCatcher 07-10-2006 10:00 PM

Forum SWF 1.0.1 - Show SWF Files in place of forum titles
 
FORUM SWF 1.0.1


This hack will allow you to specify a SWF file throught the adminCP and will then display that flash file instead of the forum title.

You may still enter a forum description that will be shown below the SWF file if you wish to do so.

Known Problems:
When creating a new forum the information you may enter into the box will not be saved. Instead you must create the new forum and then go back to edit and enter a value for it to save.

It works fine with already created forums.



Forum SWF Installation:
Import the product xml file throught the AdminCP
Do the two template edits in the txt file.


Install difficulty: 1 ( two template edits )
Install Time: about 1-2 minutes


This hack is in it's beta stage because I have absolutely no idea what I'm doing - if I did, I'd have coder status :confused:

This has been tested with 3.5.4 but should work for 3.6 also.

Any questions or comments - post em here and I'll laugh at you while eating a cookie.... hmmm shouldn't have said that ;)

The idea here is to create your own swf file which links to a forum of your choice with a nice backgroud, description and what not - leaving you total customizability to the way your forums look. Or you just grab the nearest swf file and throw that in there, but where's the fun in that? :)

Short Demo can be seen HERE


Changelog
1.0.0 Initial Release
1.0.1 Updated Install text file negating double titles

SkyCatcher 07-11-2006 02:40 PM

1.0.1 Updated Installation text to negate the double title mishap. If you have already installed this hack, simple find the
Code:

<if condition="!$forum['forumswf']">
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
</if>

and look below it: remove the line
Code:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
in both
forumhome_forumbit_level1_post
and
forumhome_forumbit_level2_post

PsiNyde 07-11-2006 02:48 PM

cool. i'll give it a butcher's today. thanks.

Snake 07-11-2006 05:08 PM

Very nice. I'll give it a try!

Gizmo5h1t3 07-11-2006 05:44 PM

where in the admin cp do you enter the swf filename plz??

all i see now on my forumhome is the title repeated twice???

SkyCatcher 07-11-2006 07:47 PM

Quote:

Originally Posted by Gizmo5h1t3
where in the admin cp do you enter the swf filename plz??


all i see now on my forumhome is the title repeated twice???


It's under Forums & Moderators > Then edit forums > Pick a forum to edit

You'll find it at the very very bottom


Not sure why it would repeat twice unless you have another hack installed that would cause a conflict perhaps.

See if $forum[title] is in there twice where the instructions tell you to add the code... it should only be in there once

PsiNyde 07-11-2006 08:49 PM

the double title problem exists in IE, but not in Firefox.

PsiNyde 07-11-2006 09:05 PM

I think I found out why. in your instructions, your addition for level1 and level2_post should be replacing this instead of just adding your code above it:

Code:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
remove this under the last if statement [it should look almost like a double code], and you should be good. BUT it's in both level1 and level2, so do it twice for each style!

yer.

SkyCatcher 07-11-2006 09:11 PM

Quote:

Originally Posted by PsiNyde
I think I found out why. in your instructions, your addition for level1 and level2_post should be replacing this instead of just adding your code above it:

Code:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
remove this under the last if statement [it should look almost like a double code], and you should be good. BUT it's in both level1 and level2, so do it twice for each style!

yer.

Yeah I just saw that too as you were posting >< Install file has been updated and also appended with an uninstallation for the template mods since you'll be replacing a line of the template.

Please forgive me for overlooking this :/

PsiNyde 07-11-2006 09:42 PM

Quote:

Originally Posted by SkyCatcher
This hack is in it's beta stage because I have absolutely no idea what I'm doing - if I did, I'd have coder status

wasn't worried about it. that was an easy fix anyways dude...


All times are GMT. The time now is 05:20 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.01109 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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