markscarts Posted November 6, 2005 Share Posted November 6, 2005 I would like to add several site docs, but wish to prevent them showing up through viewDoc . . . [edit] I meant boxes/siteDocs.tpl To clarify, I have a number of site docs that show up through the viewDoc system, from php to siteDocs to viewDoc box template . . . that is as it should be. But I want to add other site docs that do not show up in that siteDocs menu on my site . . . I want to put links to these extra docs in a separate area on the page. Any advice on how to accomplish this? Quote Link to comment Share on other sites More sharing options...
convict Posted November 6, 2005 Share Posted November 6, 2005 it depends to where docs content should be viewed [new window/inside of CC]. PS: your site header block is a bit messy in FireFox ;) Quote Link to comment Share on other sites More sharing options...
markscarts Posted November 6, 2005 Author Share Posted November 6, 2005 Thanx for the tip M8, I'll work on that first then come back to my orig prob OK, should be all better now in Mozilla, I adjusted using ns, haven't seen it in FF . . . ------------- As to location of docs viewed: I want to view them inside of CC, just like site docs work now - I only want to exclude the links to certain docs, not from viewDoc.tpl as previously stated, but from boxes/siteDocs.tpl - that is to say, all I want to do is exclude certain of the links from appearing in that loop. I want to manually link to them from another area of the page - when link is clicked, behaves just like all site docs that are viewed through viewDoc :( Quote Link to comment Share on other sites More sharing options...
convict Posted November 6, 2005 Share Posted November 6, 2005 this could be made with a flag cheching. Add new column to CubeCart_docs table . This colum (named flag or etc)should be filled with some value [1 for view doc in list, 0 for doesnt view]. This value(flag) should be checked in a first siteDocs.inc.php select $results = $db->select("SELECT doc_id, doc_name FROM ".$glob['dbprefix']."CubeCart_docs ORDER BY doc_name ASC"); like $results = $db->select("SELECT doc_id, doc_name FROM ".$glob['dbprefix']."CubeCart_docs WHERE flag=1 ORDER BY doc_name ASC");Result will be list of viewable docs id, names This should be manageable in ACP by adding apropriate PHP/HTML code to siteDocs.php If you wish i can write a mod for U :( Quote Link to comment Share on other sites More sharing options...
markscarts Posted November 6, 2005 Author Share Posted November 6, 2005 OK, then let me ponder this awhile . . . if you write a mod for it, I might have other ideas to go with it and make it more versatile ;) Quote Link to comment Share on other sites More sharing options...
Guest Posted November 6, 2005 Share Posted November 6, 2005 Mark, I've addressed this issue before. Simply edit the doc_id of the docs you don't want displayed manually in PHPMyAdmin. Set them to 101 and above. Then edit /includes/boxes/siteDocs.inc.php - line 37 to by adding " WHERE doc_id < 100" to the end of the SELECT statement...like this: // query database $results = $db->select("SELECT doc_id, doc_name FROM ".$glob['dbprefix']."CubeCart_docs WHERE doc_id < 100 ORDER BY doc_name ASC"); That will do the trick all by itself. You can add stuff to the admin, but this is a quick/dirty way that will work without having to do lots of extra stuff. ;) Quote Link to comment Share on other sites More sharing options...
markscarts Posted November 6, 2005 Author Share Posted November 6, 2005 Thanks, I was looking for a down & dirty solution that a PHP newbie could handle I need to collect my thoughts on some additional ideas before getting an all-out mod concept with plenty of bells and whistles added. :( Quote Link to comment Share on other sites More sharing options...
convict Posted November 6, 2005 Share Posted November 6, 2005 Done Some describing what to do. Admin section modded too. Busy momentaly.... 1 hour later iLL give to you marcscarts Dirty solutions NO ;) Quote Link to comment Share on other sites More sharing options...
markscarts Posted November 6, 2005 Author Share Posted November 6, 2005 /me: = >gut laugh< A big thanks to bof'a you guys . . . Quote Link to comment Share on other sites More sharing options...
convict Posted November 6, 2005 Share Posted November 6, 2005 markcarts mod is available. Display status is showed in ACP Site documents for every listed site docs (In list column) You are able to change display status by clicking on this status.... Have fun Quote Link to comment Share on other sites More sharing options...
markscarts Posted November 7, 2005 Author Share Posted November 7, 2005 Thanks convict, I'll install it now :P Quote Link to comment Share on other sites More sharing options...
markscarts Posted November 7, 2005 Author Share Posted November 7, 2005 Uh oh! Site down . . . Error message: MySQL Error Occured 1054: Unknown column 'view' in 'where clause' QUERY = SELECT doc_id, doc_name FROM CubeCart_docs WHERE view=1 ORDER BY doc_name ASC Unknown column 'view' yet: Column is there . . . Crap . . . just realized, added new column to WRONG db Going back to fix it :P Quote Link to comment Share on other sites More sharing options...
markscarts Posted November 7, 2005 Author Share Posted November 7, 2005 Works perfectly! Thank you again, convict :P Quote Link to comment Share on other sites More sharing options...
convict Posted November 7, 2005 Share Posted November 7, 2005 :P :D Quote Link to comment Share on other sites More sharing options...
markscarts Posted November 7, 2005 Author Share Posted November 7, 2005 Result - first of several siteDocs that do not appearr in upper navigation bar . . . The Freebies Vault is reached by a link under the categories box, and does not appear in nav bar http://cc3.biz/index.php?act=viewDoc&docId=5 I like it :) Quote Link to comment Share on other sites More sharing options...
convict Posted November 7, 2005 Share Posted November 7, 2005 cool markcarts . Quote Link to comment Share on other sites More sharing options...
Guest idara Posted December 28, 2005 Share Posted December 28, 2005 Hi Convict The download links at cubecart site not working, may I have any other download link to this mod please? Regards Yunus Quote Link to comment Share on other sites More sharing options...
Guest Posted December 28, 2005 Share Posted December 28, 2005 I want this mod too. None of the downloads are working in the old download section. Hopefully it will be up again soon, but in the meantime is there another place to download this mod? Jen Quote Link to comment Share on other sites More sharing options...
convict Posted December 28, 2005 Share Posted December 28, 2005 idara & grassmeyer http://ccmods.convict.sk/index.php?act=viewProd&productId=4 or clik on my signature free link you are welcome ;) Quote Link to comment Share on other sites More sharing options...
Guest idara Posted December 29, 2005 Share Posted December 29, 2005 Thanks convict worked like charm Yunus Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.