PDA

View Full Version : Need to add some new blocks (Vivvo BOX) How?


Aziz
01-31-2007, 02:13 PM
Hello,

I need to add a two new blocks, One with regular html code to display logo with link and the other one to display the quote of the day which to pick a text line from a text file pleaced on the vivvo root folder.

Regard the regular html code box what I need to add a box tag that can be used in the .tpl files without adding a function to do some php coding, Simply how to make a new box tag ?

Regard the second one to display the quote of the day I think this code will do the php portion of the daily quote box:

echo "<font face=Tahoma size=3>";
$quotes = file("quotes.txt");
$quote = rand(0, sizeof($quotes)-1);
echo $quotes[$quote];
echo "</font>";

I followed all the steps on the thread that disscribe the new hello world box but it doesn't works for me because I don't understand every aspect of the code as I'm not a php programmer.

Would you please help me with that and more, How to hide the right side boxes from all the pages that are not using index.tpl, article_Full.tpl and category_Main.tpl ?

Thanks and Regards,

Aziz

boccio
01-31-2007, 02:25 PM
The thread you mentioned (http://www.vivvo.net/forums/showthread.php?t=352) explains creating custom box in detailes. If you're unable to perform this yourself, you might consider having a programmer do this for you, or asking our dev. team for customization (charged at $35/hr).

Aziz
02-01-2007, 12:09 PM
Hi,

I'm not a php programmer but I do programs with some other old PC languages but I can't give the script code to other programmers, Any way I did that boxes already but I don't understand the code very will, For example in the normal box I don't see why I need to use HTML_function.php since I don't want to use any php code in that box.

My other question with this was regard how to make the tags and why some tags are not duplicated in default.php and framework.php ?

Any way this matter is resolved for me but I wish to have a set of common used boxes/blocks to be available to be added optionally to some selected pages/parts of the program.

Here is some ideas of useful optional blocks:
* Display random picture (resized) that link to an article.
* Display random line of an old highly rated article.
* Display this date in the site history filled by admin.
* Display random ten articles.
* Display random/last/top ten writers.
* ...
Much more ideas can be collected by other script users.

This will allow each admin to pick what fit each part of his/her site to make the websites using Vivvo much rich with side contents and remove some ice from the articles websites, Please take a look to the other cms history and even forum scripts and tell me what make some scripts much desirable than the other good scripts? It's the addons availability even the addon was a themes or hacks or any thing else that allow the sites' admins to easily customize their websites look and feel.

Any way you may consider it a suggestion for the next release :) and thanks for the sample custom box that was very much help. Please note that I understand that you may don't have extra time to do side work but you may consider it non paid advertising for your script :)


How to hide the right side boxes from all the pages that are not using index.tpl, article_Full.tpl and category_Main.tpl ?


Regards,

Aziz