View Full Version : Content Management System - Baisic v1.0.0
Zero Tolerance
07-26-2004, 10:00 PM
Well, this may be the wrong sub forum for this... but as vbAdvanced got in here, i might aswell push this in..lol.
Anyway, this is a baisic Content Management System. You can add any pages you want, and categorize these page's, the cms page will show the categories, and then below a drop down menu with all the page's it contains (if any) [This was the stop huuuuge navigation bars]
It's fairly simple, but yet may be of use, you may add any page's you wish with any html you desire
Anyway, enjoy, use it if you want =P
- Zero Tolerance
kaotic
07-27-2004, 01:12 PM
Nice. :) I'll test it out!
skinvb
07-27-2004, 01:58 PM
I must be said: U did a good job.I must click install
nexialys
07-27-2004, 02:32 PM
demo, test site, any ?!... i like CMS formula, if it works properly... ;)
Zero Tolerance
07-27-2004, 02:39 PM
Test site: http://damegames.com/play/cms.php
(No it isn't my site, lol :p)
- Zero Tolerance
DeMiNe0
07-27-2004, 02:43 PM
any demo that you dont need to log into?
MrNase
07-27-2004, 02:52 PM
Screenshots??
DrkFusion
07-27-2004, 04:29 PM
A demo where login is not required would be very helpful :)
kaotic
07-27-2004, 04:56 PM
They seem to have a test/test account already set up. ;)
MrNase
07-27-2004, 05:31 PM
Here's what i got:
Database error in vBulletin 3.0.3:
Invalid SQL: insert into cms_pages (page_name,page_var,page_content,page_content_un,c at) values ('Kaufberatung','kaufberatung','HALLO!!!<b>dsadd</b>','HALLO!!!<b>dsadd</b>','1')
mysql error: Unknown column 'page_var' in 'field list'
mysql error number: 1054
Date: Tuesday 27th of July 2004 08:30:45 PM
Script: .../admincp/admin_cms.php
Referer:
Username: d.Hahn
IP Address: xxx
The following modified query did the trick :)
CREATE TABLE `cms_pages` (
`pid` int(15) NOT NULL auto_increment,
`page_name` varchar(255) NOT NULL default '',
`page_var` varchar(255) NOT NULL default '',
`page_content` text NOT NULL default '',
`page_content_un` text NOT NULL default '',
`cat` int(15) NOT NULL default '0',
PRIMARY KEY (`pid`)
) TYPE=MyISAM;
Here's a demo of a modified version of this script.
Layout is the same, the code changed a bit :)
http://www.pagodentreff.de/artikel/testbericht.html (german)
Musicpill
07-27-2004, 09:15 PM
Works perfect for me?
Bryan Ex
07-27-2004, 09:55 PM
I "think" this may be what I'm looking for but can't tell for sure. Does this allow you to post blocks of text to a stand alone page or is there more to it than that?
Rob Eh
07-28-2004, 03:39 AM
They seem to have a test/test account already set up. ;)
Not any more. :(
Screenshots or a live demo would be helpful.
Thanks,
jluerken
07-28-2004, 05:50 AM
Test site: http://damegames.com/play/cms.php
(No it isn't my site, lol :p)
- Zero Tolerance
You need to register to see it.
Where is a demo site without that or screenshots?
MrNase
07-28-2004, 07:26 AM
Read my post (https://vborg.vbsupport.ru/showpost.php?p=537483&postcount=10) :)
There's a online demo but I can't give you admin access ;)
In my instructions there was a small error in the second query. It may be fixed but the author should check it so that it works for everybody.
Zero Tolerance
07-28-2004, 12:11 PM
Sorry about the mySQL error, i re-updated the zip with the correct query :)
@ Bryan Ex - This baisically allows you to add pages with any html you desire, with a navigation to select different pages at the side :)
- Zero Tolerance
MrNase
07-28-2004, 12:48 PM
I didn't try it so I better ask before i break it ;)
Can conditionals be used in the HTML area where you can enter the content of any page?
Will you stop developing or do you take suggestions for further development?
If so here are some ideas:
- WYSIWYG-Editor for the page content
- members can access the pages and edit the pages you specify
- Upload function (for images, files etc.)
- full conditional functionality for the file content
I guess my steps go to a system which resists in the normal forums but in the admincp. Iam currently using (will use) this system to build up a database with user submitted tips and tricks.
It would be cool to have a feature like 'submit new entry' where users can use a form (title, content, author) to submit new entries which need my approval to be made public. As this doesn't belong to a normal CMS I will do this (Erwin has a hack for that i think).
the drop menus are a bad idea.
MrNase
07-29-2004, 08:05 PM
They can easily be changed to unordered lists :)
Iam too tired now but i will post a little howto tomorrow :)
the thing to do is make an index page for each category and have a pagination feature so you can show a limited number of articles at a time. that is the typical layout.
lichtflits
07-31-2004, 09:05 AM
Now you shoud start adding options like news or just make the php inlcude work in the templates. :P
MrNase
07-31-2004, 02:50 PM
A feedback on suggestions would be a good start :p
Here's the changes to convert the dropdown box to an unordered list (as seen here (http://www.pagodentreff.de/artikel/)):
Open cms.php and find
$pages.="<b>{$cats['category_name']}</b><br/><select onchange='javascript:doRedirect(this.options[this.options.selectedIndex].value);' class='bginput'><option value=''>Select A Page</option>";
replace it with
$pages.="<b>{$cats['category_name']}</b><br/><ul>";
Now find
$pages.="<option value='cms.php?{$session[sessionurl]}view={$page['page_var']}' selected>{$pagex['page_name']}</option>\n";
and replace it with
$pages.="<li id=\"active\"><a href='cms.php?{$session[sessionurl]}view={$page['page_var']}'>{$pagex['page_name']}</a></li>\n";
And now find:
$pages.="<option value='cms.php?{$session[sessionurl]}view={$page['page_var']}'>{$pagex['page_name']}</option>\n";
and replace it with
$pages.="<li><a href='cms.php?{$session[sessionurl]}view={$page['page_var']}'>{$pagex['page_name']}</a></li>\n";
now find:
$pages.="</select><br/>";
and replace it with
$pages.="</ul><br/>";
Done :)
that list wouldn't be cool if someone ran a site with like 50 articles in 7 different categories.
MrNase
08-01-2004, 01:11 PM
You could modify that list with CSS so that it uses less space ;)
That list is meant as an alternative to that select box this hack uses by default. You are right, not everybody can use it but Iam sure some of you will :)
blue_chi
10-30-2004, 01:02 AM
I am having a problem with the page. :( I tried using a php include template to include external pages to my CMS page, but I am getting some junk code around, could someone please help me at this thread..
https://vborg.vbsupport.ru/showthread.php?t=71153
blue_chi
11-11-2004, 09:36 AM
I installed this and now I love it. :D
jluerken
12-18-2004, 11:25 PM
I installed this and now I love it. :D
Can this version be updated to use table prefixes?
Lionel
03-14-2005, 09:04 PM
Is there a way to implement previous next?
mikehawk
07-17-2005, 12:59 AM
Holy crap, is there a working demo so I can see this? I thank no tolerance for making this hack, but jesus, someone post a good link to see this bad boy in action.
MRGTB
09-15-2005, 12:46 AM
I installed a cms that uses a drop download menu. I think there is some code in the the two queries I ran that have some bearing to the drop down menu.
Here are the two queries:
CREATE TABLE `cms_categories` (
`cid` int(15) NOT NULL auto_increment,
`category_name` varchar(255) NOT NULL default '',
PRIMARY KEY (`cid`)
) TYPE=MyISAM;
and this:
CREATE TABLE `cms_pages` (
`pid` int(15) NOT NULL auto_increment,
`page_name` varchar(255) NOT NULL default '',
`page_var` varchar(255) NOT NULL default '',
`page_content` text NOT NULL default '',
`page_content_un` text NOT NULL default '',
`cat` int(15) NOT NULL default '0',
PRIMARY KEY (`pid`)
) TYPE=MyISAM;
What I want to know is this. What do the three numer "15" listed in the two queries do and what do they refer too?
Because in the cms.php file I have changed the two number 14 to 27 that controls how long your text can be in the Drop Down Menu's before they are replaced with "...", So I can display longer names in the drop down menu.
Do I also have to alter them numbers also in the queries.
Because the standard length in the cms.php file was 14 and the queries 15. Does this mean if I changed it to 27 in the cms.php file, I have to change the querie numbers from 15 to 28.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.