PDA

View Full Version : Need making an XML product to add a simple HTML on forumhome?


ChiNa
08-19-2012, 05:46 PM
Hey everyone and to the vB.org amazing coders, I have made a few amazing modifications so far, and all of my modifications are in HTML using CSS and JS! You can please go a head and check them, and If I could make them to a product it would help many people, sadly because its to many template changes in my modifications.

If I could get 2 different Ideas or example of xml products how to add html code on a vB3.8.7 and vB 4.x template, because all of my modifications are for vB 3.8 and 4.x, and I will continue this way, make my products work on vB 3.8 and vB4.x!

So far I dont know nothing about making an xml product! So i was thinking maybe it was about time asking for help and making my work grow and to help vBulleting.org also!

I have been following up about template cache and hooks here on vB.org example:
$vbulletin->templatecache['FORUMHOME'] = 'MY CODE NAME' . $vbulletin->templatecache['FORUMHOME'];

I also been trying to add a product, and after adding I extracted the xml, and so far I have filled out the Product ID, Title, Version, Description, Product URL, Version Check URL, so I could understand the way of it, My questions is, can anyone provide me a simple script or xml code for adding a simple html code on forum home or showthread, with no Database change, and no template replacements, Just a simple html code to add.

This could be my FIRST part of learning, and then later I can start working on replacing codes, or adding codes in the templates! But my first need is to get a START CODE so I can work my way up! This is why i am here, I would be very appreciated If someone could help me create a simple XML product to add HTML codes on forumhome or showthread! And I will again say, No database change, or template replacments!

Thank you very much in advance, and sure I will give full credits of my products in future to the person helping me out with this!

by CMan

Scanu
08-19-2012, 06:38 PM
Hi ChiNa-Man first of all you should setup a test forum and then enable Debug mode
Open config.php file and add this line of code

$config['Misc']['debug'] = true;

Then in admincp you're able to make the product clicking Add/Import Product
Where you can choose title, id, version, description etc..
When you make your product you can add plugins (that contains php code) templates, phrases and settings related to that product, so once you download the xml file it will contain all of these sources. To edit templates you should know some basic php, and you want to edit templates (find some code and replace with another code) or add code to some templates?

ChiNa
08-19-2012, 07:57 PM
Hello Scanu, Thanks brow for your advice and amazing explanation, now about the DEBUG to TRUE, I did not know, but I kinda figured out the rest.. I am simply 0 in PHP, but I wanna give my best to learn from you guys! Thank you SCANU, I will do these and Later on if I had anything to ask, I will simply reply here! Thanks a lot, I appreciate your time and advice!

And by the way, good luck with your exams, I finished mine, thank god

Ok Scanu: I am back few minutes after enabling the Debug. I have made a vB 4.2 forum ready for testing.... I will try keep going and working a bit on the PHP and how to use the template hooks and changes.. Thanks a lot again, I will let you know about my progress... This is a good start for me...

ChiNa
08-21-2012, 10:59 PM
Hi Scanu, Here is my first Product for vB3.8:
https://vborg.vbsupport.ru/showthread.php?p=2358841

Thank you again for your advice!

Scanu
08-21-2012, 11:50 PM
Very good! :)