The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Article and Review System

Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews.

Advertisement
This is an HTML example. Isn't it just wonderful?!?!
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 02-22-2006, 07:36 PM
FRAiD FRAiD is offline
Senior Member
 
Join Date: Nov 2005
Posts: 177
Geek Article and Review System License Holder GeekMart License Holder 
Default Module Creation... I've read a lot, here's a basic request/inquiry

This is what I'd like:

I'd like code that just looks like this---

<code that makes module work within GARS>
Whatever I want to put in here, whether a simple static link or something more advanced
</code>

And then still be able to move it to the right, left, center etc like GARS can do.

Has this been done? Because this is what would make it a lot easier to make custom modules.

I'd also like some other advanced image ones... but I'll settle for simple static ones for now.
Reply With Quote
  #2  
Old 03-01-2006, 09:37 AM
FRAiD FRAiD is offline
Senior Member
 
Join Date: Nov 2005
Posts: 177
Geek Article and Review System License Holder GeekMart License Holder 
Default

No one knows how to do this?

Isn't this kinda what GARS is all about? I mean, at the very least I'd like something to make a simple static box where I can just throw code inside for like downloading manuals or whatever.

Please?
Reply With Quote
  #3  
Old 03-01-2006, 05:34 PM
Marris Marris is offline
Junior Member
 
Join Date: Feb 2006
Posts: 23
Geek Article and Review System License Holder 
Default

You can add multiple copies of the References module for a basic BB Code or HTML block. If you edit the template you could remove the "References" title.

Or you could try adding a new module using module file references.php and cache GARS_references, but give it a new module title.

I think you could also make a copy of the references.php module, rename all the instances of "refs" and "references" to your own custom name, then create a new term set of phrases to match the custom name.

The Geek mentioned in another thread that he is considering adding a feature like the vB custom user profile field editor, which would make it easier to add basic fields and modules.

Last edited by Marris; 03-01-2006 at 07:01 PM..
Reply With Quote
  #4  
Old 03-01-2006, 08:46 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Thats the easiest way to get started.

I wrote a couple of tutorials in the GARS->tutorials forums that should also sort you out pretty easily.
Reply With Quote
  #5  
Old 03-02-2006, 06:05 AM
FRAiD FRAiD is offline
Senior Member
 
Join Date: Nov 2005
Posts: 177
Geek Article and Review System License Holder GeekMart License Holder 
Default

Quote:
Originally Posted by Marris
You can add multiple copies of the References module for a basic BB Code or HTML block. If you edit the template you could remove the "References" title.

Or you could try adding a new module using module file references.php and cache GARS_references, but give it a new module title.

I think you could also make a copy of the references.php module, rename all the instances of "refs" and "references" to your own custom name, then create a new term set of phrases to match the custom name.

The Geek mentioned in another thread that he is considering adding a feature like the vB custom user profile field editor, which would make it easier to add basic fields and modules.
I'll try and do that, but half the stuff didn't make sense to me (I thought GARS was easier to use than it has been for me). I'll keep reading this over though.

... And I read the tutorials, but these are the questions I came up with
Reply With Quote
  #6  
Old 03-02-2006, 06:34 AM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

I guess its really no different technical wise than making a vba module (a bit easier IMO) but none the less it is still a challenge if you dont know PHP and/or HTML. This is an area im working on for a future update.
Reply With Quote
  #7  
Old 03-02-2006, 08:02 AM
FRAiD FRAiD is offline
Senior Member
 
Join Date: Nov 2005
Posts: 177
Geek Article and Review System License Holder GeekMart License Holder 
Default

Quote:
Originally Posted by The Geek
I guess its really no different technical wise than making a vba module (a bit easier IMO) but none the less it is still a challenge if you dont know PHP and/or HTML. This is an area im working on for a future update.
How? Where is the option to create a module based on a template? Maybe I'm not seeing that, because that's what makes it easier for me. Because I can then simply insert my code into the template and create a template based module.


On another point... if I'm going to use the references module as a way to put in static links etc, don't I have to allow html to be able to do this (within the module itself?) and if I have to do that, then doesn't that also mean than anyone can then use html in the references (which I don't want to have happen?)


I guess I'll just keep reading, still struggling with this though
Reply With Quote
  #8  
Old 03-02-2006, 03:05 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

ok. Got me there! Here is a module code to use a template:

PHP Code:
<?PHP
 
if ($stage == "display")
{
eval(
'$output .= "' fetch_template('TEMPLATENAME') . '";');
}
?>
The references module allows you to enter any text in. Your settings dictate whether its parsed as BBcode and if HTML is allowed in the references box.

HTHs!
Reply With Quote
  #9  
Old 03-04-2006, 05:37 AM
FRAiD FRAiD is offline
Senior Member
 
Join Date: Nov 2005
Posts: 177
Geek Article and Review System License Holder GeekMart License Holder 
Default

So could I just create a template within my style and use your code to fetch it as a module (of course typing the name of the template first?)

If so, that'd work wonders (for my current plans...)
Reply With Quote
  #10  
Old 03-07-2006, 03:17 AM
FRAiD FRAiD is offline
Senior Member
 
Join Date: Nov 2005
Posts: 177
Geek Article and Review System License Holder GeekMart License Holder 
Default

I tried the options you listed before Marris, the simple copy, while it worked, it still had the title references, and when I tried replacing all instances of references and refs with a different custom title of my choosing, then after adding the module to my set it didn't show up in a thread when I tried to edit anything.

So one option worked, but the title didn't change (I need that changed) and the other time it didn't work at all.

Where in the code for that references.php file is the line that I would need to change to change the title?

I know that if I just go into my phrase manager, I could simply change the title there, but that will only help me with one module, how can I have multiple? Because if I change the name references to "music" then both of my modules titles change to music... so help please?

Last edited by FRAiD; 03-07-2006 at 04:19 AM..
Reply With Quote
Reply

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
Review Module - Request Volion Geek Article and Review System 1 06-23-2007 11:44 AM
New Module Request Lizard King Geek Article and Review System 4 07-06-2006 10:20 AM
Attachment Module... adding a basic static link after the attached files FRAiD Geek Article and Review System 4 04-15-2006 11:28 PM
DB Error after new module creation jluerken Geek Article and Review System 14 02-05-2006 12:20 PM
New Module Request KTBleeding Geek Article and Review System 4 10-07-2005 08:41 PM


All times are GMT. The time now is 06:36 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.