The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Index Additions - Homepage Display
Hello Everyone,
I am far from a developer, but I understand the full aspects of programming and can work around php coding very well (just not from scratch). I currently have the mod "vbnow" which is very similar to Twitter. I am attempting to add a simple array to display the updates on the homepage of the forum. -I have attempted to pull the template information out and add it into Forumhome and that does not work, the code doesn't display any information. -I have edited the XML document to reflect changes and alterations with no success. -Added all the VBNOW.PHP file information to the Index.php still with no data populating. -Copied style over with merged index.php/vbnow.php file and when I copied the style over it removed the entire forum and only displayed the VBNOW.php information which seemed to supersede the main code. I am at a loss of how to proceed. Would someone please break down the process of how I can merge a modification within the homepage to display? Links: Forum Home - http://www.exomagic.com/forum VBNOW - http://www.exomagic.com/forum/vbnow.php Your help is greatly appreciated, Thank you! |
#2
|
||||
|
||||
I can't see the page, but most likely, you need to query for the information to create an array to be used.
|
#3
|
|||
|
|||
That is what I thought! After sifting through the scripts the only referencing I can find of the database is in the XML file.
I have also copied the content of the vbnow.php file over to the index.php file. The funny thing is, when I add the styles to the forumhome template it overwrites the original styles and closes the template so it ONLY displays one code. I have found that this bit of source is what causes the template to not display the main forum, but also causes it to not display any necessary information from VBNOW: PHP Code:
|
#4
|
||||
|
||||
Out of all that code, you should only need:
PHP Code:
|
#5
|
|||
|
|||
I will test this out,
So my understanding is take the snippet of code you provided and add this into my Index file. Once that is done, you said call the $vbnow functions in my template and should display properly, correct? // Edit // Ok, so I tested it out and the template commands still continues to not work. I can copy an entire style from VBnow over, but it won't echo any of the data, only the style. Any thoughts? Thank you! |
#6
|
||||
|
||||
So what are you doing to add that code? Where are you adding it?
|
#7
|
|||
|
|||
I am placing this code into my Index.php to be called and displayed on the homepage. Would this be correct? If not, which file should this be added to?
Thank you! I really appreciate your assistance, I enjoy learning and understanding VB. |
#8
|
||||
|
||||
If you are just pasting the code you posted - there is more to it, you need that too.
|
#9
|
|||
|
|||
What I will do is actually sit down today and sift through the code. Pick out what I need and don't need and see if it will display the VBcodes.
My main goal is to have this display the content when a style variable is issued. Once that is completed I can kinda do a 'process of elimination' and slowly remove the code until my desired results are displayed. I will update on a result to this. Thank you for your assistance. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|