The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
BB Code Functions Details »» | |||||||||||||||||||||||||
As requested by mudpyr8: https://vborg.vbsupport.ru/showthread.php?t=62933 Features
Known bugs
Notes
Screenshots See attachments. Enjoy. Remember to click install if you do use this hack. Show Your Support
|
Comments |
#32
|
|||
|
|||
After the upgrade to 3.03 I had to re-install this hack and, as an outcome, here are the instructions for the countdown:
Install the hack Add the following code to includes/functions.php: Code:
// ###################### Start fetch_countdown_timer ###################### // returns the time left untill $dateline function fetch_countdown_timer($dateline) { global $vboptions; $diff = $dateline - (time() - $vboptions['hourdiff']); $days = ($diff - ($diff % 86400)) / 86400; $diff = $diff - ($days * 86400); $hours = ($diff - ($diff % 3600)) / 3600; $diff = $diff - ($hours * 3600); $minutes = ($diff - ($diff % 60)) / 60; $diff = $diff - ($minutes * 60); $seconds = ($diff - ($diff % 1)) / 1; return iif($days > 0, $days.'d ', '').iif("$hours > 0 && $days != 0", $hours.'h ', '').$minutes.'m'; } title: countdown handle: fetch_countdown_timer description: whatever you want include file: [leave blank] Update upon page refresh?: yes Then create a custom bb code: title: countdown tag: countdown function: countdown replacement: [leave blank] example: [countdown]1088859600[/countdown] (choose any unix timestamp here) description: [whatever you want] use parameter: no button image: [any image you want] Now, to make this usable to your users: Add a link to a calculation script like this one (I did this on the editor toolbars): http://www.php4scripte.de/umrechner/ it converts a real time into a unix timestamp which can then be used within the BB Code. I'd really appreciate if one could help me to avoid the conversion between realtime and unix timestamp... so the function can work with realtime formats |
#33
|
|||
|
|||
I just tried to add a new cutom bbcode to our forums - well, that worked - but the new created code won't show up in the bbcode manager.
I edited all the files, according to the install.html, once again - with no effect at all. Any help on what's wrong here? Can anyone, who has this hack properly installed, send me this three files: bbcode.php adminfunctions.php functions_bbcodeparse.php ?? Send them to sven@cncforen.de |
#34
|
|||
|
|||
Does anyone yet know if this hack is compatiable with .5? It looks like a great hack, but I don't want to install it if it won't work yet, or will cause errors.
|
#35
|
|||
|
|||
I need Flash BB code, can anyone here help me?
I need to import flash in to my forum but I dont know how to do that. Thanks. |
#36
|
|||
|
|||
Hey. I'm trying to get this hack installed, but I don't understand how to run the queries from PHPMyAdmin. I go to my database, select Querey, but I don't know where to enter it. Entering it in the box labeled "SQL-query on database tcmutt_Source" just gives me the error "You have to choose at least one Column to display". =/ Can anyone tell me what I'm doing wrong?
EDIT: Whoops. My mistake. I think I found out where to do it. EDIT2: Alright, it's installed correctly now. Thanks for making this, it should prove very useful. |
#37
|
|||
|
|||
Are the instructions for installation still valid with 3.0.7?
|
#38
|
|||
|
|||
Quote:
|
#39
|
|||
|
|||
Well, I did everything the instructions said and I got an error, so backed it all out.
The error was in the functions_bbcodeparse file. The error message was "unexpected $ at line 1767" (which is the line with the ?>). I have checked all the hacks and they seem correct. Here is the final code you can find all the changes and the step numbers by finding "SMJU001" I tried pasting the code in here BUT it made the message too big. Thus you can find it [Removed by moderator]** Here ** |
#40
|
|||
|
|||
Quote:
|
#41
|
|||
|
|||
Whoops.
Consider it removed. How then do I get help, because I am convinced that I made the hack changes correctly. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|