vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Content Management System - Baisic v1.0.0 (https://vborg.vbsupport.ru/showthread.php?t=67682)

Zero Tolerance 07-26-2004 10:00 PM

Content Management System - Baisic v1.0.0
 
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 :)
Code:

  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

Quote:

Originally Posted by kaotic
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

Quote:

Originally Posted by Zero Tolerance
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 :)

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).

opus 07-29-2004 03:00 PM

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 :)

opus 07-29-2004 08:48 PM

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):

Open cms.php and find
Code:

  $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
Code:

  $pages.="<b>{$cats['category_name']}</b><br/><ul>";
Now find
Code:

$pages.="<option value='cms.php?{$session[sessionurl]}view={$page['page_var']}' selected>{$pagex['page_name']}</option>\n";
and replace it with
Code:

$pages.="<li id=\"active\"><a href='cms.php?{$session[sessionurl]}view={$page['page_var']}'>{$pagex['page_name']}</a></li>\n";
And now find:
Code:

  $pages.="<option value='cms.php?{$session[sessionurl]}view={$page['page_var']}'>{$pagex['page_name']}</option>\n";
and replace it with
Code:

$pages.="<li><a href='cms.php?{$session[sessionurl]}view={$page['page_var']}'>{$pagex['page_name']}</a></li>\n";
now find:
Code:

  $pages.="</select><br/>";
and replace it with
Code:

  $pages.="</ul><br/>";
Done :)

opus 07-31-2004 10:12 PM

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

Quote:

Originally Posted by blue_chi
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:

Code:

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:

Code:

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.


All times are GMT. The time now is 12:44 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01238 seconds
  • Memory Usage 1,800KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (11)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete