Log in

View Full Version : Forum Display Enhancements - CT - Special Header and rules newthread


Asterix_ita
05-19-2010, 10:00 PM
The hack Special Header and Rules offers us all an opportunity to enter the heads and rules of custom forum
through simple html file, images table, adsense other .......

create an html file storage, the default configuration is necessary to create, in the root, a folder named head (of course everyone can change folder name and path, then need to update the fields in admincp ? options ? special head ? path)

As you can see in the stamp file is not recognized without having to open them.

https://vborg.vbsupport.ru/external/2010/05/26.png

Var:

Path file HTML = return the path to the html file, starting from the root of the forum, do not contain
the initial and final slash, below are some examples to clarify what has been described.
es.
http://(www.)mysite/folder
http://(www.)mysite/forum/folder
value var HtmlPath= folder

http://(www.)mysite/folder1/folder2/folder
http://(www.) mysite/forum/folder1/folder2/folder
value var HtmlPath= folder1/folder2/folder

The filename must be composed forumid.html eg. 1.html

Rules suffix = The text entered here will compose the name of the HTML file, the suffix will allow us to highlight the html file header from those rules, the default is _nt (new thread)
The filename must be composed forumid_suffix.html where forumid=id forum ? suffix= text that we chose
default forumid+suffix.html es. 1_nt.html

Last clarification html files should not have tag type head - body ???. an example


<center><img border="0" src="http://www.collectiontricks.it/forum/head/2/collection.png"></center>


Install:

Upload the file
Import product_special_head.xml
Configure in vBulletin Options -> Special head

Change template newthread

find
<label for="subject" class="full">{vb:rawphrase title}:</label>

add before
{vb:raw ct_rules_thread}


Changelog
1.0.2 add special rules options
1.0.3 add default special rules

Translations

Italian language - Collectiontricks (http://www.collectiontricks.it/forum/showthread.php?t=1563)

Mark Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=242978)

other screen this post (https://vborg.vbsupport.ru/showpost.php?p=2044802&postcount=4)

Alecsmith
05-20-2010, 04:23 PM
Tagged for future thanks :)

abdobasha2004
05-21-2010, 10:53 PM
new idea :)
thanks

Asterix_ita
05-28-2010, 08:22 PM
Add special rules newthread options

fxwoody
08-18-2010, 02:45 PM
Looks interesting! I'll give it a try and comment later on ;)

Tks for the codes

ppatil007
08-21-2010, 12:37 AM
what if i just want to use the image header
can it be just done just by simply importing a product ?

fxwoody
02-21-2011, 11:08 AM
Well, i tried my best but i can't understand the rules of HTML that i have to enter here :(
How do i create the image i want to show in HTML?
Need a bit more instructions, i'm not a coder lolll

Tks

Asterix_ita
02-21-2011, 03:52 PM
Hi
I'm sorry but need to know a bit of html for this addon.
es. if you have a forum id 2 will need to create a file for rules 2_nt.html the code html are like this

es. 2_nt.html file content rules

<div style=&quot;border:thin dotted red;padding: 2px 10px 2px 10px;&quot;>You are about to open a new discussion <b>Forum test</b>. Ricorda
<ol>
<li>make sure your application is really tied to this forum</li>
<li>be sure to read and follow the rules</li>
</ol></div>

fxwoody
02-23-2011, 12:07 PM
ok so if i get you right, i have to create a rule for every forums?!?
Hope not loll got way too many :(
Tho from this html code, we can add "adsense" images or what ever else we want! that i Capisco tutto bene ;)
Resume : create code in notepad and save as "Forum ID #"_nt.html
Yes?
Gracie ;)

Asterix_ita
02-23-2011, 03:48 PM
Yes

In the html file you can put anything you want to absurd even a movie youtube

I use notepad++ for my html

v.1.0.3 add option for default rules

Mr_Running
11-23-2012, 12:30 PM
I am confused. :confused:
Where do I enter the html?
I see a default set up...where will it be located?

Asterix_ita
11-24-2012, 06:54 AM
Where do I enter the html?

you must create a folder head in the root of the forum, and then you put the html files

Regards

Mr_Running
11-24-2012, 01:09 PM
Asterix_ita Thank you.
Works great :)

...On a side note: The thin dotted red padding doesn't work for me?


<div style=&quot;border:thin dotted red;padding: 2px 10px 2px 10px;&quot;>You are about to open a new discussion <b>Forum test</b>. Ricorda
<ol>
<li>make sure your application is really tied to this forum</li>
<li>be sure to read and follow the rules</li>
</ol></div>

Manoel J?nior
04-26-2015, 07:41 PM
Thanks