vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Troubleshooting / "How do I..." Questions

 
 
Thread Tools Display Modes
  #1  
Old 07-20-2004, 07:18 PM
HumanNature HumanNature is offline
Junior Member
 
Join Date: Jun 2004
Posts: 27
Default How to recreate the news module?

Hi, I have been reading the vbacmsp guide but I can´t not undestand exactly how to do what I want to do

I will try to easy explain me xd

What I want to do is "just" to make modules exactly like the news module but with different templates for each one.

For example I want add a module to show a post that I have posted in a forum that I can specify (like the news module) and I want this thread to be shown in my homepage but without the "writing by" without the "reply" without the "print and send buttons" and with other template changes. Really the only thing that I want to do is to edit the template, but the problem is that I don´t want to loose the news module, I want to have the news module and my "edited news module"

Is this posible?

Thanks in advance and sorry about my english
  #2  
Old 07-21-2004, 03:48 PM
HumanNature HumanNature is offline
Junior Member
 
Join Date: Jun 2004
Posts: 27
Default Re: How to recreate the news module?

Well Please someone tell me if this isn´t posible or if this is very difficult or if this is a silly post(xd) or if it is imposible to understood what I want to do
  #3  
Old 07-21-2004, 03:54 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: How to recreate the news module?

It's possible, but would require a little work.
  #4  
Old 07-21-2004, 04:21 PM
HumanNature HumanNature is offline
Junior Member
 
Join Date: Jun 2004
Posts: 27
Default Re: How to recreate the news module?

that´s bad...
  #5  
Old 07-21-2004, 08:41 PM
StewardManscat's Avatar
StewardManscat StewardManscat is offline
Member
 
Join Date: Jun 2004
Posts: 68
Default Re: How to recreate the news module?

I am not sure I understand the question, but it leads me to something that is simmering in the back of my tiny brain.

First, just leaning on the vb gurus here, I think think we could have each forum quite different, using the inherited styles and template system. But getting the original content (modules, blocks) onto each forum stumps me. With only one kick at the php cat (php_include_start), how does one avoid a humungeous source file, most of which is never needed (assume 200 lines of code for six different forums). How do you ensure only the particular 200 lines you want for the current forum are executed, and none of the others? And even so, isn't interpretation eventually going to get bogged down? Seems like we are herding everything through a very small funnel.

I think if there is a cool solution, I should ask over at vbulletin.org. But I bet somebody here might know.

But suppose there is no nice solution. Then, I think, this is what the fellow who posted this thread is getting at. Clone the news module.

We'd have to remove everything that checked for news options, since there is only one section in the cmps control panel for that. We could group those into variables at the top of the file to make life pleasant. By changing them there, we'd effectivley control which forum we were working off, and the other stuff, like templates and smilies etc.

I hope this makes sense to someone, it's a choice I need to make soon, and one that I do not have the experience and knowledge to make without glistening nervously.

To create customized forum sections, where the non-forum content is generated or pulled from anywhere else (usually involving php code), shall we use door number one (vb style/templates and a fix for php_start), dooor number two (yeah vbcmps!), or is there a thrid and more deluxe door still, in this mansion which is vb?

Hope this wasn't too obtuse. Please and thank you.
  #6  
Old 07-21-2004, 10:00 PM
HumanNature HumanNature is offline
Junior Member
 
Join Date: Jun 2004
Posts: 27
Default Re: How to recreate the news module?

Hi I´m working on it. My knowledge oh php and sql betwen 1 and 10 is 2, but I will tell you what I´m doing.

1) Duplicate de "news.php" file and rename it to "newsedit.php" and add it to your modules folder.

2) Create a module call "newsedit" that uses the "newsedit.php" and the same templates that "news" module.

3) Now you have to take the templates of vbadvanced that have a "news" is his name and remane them changing the "news" for "newsedit" and remaining the rest of the name in your templates manager.

4) Enter in this templates and change all the "news" that you find for "newsedit"

5) Now go to "edit Module" and change the name of the templates that you have customized to his new "newsedit" denomination.

6) Edit the "newsedit.php" and at the top of the page writte all the variables that are in the page and give them a value as long as this time we don´t have administration menu to do it.

This way I have my new module working althought I´m not sure if it will work 100% fine.

I also have erased a lot of code o the newsedit.php (as long as the only thing that I want to display is the post) and a lot of the data base queries and still works xddd I can´t believe it.

This way you can clonate the "news" module a thousand times with just changing "news" for "whatyouwant"
  #7  
Old 07-21-2004, 10:09 PM
HumanNature HumanNature is offline
Junior Member
 
Join Date: Jun 2004
Posts: 27
Default Re: How to recreate the news module?

Quote:
I am not sure I understand the question, but it leads me to something that is simmering in the back of my tiny brain.
I just want to have better control o what I´m showing in my homepage and how I´m showing it. If I talk about cinema I want to be able to shown the post in the homepage with a cinema-template (not the vbtemplates, just the template of the post that I´m showing) but if I talk about photos I want to be able to shown the photo with a photo-customized template, and this simply thing is imposible without clonating the news module (or I don´t know how to do it)
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
News Digest Module Morrus Feedback & Suggestions 7 06-05-2005 07:29 PM
new module that acts like news archive or latest topics? cyr0n_k0r Troubleshooting / "How do I..." Questions 3 09-11-2004 04:55 PM
Module Request: v3 Arcade News Intex Add-On Modules & Modifications 3 07-20-2004 06:57 PM
News Module not working properly enzo81 Troubleshooting / "How do I..." Questions 6 07-05-2004 10:51 AM
More Advanced News Module bfoot045 Feedback & Suggestions 0 06-15-2004 12:31 AM


All times are GMT -4. The time now is 04:02 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.